class_change
Record table of Himegari Dungeon Meister, records 0 to 0, 5 fields.
What a class change gives, as CALCCC adds it up for current_unit_id: it zeroes the block (not the title), copies the unit's unit_class_change_state row to class_change_state_work, runs every rule script of class_change_rule_script_ids (CCINIT, then $1$CCINIT: 71 base rules over 33 units, two more for unit 81), and applies the block when class_change_selected_level is not 0 (CALCCC@0x0-0x68). A rule fires once (its column of unit_class_change_state is 0) when its unit's level reaches its threshold; the Lily rules (units 3 and 4) have no level test and apply only to a unit other than familiar_unit_id. No data file edits it: it is the sum of the rules that fire, rebuilt on every call, which himegari-base refuses as a table no format edits. The rules themselves are CCINIT's code, which an OMS patch changes.
The game builds it as it needs it (its built_by is class_change). Record id is [class_change.id] in a data file, class_change[id] in OMS and Lua, and a field class_change.id.field.
The database lists it: each of the units lists its title changes.
Fields
Each field is a global, one cell per record, named under the field. The last column is what a data file may write to it, as the base mod himegari-base’s shape says.
| Field and its global | Type | Refers to | In a data file |
|---|---|---|---|
titleclass_change_title_output | string | — | — |
title_levelclass_change_selected_level | int | — | — |
deployment_cost_deltaclass_change_deployment_cost_delta | int | — | — |
stat_bonusesclass_change_stat_bonuses | int[14] | — | — |
skill_awardsclass_change_skill_awards | int[4] | skill | — |