Skip to Content
The Alchemy Project

src/scene/goma_cave_pond.c

Goma Cave (SceneIdGomaCavePond), the room below the room of two pillars and a stump, in the cave in the Goma Range that the mayor of Vault tells the party to pass through on the way to Bilibin. More…

Enumerations

NameDescription
enumGOMA_CAVE_POND_ACTOR_ID { ACTOR_FALLEN_STUMP }The room's one placed actor.

Functions

NameDescription
const SCENE_ENTRANCE *scGetEntrances (void)The six rooms share one entrance table.
const SCENE_EXIT_REGION *scGetExitRegions (void)The scene has no exit regions: its regions entry returns none.
const Uint32 *scGetExits (void)Both scenes share one exit table.
const ACTOR_PLACE *scGetActorPlacements (void)Some villagers only turn back after talking once the flood is over or their family has gone home.
const CUE *scGetCues (void)The first water beast's cave changes its cues once the first drain has lowered its water: the beast is gone and its two puddles can be frozen.
Sint32scInit (void)Sets up the room as the party enters.

Variables

NameDescription
extern SCENE_ENTRANCEGomaCavePondEntrances []
extern Uint32GomaCavePondExits []
extern ACTOR_PLACEGomaCavePondActorPlacements []
extern CUEGomaCavePondCues []

Description

Goma Cave (SceneIdGomaCavePond), the room below the room of two pillars and a stump, in the cave in the Goma Range that the mayor of Vault tells the party to pass through on the way to Bilibin.

The room is reached only from the room above (goma_cave_pillar.c). Its three exits lead back up to that room's GOMA_CAVE_PILLAR_FROM_GOMA_CAVE_POND_WEST, _SOUTH and _EAST. It has no scripts of its own.

Its one placed actor is the stump the party pushes over the edge up there with Move. Once it has fallen (FLAG_GOMA_CAVE_STUMP_FELL), entering finds it sunk in the pond until only its top shows (STUMP_ANIMATION_SINK), drawn underfoot with no collision flags.

The five by five metatiles around it are open water in the room's render (places/goma-cave-pond/map-1.png). They are replaced by a copy that adds METATILE_BEHAVIOR_JUMP_FORWARD metatiles, so the leader can jump across the water by way of the stump.

The flag is an area temp flag, so the stump is back up in the room above once the party leaves Goma Cave's four scenes.

Enumerations in detail

GOMA_CAVE_POND_ACTOR_ID

enum GOMA_CAVE_POND_ACTOR_ID

The room's one placed actor.

EnumeratorValueDescription
ACTOR_FALLEN_STUMPACTOR_FIRST_PLACEDThe stump the party pushes over in the room above, lying in this room.

Definition at line 33 of file goma_cave_pond.c.

Functions in detail

scGetEntrances

const SCENE_ENTRANCE *scGetEntrances(void)

References GomaCavePondEntrances.

Definition at line 39 of file goma_cave_pond.c.

scGetExitRegions

const SCENE_EXIT_REGION *scGetExitRegions(void)

Definition at line 44 of file goma_cave_pond.c.

scGetExits

const Uint32 *scGetExits(void)

References GomaCavePondExits.

Definition at line 49 of file goma_cave_pond.c.

scGetActorPlacements

const ACTOR_PLACE *scGetActorPlacements(void)

References GomaCavePondActorPlacements.

Definition at line 54 of file goma_cave_pond.c.

scGetCues

const CUE *scGetCues(void)

References GomaCavePondCues.

Definition at line 59 of file goma_cave_pond.c.

scInit

Sint32 scInit(void)

Sets up the room as the party enters.

References fdActorGet(), fdActorSetAnimation(), fdActorSetSpriteFlags(), fdMapGridCopyMetatileAttributes(), gmFlagGet(), Sint32 and state.

Definition at line 65 of file goma_cave_pond.c.

Variables in detail

GomaCavePondEntrances

extern SCENE_ENTRANCE GomaCavePondEntrances[]

SCENE_ENTRANCE GomaCavePondEntrances[]

Referenced by scGetEntrances().

Definition at lines 27 and 86 of file goma_cave_pond.c.

GomaCavePondExits

extern Uint32 GomaCavePondExits[]

Uint32 GomaCavePondExits[]

Referenced by scGetExits().

Definition at lines 28 and 120 of file goma_cave_pond.c.

GomaCavePondActorPlacements

extern ACTOR_PLACE GomaCavePondActorPlacements[]

ACTOR_PLACE GomaCavePondActorPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 29 and 135 of file goma_cave_pond.c.

GomaCavePondCues

extern CUE GomaCavePondCues[]

CUE GomaCavePondCues[]

Referenced by scGetCues().

Definition at lines 30 and 142 of file goma_cave_pond.c.