Skip to Content
The Alchemy Project

src/scene/shared/leader_knock_back.c

The leader is thrown back by the flames that struck them: they take the fall damage, blink, and are pushed metatile by metatile in the flames' direction, sliding over ice, until a wall, another actor or a ledge stops them. More…

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

Functions

NameDescription
Sint32KNOCK_BACK (void)Typed as a script that returns a value, though it returns none.

Description

The leader is thrown back by the flames that struck them: they take the fall damage, blink, and are pushed metatile by metatile in the flames' direction, sliding over ice, until a wall, another actor or a ledge stops them. Four Mars Lighthouse rooms keep a copy; each includes this file as text after shared/party_take_fall_damage.c (FALL_DAMAGE) and after defining KNOCK_BACK, its name, and the names its copy calls: KNOCK_BACK_TAKE_DAMAGE, KNOCK_BACK_BLINK, the update hook while they are thrown, KNOCK_BACK_SET_ANIMATION, KNOCK_BACK_METATILE_ATTRIBUTE and KNOCK_BACK_CHECK_COLLISION.

Functions in detail

KNOCK_BACK

Sint32 KNOCK_BACK(void)

Typed as a script that returns a value, though it returns none.

References fdActorGet(), fdActorJumpDownLedge(), fdActorSetSpriteColorMode(), fdScriptStart(), MainRoutineStateWork, result, scFieldScriptEndLastingPsynergy(), scScriptCheckSpheresOverlap(), Sint32 and sySynch().

Definition at line 12 of file leader_knock_back.c.