stage_reward
Record table of Kamidori Alchemy Meister, records 0 to 3, 1 fields.
The current stage's four clear-reward rows: the condition each one's reward is for, which STINIT (and each append's $n$STINIT) writes with the rest of the stage (docs/kamidori-data-tables.md, Stage catalog). Row i's rewards are stage_catalog's objective_*_rewards element i. AIM@0x5b4 and STAGECLEAR@0x8be draw a fixed label for row 0 in place of its text, which STINIT leaves empty; rows 1 to 3 draw their text (AIM@0x5bc, STAGECLEAR@0x8c6). A data file reaches it through the stage scope.
The game builds it when a stage loads, so a data file reaches it through the scope stage (ids 1 to 999): record r of stage id is [stage.id.reward.r], and a field stage.id.reward.r.field.
The scope stage: A stage, by current_stage_id. STINIT's stages are 1 to 968 and the appends' reach 977, and the per-stage arrays hold 1,000 (stage_display_names). kamidori-base applies a scoped table at kamidori.stage.loaded and kamidori.stage.previewed, whose stage is the id.
The database lists it: each of the stages lists its rewards.
Fields
Each field is a global, one cell per record, named under the field. The last column is what a data file may write to it, as the base mod kamidori-base’s shape says.
| Field and its global | Type | Refers to | In a data file |
|---|---|---|---|
condition_textstage_reward_condition_texts | string[4] | — | yes: text the save's code page (932) can encode |