Skip to Content
The Alchemy Project

include/battle/first_strike.h

Who strikes first as a battle opens.

Included by battle_internal.h.

Enumerations

NameDescription
enumBATTLE_FIRST_STRIKE { FIRST_STRIKE_NONE, FIRST_STRIKE_PARTY, FIRST_STRIKE_ENEMIES }BATTLE_STATE.firstStrike: rolled as a battle opens when nothing set its start (MainRoutineStateWork.battleType 0), and set back to normal after the first turn (btRun).

Description

Who strikes first as a battle opens.

Enumerations in detail

BATTLE_FIRST_STRIKE

enum BATTLE_FIRST_STRIKE

BATTLE_STATE.firstStrike: rolled as a battle opens when nothing set its start (MainRoutineStateWork.battleType 0), and set back to normal after the first turn (btRun).

EnumeratorValueDescription
FIRST_STRIKE_NONE0
FIRST_STRIKE_PARTY11 in 16, and always in the Djinn tutorial: no enemy acts in the first turn, and running away cannot fail.
FIRST_STRIKE_ENEMIES21 in 32 of the rest: in the first turn the party chooses no commands, and at most 2 to 5 enemies, drawn at random, act once each (btBuildEnemyActions). A failed flee sets it for the rest of its turn.

Definition at line 11 of file first_strike.h.