The south-west of Vale around Isaac's house, through the stormy night, the party's departure and its return; entrance 19 is instead a room of Babi's scholars, and entrance 22 shows the Mythril Bag. More...
Go to the source code of this file.
Enumerations | |
| enum | ValeBabiActor { ACTOR_DORA = 8 , ACTOR_KYLE = 9 , ACTOR_INNKEEPER = 13 , ACTOR_NEIGHBOR = 16 , ACTOR_KRADEN = 18 } |
| Vale's placed actors, numbered in the order of gValeBabi_Placements (the scholars of entrance 19 are numbered from 8 in their own table). More... | |
| enum | ValeBabiPlaceFlag { FLAG_VALE_INNKEEPER_WELCOMED_ISAAC = 0x300 , FLAG_VALE_NEIGHBOR_SAW_ISAAC_GROWN = 0x301 } |
| Vale's place flags this scene keeps while the party is in Vale. More... | |
Functions | |
| static void | Event_DoraWakesIsaac (void) |
| Dora wakes Isaac on the stormy night, makes him take his tunic, and leads him out into the storm. | |
| static void | Event_HurryToThePlaza (void) |
| Kyle calls to Isaac and Dora to hurry; actor 10 shakes, falls and fades as they run to the plaza. | |
| static void | ValeBabi_RestoreRoomPatch (void) |
| Restores the room's tiles and collision patch outside the storm sequence. | |
| static void | Event_ShowMythrilBag (void) |
| The Mythril Bag rises and wobbles before Kraden, with no text. | |
| static void | ValeBabi_SpawnEffectPair (union FieldObject *object) |
| Copies the parent's terrain height into two oppositely moving vertical effects. | |
| static void | ValeBabi_DemonstrateCatch (void) |
| Catch's effect plays on Dora, then its objects are released. | |
| const struct SceneEntrance * | ValeBabi_GetEntrances (void) |
| Returns the entrances, among them the scenes played on arrival: 19 from Babi's palace (its exit 11), 20 where a new game begins (menu/clear.c, and ValeHome's exit 50), 21 from this scene's own exit 20, and 22 from Kraden's cottage (ValeKraden's exit 13). | |
| const struct SceneRegion * | ValeBabi_GetRegions (void) |
| const u32 * | ValeBabi_GetExits (void) |
| On the stormy night the exits lead into the storm. | |
| const struct ScenePlacement * | ValeBabi_GetPlacements (void) |
| Places Babi's scholars, or Vale's villagers as the story has left them. | |
| static void | Event_ScholarAsksAboutKraden (s32 speakerId) |
| A scholar asks whether the party knows Kraden. | |
| const struct SceneEvent * | ValeBabi_GetEvents (void) |
| Chooses the events: Babi's scholars talk differently once the Colosso finals are over; Vale's villagers follow the storm and the story. | |
| static void | Event_AskIsaacHisBusiness (void) |
| The neighbour asks whether Isaac has business with him, and sends him off either way. | |
| static void | Event_AskWhetherMaskedManWasFelix (void) |
| A villager asks whether the masked man was Felix, and wonders whether Jenna can be trusted. | |
| static void | ValeBabi_CloseScreenAndExit (s32 exitId) |
| Stops storm lightning before fading through the requested exit. | |
| static void | Event_ExitNorthwestArea (void) |
| Reached by cell code 1; takes exit 1, to ValeHome's entrance 6. | |
| static void | Event_ExitNorthArea (void) |
| Reached by cell code 2; takes exit 2, to Kraden's cottage (ValeKraden's entrance 3). | |
| static void | Event_ExitNortheastArea (void) |
| Reached by cell code 3; takes exit 3, to ValeHome's entrance 2. | |
| static void | Event_ExitWestAreaSouth (void) |
| Reached by cell code 4; takes exit 4, to ValeHome's entrance 7. | |
| static void | Event_ExitWestAreaNorth (void) |
| Reached by cell code 5; takes exit 5, to this scene's entrance 8. | |
| static void | Event_ExitCenterAreaSouth (void) |
| Reached by cell code 6; takes exit 6, to Vale's entrance 8, or on the stormy night to ValeStorm's. | |
| static void | Event_ExitCenterAreaNorth (void) |
| Reached by cell code 7; takes exit 7, to this scene's entrance 9. | |
| static void | Event_ExitSouthwestArea (void) |
| Reached by cell code 8; takes exit 8, to this scene's entrance 5. | |
| static void | Event_ExitSouthAreaWest (void) |
| Reached by cell code 9; takes exit 9, to this scene's entrance 7. | |
| static void | Event_ExitSouthAreaSouth (void) |
| Reached by cell code 10; takes exit 10, to ValeStorm's entrance 12. | |
| static void | Event_ExitSoutheastArea (void) |
| Reached by cell code 11; takes exit 11, to ValeStorm's entrance 13. | |
| s32 | ValeBabi_Initialize (void) |
| Sets up the stormy night or the villagers of the story, and plays the scenes of entrances 20 to 22. | |
| static __inline__ void | SetBlendTarget (u32 value) |
| Selects the hardware blend targets for the storm sequence. | |
| static __inline__ void | SetBlendAlpha (u32 value) |
| static void | Event_TalkToInnkeeper (void) |
| The innkeeper offers a room from behind the counter; elsewhere talks of the travelers, the eruption, or, back from Kalay, welcomes Isaac home. | |
| static void | Event_NeighborSeesIsaacHasGrown (void) |
| Back from Kalay, the neighbour remarks how much Isaac has grown. | |
| static void | Event_ReadInnkeepersThoughts (void) |
| Mind Read on the innkeeper: Dora would not let Isaac stay in Vale. | |
| static void | Event_ReadThoughtsAboutDorasIllness (void) |
| Mind Read on the neighbour: Dora was struck with illness. | |
| static void | Event_VisitSickDora (void) |
| Back from Kalay, Isaac visits Dora in her sickbed; she asks who told him she was ill, then gets up to show she feels well. | |
| static void | Event_TalkToDora (void) |
| Talking to Dora: in her sickbed she murmurs Kyle's name; once up, she tells Isaac not to worry. | |
| static UNUSED void | ValeBabi_FlashPaletteAndSpawnPair (union FieldObject *object) |
| Flashes between two palettes and emits a paired effect every sixteen frames. | |
| static void | ValeBabi_CyclePaletteAndSpawnPair (union FieldObject *object) |
| Cycles six palettes on odd frames and periodically emit paired effects. | |
| static void | ValeBabi_CyclePaletteOnOddFrames (union FieldObject *object) |
| Advances deterministically through six palettes on odd frames. | |
| static UNUSED void | ValeBabi_CyclePaletteWithParticles (void) |
| static UNUSED void | ValeBabi_CyclePaletteWithoutParticles (void) |
The south-west of Vale around Isaac's house, through the stormy night, the party's departure and its return; entrance 19 is instead a room of Babi's scholars, and entrance 22 shows the Mythril Bag.
Definition in file vale_babi.c.
| enum ValeBabiActor |
Vale's placed actors, numbered in the order of gValeBabi_Placements (the scholars of entrance 19 are numbered from 8 in their own table).
| Enumerator | |
|---|---|
| ACTOR_DORA | Isaac's mother. "Isaac, wake up!". |
| ACTOR_KYLE | Isaac's father (sprite 0x35, Kyle in vale_storm.c). "Isaac, Dora, hurry! The Boulder could fall at any second!" |
| ACTOR_INNKEEPER | |
| ACTOR_NEIGHBOR | A neighbour who tells Isaac to be off, and who knows of Dora's illness once the party is back from Kalay. "Hey... Boy..." |
| ACTOR_KRADEN | Kraden's sprite (0x1e, as in Sol Sanctum's scenes), seen only from entrance 22. |
Definition at line 65 of file vale_babi.c.
| enum ValeBabiPlaceFlag |
Vale's place flags this scene keeps while the party is in Vale.
| Enumerator | |
|---|---|
| FLAG_VALE_INNKEEPER_WELCOMED_ISAAC | Back from Kalay, the innkeeper welcomed Isaac home. |
| FLAG_VALE_NEIGHBOR_SAW_ISAAC_GROWN | Back from Kalay, the neighbour remarked how much Isaac has grown. |
Definition at line 81 of file vale_babi.c.
|
static |
Dora wakes Isaac on the stormy night, makes him take his tunic, and leads him out into the storm.
"The Mt. Aleph Boulder is going to fall!" Called by ValeBabi_Initialize on arrival by entrance 20, where a new game begins. Sets FLAG_ISAAC_WEARS_TUNIC and takes exit 20, back into this scene by entrance 21, where Event_HurryToThePlaza follows.
Definition at line 371 of file vale_babi.c.
Referenced by Event_DoraWakesIsaac(), and ValeBabi_Initialize().
|
static |
Kyle calls to Isaac and Dora to hurry; actor 10 shakes, falls and fades as they run to the plaza.
Called by ValeBabi_Initialize on arrival by entrance 21, after Event_DoraWakesIsaac. Takes exit 21, to ValeStorm's entrance 15, where Event_DoraSendsIsaacToThePlaza follows.
Definition at line 542 of file vale_babi.c.
Referenced by Event_HurryToThePlaza(), and ValeBabi_Initialize().
|
static |
Restores the room's tiles and collision patch outside the storm sequence.
Called by ValeBabi_Initialize when FLAG_VALE_STORM is clear.
Definition at line 889 of file vale_babi.c.
Referenced by ValeBabi_Initialize(), and ValeBabi_RestoreRoomPatch().
|
static |
The Mythril Bag rises and wobbles before Kraden, with no text.
Called by ValeBabi_Initialize on arrival by entrance 22, from Kraden's cottage, while he prepares for the first Sol Sanctum visit (Event_TalkToKraden). Takes exit 22 back outside (ValeKraden's entrance 10), where Event_KradenSetsOff gathers the party.
Definition at line 899 of file vale_babi.c.
Referenced by Event_ShowMythrilBag(), and ValeBabi_Initialize().
|
static |
Copies the parent's terrain height into two oppositely moving vertical effects.
Definition at line 983 of file vale_babi.c.
Referenced by ValeBabi_CyclePaletteAndSpawnPair(), ValeBabi_FlashPaletteAndSpawnPair(), and ValeBabi_SpawnEffectPair().
|
static |
Catch's effect plays on Dora, then its objects are released.
Called by Event_DoraWakesIsaac as Dora hands Isaac his tunic.
Definition at line 1048 of file vale_babi.c.
Referenced by Event_DoraWakesIsaac(), and ValeBabi_DemonstrateCatch().
| const struct SceneEntrance * ValeBabi_GetEntrances | ( | void | ) |
Returns the entrances, among them the scenes played on arrival: 19 from Babi's palace (its exit 11), 20 where a new game begins (menu/clear.c, and ValeHome's exit 50), 21 from this scene's own exit 20, and 22 from Kraden's cottage (ValeKraden's exit 13).
Definition at line 94 of file vale_babi.c.
Referenced by ValeBabi_GetEntrances().
| const struct SceneRegion * ValeBabi_GetRegions | ( | void | ) |
Definition at line 98 of file vale_babi.c.
Referenced by ValeBabi_GetRegions().
| const u32 * ValeBabi_GetExits | ( | void | ) |
On the stormy night the exits lead into the storm.
Definition at line 101 of file vale_babi.c.
Referenced by ValeBabi_GetExits().
| const struct ScenePlacement * ValeBabi_GetPlacements | ( | void | ) |
Places Babi's scholars, or Vale's villagers as the story has left them.
Definition at line 109 of file vale_babi.c.
Referenced by ValeBabi_GetPlacements().
|
static |
A scholar asks whether the party knows Kraden.
Reached by talking to scholar 9 in Babi's scholars' room (entrance 19) once FLAG_COLOSSO_OVER is set; speakerId is the actor spoken to.
Definition at line 127 of file vale_babi.c.
Referenced by Event_ScholarAsksAboutKraden().
| const struct SceneEvent * ValeBabi_GetEvents | ( | void | ) |
Chooses the events: Babi's scholars talk differently once the Colosso finals are over; Vale's villagers follow the storm and the story.
Definition at line 143 of file vale_babi.c.
Referenced by ValeBabi_GetEvents().
|
static |
The neighbour asks whether Isaac has business with him, and sends him off either way.
"Hey... Boy..." Reached by talking to the neighbour (actor 16) before the party leaves Vale (gValeBabi_Events).
Definition at line 167 of file vale_babi.c.
Referenced by Event_AskIsaacHisBusiness().
|
static |
A villager asks whether the masked man was Felix, and wonders whether Jenna can be trusted.
Reached by talking to actor 14 once the party has left Vale and until it reaches Kalay (gValeBabi_EventsAfterLeaving).
Definition at line 193 of file vale_babi.c.
Referenced by Event_AskWhetherMaskedManWasFelix().
|
static |
Stops storm lightning before fading through the requested exit.
Called by the exit events below.
Definition at line 212 of file vale_babi.c.
Referenced by Event_ExitCenterAreaNorth(), Event_ExitCenterAreaSouth(), Event_ExitNorthArea(), Event_ExitNortheastArea(), Event_ExitNorthwestArea(), Event_ExitSouthAreaSouth(), Event_ExitSouthAreaWest(), Event_ExitSoutheastArea(), Event_ExitSouthwestArea(), Event_ExitWestAreaNorth(), Event_ExitWestAreaSouth(), and ValeBabi_CloseScreenAndExit().
|
static |
Reached by cell code 1; takes exit 1, to ValeHome's entrance 6.
Definition at line 227 of file vale_babi.c.
Referenced by Event_ExitNorthwestArea().
|
static |
Reached by cell code 2; takes exit 2, to Kraden's cottage (ValeKraden's entrance 3).
Definition at line 234 of file vale_babi.c.
Referenced by Event_ExitNorthArea().
|
static |
Reached by cell code 3; takes exit 3, to ValeHome's entrance 2.
Definition at line 240 of file vale_babi.c.
Referenced by Event_ExitNortheastArea().
|
static |
Reached by cell code 4; takes exit 4, to ValeHome's entrance 7.
Definition at line 246 of file vale_babi.c.
Referenced by Event_ExitWestAreaSouth().
|
static |
Reached by cell code 5; takes exit 5, to this scene's entrance 8.
Definition at line 252 of file vale_babi.c.
Referenced by Event_ExitWestAreaNorth().
|
static |
Reached by cell code 6; takes exit 6, to Vale's entrance 8, or on the stormy night to ValeStorm's.
Definition at line 259 of file vale_babi.c.
Referenced by Event_ExitCenterAreaSouth().
|
static |
Reached by cell code 7; takes exit 7, to this scene's entrance 9.
Definition at line 265 of file vale_babi.c.
Referenced by Event_ExitCenterAreaNorth().
|
static |
Reached by cell code 8; takes exit 8, to this scene's entrance 5.
Definition at line 271 of file vale_babi.c.
Referenced by Event_ExitSouthwestArea().
|
static |
Reached by cell code 9; takes exit 9, to this scene's entrance 7.
Definition at line 277 of file vale_babi.c.
Referenced by Event_ExitSouthAreaWest().
|
static |
Reached by cell code 10; takes exit 10, to ValeStorm's entrance 12.
Definition at line 283 of file vale_babi.c.
Referenced by Event_ExitSouthAreaSouth().
|
static |
Reached by cell code 11; takes exit 11, to ValeStorm's entrance 13.
Definition at line 289 of file vale_babi.c.
Referenced by Event_ExitSoutheastArea().
| s32 ValeBabi_Initialize | ( | void | ) |
Sets up the stormy night or the villagers of the story, and plays the scenes of entrances 20 to 22.
Called by Field_RunScene once the actors are placed. Entrance 20 sets FLAG_VALE_STORM before Event_DoraWakesIsaac; back from Kalay, Dora is put back in her sickbed unless FLAG_SCENE_TEMP_03 says she got up.
Definition at line 299 of file vale_babi.c.
Referenced by ValeBabi_Initialize().
|
static |
Selects the hardware blend targets for the storm sequence.
Definition at line 533 of file vale_babi.c.
Referenced by Event_HurryToThePlaza(), and SetBlendTarget().
|
static |
Definition at line 535 of file vale_babi.c.
Referenced by Event_HurryToThePlaza(), and SetBlendAlpha().
|
static |
The innkeeper offers a room from behind the counter; elsewhere talks of the travelers, the eruption, or, back from Kalay, welcomes Isaac home.
Reached by talking to the innkeeper (actor 13) in every Vale table but the storm's, and back from Kalay by Mind Read on him until he has welcomed Isaac. Sets FLAG_VALE_INNKEEPER_WELCOMED_ISAAC on that welcome.
Definition at line 670 of file vale_babi.c.
|
static |
Back from Kalay, the neighbour remarks how much Isaac has grown.
Reached by talking to the neighbour (actor 16) while FLAG_VALE_INNKEEPER_WELCOMED_ISAAC is clear, or by Mind Read on him until FLAG_VALE_NEIGHBOR_SAW_ISAAC_GROWN is set, which this sets. XXX: the talk row tests the innkeeper's flag, not this one; likely a slip, because the Mind Read row tests this one, but both show the same line.
Definition at line 707 of file vale_babi.c.
Referenced by Event_NeighborSeesIsaacHasGrown().
|
static |
Mind Read on the innkeeper: Dora would not let Isaac stay in Vale.
Reached back from Kalay once he has welcomed Isaac. Sets FLAG_READ_THOUGHTS_ABOUT_DORA.
Definition at line 720 of file vale_babi.c.
Referenced by Event_ReadInnkeepersThoughts().
|
static |
Mind Read on the neighbour: Dora was struck with illness.
Reached back from Kalay once he has remarked on Isaac. Sets FLAG_READ_THOUGHTS_ABOUT_DORA.
Definition at line 731 of file vale_babi.c.
Referenced by Event_ReadThoughtsAboutDorasIllness().
|
static |
Back from Kalay, Isaac visits Dora in her sickbed; she asks who told him she was ill, then gets up to show she feels well.
Reached by talking to Dora (actor 8), or by Mind Read on her, until FLAG_VISITED_SICK_DORA is set. Sets it and FLAG_SCENE_TEMP_03.
Definition at line 743 of file vale_babi.c.
Referenced by Event_VisitSickDora().
|
static |
Talking to Dora: in her sickbed she murmurs Kyle's name; once up, she tells Isaac not to worry.
Reached by talking to her back from Kalay once FLAG_VISITED_SICK_DORA is set; she is up while FLAG_SCENE_TEMP_03 is set.
Definition at line 865 of file vale_babi.c.
Referenced by Event_TalkToDora().
|
static |
Flashes between two palettes and emits a paired effect every sixteen frames.
Definition at line 948 of file vale_babi.c.
Referenced by ValeBabi_FlashPaletteAndSpawnPair().
|
static |
Cycles six palettes on odd frames and periodically emit paired effects.
Definition at line 960 of file vale_babi.c.
Referenced by ValeBabi_CyclePaletteAndSpawnPair(), and ValeBabi_CyclePaletteWithParticles().
|
static |
Advances deterministically through six palettes on odd frames.
Definition at line 970 of file vale_babi.c.
Referenced by ValeBabi_CyclePaletteOnOddFrames(), and ValeBabi_CyclePaletteWithoutParticles().
|
static |
Definition at line 1038 of file vale_babi.c.
Referenced by ValeBabi_CyclePaletteWithParticles().
|
static |
Definition at line 1042 of file vale_babi.c.
Referenced by ValeBabi_CyclePaletteWithoutParticles().
| s32 gValeBabi_LeaveHouseScript[] |
Definition at line 1057 of file vale_babi.c.
Referenced by Event_DoraWakesIsaac().
| s32 gValeBabi_DoraLeavesScript[] |
Definition at line 1065 of file vale_babi.c.
Referenced by Event_DoraWakesIsaac().
| s32 gValeBabi_IsaacLeavesScript[] |
| s32 gValeBabi_DoraRunsAheadScript[] |
| s32 gValeBabi_IsaacRunsAheadScript[] |
| s32 gValeBabi_DoraRunsBackScript[] |
| s32 gValeBabi_IsaacRunsBackScript[] |
| s32 gValeBabi_RunToPlazaScript[] |
| s32 gValeBabi_Actor10ShakesScript[] |
Definition at line 1115 of file vale_babi.c.
Referenced by Event_HurryToThePlaza().
| s32 gValeBabi_Actor10FallsScript[] |
Definition at line 1121 of file vale_babi.c.
Referenced by Event_HurryToThePlaza().
| s32 gValeBabi_DoraFacesIsaacScript[] |
Definition at line 1154 of file vale_babi.c.
Referenced by Event_TalkToDora().
| s32 gValeBabi_MythrilBagRisesScript[] |
Definition at line 1164 of file vale_babi.c.
Referenced by Event_ShowMythrilBag().
| s32 gValeBabi_MythrilBagWobblesScript[] |
Definition at line 1170 of file vale_babi.c.
Referenced by Event_ShowMythrilBag().
| struct SceneEntrance gValeBabi_Entrances[] |
Definition at line 1198 of file vale_babi.c.
Referenced by ValeBabi_GetEntrances().
| u32 gValeBabi_Exits[] |
Definition at line 1221 of file vale_babi.c.
Referenced by ValeBabi_GetExits().
| u32 gValeBabi_StormExits[] |
Definition at line 1230 of file vale_babi.c.
Referenced by ValeBabi_GetExits().
| struct ScenePlacement gValeBabi_Placements[] |
Definition at line 1239 of file vale_babi.c.
Referenced by ValeBabi_GetPlacements().
| struct ScenePlacement gValeBabi_PlacementsAfterLeaving[] |
Definition at line 1265 of file vale_babi.c.
Referenced by ValeBabi_GetPlacements().
| struct ScenePlacement gValeBabi_PlacementsAfterKalay[] |
Definition at line 1285 of file vale_babi.c.
Referenced by ValeBabi_GetPlacements().
| struct ScenePlacement gValeBabi_ScholarsPlacements[] |
Definition at line 1309 of file vale_babi.c.
Referenced by ValeBabi_GetPlacements().
| struct SceneEvent gValeBabi_StormEvents[] |
Definition at line 1323 of file vale_babi.c.
Referenced by ValeBabi_GetEvents().
| struct SceneEvent gValeBabi_Events[] |
Definition at line 1348 of file vale_babi.c.
Referenced by ValeBabi_GetEvents().
| struct SceneEvent gValeBabi_EventsAfterLeaving[] |
Definition at line 1379 of file vale_babi.c.
Referenced by ValeBabi_GetEvents().
| struct SceneEvent gValeBabi_EventsAfterKalay[] |
Definition at line 1414 of file vale_babi.c.
Referenced by ValeBabi_GetEvents().
| struct SceneEvent gValeBabi_ScholarsEvents[] |
Definition at line 1462 of file vale_babi.c.
Referenced by ValeBabi_GetEvents().
| struct SceneEvent gValeBabi_ScholarsLaterEvents[] |
Definition at line 1481 of file vale_babi.c.
Referenced by ValeBabi_GetEvents().