vault_jail.c
Vault's jail, where the thieves who stole Hammet's Shaman's Rod are held; on the party's return a lone prisoner takes their place.
games/tbs/src/scene/vault_jail.c on GitHub
Vault's jail, where the thieves who stole Hammet's Shaman's Rod are held; on the party's return a lone prisoner takes their place.
Functions
Scene_GetEntrances
const struct SceneEntrance *Scene_GetEntrances(void)
Returns the entrances from Vault, Lunpa and the revisited Vault.
Scene_GetExits
const u32 *Scene_GetExits(void)
Returns the exits to Vault, to the revisited Vault and to Lunpa.
Scene_GetPlacements
const struct ScenePlacement *Scene_GetPlacements(void)
Places the three jailed thieves, or, entered from the revisited Vault (entrance 10, after they have broken out), the lone prisoner.
Scene_GetEvents
const struct SceneEvent *Scene_GetEvents(void)
Returns the thieves' events, or the prisoner's when the party came in from the revisited Vault, matching Scene_GetPlacements.
Event_LeaderSilencesThieves
static void Event_LeaderSilencesThieves(void)
The jailed leader glares at each of his men and snaps at them, then turns to the party: they got us this time, but you'll pay for this. "Shut yer yaps!"
Reached by talking to the thieves' leader (actor 8) while FLAG_VAULT_THIEVES_JAILED is set.
Used by gJailThiefEvents.
Event_LeftThiefRegretsEscape
static void Event_LeftThiefRegretsEscape(void)
The left thief wishes they had escaped to the cave northeast of the Goma Range.
Reached by talking to the left thief (actor 9) while FLAG_VAULT_THIEVES_JAILED is set.
Used by gJailThiefEvents.
Event_RightThiefRegretsStaying
static void Event_RightThiefRegretsStaying(void)
The right thief shakes his head: they should have skipped town sooner.
Reached by talking to the right thief (actor 10) while FLAG_VAULT_THIEVES_JAILED is set.
Used by gJailThiefEvents.
Event_ReadLeaderMind
static void Event_ReadLeaderMind(void)
Mind Read on the leader: he'll be out of this jail before you know it.
Reached by Mind Read on actor 8 while FLAG_VAULT_THIEVES_JAILED is set; the two below are reached the same way on actors 9 and 10.
Used by gJailThiefEvents.
Event_ReadLeftThiefMind
static void Event_ReadLeftThiefMind(void)
Mind Read on the left thief: will he ever run free again?
Used by gJailThiefEvents.
Event_ReadRightThiefMind
static void Event_ReadRightThiefMind(void)
Mind Read on the right thief: is this for stealing Hammet's Shaman's Rod?
Used by gJailThiefEvents.
Event_LeaveForVault
static void Event_LeaveForVault(void)
The party steps out of the jail into Vault.
Reached by stepping on the Vault door (cell code 1) while the thieves are held; takes exit 1 to Vault's entrance 12. The prisoner's events leave by exit 2 instead, to the revisited Vault.
Used by gJailThiefEvents.
Scene_Initialize
s32 Scene_Initialize(void)
Opens the scene through a window transition and makes the occupants solid.
Called by the engine once the actors are placed. Coming up from Lunpa (entrance 2) clears FLAG_SHOW_LOCATION_NAME, so no place name is shown; otherwise it adds collision flags 0x14 to the prisoner or to the three thieves.
Also, functions without a comment: Scene_GetRegions.
Enumerations, without a comment: JailEntrance, JailExit, JailTrigger, JailActor, JailSprite.
Globals, without a comment: gJailEntrances, gJailExits, gJailThiefPlacements, gJailPrisonerPlacements, gJailThiefEvents, gJailPrisonerEvents.