unit_class_change_state
Global of Himegari Dungeon Meister: the cell G:0x573bb, of type int[100][10], data-table, values 0 unapplied, 1 applied.
Persistent ten-slot class-change state for each playable unit. CALCCC copies the current unit's row to class_change_state_work before invoking the rule scripts and persists the updated row; CCINIT requires the rule's slot to be zero so each promotion is applied once.
OME’s registry gives it with high confidence, from investigation. The base mod himegari-base exports the name, so Lua and an event’s fields can use it.
Its columns are named: 0 promotion_slot_1, 1 promotion_slot_2, 2 promotion_slot_3, 3 promotion_slot_4, 4 promotion_slot_5, 5 promotion_slot_6, 6 promotion_slot_7, 7 promotion_slot_8, 8 promotion_slot_9, 9 promotion_slot_10. Lua and an event’s cell write a row’s column unit_class_change_state[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 |
|---|---|---|---|
CCINIT | 0 | 0 | 71 |
$1$CCINIT | 0 | 0 | 2 |
GAMECLEAR | 0 | 0 | 2 |
GAMESTART | 0 | 0 | 2 |
CALCCC | 0 | 0 | 1 |