unit_boss_class
Global of Kamidori Alchemy Meister: the cell G:0x2b66ac, of type int[1000], data-table, values 0 not a boss; nonzero a boss, whose magnitude picks the battle music and whose sign says whether a boss victory needs it: 1 to 4 count, -1 does not. At the boot 48 units have 1, 16 have 2, 11 have 3, 5 have 4 (the Reaper's five records) and 75 have -1..
Every reader takes nonzero as a boss. DRAWCHSTATE@0x000f5 draws the boss marker. CALCILL@0x0002e lets a condition whose condition_can_affect_bosses is 0 pass a boss by. CALCDMG@0x00821 adds passive skill 58's bonus against a boss (skill_combat_stat_deltas[58]). FIELD@0x08d6b takes the larger abs() of the two combatants' classes for the battle's music, which BTL@0x00fdd plays: 4 plays BGM 8, 1 to 3 play BGM 0x20 + class (33 to 35), and 0 the common battle music (32 or 31). FIELD@0x0abef: a stage whose stage_victory_defeat_unit is -2 is won when no hostile unit with a class above 0 is left, so a unit of -1 is a boss that victory does not wait for.
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 unit, as unit.id.boss_class.
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 |
|---|---|---|---|
EBINIT | 0 | 112 | 0 |
$3$EBINIT | 0 | 31 | 0 |
$1$EBINIT | 0 | 9 | 0 |
$2$EBINIT | 0 | 3 | 0 |
FIELD | 0 | 0 | 3 |
CALCDMG | 0 | 0 | 1 |
CALCILL | 0 | 0 | 1 |
DRAWCHSTATE | 0 | 0 | 1 |