calc_item_stat_totals
Global of Kamidori Alchemy Meister: the cell G:0x2a9b79, of type int[14], data-table, values CALCARM output.
Seeded from item_stat_modifiers by CALCARM@0x00027, then enhancement, gem and upgrade bonuses are added. CALCREVISE@0x002a8 adds it to the unit stats.
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 accuracy, 1 evasion, 2 physical_attack, 3 physical_defense, 4 magic_attack, 5 magic_defense, 6 agility, 7 luck, 8 movement, 9 customer_service, 10 max_hp, 11 max_sp, 12 max_fs, 13 skill_capacity. Lua and an event’s cell write a row’s column calc_item_stat_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 |
|---|---|---|---|
DRAWTOOLTIP | 11 | 0 | 0 |
CALCARM | 0 | 0 | 7 |
CALCREVISE | 0 | 0 | 1 |