Skip to Content
The Alchemy Project

struct ENCOUNTER_ZONE

An encounter zone, a row of EncounterZones: its rate, the level it is made for, and the formations that can appear with their chances. More…

Declared in encounter_zone.h.

Fields

NameDescription
Uint16rateThe base encounter rate; 0 for zone 0 (no encounters) and for a zone only scripted battles, mimics and Djinn use.
Uint16levelThe party level the zone is made for.
Uint16formations [ENCOUNTER_GROUP_COUNT]The formations that can appear, by formation id (battle/formations.c).
Uint8weights [ENCOUNTER_GROUP_COUNT]Each formation's relative chance.

Description

An encounter zone, a row of EncounterZones: its rate, the level it is made for, and the formations that can appear with their chances. 28 bytes, the 14 halfwords fdEncounterGetFormationAtSlot counts a zone as.

struct ENCOUNTER_ZONE

Referenced by EncounterZones and fdEncounterCountStepsAndSelectFormation().

Definition at line 17 of file encounter_zone.h.

Fields in detail

rate

Uint16 rate

The base encounter rate; 0 for zone 0 (no encounters) and for a zone only scripted battles, mimics and Djinn use.

level

Uint16 level

The party level the zone is made for.

formations

Uint16 formations[ENCOUNTER_GROUP_COUNT]

The formations that can appear, by formation id (battle/formations.c).

weights

Uint8 weights[ENCOUNTER_GROUP_COUNT]

Each formation's relative chance.