Alchemy

tolbi_interiors.c

Tolbi's interiors: the houses, inns, shops and sanctum of the festival town.

games/tbs/src/scene/tolbi_interiors.c on GitHub

Tolbi's interiors: the houses, inns, shops and sanctum of the festival town. Like the town outside, the rooms change with the Colosso story flags: the festival, finals day and the quiet after Colosso.

Functions

TolbiInteriors_AskYesNo

static inline void TolbiInteriors_AskYesNo(s32 question, s32 speaker)

Asks a yes/no question, then answers with the message after the question for yes or the one after that for no.

Used by TolbiInteriors_AskWhetherBabiWasMissing, TolbiInteriors_TalkToChef, TolbiInteriors_TalkToHost, TolbiInteriors_TalkToItemShopkeeper, TolbiInteriors_TalkToMedalWoman, TolbiInteriors_TalkToWeaponShopkeeper, TolbiInteriors_TalkToWouldBeWarrior.

Line 46

TolbiInteriors_SelectPlacements

const struct ScenePlacement *TolbiInteriors_SelectPlacements(void)

After Colosso the rooms hold a different crowd.

Line 67

TolbiInteriors_AskWhetherBabiWasMissing

static void TolbiInteriors_AskWhetherBabiWasMissing(s32 speaker)

The Spanish and Italian editions add a question on finals day: was Babi missing at all, since he showed himself at the finals?

Used by gTolbiInteriorsEventsFinalsDay.

Line 77

TolbiInteriors_SelectEvents

const struct SceneEvent *TolbiInteriors_SelectEvents(void)

Picks the event table for the current point in the Colosso story.

Line 83

TolbiInteriors_ExitThroughWindow

UNUSED static void TolbiInteriors_ExitThroughWindow(void)

Leaves through a window transition of 24 frames. No event uses it.

Line 94

TolbiInteriors_EnterDoor

static void TolbiInteriors_EnterDoor(void)

Walking into one of the four doors at triggers 14 to 17: every placed actor stops, the door opens and the leader walks through it.

Used by gTolbiInteriorsEventsAfterColosso, gTolbiInteriorsEventsFestival, gTolbiInteriorsEventsFinalsDay.

Line 104

TolbiInteriors_WatchWomanHideMedal

static void TolbiInteriors_WatchWomanHideMedal(void)

After Colosso, entering by entrance 19: a woman finds something on the floor, is startled to see the party and hides it in the barrel behind the trash pile. "Hey, what's this?" The thing is a Lucky Medal, found later in that barrel.

Used by TolbiInteriors_ApplyEntryState.

Line 136

TolbiInteriors_WatchSailorsArgue

static void TolbiInteriors_WatchSailorsArgue(void)

After Colosso, entering by entrance 16: three sailors argue about their captain, who won't sail the ship.

Used by TolbiInteriors_ApplyEntryState.

Line 205

TolbiInteriors_ApplyEntryState

s32 TolbiInteriors_ApplyEntryState(void)

Sets up the rooms on entry. After Colosso: a row of three map cells takes new attributes, two of the sailors are drawn at a fixed priority, the medal woman stands where she hid the medal, the two short scenes play once each on their entrances, and the would-be warrior and actor 36 have left once the docks refunded the tickets.

Line 238

TolbiInteriors_TalkToItemShopkeeper

static void TolbiInteriors_TalkToItemShopkeeper(s32 speaker)

The item shopkeeper: from across the counter (the leader facing west) opens shop 28; from elsewhere talks about the finals.

Used by gTolbiInteriorsEventsAfterColosso, gTolbiInteriorsEventsFestival, gTolbiInteriorsEventsFinalsDay.

Line 283

TolbiInteriors_TalkToWeaponShopkeeper

static void TolbiInteriors_TalkToWeaponShopkeeper(s32 speaker)

The weapon shopkeeper: across the counter (the leader facing north) opens the shop; otherwise talks about Colosso.

Used by gTolbiInteriorsEventsAfterColosso, gTolbiInteriorsEventsFestival, gTolbiInteriorsEventsFinalsDay.

Line 300

TolbiInteriors_TalkToArmorShopkeeper

static void TolbiInteriors_TalkToArmorShopkeeper(s32 speaker)

The armor shopkeeper: across the counter (the leader facing north) opens the shop; otherwise talks about the finals.

Used by gTolbiInteriorsEventsAfterColosso, gTolbiInteriorsEventsFestival, gTolbiInteriorsEventsFinalsDay.

Line 320

TolbiInteriors_TalkToChef

static void TolbiInteriors_TalkToChef(s32 speaker)

The chef asks whether the party watched Colosso, which he missed.

Used by gTolbiInteriorsEventsAfterColosso.

Line 339

TolbiInteriors_TalkToWaiter

static void TolbiInteriors_TalkToWaiter(s32 speaker)

After Colosso, a waiter grumbles about the chef's bad mood.

Used by gTolbiInteriorsEventsAfterColosso.

Line 346

TolbiInteriors_TalkToHost

static void TolbiInteriors_TalkToHost(s32 speaker)

During the festival, a resident offers the party a bed.

Used by gTolbiInteriorsEventsFestival.

Line 354

TolbiInteriors_TalkToMedalWoman

static void TolbiInteriors_TalkToMedalWoman(s32 speaker)

The woman who hid the Lucky Medal. Until the party takes it from the barrel she teases; once it is gone she greets them, startled, the first time, and then claims she is fine.

Used by gTolbiInteriorsEventsAfterColosso.

Line 363

TolbiInteriors_ReadMedalWomanMind

static void TolbiInteriors_ReadMedalWomanMind(void)

Mind Read on the medal woman gives the hiding place away.

Used by gTolbiInteriorsEventsAfterColosso.

Line 383

TolbiInteriors_TalkToAngrySailor

static void TolbiInteriors_TalkToAngrySailor(s32 speaker)

The angry sailor complains the ships won't sail after Colosso.

Used by gTolbiInteriorsEventsAfterColosso.

Line 395

TolbiInteriors_TalkToWouldBeWarrior

static void TolbiInteriors_TalkToWouldBeWarrior(s32 speaker)

After Colosso, the would-be warrior asks whether the party remembers him.

Used by gTolbiInteriorsEventsAfterColosso.

Line 404

TolbiInteriors_TalkToPriest

static void TolbiInteriors_TalkToPriest(s32 speaker)

The priest: across the counter (the leader facing north) opens the sanctum; otherwise talks about the festival.

Used by gTolbiInteriorsEventsAfterColosso, gTolbiInteriorsEventsFestival, gTolbiInteriorsEventsFinalsDay.

Line 412

Also, functions without a comment: TolbiInteriors_GetEntrances, TolbiInteriors_GetRegions, TolbiInteriors_GetExits.

Macros, without a comment: FLAG_TOLBI_INTERIORS_SAILORS_SEEN, TOLBI_INTERIORS_INN_CAMERA_MAX_Z, TOLBI_INTERIORS_EAST_ROOM_CAMERA_MAX_X, TOLBI_INTERIORS_SOUTH_ROOM_CAMERA_MAX_Z, TOLBI_INTERIORS_INN_CAMERA_MAX_Z, TOLBI_INTERIORS_EAST_ROOM_CAMERA_MAX_X, TOLBI_INTERIORS_SOUTH_ROOM_CAMERA_MAX_Z.

Globals

gTolbiInteriorsSquashStretch

s32 gTolbiInteriorsSquashStretch[]

An actor that squashes and stretches twice, then rests 40 frames.

Used by gTolbiInteriorsPlacementsAfterColosso.

Line 431

Also, globals without a comment: gTolbiInteriorsEntrances, gTolbiInteriorsExits, gTolbiInteriorsPlacements, gTolbiInteriorsPlacementsAfterColosso, gTolbiInteriorsEventsFestival, gTolbiInteriorsEventsFinalsDay, gTolbiInteriorsEventsAfterColosso, gTolbiInteriorsDoorOpening, gTolbiInteriorsDoors.

On this page