Skip to Content
The Alchemy Project

src/scene/kolima_forest_tree.c

Kolima Forest (SceneIdKolimaForestTree), the last of the forest's five scenes, where Tret and Laurel, the spirits of the holy trees, stand. More…

Macros

NameDescription
#defineSPARKLE_ANIMATION_TWINKLE 1SPRITE_SPARKLE's endless twinkle, its first four pictures in turn.
#defineTREE_CURSE_DIVISOR 3How far the curse tints the forest round Tret until it is lifted: green and blue lose 1 / TREE_CURSE_DIVISOR of themselves (scKolimaPaletteCurse).
#defineHEALTHY_FADE_TICKS 20The healing palette's cycle: HEALTHY_FADE_TICKS towards the healthy colours, then back towards the cursed ones until HEALING_CYCLE_TICKS.
#defineHEALING_CYCLE_TICKS 30
#defineORBIT_SPARK_TICKS 120A spark's spiral: it lasts ORBIT_SPARK_TICKS, moving a pixel further out and ORBIT_SPARK_TURN round each tick.
#defineORBIT_SPARK_TURN (TRIG_TURN * 3 / 256)

Enumerations

NameDescription
enumanonymous enum { ACTOR_TRET, ACTOR_LAUREL, ACTOR_INVISIBLE_TRET, ACTOR_INVISI … }The actors, numbering KolimaForestTreeActorPlacements' rows from ACTOR_FIRST_PLACED.
enumKOLIMA_FOREST_TREE_FACE_CHANGE { FACE_CHANGE_CLOSE_EYES, FACE_CHANGE_OPEN_EYES, FACE_CHANGE_L … }The face changes scKolimaForestTreeChangeFace plays, each from the face with its eyes open.

Functions

NameDescription
static voidscKolimaForestTreeRejectHermesWater (void)Tret's wrathful side repels Hermes' Water.
static voidscKolimaForestTreeRestoreTret (void)Hermes' Water heals Tret.
static voidscKolimaForestTreeSpawnRepelSpark (void)Every fourth tick, a golden ring falls from Tret onto the leader as his wrathful side throws him back, with its sound while KolimaForestTreePlaySparkSound is set.
static voidscKolimaForestTreeUpdateHealingPalette (void)Each tick of the healing: the forest's colours fade towards the healthy set, then back towards the cursed one, every HEALING_CYCLE_TICKS.
static voidscKolimaForestTreeChangeFace (Sint32 blankActorId, Sint32 change)Plays one of Tret's or Laurel's face changes, chosen by the blank actor at their spot.
static voidscKolimaForestTreeSpawnOrbitSparks (void)Sends out a ring of six sparkles spiralling from KolimaForestTreeSparkOrigin with a shimmer, every ten ticks for the first 50 of each 121.
static voidscInventoryReplaceItem (Sint32 oldItem, Sint32 newItem)Replaces the first held oldItem with newItem in the same party member's slot, so the bottle stays where it was in the items.
BSS_DATAALIGNED (16)Where Tret's sparks spring from (16.16 pixels), the tick of their cycle, whether a repelling spark plays its sound, and the ticks of the healing palette's spread.
const SCENE_ENTRANCE *scGetEntrances (void)The six rooms share one entrance table.
const SCENE_EXIT_REGION *scGetExitRegions (void)The region at Tret's foot that leads into the Tret Tree.
const Uint32 *scGetExits (void)The ways back (SceneIdKolimaForestFloodgate) and into the Tret Tree (SceneIdTreeRooms).
const ACTOR_PLACE *scGetActorPlacements (void)Tret and Laurel, the blank actors at their spots, the ones the party talks to, Tret's wrathful side, and Garet, Ivan and Mia for the healing.
static voidscKolimaForestTreeExitTouchedRegion (void)Unused: takes the touched exit after the leader's current movement.
const CUE *scGetCues (void)Talking to Tret and Laurel, reading their minds, and Hermes' Water on Tret.
static voidscKolimaForestTreeTalkToLaurel (void)In Kolima Forest (SceneIdKolimaForestTree), the first time the party talks to Laurel (ACTOR_LAUREL_STAND_IN), she asks who the party is.
static voidscKolimaForestTreeTalkToTret (void)In Kolima Forest (SceneIdKolimaForestTree), talking to Tret (ACTOR_TRET_STAND_IN) finds him silent until the curse is lifted.
static voidscKolimaForestTreeReadLaurelThoughts (void)In Kolima Forest (SceneIdKolimaForestTree), Mind Read on Laurel hears her thoughts.
static voidscKolimaForestTreeReadTretThoughts (void)In Kolima Forest (SceneIdKolimaForestTree), Mind Read on Tret hears his thoughts.
static voidscKolimaForestTreeUseHermesWater (void)In Kolima Forest (SceneIdKolimaForestTree), using Hermes' Water on Tret while the curse lasts heals him only once the evil within him is defeated in the Tret Tree (FLAG_TRET_DEFEATED).
static inline voidscKolimaForestTreeFaceParty (Sint32 facing, Sint32 waitTicks)Turns the four of them to facing together, then waits waitTicks.
Sint32scInit (void)Sets up Tret, Laurel and the forest's colours on entry.
static inline voidscKolimaForestTreeSwapFaces (Sint32 actorId, Sint32 firstFace, Sint32 secondFace)Alternates two faces twice, ending on the first.
static voidscKolimaForestTreeUpdateOrbitSpark (ACTOR *spark)Moves a sparkle out along its spiral, swelling, for ORBIT_SPARK_TICKS; then it is gone.

Variables

NameDescription
extern Sint32KolimaForestTreeGaretApproachActions []Garet, Ivan and Mia step out from the leader to stand round him before Tret (scKolimaForestTreeRestoreTret), and at the end walk back into him.
extern Sint32KolimaForestTreeIvanApproachActions []
extern Sint32KolimaForestTreeMiaApproachActions []
extern Sint32KolimaForestTreeReturnToPartyActions []
extern SCENE_ENTRANCEKolimaForestTreeEntrances []
extern SCENE_EXIT_REGIONKolimaForestTreeRegions []
extern Uint32KolimaForestTreeExits []
extern ACTOR_PLACEKolimaForestTreeActorPlacements []
extern CUEKolimaForestTreeCues []
extern Sint32KolimaForestTreeRepelRingScript []
Sint32KolimaForestTreeSparkOrigin [3]Where Tret's sparks spring from (16.16 pixels), the tick of their cycle, whether a repelling spark plays its sound, and the ticks of the healing palette's spread.
Sint32KolimaForestTreeSparkTick
Sint32KolimaForestTreePlaySparkSound
Sint32KolimaForestTreePaletteTick
Uint8KolimaForestTreeUnusedAfterPaletteTick [8]Unused: eight bytes after the palette tick that nothing reads.
Uint8KolimaPaletteHealthy [1792]The healthy colours, kept by scKolimaPaletteSaveHealthy: the palette fade's 448 background and sprite colours, in the array's first half.
Uint8KolimaPaletteCursed [896]The cursed colours, kept by scKolimaPaletteSaveCursed.

Description

Kolima Forest (SceneIdKolimaForestTree), the last of the forest's five scenes, where Tret and Laurel, the spirits of the holy trees, stand. The party has come from Kolima to reawaken Tret's gentle side and save the villagers he turned into trees, and here the curse is lifted.

At first Tret is silent and his wrathful side answers for him (ACTOR_TRETS_WRATHFUL_SIDE, with a portrait): "I control all in Tret's realm!"

Laurel, on the first talk (FLAG_MET_LAUREL), knows the party as the ones who resisted Tret's glamour, but says they are too late. Tret will die and the forest with him.

Mind Read hears Laurel think that the healing waters of Mercury Lighthouse might save Tret, though its fountain has dried up. It hears Tret ask Kolima's forgiveness.

Hermes' Water used on Tret now is thrown back by his wrathful side, and the leader with it.

The way on is into Tret himself. The region at his foot is KOLIMA_FOREST_TREE_TREE_ROOMS, into the Tret Tree (SceneIdTreeRooms). There the party defeats the evil within him (FLAG_TRET_DEFEATED, set there) and finds him too weak to save Kolima.

Back here, with Hermes' Water, which Mercury Lighthouse's fountain gives in an Empty Bottle, talking to Tret opens the party's items. Using the water plays scKolimaForestTreeRestoreTret:

  • The forest's colours return.
  • Tret frees Kolima's people (FLAG_KOLIMA_CURSE_LIFTED).
  • He and Laurel tell how the gems that fell from the sky, the Psynergy Stones, twisted their hearts.
  • Laurel warns of an evil forest risen south of the river.

The bottle is left empty. Afterwards Tret and Laurel thank the party and worry about what lies beyond the river.

Until the curse is lifted the forest keeps its cursed colours (scKolimaPaletteCurse), which keeps the healthy set and the cursed set both.

As the water heals Tret, scKolimaForestTreeRestoreTret fades background palettes 0 to 13 to the healthy set. Then it pulses them towards the healthy set and back towards the cursed one every 30 ticks (scKolimaForestTreeUpdateHealingPalette) while the camera pans to three places. It flashes between the two sets four times and settles on the healthy one. All this runs from the line that the water has seeped into Tret until Tret speaks.

Retreat from here always leads back to the forest's way in (SceneIdKolimaForestEntrance, KOLIMA_FOREST_ENTRANCE_WORLD_MAP). The way back, KOLIMA_FOREST_TREE_KOLIMA_FOREST_FLOODGATE, leads to the Floodgate Switch's scene (SceneIdKolimaForestFloodgate).

Macros in detail

SPARKLE_ANIMATION_TWINKLE

#define SPARKLE_ANIMATION_TWINKLE 1

SPRITE_SPARKLE's endless twinkle, its first four pictures in turn.

Referenced by scKolimaForestTreeSpawnOrbitSparks().

Definition at line 117 of file kolima_forest_tree.c.

TREE_CURSE_DIVISOR

#define TREE_CURSE_DIVISOR 3

How far the curse tints the forest round Tret until it is lifted: green and blue lose 1 / TREE_CURSE_DIVISOR of themselves (scKolimaPaletteCurse).

Referenced by scInit().

Definition at line 874 of file kolima_forest_tree.c.

HEALTHY_FADE_TICKS

#define HEALTHY_FADE_TICKS 20

The healing palette's cycle: HEALTHY_FADE_TICKS towards the healthy colours, then back towards the cursed ones until HEALING_CYCLE_TICKS.

Referenced by scKolimaForestTreeUpdateHealingPalette().

Definition at line 957 of file kolima_forest_tree.c.

HEALING_CYCLE_TICKS

#define HEALING_CYCLE_TICKS 30

Referenced by scKolimaForestTreeUpdateHealingPalette().

Definition at line 958 of file kolima_forest_tree.c.

ORBIT_SPARK_TICKS

#define ORBIT_SPARK_TICKS 120

A spark's spiral: it lasts ORBIT_SPARK_TICKS, moving a pixel further out and ORBIT_SPARK_TURN round each tick.

Referenced by scKolimaForestTreeUpdateOrbitSpark().

Definition at line 1098 of file kolima_forest_tree.c.

ORBIT_SPARK_TURN

#define ORBIT_SPARK_TURN (TRIG_TURN * 3 / 256)

Referenced by scKolimaForestTreeUpdateOrbitSpark().

Definition at line 1099 of file kolima_forest_tree.c.

Enumerations in detail

anonymous enum

enum { ACTOR_TRET, ACTOR_LAUREL, ACTOR_INVISIBLE_TRET, ACTOR_INVISIBLE_LAUREL, … }

The actors, numbering KolimaForestTreeActorPlacements' rows from ACTOR_FIRST_PLACED.

EnumeratorValueDescription
ACTOR_TRETACTOR_FIRST_PLACEDTret's face, drawn in
ACTOR_LAURELSPRITE_TRET_GENTLE. Its animations are the changes of his face (scKolimaForestTreeChangeFace).
ACTOR_INVISIBLE_TRETOpen question (no evidence in reach): why these exist;
ACTOR_INVISIBLE_LAURELlikely left from a version where they were drawn, but the ROM keeps no such version. Blank actors 28 pixels up at Tret's and Laurel's spots, never targeted. Nothing addresses them but scKolimaForestTreeChangeFace, which takes one to say whose face to move.
ACTOR_TRET_STAND_INAn invisible actor on Tret's spot that answers for him. Talking to it, Mind Read on it and Hermes' Water used on it reach Tret.
ACTOR_LAUREL_STAND_INThe invisible actor on Laurel's spot that answers for her when she is talked to or her mind is read.
ACTOR_TRETS_WRATHFUL_SIDETret's wrathful side, the voice that speaks in a portrait window on the right: SPRITE_TRET on Tret's spot, 28 pixels up, kept hidden and never targeted (scInit).

Definition at line 81 of file kolima_forest_tree.c.

KOLIMA_FOREST_TREE_FACE_CHANGE

enum KOLIMA_FOREST_TREE_FACE_CHANGE

The face changes scKolimaForestTreeChangeFace plays, each from the face with its eyes open. Laurel has only the first six, and the wrathful ones, on Tret's wrathful face, are never asked for here.

EnumeratorValueDescription
FACE_CHANGE_CLOSE_EYES0
FACE_CHANGE_OPEN_EYES1
FACE_CHANGE_LOOK_LEFT2
FACE_CHANGE_LOOK_RIGHT3
FACE_CHANGE_BLINK4twice
FACE_CHANGE_HALF_CLOSE_EYES5
FACE_CHANGE_WRATHFUL_CLOSE_EYES6
FACE_CHANGE_WRATHFUL_OPEN_EYES7
FACE_CHANGE_WRATHFUL_LOOK_RIGHT8
FACE_CHANGE_WRATHFUL_LOOK_LEFT9
FACE_CHANGE_WRATHFUL_BLINK10
FACE_CHANGE_WRATHFUL_STARE11as FACE_CHANGE_WRATHFUL_OPEN_EYES

Definition at line 122 of file kolima_forest_tree.c.

Functions in detail

scKolimaForestTreeRejectHermesWater

static void scKolimaForestTreeRejectHermesWater(void)

Tret's wrathful side repels Hermes' Water.

References fdActorFaceDirection(), fdActorGet(), fdActorJump(), fdActorMoveToAndWait(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetSpritePriority(), fdPaletteFadeApplyTarget(), fdPaletteFadeStartInterpolation(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptWait(), gmPlayMusic(), KolimaForestTreePlaySparkSound, scFieldScriptShowMessageThenWait(), scKolimaForestTreeSpawnRepelSpark(), syCloseEvent(), sySetTickEvent(), sySoundPlay() and sySynch().

Referenced by scKolimaForestTreeUseHermesWater().

Definition at lines 111 and 369 of file kolima_forest_tree.c.

scKolimaForestTreeRestoreTret

static void scKolimaForestTreeRestoreTret(void)

Hermes' Water heals Tret.

References fdActorFaceDirection(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorRunScriptAndWait(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetPosFX(), fdActorSetScript(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorWaitForScriptEndById(), fdActorWalkToAndWait(), fdCameraWaitForArrival(), fdPaletteFadeApplyTarget(), fdPaletteFadeStartInterpolation(), fdScriptAskYesNoWithActorAnimation(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptShowMessageThenWait(), fdScriptWait(), gmFlagGet(), gmFlagSet(), KolimaForestTreeGaretApproachActions, KolimaForestTreeIvanApproachActions, KolimaForestTreeMiaApproachActions, KolimaForestTreePaletteTick, KolimaForestTreeReturnToPartyActions, KolimaForestTreeSparkOrigin, KolimaForestTreeSparkTick, mnFieldMessageShow(), scFieldScriptShowMessageThenWait(), scInventoryReplaceItem(), scKolimaForestTreeChangeFace(), scKolimaForestTreeFaceParty(), scKolimaForestTreeSpawnOrbitSparks(), scKolimaForestTreeUpdateHealingPalette(), scKolimaPaletteRestore(), scNodTogether(), Sint32, syCloseEvent(), sySetTickEvent(), sySoundPlay() and sySynch().

Referenced by scKolimaForestTreeUseHermesWater().

Definition at lines 112 and 443 of file kolima_forest_tree.c.

scKolimaForestTreeSpawnRepelSpark

static void scKolimaForestTreeSpawnRepelSpark(void)

Every fourth tick, a golden ring falls from Tret onto the leader as his wrathful side throws him back, with its sound while KolimaForestTreePlaySparkSound is set.

References fdActorSelectAnimation(), fdActorStartScript(), KolimaForestTreePlaySparkSound, KolimaForestTreeRepelRingScript, scFieldActorCreate(), scFieldActorSetMoveTargetFX(), Sint32, sySoundPlay() and TickCount.

Referenced by scKolimaForestTreeRejectHermesWater().

Definition at lines 113 and 927 of file kolima_forest_tree.c.

scKolimaForestTreeUpdateHealingPalette

static void scKolimaForestTreeUpdateHealingPalette(void)

Each tick of the healing: the forest's colours fade towards the healthy set, then back towards the cursed one, every HEALING_CYCLE_TICKS.

References fdPaletteFadeStartInterpolation(), KolimaForestTreePaletteTick, scKolimaPaletteRestore() and Sint32.

Referenced by scKolimaForestTreeRestoreTret().

Definition at lines 114 and 962 of file kolima_forest_tree.c.

scKolimaForestTreeChangeFace

static void scKolimaForestTreeChangeFace(Sint32 blankActorId, Sint32 change)

Plays one of Tret's or Laurel's face changes, chosen by the blank actor at their spot.

References fdActorSetAnimation(), scKolimaForestTreeSwapFaces(), Sint32 and sySynch().

Referenced by scKolimaForestTreeRestoreTret(), scKolimaForestTreeTalkToLaurel() and scKolimaForestTreeTalkToTret().

Definition at lines 138 and 1001 of file kolima_forest_tree.c.

scKolimaForestTreeSpawnOrbitSparks

static void scKolimaForestTreeSpawnOrbitSparks(void)

Sends out a ring of six sparkles spiralling from KolimaForestTreeSparkOrigin with a shimmer, every ten ticks for the first 50 of each 121.

References fdActorSelectAnimation(), fdActorSetSpriteFlags(), fdSpriteShareVRAMCacheEntry(), KolimaForestTreeSparkOrigin, KolimaForestTreeSparkTick, scFieldActorCreate(), scKolimaForestTreeUpdateOrbitSpark() and sySoundPlay().

Referenced by scKolimaForestTreeRestoreTret().

Definition at lines 139 and 1131 of file kolima_forest_tree.c.

scGetEntrances

const SCENE_ENTRANCE *scGetEntrances(void)

References KolimaForestTreeEntrances.

Definition at line 157 of file kolima_forest_tree.c.

scGetExitRegions

const SCENE_EXIT_REGION *scGetExitRegions(void)

The region at Tret's foot that leads into the Tret Tree.

References KolimaForestTreeRegions.

Definition at line 163 of file kolima_forest_tree.c.

scGetExits

const Uint32 *scGetExits(void)

The ways back (SceneIdKolimaForestFloodgate) and into the Tret Tree (SceneIdTreeRooms).

References KolimaForestTreeExits.

Definition at line 170 of file kolima_forest_tree.c.

scGetActorPlacements

const ACTOR_PLACE *scGetActorPlacements(void)

Tret and Laurel, the blank actors at their spots, the ones the party talks to, Tret's wrathful side, and Garet, Ivan and Mia for the healing.

References KolimaForestTreeActorPlacements.

Definition at line 177 of file kolima_forest_tree.c.

scKolimaForestTreeExitTouchedRegion

static void scKolimaForestTreeExitTouchedRegion(void)

Unused: takes the touched exit after the leader's current movement. No cue row names it.

References fdActorWalkByAndWait(), fdScriptEnd(), fdScriptStart(), state and syImportScriptSetExitRequest().

Definition at line 184 of file kolima_forest_tree.c.

scGetCues

const CUE *scGetCues(void)

Talking to Tret and Laurel, reading their minds, and Hermes' Water on Tret.

References KolimaForestTreeCues.

Definition at line 196 of file kolima_forest_tree.c.

scKolimaForestTreeTalkToLaurel

static void scKolimaForestTreeTalkToLaurel(void)

In Kolima Forest (SceneIdKolimaForestTree), the first time the party talks to Laurel (ACTOR_LAUREL_STAND_IN), she asks who the party is.

References fdActorSetAnimationAndWait(), fdScriptEnd(), fdScriptGetFlag(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptWait(), gmFlagGet(), gmFlagSet() and scKolimaForestTreeChangeFace().

Referenced by KolimaForestTreeCues.

Definition at line 203 of file kolima_forest_tree.c.

scKolimaForestTreeTalkToTret

static void scKolimaForestTreeTalkToTret(void)

In Kolima Forest (SceneIdKolimaForestTree), talking to Tret (ACTOR_TRET_STAND_IN) finds him silent until the curse is lifted.

References fdActorRunRepeatedMotion(), fdPaletteFadeApplyTarget(), fdPaletteFadeStartInterpolation(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), gmFlagGet(), gmPartyInventoryFindMember(), scFieldScriptShowMessageThenWait(), scKolimaForestTreeChangeFace(), Sint32 and sySynch().

Referenced by KolimaForestTreeCues.

Definition at line 253 of file kolima_forest_tree.c.

scKolimaForestTreeReadLaurelThoughts

static void scKolimaForestTreeReadLaurelThoughts(void)

In Kolima Forest (SceneIdKolimaForestTree), Mind Read on Laurel hears her thoughts.

References fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart() and gmFlagGet().

Referenced by KolimaForestTreeCues.

Definition at line 312 of file kolima_forest_tree.c.

scKolimaForestTreeReadTretThoughts

static void scKolimaForestTreeReadTretThoughts(void)

In Kolima Forest (SceneIdKolimaForestTree), Mind Read on Tret hears his thoughts.

References fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart() and gmFlagGet().

Referenced by KolimaForestTreeCues.

Definition at line 331 of file kolima_forest_tree.c.

scKolimaForestTreeUseHermesWater

static void scKolimaForestTreeUseHermesWater(void)

In Kolima Forest (SceneIdKolimaForestTree), using Hermes' Water on Tret while the curse lasts heals him only once the evil within him is defeated in the Tret Tree (FLAG_TRET_DEFEATED). Before that his wrathful side repels it (scKolimaForestTreeRejectHermesWater). Afterwards it heals him (scKolimaForestTreeRestoreTret).

References fdEndBusyAndReveal(), fdScriptEnd(), fdScriptStart(), gmFlagGet(), scKolimaForestTreeRejectHermesWater() and scKolimaForestTreeRestoreTret().

Referenced by KolimaForestTreeCues.

Definition at line 353 of file kolima_forest_tree.c.

scKolimaForestTreeFaceParty

static inline void scKolimaForestTreeFaceParty(Sint32 facing, Sint32 waitTicks)

Turns the four of them to facing together, then waits waitTicks.

References fdActorFaceDirection() and Sint32.

Referenced by scKolimaForestTreeRestoreTret().

Definition at line 434 of file kolima_forest_tree.c.

scInit

Sint32 scInit(void)

Sets up Tret, Laurel and the forest's colours on entry.

References fdActorGet(), fdActorSetAnimation(), fdActorSetSpriteColorById(), fdActorSetSpriteFlags(), fdActorSetSpritePriority(), gmFlagGet(), MainRoutineStateWork, scKolimaPaletteCurse(), Sint32 and sySynch().

Definition at line 877 of file kolima_forest_tree.c.

scKolimaForestTreeSwapFaces

static inline void scKolimaForestTreeSwapFaces(Sint32 actorId, Sint32 firstFace, Sint32 secondFace)

Alternates two faces twice, ending on the first.

References fdActorSetAnimation(), Sint32 and sySynch().

Referenced by scKolimaForestTreeChangeFace().

Definition at line 985 of file kolima_forest_tree.c.

scKolimaForestTreeUpdateOrbitSpark

static void scKolimaForestTreeUpdateOrbitSpark(ACTOR *spark)

Moves a sparkle out along its spiral, swelling, for ORBIT_SPARK_TICKS; then it is gone.

References fdActorRelease(), Sint32, syVectorAddPolarOffset() and syVRAMCacheFreeEntry().

Referenced by scKolimaForestTreeSpawnOrbitSparks().

Definition at line 1103 of file kolima_forest_tree.c.

Variables in detail

KolimaForestTreeGaretApproachActions

extern Sint32 KolimaForestTreeGaretApproachActions[]

Sint32 KolimaForestTreeGaretApproachActions[]

Garet, Ivan and Mia step out from the leader to stand round him before Tret (scKolimaForestTreeRestoreTret), and at the end walk back into him.

References Sint32.

Referenced by scKolimaForestTreeRestoreTret().

Definition at lines 68 and 1183 of file kolima_forest_tree.c.

KolimaForestTreeIvanApproachActions

extern Sint32 KolimaForestTreeIvanApproachActions[]

Sint32 KolimaForestTreeIvanApproachActions[]

References Sint32.

Referenced by scKolimaForestTreeRestoreTret().

Definition at lines 69 and 1193 of file kolima_forest_tree.c.

KolimaForestTreeMiaApproachActions

extern Sint32 KolimaForestTreeMiaApproachActions[]

Sint32 KolimaForestTreeMiaApproachActions[]

References Sint32.

Referenced by scKolimaForestTreeRestoreTret().

Definition at lines 70 and 1203 of file kolima_forest_tree.c.

KolimaForestTreeReturnToPartyActions

extern Sint32 KolimaForestTreeReturnToPartyActions[]

Sint32 KolimaForestTreeReturnToPartyActions[]

References Sint32.

Referenced by scKolimaForestTreeRestoreTret().

Definition at lines 71 and 1213 of file kolima_forest_tree.c.

KolimaForestTreeEntrances

extern SCENE_ENTRANCE KolimaForestTreeEntrances[]

SCENE_ENTRANCE KolimaForestTreeEntrances[]

Referenced by scGetEntrances().

Definition at lines 72 and 1223 of file kolima_forest_tree.c.

KolimaForestTreeRegions

extern SCENE_EXIT_REGION KolimaForestTreeRegions[]

SCENE_EXIT_REGION KolimaForestTreeRegions[]

Referenced by scGetExitRegions().

Definition at lines 73 and 1232 of file kolima_forest_tree.c.

KolimaForestTreeExits

extern Uint32 KolimaForestTreeExits[]

Uint32 KolimaForestTreeExits[]

Referenced by scGetExits().

Definition at lines 74 and 1237 of file kolima_forest_tree.c.

KolimaForestTreeActorPlacements

extern ACTOR_PLACE KolimaForestTreeActorPlacements[]

ACTOR_PLACE KolimaForestTreeActorPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 75 and 1245 of file kolima_forest_tree.c.

KolimaForestTreeCues

extern CUE KolimaForestTreeCues[]

CUE KolimaForestTreeCues[]

References scKolimaForestTreeReadLaurelThoughts(), scKolimaForestTreeReadTretThoughts(), scKolimaForestTreeTalkToLaurel(), scKolimaForestTreeTalkToTret() and scKolimaForestTreeUseHermesWater().

Referenced by scGetCues().

Definition at lines 76 and 1269 of file kolima_forest_tree.c.

KolimaForestTreeRepelRingScript

extern Sint32 KolimaForestTreeRepelRingScript[]

Sint32 KolimaForestTreeRepelRingScript[]

References scFieldEffectStretchUntilArrived() and Sint32.

Referenced by scKolimaForestTreeSpawnRepelSpark().

Definition at lines 77 and 1286 of file kolima_forest_tree.c.

KolimaForestTreeSparkOrigin

Sint32 KolimaForestTreeSparkOrigin[3]

Where Tret's sparks spring from (16.16 pixels), the tick of their cycle, whether a repelling spark plays its sound, and the ticks of the healing palette's spread.

References Sint32.

Referenced by scKolimaForestTreeRestoreTret() and scKolimaForestTreeSpawnOrbitSparks().

Definition at line 145 of file kolima_forest_tree.c.

KolimaForestTreeSparkTick

Sint32 KolimaForestTreeSparkTick

References Sint32.

Referenced by scKolimaForestTreeRestoreTret() and scKolimaForestTreeSpawnOrbitSparks().

Definition at line 146 of file kolima_forest_tree.c.

KolimaForestTreePlaySparkSound

Sint32 KolimaForestTreePlaySparkSound

References Sint32.

Referenced by scKolimaForestTreeRejectHermesWater() and scKolimaForestTreeSpawnRepelSpark().

Definition at line 147 of file kolima_forest_tree.c.

KolimaForestTreePaletteTick

Sint32 KolimaForestTreePaletteTick

References Sint32.

Referenced by scKolimaForestTreeRestoreTret() and scKolimaForestTreeUpdateHealingPalette().

Definition at line 148 of file kolima_forest_tree.c.

KolimaForestTreeUnusedAfterPaletteTick

Uint8 KolimaForestTreeUnusedAfterPaletteTick[8]

Unused: eight bytes after the palette tick that nothing reads.

Definition at line 150 of file kolima_forest_tree.c.

KolimaPaletteHealthy

Uint8 KolimaPaletteHealthy[1792]

The healthy colours, kept by scKolimaPaletteSaveHealthy: the palette fade's 448 background and sprite colours, in the array's first half.

Referenced by scKolimaPaletteRestore() and scKolimaPaletteSaveHealthy().

Definition at line 153 of file kolima_forest_tree.c.

KolimaPaletteCursed

Uint8 KolimaPaletteCursed[896]

The cursed colours, kept by scKolimaPaletteSaveCursed.

Referenced by scKolimaPaletteRestore() and scKolimaPaletteSaveCursed().

Definition at line 155 of file kolima_forest_tree.c.