Alchemy

kolima_forest_tree.c

Kolima Forest's clearing before Tret, the great tree, and Laurel: once Tret's hostile heart is defeated, Hermes' Water heals him and lifts Kolima's curse.

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

Kolima Forest's clearing before Tret, the great tree, and Laurel: once Tret's hostile heart is defeated, Hermes' Water heals him and lifts Kolima's curse.

Functions

KolimaForestTree_GetRegions

const struct SceneRegion *KolimaForestTree_GetRegions(void)

Returns the region at the entrance to Tret's interior.

Line 72

KolimaForestTree_GetExits

const u32 *KolimaForestTree_GetExits(void)

Returns the connections to the bridge and Tret's interior.

Line 77

KolimaForestTree_GetPlacements

const struct ScenePlacement *KolimaForestTree_GetPlacements(void)

Returns Tret, Laurel and their auxiliary actors.

Line 80

KolimaForestTree_ExitTouchedRegion

UNUSED static void KolimaForestTree_ExitTouchedRegion(void)

Takes the touched exit after completing the leader's current movement.

Line 85

KolimaForestTree_GetEvents

const struct SceneEvent *KolimaForestTree_GetEvents(void)

Returns the trees' dialogue, Mind Read and item-use events.

Line 96

KolimaForestTree_TalkToLaurel

static void KolimaForestTree_TalkToLaurel(void)

Introduces Laurel or hears her warning while Tret is still dying.

Used by gKolimaForestTreeEvents.

Line 101

KolimaForestTree_TalkToTret

static void KolimaForestTree_TalkToTret(void)

Talks to Tret and offers the item prompt when Hermes' Water is available.

Used by gKolimaForestTreeEvents.

Line 132

KolimaForestTree_ReadLaurelThoughts

static void KolimaForestTree_ReadLaurelThoughts(void)

Reads Laurel's thoughts about the healing water or the danger beyond the river.

Used by gKolimaForestTreeEvents.

Line 173

KolimaForestTree_ReadTretThoughts

static void KolimaForestTree_ReadTretThoughts(void)

Reads Tret's regret before healing, or his concern for the forest afterward.

Used by gKolimaForestTreeEvents.

Line 185

KolimaForestTree_UseHermesWater

static void KolimaForestTree_UseHermesWater(void)

Heals Tret only after his hostile heart has been defeated.

Used by gKolimaForestTreeEvents.

Line 197

KolimaForestTree_RejectHermesWater

static void KolimaForestTree_RejectHermesWater(void)

Shows Tret's hostile heart repelling the leader's attempt to help.

Used by KolimaForestTree_UseHermesWater.

Line 209

KolimaForestTree_NodTogether

static __inline__ void KolimaForestTree_NodTogether(void)

Gives all four companions the same nod, waiting on Ivan's animation.

Used by KolimaForestTree_RestoreTret.

Line 276

KolimaForestTree_FaceParty

static __inline__ void KolimaForestTree_FaceParty(s32 facing, s32 waitFrames)

Turns the companions together and pauses after the final facing change.

Used by KolimaForestTree_RestoreTret.

Line 284

KolimaForestTree_RestoreTret

static void KolimaForestTree_RestoreTret(void)

Heals Tret, lifts Kolima's curse and hears the trees' warning.

Used by KolimaForestTree_UseHermesWater.

Line 292

KolimaForestTree_Initialize

s32 KolimaForestTree_Initialize(void)

Restores the trees' faces, collision and the dying forest's palette.

Line 651

KolimaForestTree_SpawnRejectionSpark

static void KolimaForestTree_SpawnRejectionSpark(void)

Spawns the growing sparks that repel the party leader.

Used by KolimaForestTree_RejectHermesWater.

Line 697

KolimaForestTree_UpdateHealingPalette

static void KolimaForestTree_UpdateHealingPalette(void)

Alternates the saved healthy and withered palettes over thirty frames.

Used by KolimaForestTree_RestoreTret.

Line 732

KolimaForestTree_AlternateFaceFrames

static __inline__ void KolimaForestTree_AlternateFaceFrames(s32 actorId, s32 firstFrame, s32 secondFrame)

Alternates two facial frames twice, ending on the first frame.

Used by KolimaForestTree_PlayGesture.

Line 750

KolimaForestTree_PlayGesture

static void KolimaForestTree_PlayGesture(s32 auxiliaryActorId, s32 gesture)

Chooses Tret or Laurel's facial sequence through their auxiliary actor.

Used by KolimaForestTree_RestoreTret, KolimaForestTree_TalkToLaurel, KolimaForestTree_TalkToTret.

Line 765

KolimaForestTree_UpdateOrbitSpark

static void KolimaForestTree_UpdateOrbitSpark(union FieldObject *fieldObject)

Expands a spark along its spiral for 120 frames, then releases its cache slot.

Used by KolimaForestTree_SpawnOrbitSparks.

Line 852

KolimaForestTree_SpawnOrbitSparks

static void KolimaForestTree_SpawnOrbitSparks(void)

Emits six-spark rings at ten-frame intervals during each burst.

Used by KolimaForestTree_RestoreTret.

Line 875

KolimaForestTree_ReplaceInventoryItem

static void KolimaForestTree_ReplaceInventoryItem(s32 oldItemId, s32 newItemId)

Replaces the used water with its empty bottle in the same inventory slot.

Used by KolimaForestTree_RestoreTret.

Line 915

Also, functions without a comment: KolimaForestTree_GetEntrances.

Globals, without a comment: gKolimaForestTreeSparkOrigin, gKolimaForestTreeSparkFrame, gKolimaForestTreePlaySparkSound, gKolimaForestTreePaletteFrame, gKolimaForestTree_GaretApproachActions, gKolimaForestTree_IvanApproachActions, gKolimaForestTree_MiaApproachActions, gKolimaForestTree_RejoinPartyActions, gKolimaForestTreeEntrances, gKolimaForestTreeRegions, gKolimaForestTreeExits, gKolimaForestTreePlacements, gKolimaForestTreeEvents, gKolimaForestTreeEffectScript.

On this page