himegari.boot.data_layered
Patch point of Himegari Dungeon Meister, in the script INIT2.
The instruction after op 0x143 (INIT2@0x17f), before INIT2 calls TUNE. Every layer has written its data: the base *INIT scripts, then each mounted append's $n$AUTORUN and its $n$*INIT layers. The boot has not used the tables yet. TUNE comes next: it lowers each saved tuning level to fit its item's curve (item_tuning_curve_ids, item_tuning_stat_bonus_curves), runs CALCREVISE when G[0x767b] is set, and raises item_inventory_counts to the party's items, so it corrects the save against an edit made here as it does against an append's. The tables lie above the saved prefix (0x6241b): a load zeroes them, the prologue builds them again, and control reaches here again while the load restores.
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 |
|---|---|
00ec969c7f36 (the script as OME’s index has it) | 0x180 |
The base mod raises himegari.data.layered here. The patching and Lua guides explain how a mod uses a point.