calc_item_affinity_totals
Global of Kamidori Alchemy Meister: the cell G:0x2a9b71, of type int[8], data-table, values CALCARM output.
CALCARM@0x00010 seeds it from item_affinity_level_deltas and adds enhancements, gems and upgrade steps. CALCREVISE@0x00264 adds it to the unit affinity levels.
OME’s registry gives it with high confidence, from investigation. The base mod kamidori-base exports the name, so Lua and an event’s fields can use it.
Its columns are named: 0 omni, 1 physical, 2 earth, 3 ice, 4 fire, 5 lightning, 6 holy, 7 dark. Lua and an event’s cell write a row’s column calc_item_affinity_totals[i].column.
Scripts that use it
The game’s scripts whose instructions read, write or index (take as an array’s base) the cell, with how many of their operands do each, from OME’s script index.
| Script | Reads | Writes | Indexes |
|---|---|---|---|
CALCARM | 0 | 0 | 7 |
CALCREVISE | 0 | 0 | 1 |