himegari.class_change.rules_run
Patch point of Himegari Dungeon Meister, in the script CALCCC.
Every rule script of class_change_rule_script_ids has run for current_unit_id (CCINIT, then the append's $1$CCINIT), and CALCCC has applied nothing yet: the class change block (class_change_selected_level, class_change_title_output, class_change_deployment_cost_delta, class_change_stat_bonuses and class_change_skill_awards) holds what the rules that fired in this call gave, each of which has marked its column of class_change_state_work. A level of 0 means none fired, and CALCCC exits; otherwise it copies the state back into unit_class_change_state and applies the title, the cost, the stats and the skills to the unit.
The point is one instruction, named the same in every revision of the script that has it. Its site, a dword offset into the script, in each revision OME knows:
| Script revision (fingerprint) | Site |
|---|---|
cedd0c7a148b (the script as OME’s index has it) | 0x68 |
The base mod raises no event here. The patching and Lua guides explain how a mod uses a point.