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.
#include "field/world_map_encounter_rules.h"#include "djinn_ids.h"#include "field/field.h"#include "field/field_engine.h"
Variables
| Name | Description | |
|---|---|---|
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. |
const DJINNI_BATTLE | EncounterDjinnBattles [] | 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.