Skip to Content
The Alchemy Project

src/field/world_map_encounter_rules.c

Where the World Map's random battles come from: each region of the map, and its forests, take their own encounter zone.

Variables

NameDescription
const WORLD_MAP_ENCOUNTER_RULEWorldMapEncounterRules []The World Map's encounter zones (WORLD_MAP_ENCOUNTER_RULE): {encounter region, battle environment (-1 for any), flag (-1, or a flag that turns the rule off once set), zone}, ended by region -1.
const DJINNI_BATTLEEncounterDjinnBattles []The encounter of each Djinni battle (fdEncounterGetDjinnFormation): {zone, slot}, by Djinni number (element * 20 + index).

Description

Where the World Map's random battles come from: each region of the map, and its forests, take their own encounter zone.

Variables in detail

WorldMapEncounterRules

const WORLD_MAP_ENCOUNTER_RULE WorldMapEncounterRules[]

The World Map's encounter zones (WORLD_MAP_ENCOUNTER_RULE): {encounter region, battle environment (-1 for any), flag (-1, or a flag that turns the rule off once set), zone}, ended by region -1.

Referenced by fdEncounterResolveWorldMapZoneAndBackdrop().

Definition at line 12 of file world_map_encounter_rules.c.

EncounterDjinnBattles

const DJINNI_BATTLE EncounterDjinnBattles[]

The encounter of each Djinni battle (fdEncounterGetDjinnFormation): {zone, slot}, by Djinni number (element * 20 + index). Each element has room for 20 Djinn but this game has 7; the rows for the other 13 go on through the zone's eight slots, though no Djinni there is ever fought.

Referenced by fdEncounterGetDjinnFormation().

Definition at line 116 of file world_map_encounter_rules.c.