item_attack_element
Global of Kamidori Alchemy Meister: the cell G:0x2deb98, of type int[2000], data-table, values 0 無属 (non-elemental) on an item that attacks, else nothing; 1 physical(物理), 2 earth(地脈), 3 ice(冷却), 4 fire(火炎), 5 lightning(電撃), 6 holy(神聖), 7 dark(暗黒).
Populated for 323 weapons and innate attacks. Every value agrees with the element word in item_short_descriptions, 0 included: the 76 weapons of categories 11 to 25 with 0 say 無属 and the 40 innate attacks of category 0 with 0 say 無. CALCBTPARAM@0x001ae falls back to it for the attack element (0xf29d8) when the skill has no element. BTRTN@0x0010b feeds it into the affinity lookup, and the RTN_M05x/M071/SELBOMB scripts read it the same way.
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.
Record tables
It is a field of the table item, as item.id.attack_element.
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 |
|---|---|---|---|
ITINIT | 0 | 212 | 0 |
$3$ITINIT | 0 | 97 | 0 |
$1$ITINIT | 0 | 9 | 0 |
$2$ITINIT | 0 | 7 | 0 |
RTN_M051 | 0 | 0 | 2 |
RTN_M052 | 0 | 0 | 2 |
RTN_M054 | 0 | 0 | 2 |
SELACT | 0 | 0 | 2 |
BTRTN | 0 | 0 | 1 |
CALCBTPARAM | 0 | 0 | 1 |
DRAWTOOLTIP | 0 | 0 | 1 |
RTN_M018 | 0 | 0 | 1 |
RTN_M053 | 0 | 0 | 1 |
RTN_M071 | 0 | 0 | 1 |
SELBOMB | 0 | 0 | 1 |
SETMVWORK | 0 | 0 | 1 |