Skip to Content
The Alchemy Project

include/battle/battle_random.h

BattleRandomSeed, the battle's random seed.

Included by battle_internal.h and game_internal.h.

Macros

NameDescription
#defineSET_RANDOM_SEED (seed)Sets BattleRandomSeed, as every write to it does: a new battle's 0, the seed a link turn exchanges and each roll's next seed.

Variables

NameDescription
extern Sint32BattleRandomSeedgmBattleRandom's seed, apart from syRandom's so the battle's rolls repeat on both consoles of a link battle: it starts at 0 there, and each turn the parent (link side 0) copies RandWork into it and sends it to the child.

Description

BattleRandomSeed, the battle's random seed.

Macros in detail

SET_RANDOM_SEED

#define SET_RANDOM_SEED(seed)

Sets BattleRandomSeed, as every write to it does: a new battle's 0, the seed a link turn exchanges and each roll's next seed.

Referenced by btAppendLinkedActions(), btRun() and gmBattleRandom().

Definition at line 16 of file battle_random.h.

Variables in detail

BattleRandomSeed

extern Sint32 BattleRandomSeed

gmBattleRandom's seed, apart from syRandom's so the battle's rolls repeat on both consoles of a link battle: it starts at 0 there, and each turn the parent (link side 0) copies RandWork into it and sends it to the child.

Referenced by gmBattleRandom().

Definition at line 12 of file battle_random.h.