Skip to Content
The Alchemy Project

src/scene/garoh_rooms.c

Inside Garoh's houses, in three scenes that share this overlay. More…

Macros

NameDescription
#defineGAROH_ROOMS_NIGHT_LAYERS (DISPCNT_BG1_ON | DISPCNT_BG3_ON)The map layers the rooms show at night (fdMapGridSetShownLayers), which leave out the light falling through the windows.

Enumerations

NameDescription
enumanonymous enum { ENTRANCE_WAKE_AT_INN }The morning after a night at the inn (scGarohRoomsWakeAtInn).
enumGAROH_HOUSES_ACTOR_ID { ACTOR_PUPS_FATHER, ACTOR_PUPS_MOTHER, ACTOR_PUPS_BROTHER, AC … }The actors of the four houses, numbering the rows of GarohRoomsHousesActorPlacements.
enumGAROH_SHOP_ACTOR_ID { ACTOR_AIRS_ROCK_GUARDIAN, ACTOR_VILLAGER_ON_WHIRLWIND, ACTOR … }The Item Shopkeeper's house's actors, numbering the rows of GarohRoomsShopActorPlacements.
enumGAROH_SANCTUM_ACTOR_ID { ACTOR_PRIEST }The Sanctum's priest, its one actor.
enumGAROH_ROOMS_METATILE_BEHAVIOR { METATILE_BEHAVIOR_LARVAE_STOVE, METATILE_BEHAVIOR_LAMB_STOVE … }The stoves, by their metatiles' behaviour in the map, each with something different cooking on it.
enumanonymous enum { SHOP_GAROH_WEAPONS, SHOP_GAROH_ARMOR, SHOP_GAROH_ITEMS }Garoh's shops, as mnShopRun numbers them.
enumanonymous enum { INN_ID_GAROH }Garoh's inn, as mnInnCheckIn numbers the inns.

Functions

NameDescription
voidscGarohRoomsWakeAtInn (void)The morning after the night with Maha, at the inn: "Felix and party stayed the night at the inn.", the woman at the counter says they did not sleep much, and the innkeeper says Master Maha told them all about the party, the bill is on them, and bids them farewell.
const SCENE_ENTRANCE *scGetEntrances (void)Where the party can enter: the cave under the spring has its own entrances.
const SCENE_REGION *scGetExitRegions (void)The regions of the rooms whose exits are rectangles: the Chestbeaters' room and the stream room.
const Uint32 *scGetExits (void)The dock's ways lead back the way the party came into Lemuria, which the harbour and the shore of Ancient Lemuria note in FLAG_LEMURIA_OTHER_WAY_IN.
const ACTOR_PLACE *scGetActorPlacements (void)The scene's actor placements: a room of names for its entrance, else the debug room's.
voidscGarohRoomsTalkToWeaponsVendor (Sint32 actor)Talking to the Weapons Vendor, the bald man in red behind the counter of the weapons and armor shop.
voidscGarohRoomsTalkToArmorVendor (Sint32 actor)Talking to the Armor Vendor, the man with the orange beard beside the Weapons Vendor.
voidscGarohRoomsTalkToItemShopkeeper (Sint32 actor)Talking to the Item Shopkeeper, the woman with a ponytail in her house: from in front of the counter her shop opens, night or day.
voidscGarohRoomsTalkToInnkeeper (Sint32 actor)Talking to the innkeeper behind the inn's counter: from in front of it he offers a night's stay, and from elsewhere he only chats.
voidscGarohRoomsTalkToPriest (void)Talking to the priest in Garoh's sanctum: he turns to Felix, and from in front of his counter offers the sanctum's services; from elsewhere he only chats.
voidscGarohRoomsAskWhatTheWanderersSeek (Sint32 actor)Talking at night to the young werewolf's father, the man with brown hair pacing his family's home: "Good evening, wanderers!
voidscGarohRoomsTalkToDisappointedTraveler (void)Talking to the disappointed traveler, one of the two warriors in golden helmets at the inn.
voidscGarohRoomsTalkToStubbornTraveler (void)Talking to the stubborn traveler, the other warrior in a golden helmet at the inn.
voidscGarohRoomsReadDisappointedTravelersMind (void)Mind Read on the disappointed traveler at the inn.
voidscGarohRoomsReadStubbornTravelersMind (void)Mind Read on the stubborn traveler at the inn.
voidscGarohRoomsAskAboutReveal (void)Talking by day to the old man with a cane in the old couple's home, the first time: "You...
const CUE *scGetCues (void)Returns the room's cues: the night's until the secret is shared, the morning's after, and the inn's morning ones as the party wakes there.
Sint32scInit (void)Sets up the room being entered: the travelers in their beds at night, or up once the secret is shared; waking at the inn, and night's layers.
Sint32scPrepareMap (void)Once Briggs is caught the pool has dried up: its colours take the dry ground's.

Variables

NameDescription
extern ACTOR_PLACEGarohRoomsNoActorPlacements []
extern ACTOR_PLACEGarohRoomsHousesActorPlacements []
extern ACTOR_PLACEGarohRoomsShopActorPlacements []
extern ACTOR_PLACEGarohRoomsSanctumActorPlacements []
extern CUEGarohRoomsDoorCues []
extern CUEGarohRoomsHousesNightCues []
extern CUEGarohRoomsShopNightCues []
extern CUEGarohRoomsSanctumCues []
extern CUEGarohRoomsHousesMorningCues []
extern CUEGarohRoomsShopMorningCues []
Uint32SceneExits []The room has no exits of its own.

Description

Inside Garoh's houses, in three scenes that share this overlay. The first (SceneIdGarohRoomsHouses) holds four round houses side by side: the home of the young werewolf's family, the old couple's home, the weapons and armor shop, and the inn. The second is the Item Shopkeeper's house (SceneIdGarohRoomsShop) and the third the sanctum (SceneIdGarohRoomsSanctum). Stairs in some of the houses lead down into the tunnels under the village.

Garoh is first seen on a night of the full moon (FLAG_GAROH_NIGHT), when its people hide that they are werewolves: the weapons and armor shop sells only claws and fangs, and two travelers who climbed Air's Rock for nothing lie asleep at the inn. After the night with Maha the party wakes at the inn and is told the stay is on the house (scGarohRoomsWakeAtInn); from then on it is day (FLAG_GAROH_SECRET_SHARED) and everyone talks openly.

Macros in detail

GAROH_ROOMS_NIGHT_LAYERS

#define GAROH_ROOMS_NIGHT_LAYERS (DISPCNT_BG1_ON | DISPCNT_BG3_ON)

The map layers the rooms show at night (fdMapGridSetShownLayers), which leave out the light falling through the windows.

Referenced by scInit().

Definition at line 473 of file garoh_rooms.c.

Enumerations in detail

anonymous enum

enum { ENTRANCE_WAKE_AT_INN }

The morning after a night at the inn (scGarohRoomsWakeAtInn).

EnumeratorValueDescription
ENTRANCE_WAKE_AT_INN99

Definition at line 24 of file garoh_rooms.c.

GAROH_HOUSES_ACTOR_ID

enum GAROH_HOUSES_ACTOR_ID

The actors of the four houses, numbering the rows of GarohRoomsHousesActorPlacements.

EnumeratorValueDescription
ACTOR_PUPS_FATHERACTOR_FIRST_PLACEDThe father of the young werewolf who led the party to Maha. His script is scGarohRoomsAskWhatTheWanderersSeek.
ACTOR_PUPS_MOTHER
ACTOR_PUPS_BROTHER
ACTOR_REVEAL_SEEKERA werewolf who climbed Air's Rock for Maha's powers and did not gain them. His script is scGarohRoomsAskAboutReveal.
ACTOR_REVEAL_SEEKERS_MATE
ACTOR_WEAPONS_VENDOR
ACTOR_ARMOR_VENDOR
ACTOR_INNKEEPERscGarohRoomsTalkToInnkeeper checks the party in.
ACTOR_INN_WORKERThe woman beside him, who greets the party the morning after.
ACTOR_DISAPPOINTED_TRAVELERA traveler who climbed Air's Rock and found nothing, asleep at night.
ACTOR_STUBBORN_TRAVELERHis companion, still puzzling over the rock that would not spin.
ACTOR_DISAPPOINTED_TRAVELERS_BEDUnseen markers on the two beds the
ACTOR_STUBBORN_TRAVELERS_BEDtravelers sleep in at night, so that talking to a bed, or reading its sleeper's mind, reaches the traveler lying in it; they are taken away in the morning.

Definition at line 31 of file garoh_rooms.c.

GAROH_SHOP_ACTOR_ID

enum GAROH_SHOP_ACTOR_ID

The Item Shopkeeper's house's actors, numbering the rows of GarohRoomsShopActorPlacements.

EnumeratorValueDescription
ACTOR_AIRS_ROCK_GUARDIANACTOR_FIRST_PLACED
ACTOR_VILLAGER_ON_WHIRLWIND
ACTOR_VILLAGER_ON_THE_WIND_STONE
ACTOR_ITEM_SHOPKEEPER

Definition at line 63 of file garoh_rooms.c.

GAROH_SANCTUM_ACTOR_ID

enum GAROH_SANCTUM_ACTOR_ID

The Sanctum's priest, its one actor.

EnumeratorValueDescription
ACTOR_PRIESTACTOR_FIRST_PLACED

Definition at line 72 of file garoh_rooms.c.

GAROH_ROOMS_METATILE_BEHAVIOR

enum GAROH_ROOMS_METATILE_BEHAVIOR

The stoves, by their metatiles' behaviour in the map, each with something different cooking on it.

EnumeratorValueDescription
METATILE_BEHAVIOR_LARVAE_STOVE209Bug larvae frying, in the young werewolf's family's home.
METATILE_BEHAVIOR_LAMB_STOVELamb on the bone, at the inn.
METATILE_BEHAVIOR_LOBSTER_STOVELobster grilled in the shell, in the Item Shopkeeper's house.
METATILE_BEHAVIOR_NEWT_STOVENewts on skewers, in the old couple's home.
METATILE_BEHAVIOR_PLANT_POT_STOVEA pot of strange plants, in the weapons and armor shop.

Definition at line 79 of file garoh_rooms.c.

anonymous enum

enum { SHOP_GAROH_WEAPONS, SHOP_GAROH_ARMOR, SHOP_GAROH_ITEMS }

Garoh's shops, as mnShopRun numbers them.

EnumeratorValueDescription
SHOP_GAROH_WEAPONS10
SHOP_GAROH_ARMOR11
SHOP_GAROH_ITEMS12

Definition at line 134 of file garoh_rooms.c.

anonymous enum

enum { INN_ID_GAROH }

Garoh's inn, as mnInnCheckIn numbers the inns.

EnumeratorValueDescription
INN_ID_GAROH3

Definition at line 142 of file garoh_rooms.c.

Functions in detail

scGarohRoomsWakeAtInn

void scGarohRoomsWakeAtInn(void)

The morning after the night with Maha, at the inn: "Felix and party stayed the night at the inn.", the woman at the counter says they did not sleep much, and the innkeeper says Master Maha told them all about the party, the bill is on them, and bids them farewell.

References fdActorRunRepeatedMotion(), fdActorSetAnimationAndWait(), fdActorSystemResumeProjectionAndHideLayers(), fdActorSystemSuspendProjectionAndShowSprites(), fdMapGridCenterOnFollowedPoint(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), mnFieldMessageShowCentered(), Sint32, syGameFlagSet() and sySoundPlay().

Referenced by scInit().

Definition at lines 103 and 546 of file garoh_rooms.c.

scGetEntrances

const SCENE_ENTRANCE *scGetEntrances(void)

References SceneEntrances.

Definition at line 105 of file garoh_rooms.c.

scGetExitRegions

const SCENE_REGION *scGetExitRegions(void)

Definition at line 110 of file garoh_rooms.c.

scGetExits

const Uint32 *scGetExits(void)

References SceneExits.

Definition at line 115 of file garoh_rooms.c.

scGetActorPlacements

const ACTOR_PLACE *scGetActorPlacements(void)

References GarohRoomsHousesActorPlacements, GarohRoomsNoActorPlacements, GarohRoomsSanctumActorPlacements, GarohRoomsShopActorPlacements and MainRoutineStateWork.

Definition at line 120 of file garoh_rooms.c.

scGarohRoomsTalkToWeaponsVendor

void scGarohRoomsTalkToWeaponsVendor(Sint32 actor)

Talking to the Weapons Vendor, the bald man in red behind the counter of the weapons and armor shop. By day, from in front of the counter, his shop opens; at night he is sorry, but on nights of the full moon they only sell claws and fangs.

References fdActorGetById(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), MainRoutineStateWork, mnShopRun(), Sint32 and syGameFlagGet().

Referenced by GarohRoomsHousesMorningCues and GarohRoomsHousesNightCues.

Definition at line 151 of file garoh_rooms.c.

scGarohRoomsTalkToArmorVendor

void scGarohRoomsTalkToArmorVendor(Sint32 actor)

Talking to the Armor Vendor, the man with the orange beard beside the Weapons Vendor. By day, from in front of the counter, his shop opens; at night he only says it is unfortunate they came on a night of the full moon.

References fdActorGetById(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), MainRoutineStateWork, mnShopRun(), Sint32 and syGameFlagGet().

Referenced by GarohRoomsHousesMorningCues and GarohRoomsHousesNightCues.

Definition at line 178 of file garoh_rooms.c.

scGarohRoomsTalkToItemShopkeeper

void scGarohRoomsTalkToItemShopkeeper(Sint32 actor)

Talking to the Item Shopkeeper, the woman with a ponytail in her house: from in front of the counter her shop opens, night or day. From anywhere else she talks; at night she asks whether the party came from Alhafra.

References fdActorGetById(), fdMessageShowAtActor(), fdPartyGetLeaderActor(), fdScriptAskYesNoWithActorAnimation(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptWait(), MainRoutineStateWork, mnShopRun(), Sint32 and syGameFlagGet().

Referenced by GarohRoomsShopMorningCues and GarohRoomsShopNightCues.

Definition at line 205 of file garoh_rooms.c.

scGarohRoomsTalkToInnkeeper

void scGarohRoomsTalkToInnkeeper(Sint32 actor)

Talking to the innkeeper behind the inn's counter: from in front of it he offers a night's stay, and from elsewhere he only chats.

References fdActorGetById(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), MainRoutineStateWork, mnInnCheckIn(), Sint32 and syGameFlagGet().

Referenced by GarohRoomsHousesMorningCues and GarohRoomsHousesNightCues.

Definition at line 246 of file garoh_rooms.c.

scGarohRoomsTalkToPriest

void scGarohRoomsTalkToPriest(void)

Talking to the priest in Garoh's sanctum: he turns to Felix, and from in front of his counter offers the sanctum's services; from elsewhere he only chats. He then faces south again.

References fdActorFaceActorById(), fdActorFaceDirection(), fdActorGetById(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), MainRoutineStateWork, mnSanctumRun(), Sint32 and syGameFlagGet().

Referenced by GarohRoomsSanctumCues.

Definition at line 272 of file garoh_rooms.c.

scGarohRoomsAskWhatTheWanderersSeek

void scGarohRoomsAskWhatTheWanderersSeek(Sint32 actor)

Talking at night to the young werewolf's father, the man with brown hair pacing his family's home: "Good evening, wanderers! Are you looking for something?", and then whether they are searching for werewolves.

References fdMessageShowAtActor(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart(), MainRoutineStateWork and Sint32.

Referenced by GarohRoomsHousesNightCues.

Definition at line 301 of file garoh_rooms.c.

scGarohRoomsTalkToDisappointedTraveler

void scGarohRoomsTalkToDisappointedTraveler(void)

Talking to the disappointed traveler, one of the two warriors in golden helmets at the inn. At night, asleep in his bed, he mumbles "What a waste... Just a big rock..."; by day he grumbles that the wolves were noisy again last night.

References fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart(), Sint32 and syGameFlagGet().

Referenced by GarohRoomsHousesMorningCues and GarohRoomsHousesNightCues.

Definition at line 349 of file garoh_rooms.c.

scGarohRoomsTalkToStubbornTraveler

void scGarohRoomsTalkToStubbornTraveler(void)

Talking to the stubborn traveler, the other warrior in a golden helmet at the inn. At night, asleep in his bed, he mumbles "Whirlwind? Wind Stone?"; by day he wants to stay and try climbing Air's Rock once more.

References fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart(), Sint32 and syGameFlagGet().

Referenced by GarohRoomsHousesMorningCues and GarohRoomsHousesNightCues.

Definition at line 366 of file garoh_rooms.c.

scGarohRoomsReadDisappointedTravelersMind

void scGarohRoomsReadDisappointedTravelersMind(void)

Mind Read on the disappointed traveler at the inn. At night he is bitter that he climbed all over that stupid rock for nothing; by day he is scared of wolves and keeps indoors at night.

References fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart(), Sint32 and syGameFlagGet().

Referenced by GarohRoomsHousesMorningCues and GarohRoomsHousesNightCues.

Definition at line 383 of file garoh_rooms.c.

scGarohRoomsReadStubbornTravelersMind

void scGarohRoomsReadStubbornTravelersMind(void)

Mind Read on the stubborn traveler at the inn. At night he wonders how he was supposed to make so huge a rock spin; by day he thinks a lever would do it.

References fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart(), Sint32 and syGameFlagGet().

Referenced by GarohRoomsHousesMorningCues and GarohRoomsHousesNightCues.

Definition at line 399 of file garoh_rooms.c.

scGarohRoomsAskAboutReveal

void scGarohRoomsAskAboutReveal(void)

Talking by day to the old man with a cane in the old couple's home, the first time: "You... Is it true that you learned Reveal?", with an answer for Yes and one for No.

References fdMessageShowAtActor(), fdPartyGetLeaderActor(), fdScriptAskYesNoWithActorAnimation(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptWait(), Sint32 and syGameFlagSet().

Referenced by GarohRoomsHousesMorningCues.

Definition at line 416 of file garoh_rooms.c.

scGetCues

const CUE *scGetCues(void)

Returns the room's cues: the night's until the secret is shared, the morning's after, and the inn's morning ones as the party wakes there.

References GarohRoomsDoorCues, GarohRoomsHousesMorningCues, GarohRoomsHousesNightCues, GarohRoomsSanctumCues, GarohRoomsShopMorningCues, GarohRoomsShopNightCues, MainRoutineStateWork, Sint32 and syGameFlagGet().

Definition at line 439 of file garoh_rooms.c.

scInit

Sint32 scInit(void)

Sets up the room being entered: the travelers in their beds at night, or up once the secret is shared; waking at the inn, and night's layers.

References fdActorGetById(), fdActorSetHorizontalPosAndAngleWithTerrain(), fdActorSetMovementTypeById(), fdActorSetPosAndFacing(), fdActorSetSpriteFlags(), fdActorSetSpriteRotationById(), fdEffectStartBlankOverlay(), fdMapGridSetShownLayers(), MainRoutineStateWork, scGarohRoomsWakeAtInn(), Sint32, syGameFlagClear() and syGameFlagGet().

Definition at line 477 of file garoh_rooms.c.

scPrepareMap

Sint32 scPrepareMap(void)

References Sint32.

Definition at line 537 of file garoh_rooms.c.

Variables in detail

GarohRoomsNoActorPlacements

extern ACTOR_PLACE GarohRoomsNoActorPlacements[]

ACTOR_PLACE GarohRoomsNoActorPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 92 and 626 of file garoh_rooms.c.

GarohRoomsHousesActorPlacements

extern ACTOR_PLACE GarohRoomsHousesActorPlacements[]

ACTOR_PLACE GarohRoomsHousesActorPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 93 and 630 of file garoh_rooms.c.

GarohRoomsShopActorPlacements

extern ACTOR_PLACE GarohRoomsShopActorPlacements[]

ACTOR_PLACE GarohRoomsShopActorPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 94 and 660 of file garoh_rooms.c.

GarohRoomsSanctumActorPlacements

extern ACTOR_PLACE GarohRoomsSanctumActorPlacements[]

ACTOR_PLACE GarohRoomsSanctumActorPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 95 and 672 of file garoh_rooms.c.

GarohRoomsDoorCues

extern CUE GarohRoomsDoorCues[]

CUE GarohRoomsDoorCues[]

Referenced by scGetCues().

Definition at lines 96 and 678 of file garoh_rooms.c.

GarohRoomsHousesNightCues

extern CUE GarohRoomsHousesNightCues[]

CUE GarohRoomsHousesNightCues[]

References scGarohRoomsAskWhatTheWanderersSeek(), scGarohRoomsReadDisappointedTravelersMind(), scGarohRoomsReadStubbornTravelersMind(), scGarohRoomsTalkToArmorVendor(), scGarohRoomsTalkToDisappointedTraveler(), scGarohRoomsTalkToInnkeeper(), scGarohRoomsTalkToStubbornTraveler() and scGarohRoomsTalkToWeaponsVendor().

Referenced by scGetCues().

Definition at lines 97 and 685 of file garoh_rooms.c.

GarohRoomsShopNightCues

extern CUE GarohRoomsShopNightCues[]

CUE GarohRoomsShopNightCues[]

References scGarohRoomsTalkToItemShopkeeper().

Referenced by scGetCues().

Definition at lines 98 and 774 of file garoh_rooms.c.

GarohRoomsSanctumCues

extern CUE GarohRoomsSanctumCues[]

CUE GarohRoomsSanctumCues[]

References scGarohRoomsTalkToPriest().

Referenced by scGetCues().

Definition at lines 99 and 812 of file garoh_rooms.c.

GarohRoomsHousesMorningCues

extern CUE GarohRoomsHousesMorningCues[]

CUE GarohRoomsHousesMorningCues[]

References scGarohRoomsAskAboutReveal(), scGarohRoomsReadDisappointedTravelersMind(), scGarohRoomsReadStubbornTravelersMind(), scGarohRoomsTalkToArmorVendor(), scGarohRoomsTalkToDisappointedTraveler(), scGarohRoomsTalkToInnkeeper(), scGarohRoomsTalkToStubbornTraveler() and scGarohRoomsTalkToWeaponsVendor().

Referenced by scGetCues().

Definition at lines 100 and 834 of file garoh_rooms.c.

GarohRoomsShopMorningCues

extern CUE GarohRoomsShopMorningCues[]

CUE GarohRoomsShopMorningCues[]

References scGarohRoomsTalkToItemShopkeeper().

Referenced by scGetCues().

Definition at lines 101 and 926 of file garoh_rooms.c.

SceneExits

Uint32 SceneExits[]

Referenced by scGetExits().

Definition at line 580 of file garoh_rooms.c.