Alchemy

mccoy_palace_garden.c

The garden before Lord McCoy's palace in Bilibin.

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

The garden before Lord McCoy's palace in Bilibin. Two guards keep the palace gate and let only brave warriors through; once Kolima's curse is lifted, they arrest the party for breaking it and take them to McCoy.

Scene flags: FLAG_SCENE_TEMP_00, the palace gate is open; FLAG_SCENE_TEMP_01, the east guard has scolded the party for keeping McCoy waiting. Flag 0x304, reused from place to place, is set in Bilibin when McCoy is looking for the party.

Functions

Scene_GetPlacements

const struct ScenePlacement *Scene_GetPlacements(void)

The garden's people. Once McCoy has turned the party away, the east guard turns back after talking, and once the curse is lifted McCoy faces the party.

Line 72

Event_CatchFloatingNut

static void Event_CatchFloatingNut(void)

Catch on the nut floating over the garden: the party gets it.

Used by gMcCoyPalaceGardenEvents.

Line 84

Event_SearchWell

static void Event_SearchWell(void)

Searching the dry well.

Used by gGateEvents, gMcCoyPalaceGardenEvents.

Line 94

Scene_GetEvents

const struct SceneEvent *Scene_GetEvents(void)

What the party can talk to, search and catch in the garden.

Line 102

Event_TalkToNorthWorker

static void Event_TalkToNorthWorker(void)

The north worker asks whether the party has seen the barricade.

Used by gMcCoyPalaceGardenEvents.

Line 110

Event_TalkToMcCoy

static void Event_TalkToMcCoy(void)

McCoy asks whether the palace work makes him responsible for the curse.

Used by gMcCoyPalaceGardenEvents.

Line 118

Event_TalkToWestGuard

static void Event_TalkToWestGuard(void)

The young west guard asks whether he can become a warrior like them.

Used by gLunpaSealedEvents, gMcCoyPalaceGardenEvents.

Line 126

Event_TalkToEastGuard

static void Event_TalkToEastGuard(void)

The east guard: until he lets them in, he asks whether they are brave enough to meet McCoy and, on yes, opens the gate and walks in with his partner; after, he scolds them once for keeping McCoy waiting.

Used by gLunpaSealedEvents, gMcCoyPalaceGardenEvents, gSuhallaGateEventsOther.

Line 136

Event_EnterPalace

static void Event_EnterPalace(void)

Walking into the palace gate: it opens if still shut and the leader walks in.

Used by gMcCoyPalaceGardenEvents.

Line 217

Scene_Initialize

s32 Scene_Initialize(void)

Sets the garden up: the west worker drawn in front, and the guards, McCoy and the arrest as the story stands.

Line 233

Garden_ApplyProgress

static void Garden_ApplyProgress(void)

The guards stand where the party left them; once the curse is lifted, McCoy waits in the garden and, the first time, the guards arrest the party.

Used by Scene_Initialize.

Line 253

Event_GuardsArrestParty

static void Event_GuardsArrestParty(void)

Kolima's curse is lifted: the guards stop the party, ask whether they broke the holy tree's curse until they answer yes, and march them into the palace to McCoy.

Used by Garden_ApplyProgress.

Line 286

Garden_OpenPalaceGate

static void Garden_OpenPalaceGate(void)

The palace gate swings open.

Used by Event_EnterPalace, Event_GuardsArrestParty, Event_TalkToEastGuard.

Line 373

Also, functions without a comment: Scene_GetEntrances, Scene_GetRegions, Scene_GetExits.

Macros, without a comment: MCCOY_GARDEN_SET_ACTOR_POSITION, MCCOY_GARDEN_SET_ACTOR_POSITION.

Globals

gPalaceGateOpenSteps

u16 gPalaceGateOpenSteps[]

The gate opening: three steps of cells, 5 frames each.

Used by Garden_OpenPalaceGate.

Line 383

gGuardWatchesParty

s32 gGuardWatchesParty[]

A guard turns to keep facing the party.

Used by Event_TalkToEastGuard, Garden_ApplyProgress.

Line 388

Also, globals without a comment: gMcCoyPalaceGardenEntrances, gMcCoyPalaceGardenExits, gMcCoyPalaceGardenPlacementsOther, gMcCoyPalaceGardenPlacements, gMcCoyPalaceGardenEventsOther, gMcCoyPalaceGardenEvents.

On this page