vale_eruption.c
Vale's square during the eruption, where the villagers wait for Isaac and Garet to come down the mountain.
games/tbs/src/scene/vale_eruption.c on GitHub
Vale's square during the eruption, where the villagers wait for Isaac and Garet to come down the mountain. The erupting mountain is Mt. Aleph.
Functions
ValeEruption_GetEntrances
const struct SceneEntrance *ValeEruption_GetEntrances(void)
Returns where the party appears: entrance 15 is the path down from the mountain, Mt. Aleph.
ValeEruption_GetExits
const u32 *ValeEruption_GetExits(void)
Returns the one exit, into the sanctum (Sanctum's entrance 20), which Event_ReturnFromMtAleph takes.
ValeEruption_GetPlacements
const struct ScenePlacement *ValeEruption_GetPlacements(void)
Returns Garet and the villagers gathered before the sanctum.
ValeEruption_GetEvents
const struct SceneEvent *ValeEruption_GetEvents(void)
The square has no events of its own: everything happens on arrival.
ValeEruption_Initialize
s32 ValeEruption_Initialize(void)
Plays the return from the mountain when the party arrives by entrance 15. Called by Field_RunScene once the actors are placed; entrance 15 is where Sol Sanctum's approach leads after the eruption and before the party leaves Vale (its exit 1).
Event_ReturnFromMtAleph
static void Event_ReturnFromMtAleph(void)
The volcano shakes the square while the villagers wonder where Isaac and Garet are; the two come down the mountain, tell that Jenna and Kraden were taken away, and follow the elders into the sanctum. Called by ValeEruption_Initialize on arrival by entrance 15. Clears FLAG_SHOW_LOCATION_NAME, sets FLAG_VALE_RETURNED_FROM_MT_ALEPH and takes exit 1 into the sanctum, where Sanctum_RequestQuestAcceptance follows.
Used by ValeEruption_Initialize.
Also, functions without a comment: ValeEruption_GetRegions.
Enumerations
ValeEruptionActor
enum ValeEruptionActor
The placed actors, numbered in the order of gValeEruption_Placements; Garet's row places the party's Garet and takes no number.
| Value | = | |
|---|---|---|
ACTOR_GREAT_HEALER | ACTOR_FIRST_PLACED | The Great Healer (sprite 0x79, the healer of sanctum.c), who leads the villagers into the sanctum. "Come into the sanctum, both of you." |
ACTOR_GARETS_GRANDFATHER | ACTOR_FIRST_PLACED + 1 | Garet's grandfather, the mayor (sprite 0x75, whom the Great Healer calls Mayor in sanctum.c). "Oooh, my grandson! Will Garet be safe in this eruption?!?" |
ACTOR_DORA | ACTOR_FIRST_PLACED + 2 | Isaac's mother (sprite 0x1f, Dora in sanctum.c). "Isaac and Garet went to Mr. Kraden's house." |
ACTOR_GARETS_SISTER | ACTOR_FIRST_PLACED + 3 | She calls the mayor Grandpa, and actor 12 calls her Sis. "Grandpa, we don't even know if he's up there!" |
ACTOR_GUARD | ACTOR_FIRST_PLACED + 5 | The guard. "They were hanging around here while I was on guard duty." |
Globals
gValeEruption_LeaderWalksDown
s32 gValeEruption_LeaderWalksDown[]
Isaac walks down from the path to the villagers before the sanctum.
Used by Event_ReturnFromMtAleph.
gValeEruption_GaretWalksDown
s32 gValeEruption_GaretWalksDown[]
Garet follows him, stopping a little above.
Used by Event_ReturnFromMtAleph.
gValeEruption_EnterSanctum
s32 gValeEruption_EnterSanctum[]
Isaac, then Garet, walk through the sanctum's door.
Used by Event_ReturnFromMtAleph.
gValeEruption_SanctumDoorOpens
u16 gValeEruption_SanctumDoorOpens[]
The sanctum's door, two cells wide, opening in two steps.
Used by Event_ReturnFromMtAleph.
Also, globals without a comment: gValeEruption_Entrances, gValeEruption_Exits, gValeEruption_Placements, gValeEruption_Events.