Alchemy
Loading...
Searching...
No Matches

TerrainRule Struct Reference

The world map's encounter zone for each kind of terrain (gWorldMap_EncounterRules, zonedata.c), ended by kind -1. More...

Data Fields

s16 kind
 the terrain kind of the map block
s16 behavior
 the terrain's behavior, or -1 for any
s16 flag
 -1, or a flag that turns the rule off once set
s16 zone

Detailed Description

The world map's encounter zone for each kind of terrain (gWorldMap_EncounterRules, zonedata.c), ended by kind -1.

Definition at line 21 of file encounter.c.

Field Documentation

◆ kind

s16 TerrainRule::kind

the terrain kind of the map block

Definition at line 22 of file encounter.c.

Referenced by Encounter_ResolveWorldMapZoneAndBackdrop().

◆ behavior

s16 TerrainRule::behavior

the terrain's behavior, or -1 for any

Definition at line 23 of file encounter.c.

Referenced by Encounter_ResolveWorldMapZoneAndBackdrop().

◆ flag

s16 TerrainRule::flag

-1, or a flag that turns the rule off once set

Definition at line 24 of file encounter.c.

Referenced by Encounter_ResolveWorldMapZoneAndBackdrop().

◆ zone

s16 TerrainRule::zone

Definition at line 25 of file encounter.c.

Referenced by Encounter_ResolveWorldMapZoneAndBackdrop().