card_generation_weight_schedules
Global of Himegari Dungeon Meister: the cell G:0x152486, of type int[100][3], data-table, values nonnegative weighted-selection parameters.
Each slot's weight: base_weight + floor(current_stage_turn / growth_interval_turns) x growth_weight, the base alone when the interval is 0 (FIELD@0x6648-0x668e). FIELD skips a card that fails its story gates or whose weight is not positive, draws a number below the weights' total, and takes the first card whose running total exceeds it (FIELD@0x6695-0x6719); with nothing eligible no card comes (FIELD@0x66cc). Every shipped slot has a nonzero interval (5, 7, 8 or 10 turns) and a positive growth.
OME’s registry gives it with high confidence, from investigation. The base mod himegari-base exports the name, so Lua and an event’s fields can use it.
Its columns are named: 0 base_weight, 1 growth_interval_turns, 2 growth_weight. Lua and an event’s cell write a row’s column card_generation_weight_schedules[i].column.
It depends on 0x152485, 0x1525b2, 0x204f4.
Record tables
It is a field of the table card_list_entry, as card_list_entry.id.weight_schedule.
Scripts that use it
The game’s scripts whose instructions read, write or index (take as an array’s base) the cell, with how many of their operands do each, from OME’s script index.
| Script | Reads | Writes | Indexes |
|---|---|---|---|
CDINIT | 0 | 1149 | 1 |
FIELD | 0 | 0 | 4 |