CCINIT
Script CCINIT.BIN of Kamidori Alchemy Meister: id 0x4523, 3461 instructions, fingerprint c00455856a54.
Layers over it: $1$CCINIT, $2$CCINIT, $3$CCINIT.
The class-change rules: CALCCC calls it, and each layer's, through its hook array. A rule that matches the character and its level sets its bit, takes its title when its priority wins, and adds its deltas.
Source: docs/kamidori-data-tables.md (Class changes)
Its caller sets these globals before the call:
| Global | What it holds |
|---|---|
current_character_id | the character whose rules it tests |
Calls
No script calls it by a constant id.
It calls no script by a constant id.
Globals
The named globals its instructions read, write or index (take as an array’s base), with how many operands do each.
| Global | Reads | Writes | Indexes |
|---|---|---|---|
class_change_stat_deltas | 800 | 800 | 0 |
class_change_stat_cap_deltas | 376 | 376 | 0 |
current_character_id | 412 | 0 | 0 |
class_change_title_priority | 206 | 103 | 0 |
character_class_change_state | 0 | 0 | 221 |
class_change_party_cost_delta | 93 | 93 | 0 |
class_change_skill_learn_flags | 0 | 170 | 0 |
class_change_skill_slot_replacements | 0 | 170 | 0 |
class_change_resistance_deltas | 60 | 60 | 0 |
class_change_title_out | 0 | 103 | 0 |
character_levels | 0 | 0 | 88 |
class_change_party_capacity_delta | 10 | 10 | 0 |