INIT2
Script INIT2.BIN of Kamidori Alchemy Meister: id 0x4542, 154 instructions, fingerprint 5e4932184f30.
Builds the game's data: it calls the 28 base table scripts (SCINIT first, BTANINIT2 last), then op 0x143 runs each mounted append's $n$AUTORUN, whose fragments write over the base tables. After that it fills each unset text colour, rebuilds the field when a save made on a floor is loaded, and sets up the studio's ornaments.
Source: docs/kamidori-data-tables.md (How the data gets into memory); the patch points kamidori.boot.data_layered and kamidori.boot.data_ready
Calls
Called by SYSTEM4.
It calls AFINIT, ALINIT, AMINIT2, ARINIT, BTANINIT2, BUINIT, CDINIT2, CGINIT, CIINIT, CNINIT, CVINIT, DIINIT, DRAWCHALL, DRAWOBJ, EBINIT, EUINIT, FAINIT, HAINIT, ILINIT, IMINIT, ITINIT, LAINIT, OBINIT, QUINIT, RTINIT, SCINIT, SETHALLTEX, SETMAPTEX, SETOBJ, SETSTUDIOORN, SKINIT, SPINIT, STINIT2, VIINIT. It also has 1 call whose script is computed when it runs.
Globals
The named globals its instructions read, write or index (take as an array’s base), with how many operands do each. Cells no global names yet take 0 reads, 16 writes and 11 indexes more.
Patch points
kamidori.boot.data_layered, at0x20dkamidori.boot.data_ready, at0x2cf