benilla-re systems structs docs

FactionTemplateReaction

function · objectlayer · primitive

Address
0x606640 · 166 bytes, up to 0x6066e5
Signature
uint32_t __fastcall (const void *row, const void *other)
Meaning
Returns 1, 3 or 4 for one FactionTemplate.dbc row toward another, from enemy and friend masks and lists
Confidence
verified, proof one
Finding
objectlayer/reaction#templates-compared
Test
objectlayer::faction_template_reaction_truth_table, objectlayer::faction_template_reaction_list_mechanics, objectlayer::faction_template_reaction_fuzz, objectlayer::unit_reaction_league_of_arathor_emissary

Finding: Templates compared in objectlayer: reaction

0x606640(rowA, rowB) returns 1, 3 or 4: hostile when A's enemy mask meets B's group or B's faction is among A's enemies; friendly when A's friend mask meets B's group, B's faction is among A's friends, B's friend mask meets A's group, or A's faction is among B's friends; neutral otherwise. It reads B's enemies never, so hostility is only A's. Each list stops at its first zero.

The derivation is in the doc.

Callers 2

Callees 0

None by a direct call or jump.

Calls and jumps by a bare address, from tables/calls.tsv.