src/scene/shared/mercury_lighthouse_lights.c
Mercury Lighthouse and its entrance: the lights that carry the leader over the pools (mercury_lighthouse_column.c), made again when the party comes back from a battle.
Included by mercury_lighthouse.c and mercury_lighthouse_entrance.c.
Functions
| Name | Description | |
|---|---|---|
void | scMercuryLighthouseRestoreLights (Sint32 poolBehavior, MERCURY_LIGHTHOUSE_LIGHTS *lights) | Sets up the lights for a floor whose pools' water has the metatile behavior poolBehavior, keeping their state for the pools' scripts. |
Description
Mercury Lighthouse and its entrance: the lights that carry the leader over
the pools (mercury_lighthouse_column.c), made again when the party comes back
from a battle.
Functions in detail
scMercuryLighthouseRestoreLights
void scMercuryLighthouseRestoreLights(Sint32 poolBehavior, MERCURY_LIGHTHOUSE_LIGHTS *lights)
Sets up the lights for a floor whose pools' water has the metatile behavior poolBehavior, keeping their state for the pools' scripts. On an ordinary arrival the leader has no lights. When the party returns to where it was, as after a battle, the column of light over the leader and the light under them in the water are made again.
References fdActorLookup(), fdActorStartScript(), fdSpriteStartAnimation(), gmFlagGet(), MainRoutineStateWork, MercuryLighthouseColumnScript, MercuryLighthouseGrowLightScript, scFieldActorCreate(), Sint32 and syHeapSlotAllocateEWRAM().
Referenced by scInit().
Definition at line 12 of file mercury_lighthouse_lights.c.