terrain
Record table of Kamidori Alchemy Meister, records 0 to 39, 7 fields.
LAINIT terrain keyed by terrain id, 1 to 39 named in pairs of a visible and an unexplored variant; $3$LAINIT adds 神殿 and 砂塵地帯 (docs/kamidori-data-tables.md, Terrain). A floor's tiles are terrain ids (MPINIT). Kamidori's terrain changes no battle stat: a unit gains on it from an element's terrain skill (CALCSUPPORT@0x34).
The game builds it at boot. Record id is [terrain.id] in a data file, terrain[id] in OMS and Lua, and a field terrain.id.field.
The database lists it: Terrains.
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 |
|---|---|---|---|
nameterrain_type_names | string[40] | — | yes: text the save's code page (932) can encode |
texture_slotterrain_texture_slot_indices | int[40] | — | yes: a whole number |
room_join_flagterrain_room_join_flags | int[40] | — | yes: a whole number |
visibility_classterrain_visibility_classes | int[40] | — | yes: a whole number |
element_idterrain_element_ids | int[40] | element | yes: a whole number |
move_costterrain_move_costs | int[40] | — | yes: a whole number |
required_skill_idsterrain_required_skill_ids | int[40][2] | skill | yes: a row of 2 columns by number, 0 to 1; write required_skill_ids.<number> = ... |