Skip to Content
The Alchemy Project

src/scene/shared/party_take_fall_damage.c

Included by mars_lighthouse_entrance.c, mars_lighthouse_hall.c, mars_lighthouse_star_room.c and mars_lighthouse_towers.c.

Macros

NameDescription
#defineFALL_DAMAGE 10The HP each party member loses when a flame or a rolling fireball knocks the leader down.

Functions

NameDescription
voidgmPartyTakeFallDamage (void)A flame or a rolling fireball has knocked the leader down: each party member loses FALL_DAMAGE HP and the leader shows the hit; each member it brings down is listed, loses their poison and raises FIELD_RAISED_CUE_PARTY_FELL, as a hazard's damage does.

Macros in detail

FALL_DAMAGE

#define FALL_DAMAGE 10

The HP each party member loses when a flame or a rolling fireball knocks the leader down.

Referenced by gmPartyTakeFallDamage().

Definition at line 3 of file party_take_fall_damage.c.

Functions in detail

gmPartyTakeFallDamage

void gmPartyTakeFallDamage(void)

A flame or a rolling fireball has knocked the leader down: each party member loses FALL_DAMAGE HP and the leader shows the hit; each member it brings down is listed, loses their poison and raises FIELD_RAISED_CUE_PARTY_FELL, as a hazard's damage does.

References fdActorGet(), fdActorSetAttachedEffect(), fdPartyAddHp(), gmPartyCountMembers(), gmUnitGet(), MainRoutineStateWork, scFieldPartyGetLeaderActor() and Sint32.

Referenced by scFireballCarryLeader() and scMarsLighthouseEntranceRideFireball().

Definition at line 9 of file party_take_fall_damage.c.