affinity_damage_percent_by_level
Global of Kamidori Alchemy Meister: the cell G:0x3b2a8c, of type int[12], data-table, values 150,140,130,120,110,100,90,75,50,25,0,-100.
CALCBTPARAM@0x007a3 multiplies attack power by [defender affinity level for the attack element]; a negative value (吸収) heals. BTRTN@0x0012e, SELACT and the RTN_M05x scripts use it to estimate damage.
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.
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 |
|---|---|---|---|
AFINIT | 0 | 12 | 0 |
SELACT | 0 | 0 | 4 |
CALCBTPARAM | 0 | 0 | 2 |
RTN_M018 | 0 | 0 | 2 |
RTN_M051 | 0 | 0 | 2 |
RTN_M052 | 0 | 0 | 2 |
RTN_M053 | 0 | 0 | 2 |
RTN_M054 | 0 | 0 | 2 |
RTN_M071 | 0 | 0 | 2 |
BTRTN | 0 | 0 | 1 |
SETMVWORK | 0 | 0 | 1 |