Skip to Content
The Alchemy Project

src/scene/magma_rock.c

Magma Rock's outside: the climb up the mountain across the river from Naribwe, past yellow statues that answer Burst, to the great fire on its top that hides the way down into it. More…

Macros

NameDescription
#defineFLAG_ENTRANCE_PILLAR_A_PUSHED 0x8d5Each pushed pillar's flag keeps it where it was pushed: two at the entrance, one on each of the cliff's high west, high east and low west levels and two on its low east level.
#defineFLAG_ENTRANCE_PILLAR_B_PUSHED 0x8d6
#defineFLAG_HIGH_WEST_PILLAR_B_PUSHED 0x8d7
#defineFLAG_HIGH_EAST_PILLAR_PUSHED 0x8d8
#defineFLAG_LOW_WEST_PILLAR_PUSHED 0x8d9
#defineFLAG_LOW_EAST_PILLAR_A_PUSHED 0x8da
#defineFLAG_LOW_EAST_PILLAR_B_PUSHED 0x8db
#defineFLAG_WAY_IN_BLASTED 0x8dcThe top's great fire is put out and the rocks round it scattered, which opens the way into Magma Rock (scMagmaRockScatterEmbers).
#defineFLAG_CRACKED_PILLAR_A_BURST FLAG_SCENE_TEMP(0x00)Set as Burst breaks each cracked pillar, until the scene is left.
#defineFLAG_CRACKED_PILLAR_B_BURST FLAG_SCENE_TEMP(0x01)
#defineFLAG_CRACKED_PILLAR_C_BURST FLAG_SCENE_TEMP(0x02)
#defineFLAG_CRACKED_PILLAR_D_BURST FLAG_SCENE_TEMP(0x03)
#defineFLAG_CRACKED_PILLAR_E_BURST FLAG_SCENE_TEMP(0x04)
#defineFLAG_CRUMBLING_PILLAR_A_CRACKED FLAG_SCENE_TEMP(0x00)The high west level's crumbling pillars: each one's flag is set once it has cracked under the leader, and the flag after it once it has fallen.
#defineFLAG_CRUMBLING_PILLAR_B_CRACKED FLAG_SCENE_TEMP(0x02)
#defineFLAG_CAVE_DOOR_USED FLAG_SCENE_TEMP(0xf8)Set once Felix has been on the cave mouth's metatile (scMagmaRockEnterCave), so that when the game moves him onto it he is not sent straight in; his next step there by himself clears it (scMagmaRockResetCaveDoor).
#defineFLAG_HIGH_WEST_STATUE_READY FLAG_SCENE_TEMP(0x12)Set while Felix stands just behind the high west level's statue, the one place Burst can wake it from (scMagmaRockReadyHighWestStatue).
#defineFLAG_LEADER_KNOCKED_DOWN FLAG_SCENE_TEMP(0x60)Set while a fireball knocks Felix off the high east wall (scMagmaRockKnockLeaderOffWall); the fireballs stop whooshing meanwhile.
#defineFLAG_VINE_A_GROWN FLAG_SCENE_TEMP(0x50)The cliff's low east level: each vine Growth has grown there.
#defineFLAG_VINE_B_GROWN FLAG_SCENE_TEMP(0x51)
#defineFLAG_VINE_C_GROWN FLAG_SCENE_TEMP(0x52)
#defineFLAG_LOW_WEST_ROPE_LASHED FLAG_SCENE_TEMP(0x50)Its low west level: the rope Lash ties between the two posts.
#defineFLAME_RISE_TICK 35A burning statue's flame column (scMagmaRockBurnStatue): from tick 35 of its burning each part rises 8 pixels a tick to its level, 16 pixels above the one below, and from tick 332 sinks as fast; the cap on top rises a tick ahead of the column.
#defineFLAME_SINK_TICK 332
#defineFLAME_SPEED toFIXED(8)
#defineFLAME_LEVEL_HEIGHT toFIXED(16)
#definePILLAR_CRUMBLE_TICK 178The tick of Burst's explosions at which a cracked pillar they shake starts to crumble to a stump (its animation 3), before the last blast takes it away.
#defineEFFECT_SET_MODE fdActorSelectAnimation
#defineEFFECT_SET_SCRIPT fdActorStartScript
#defineEFFECT_SPRITE_PRIORITY
#defineDEFINE_BURST_ENTRANCE_OR_CLIFF_PILLAR (Burst at a cracked pillar at the entrance or on the cliff: the pillar breaks (scMagmaRockBurstCrackedPillar) and its flag keeps it gone until the party leaves.
#defineDEFINE_BURST_CRACKED_PILLAR (name, pillar, flag)Defines what Burst does to a cracked pillar: it breaks the pillar actor (scMagmaRockBurstCrackedPillar) and sets its flag.

Enumerations

NameDescription
enumMAGMA_ROCK_CLIFF_LEVEL { CLIFF_HIGH_WEST_LAST_ENTRANCE, CLIFF_HIGH_EAST_LAST_ENTRANCE … }The cliff's four levels, by the last entrance of each: its high west and high east halves, then the low west and low east halves below them.
enumMAGMA_ROCK_CLIFF_ENTRANCE { ENTRANCE_HIGH_WEST_FROM_BELOW_A, ENTRANCE_HIGH_WEST_FROM_BEL … }The cliff's entrances from within the scene, by the level each opens onto and the level it leads from; scene_exits.h names those from the entrance and the top.
enumMAGMA_ROCK_CLIFF_EXIT { EXIT_HIGH_WEST_DOWN_A, EXIT_HIGH_WEST_DOWN_B, EXIT_HIGH_WEST … }The cliff's exits from one of its levels to another, each leading to the entrance of the same letter: the high west level's two walls down to the low west level and the high east level's down to the low east level, the walls back up, and the paths between the levels side by side.
enumMAGMA_ROCK_METATILE_BEHAVIOR { METATILE_BEHAVIOR_MAGMA_ROCK_CAVE_DOOR, METATILE_BEHAVIOR_MA … }The metatile behaviours the scene's cues answer.
enumanonymous enum { CUE_FIREBALL_HITS_LEADER }The cue a fireball raises as it runs into the leader (FIELD_STATE.raisedCue), which the high east level answers by knocking him off the wall.
enumMAGMA_ROCK_ENTRANCE_ACTOR_ID { ACTOR_ENTRANCE_PILLAR_A, ACTOR_ENTRANCE_COLUMN_STATUE, ACTOR … }The entrance: its two stone pillars, the statue on the west of the upper ledge whose cap rides up on a column of flame, the statue on the east of it that spits fire, the pair of statues on either side of the cave mouth with a fireball flying between them, and its cracked pillars, lettered as the scripts that break them: E on the upper ledge, A to D in front of the cave mouth.
enumMAGMA_ROCK_CLIFF_HIGH_WEST_ACTOR_ID { ACTOR_HIGH_WEST_PILLAR_A, ACTOR_CRUMBLING_PILLAR_A, ACTOR_CR … }The cliff's high west level: two stone pillars to push, the two crumbling pillars, the tightrope's posts, and the statue that spits fire at the cracked pillar east of it.
enumMAGMA_ROCK_CLIFF_HIGH_EAST_ACTOR_ID { ACTOR_STATUE_PAIR_A_WEST, ACTOR_STATUE_PAIR_A_EAST, ACTOR_ST … }Its high east level: three pairs of statues facing each other across the wall Felix climbs, one above another, with a fireball flying between each pair, two statues whose caps ride up on columns of flame, and a stone pillar to push.
enumMAGMA_ROCK_CLIFF_LOW_WEST_ACTOR_ID { ACTOR_LOW_WEST_PILLAR, ACTOR_LOW_WEST_COLUMN_STATUE_A, ACTOR … }Its low west level: a stone pillar to push, two statues whose caps ride up on columns of flame, and the posts Lash ties the rope between.
enumMAGMA_ROCK_CLIFF_LOW_EAST_ACTOR_ID { ACTOR_LOW_EAST_PILLAR_A, ACTOR_LOW_EAST_PILLAR_B, ACTOR_LOW_ … }Its low east level: two stone pillars to push, the cracked pillar, two statues that spit fire, one whose cap rides up on a column of flame, and three sprouts.
enumMAGMA_ROCK_SUMMIT_ACTOR_ID { ACTOR_GREAT_FIRE, ACTOR_SUMMIT_STATUE }The top: the great fire before the way in, and the statue east of it that spits fire at it.

Functions

NameDescription
ACTOR *scMagmaRockCreateEffectActor (Sint32 x, Sint32 y, Sint32 z, Sint32 kind)Unused: creates a hidden effect actor at a place: no motion, never targeted, drawn under the actors.
voidscMagmaRockFightFury (void)Unused: talking to Fury starts its battle, as in Magma Rock's inside; no Fury stands outside.
Sint32fdMapGetTerrainHeight (Sint32 layer, Sint32 x, Sint32 z)The ground height of a layer at (x, z), 16.16 pixels (fdMapGridGetTerrainHeight, through the overlay's own import row).
voidscMagmaRockSettleBlocks (Uint16 *ids)For each pillar of a list ended by ACTOR_LIST_END: raises its metatile to its top, keeps the metatile's attributes, and where it stands on a climbable metatile (MAP_METATILE_CLIMBABLE) blocks the metatiles ahead of and behind it.
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.
voidscMagmaRockStartPushingPillar (void)Nothing visible happens as Felix starts to push one of the striped stone pillars, with Move or by walking into it; the push itself is the field engine's.
Sint32scMagmaRockEndScript ()The overlay's stub to fdScriptEnd.
Sint32scMagmaRockFinishPushingPillar (void)A striped stone pillar comes to rest after a push, and stands in the way again where it stopped.
voidsyImportFieldPsynergySetupActorPair (Sint32 owner, Uint16 value)The overlay's import stub that sets up a field Psynergy's caster and target.
voidscMagmaRockPlayBurst (Uint16 value)Plays Burst from the leader at an actor, outside the cue table: the explosion a statue's fireball makes where it lands.
voidscMagmaRockThrowEmbers (ACTOR *actor)A statue's update when the fireball of its pair reaches it: it throws embers and blinks red, faster and faster, flashes white, and after 144 ticks spits the fireball back.
voidfdActorPlaySoundInView (ACTOR *actor, Sint32 value)Plays sound when the actor is in view: within 152 pixels across and 112 up or down the screen of the actor the camera follows.
voidscMagmaRockLeaveEmbers (ACTOR *actor)The update of a fireball or a statue's fire: every fourth tick it leaves an ember near it, drifting a little north or south, and every sixteenth it whooshes, unless one has just knocked Felix down.
voidscMagmaRockMoveFireball (ACTOR *actor)A fireball's update: it flies toward the other statue of its pair leaving embers; running into Felix raises CUE_FIREBALL_HITS_LEADER and takes it away, and reaching the statue hands it over (scMagmaRockThrowEmbers).
voidscMagmaRockPlaceFireball (Uint16 id, Sint16 first, Sint16 side)Unless the party keeps its place: sets a fireball on one statue of the pair whose first statue is first (side 0 that one, 1 the other), facing the other, and starts it flying.
voidscMagmaRockWarnStatue (ACTOR *actor)The update of a statue Burst has woken, counting down from 1,024 while no menu, Psynergy or item is in use: it blinks red quickly, then slowly from 528, and from 400 it burns (scMagmaRockBurnStatue).
Sint32scMagmaRockLookUpMetatileStatue (Sint32 x, Sint32 z, Uint16 *table)Looks up the metatile at (x, z) in an (actor, metatile, value) table ended by ACTOR_LIST_END and returns the value of its row.
voidscMagmaRockTargetStatue (Sint32 stage)Felix casts Burst at one of the yellow statues, and it glows red while the explosions go off round it, blinking faster at the last blast.
voidscMagmaRockDriftAndSlow (ACTOR *actor)An ember's update: it moves by its velocity, kept in bounce, gravity and sceneWord, and slows by an eighth.
Sint32scPosFlatDistance (FIXED *a, FIXED *b)The distance between two positions across the ground (x and z), in whole pixels.
Sint32scMagmaRockFireFromStatue (ACTOR *source)A statue's fireball flies straight ahead, the camera following it, until it meets the edge of its ledge, a striped stone pillar or anything else standing in its way: at the edge or a stone pillar it bursts into embers, and on anything else it explodes as Burst does (scMagmaRockPlayBurst).
voidscMagmaRockFireStatue (void)After Felix's Burst, the yellow statue he cast it at flashes white and spits a fireball straight ahead: on the entrance's statues' ledge and the high west level at the cracked pillar beyond it, which the fireball's blast breaks, and on the top at the great fire.
voidscMagmaRockIgniteStatue (void)After Felix's Burst, a yellow statue with a grey cap blinks red for about ten seconds, faster at first; then fire bursts from it and its cap rides up on a column of flame for about five seconds, carrying Felix up to the ledge above if he is standing on it, before it sinks again.
voidscMagmaRockBurstCrackedPillar (Sint32 stage, Sint32 tick)Burst goes off at a cracked pillar: rocks fly up round it, one a tick while the explosions shake the ground and eight at the last blast, the pillar crumbles to a stump at PILLAR_CRUMBLE_TICK, and the last blast takes it away.
voidscMagmaRockRaiseFlamePart (ACTOR *part)The update of one of the four parts of a statue's flame column (scMagmaRockBurnStatue): it rises and sinks with the statue's burning, and is released once sunk.
voidscMagmaRockRaiseFlameTop (FIELD_OBJECT *object)The update of a statue's cap on top of its flame column: it rises and sinks with the column, a tick ahead, throws a flame puff every eighth tick, and raises the statue's metatile with it, so that the leader on the cap rides up.
voidscMagmaRockBurnStatue (ACTOR *actor)A statue's update once it burns: embers first, then at tick 33 its flame column of four parts rises, and the cap on its top with it (scMagmaRockRaiseFlameTop).
DEFINE_BURST_ENTRANCE_OR_CLIFF_PILLAR(MagmaRockBurstCrackedPillarA , ACTOR_CRACKED_PILLAR_A, ACTOR_HIGH_WEST_CRACKED_PILLAR_A, FLAG_CRACKED_PILLAR_A_BURST)Burst breaks the north-west one of the four cracked pillars in front of the entrance's cave mouth (metatile (15, 31)), or the cracked pillar on the cliff's high west level (metatile (22, 34)).
DEFINE_BURST_ENTRANCE_OR_CLIFF_PILLAR(MagmaRockBurstCrackedPillarB , ACTOR_CRACKED_PILLAR_B, ACTOR_LOW_EAST_CRACKED_PILLAR, FLAG_CRACKED_PILLAR_B_BURST)Burst breaks the north-east one of the four cracked pillars in front of the entrance's cave mouth (metatile (17, 31)), or the cracked pillar on the cliff's low east level (metatile (42, 39)) as its statue's fireball lands on it.
DEFINE_BURST_CRACKED_PILLAR(MagmaRockBurstCrackedPillarC , ACTOR_CRACKED_PILLAR_C, FLAG_CRACKED_PILLAR_C_BURST)Burst breaks the south-west one of the four cracked pillars in front of the entrance's cave mouth (metatile (14, 34)).
DEFINE_BURST_CRACKED_PILLAR(MagmaRockBurstCrackedPillarD , ACTOR_CRACKED_PILLAR_D, FLAG_CRACKED_PILLAR_D_BURST)Burst breaks the south-east one of the four cracked pillars in front of the entrance's cave mouth (metatile (18, 34)).
DEFINE_BURST_CRACKED_PILLAR(MagmaRockBurstCrackedPillarE , ACTOR_CRACKED_PILLAR_E, FLAG_CRACKED_PILLAR_E_BURST)The fireball of the statue at the east end of the entrance's upper ledge lands on the cracked pillar west of it (metatile (20, 25)), and the blast breaks the pillar, opening the climb up to the ledge where it stood.
voidscMagmaRockResetCaveDoor (void)Nothing visible happens when Felix, come out of the Ember Stone's room (MAGMA_ROCK_ENTRANCE_MAGMA_ROCK_INSIDE_EMBER_STONE), takes his first step of his own in the cave mouth above the entrance's cracked pillars (metatile (16, 28)).
voidscMagmaRockEnterCave (void)Felix walks north into the dark cave mouth above the entrance's cracked pillars (metatile (16, 28)) and goes inside Magma Rock, to the room of the Ember Stone.
voidscMagmaRockResolveBeforeBurst (void)Nothing visible happens as Felix begins to cast Burst at one of the yellow statues; the game settles whatever the field engine has pending before the statue's own scripts run (scMagmaRockTargetStatue).
voidscMagmaRockCheckCrumblingPillars (void)
voidscMagmaRockReadyHighWestStatue (void)Nothing visible happens when Felix steps onto the metatile just behind the yellow statue on the cliff's high west level (metatile (15, 34)); from then on Burst cast at the statue wakes it, so that it spits a fireball east at the cracked pillar.
voidscMagmaRockResetHighWestStatue (void)Nothing visible happens when Felix steps a metatile further west from behind the high west level's yellow statue (metatile (14, 34)); Burst no longer wakes the statue until he steps back behind it.
voidscMagmaRockKnockLeaderOffWall (void)A fireball flying between a pair of yellow statues on the cliff's high east wall hits Felix as he climbs: he turns grey among dark puffs, falls to the foot of the wall with a thump that shakes the ground, and shakes his head.
voidscMagmaRockInsideClearBlockMetatiles (ACTOR *actor)Opens again the overhead metatiles a marked pillar walled off (scBlocksMarkMetatiles) and clears its mark.
voidscMagmaRockInsidePushBlockOnto (void)Pushes the block ahead onto another, if nothing blocks the way.
voidscMagmaRockPushPillarEast (void)
voidscMagmaRockPushPillarWest (void)Felix walks west into the striped stone pillar beside the cracked pillar on the cliff's low east level, from any of metatiles (37, 38) to (40, 38), and pushes it a metatile west along a grey track; after four pushes it stands on the grey square at the track's end, metatile (35, 38), and stays there when the party comes back.
voidscMagmaRockGrowVineA (void)Growth on the west one of the two sprouts on the north-east ledge of the cliff's low east level (metatile (59, 39)) grows a vine up the wall above it.
voidscMagmaRockGrowVineB (void)Growth on the east one of the two sprouts on the north-east ledge of the cliff's low east level (metatile (61, 39)) grows a vine up the wall above it.
voidscMagmaRockGrowVineC (void)Growth on the sprout on the path where Felix comes up from the entrance, on the cliff's low east level (metatile (45, 41)), grows a vine up the wall above it.
voidscMagmaRockScatterEmbers (Sint32 x, Sint32 z)Four large flame puffs scatter round (x, z) in the blast at the great fire, and the way in stays open for good.
voidscMagmaRockFlashTarget (ACTOR *actor)The great fire's update as Burst plays on it: it blinks white on the ticks its mask picks.
voidscMagmaRockBlastWayIn (Sint32 stage, Sint32 tick)The statue's fireball explodes on the great fire on the top of Magma Rock: the fire blinks white as flame puffs scatter and rocks fly while the explosions shake the ground, and at the last blast the fire is gone and the rocks round it lie scattered, opening the way down into Magma Rock (metatiles (42, 17) to (46, 24)).
const CUE *scGetCues (void)The scene's cues: the rooms of names' for any entrance above ENTRANCE_NAMES_ABOVE, else the debug room's.
voidfdEffectAdvanceMotion ()An effect's update function: move by its velocity, which loses an eighteenth of its x and a sixteenth of its z each tick, and grow and spin at its rates.
voidscMagmaRockDropLeaderFromSummit (void)Felix arrives on the cliff's high east level by dropping from the top (MAGMA_ROCK_CLIFF_MAGMA_ROCK_SUMMIT_EAST_A): he falls in from 130 pixels up, lands with a thump in a ring of dust and leans back.
voidscMagmaRockLandLeader (void)Arriving with the party's place kept: sets the leader on the ground under it.
static inline voidscMagmaRockAttachFlamePart (ACTOR *part, ACTOR *anchor, Uint8 order)Hangs a part of a flame column on its statue at the given level (scMagmaRockRaiseFlamePart).
static inline voidscMagmaRockBuildFlameColumn (ACTOR *anchor)Builds the four parts of a statue's flame column on re-entry, as scMagmaRockBurnStatue does.
voidscMagmaRockRebuildFlameParts (Uint16 id)On entry: rebuilds the flame column under a statue's cap that was riding one when Felix left.
voidscMagmaRockPlaceRope ()The overlay's import stub to fdRopePlaceStub.
Sint32scInit (void)Sets up the map entered: the pushed pillars where they were left, the statues and their caps, the fireballs flying between the statue pairs, the tightrope and the rope, the grown vines and the blasted way in; then lifts Felix onto the wall or ledge he came in by.
Sint32scPrepareMap (void)Once Briggs is caught the pool has dried up: its colours take the dry ground's.
voidscMagmaRockRestoreCrumblingPillars (const Uint16 *table)On entry: sets each listed pillar from its two flags (cracked, then fallen), then lifts the leader onto the ground under it.
voidscMagmaRockSpawnDustRing (void)Throws a ring of dust clouds out from Felix as he lands with a crumbled pillar.
voidscMagmaRockStepOnCrumblingPillar (Uint16 *list)Felix on a crumbling pillar: the first time it cracks with a flash, the second time it crumbles and he drops with it, landing with a thump in a ring of dust.
voidscMagmaRockCrumblePillar (MAGMA_ROCK_CRUMBLING_PILLAR *entry, Sint32 id)Unused: a crumbling pillar named in the (actor, flag) table gives way with a shake, dust and a thump.
voidscMagmaRockStepOnTrap (Uint16 *list)Unused: stepping onto a crumbling floor: the first time it shakes and cracks, the second time it gives way with the leader.
voidscMagmaRockDropRocks (Sint32 x, Sint32 y, Sint32 z, Sint32 count)Drops count rocks from (x, y, z), each flung out at a random angle.
voidsyImportDecompressTaggedLZ (void *entry, void *dest)The overlay's import stub to the tagged LZ decompressor.
voidscMagmaRockStartFallingRocks (void)Starts the falling rocks: loads their picture, prepares a small sprite for each rock and adds the event that draws them.

Variables

NameDescription
extern Sint32PushLeaderSteps []One metatile along each facing's nearest direction (PUSH_STEP).
extern SCENE_REGIONMagmaRockRegions []The exit regions of the entrance.
extern SCENE_REGIONMagmaRockCliffRegions []The exit regions of the cliff.
extern SCENE_REGIONMagmaRockSummitRegions []The exit regions of the top.
extern ACTOR_PLACEMagmaRockPlacements []The actors placed at the entrance.
extern ACTOR_PLACEMagmaRockCliffHighWestPlacements []The actors placed in the cliff's high west level.
extern ACTOR_PLACEMagmaRockCliffHighEastPlacements []The actors placed in the cliff's high east level.
extern ACTOR_PLACEMagmaRockCliffLowWestPlacements []The actors placed in the cliff's low west level.
extern ACTOR_PLACEMagmaRockCliffLowEastPlacements []The actors placed in the cliff's low east level.
extern ACTOR_PLACEMagmaRockSummitPlacements []The actors placed on the top.
extern Sint32MagmaRockFlameEmberScript []A flame ember's actor script.
extern CUEMagmaRockCues []The cues of the entrance.
extern CUEMagmaRockCliffHighWestCues []The cues of the cliff's high west level.
extern CUEMagmaRockCliffHighEastCues []The cues of the cliff's high east level.
extern CUEMagmaRockCliffLowWestCues []The cues of the cliff's low west level.
extern CUEMagmaRockCliffLowEastCues []The cues of the cliff's low east level.
extern CUEMagmaRockSummitCues []The cues of the top.
Sint16MagmaRockEntrancePillars []The pillars Move pushes at the entrance, ended by -1.
Sint16MagmaRockEntranceStatues []The entrance's statues (scStatueFindUnderBurst): each row a statue, the metatile Burst finds it by and the cap its flame column raises (-1 for none), ended by -1.
Sint16MagmaRockCliffHighWestPillars []The pillars Move pushes on the cliff's high west level, ended by -1.
Sint16MagmaRockCliffHighWestStatues []The high west level's statues, as MagmaRockEntranceStatues.
Sint16MagmaRockCrumblingPillars []The high west level's crumbling pillars: (actor, flag) rows ended by -1, the flag set once the pillar has cracked and the next once it has fallen.
Sint16MagmaRockCliffHighEastStatues []The high east level's statues, as MagmaRockEntranceStatues.
Sint16MagmaRockCliffHighEastPillars []The pillars Move pushes on the high east level, ended by -1.
Sint16MagmaRockCliffLowWestStatues []The low west level's statues, as MagmaRockEntranceStatues.
Sint16MagmaRockCliffLowWestPillars []The pillars Move pushes on the low west level, ended by -1.
Sint16MagmaRockCliffLowEastPillars []The pillars Move pushes on the low east level, ended by -1.
Sint16MagmaRockCliffLowEastStatues []The low east level's statues, as MagmaRockEntranceStatues.
Sint16MagmaRockSummitStatues []The statue on the top, as MagmaRockEntranceStatues.
const Sint32 *FieldEffectDurationScripts []The field effects' three scripts by how long an effect lasts: short, medium and long.
Uint32SceneExits []The room has no exits of its own.

Description

Magma Rock's outside: the climb up the mountain across the river from Naribwe, past yellow statues that answer Burst, to the great fire on its top that hides the way down into it. Felix comes here for a Magma Ball to load Loho's cannon.

At the entrance (SceneIdMagmaRockEntrance) Lift moves a boulder off the path, and the cave mouth above it, between two statues throwing a fireball back and forth, leads a little way inside. Felix then climbs the wall by the cave mouth. Burst on the statue on the ledge above makes it spit a fireball that breaks a cracked pillar; pushing two stone pillars opens the climb, and Burst on the statue further west makes its cap rise on a column of flame, carrying Felix up to the next ledge.

The cliff above (SceneIdMagmaRockCliff, with the Salamander Tail's chest) is four screens on one map, which the code calls levels and tells apart by the entrance Felix came in by: the low east and low west halves of the cliff, then the high west and high east halves above them. Growth grows vines up its walls, Lash ties a rope, two dark pillars crumble under Felix's feet, more statues spit fire or lift him, and on the high east wall three pairs of statues throw fireballs that knock him off it. At the top (SceneIdMagmaRockSummit) Burst on the statue east of the great fire makes it spit a fireball into the fire, and the blast opens the way into Magma Rock.

Macros in detail

FLAG_ENTRANCE_PILLAR_A_PUSHED

#define FLAG_ENTRANCE_PILLAR_A_PUSHED 0x8d5

Each pushed pillar's flag keeps it where it was pushed: two at the entrance, one on each of the cliff's high west, high east and low west levels and two on its low east level.

Referenced by MagmaRockCues, scInit() and scMagmaRockFinishPushingPillar().

Definition at line 41 of file magma_rock.c.

FLAG_ENTRANCE_PILLAR_B_PUSHED

#define FLAG_ENTRANCE_PILLAR_B_PUSHED 0x8d6

Referenced by MagmaRockCues, scInit() and scMagmaRockFinishPushingPillar().

Definition at line 42 of file magma_rock.c.

FLAG_HIGH_WEST_PILLAR_B_PUSHED

#define FLAG_HIGH_WEST_PILLAR_B_PUSHED 0x8d7

Referenced by MagmaRockCliffHighWestCues, scInit() and scMagmaRockFinishPushingPillar().

Definition at line 43 of file magma_rock.c.

FLAG_HIGH_EAST_PILLAR_PUSHED

#define FLAG_HIGH_EAST_PILLAR_PUSHED 0x8d8

Referenced by MagmaRockCliffHighEastCues, scInit() and scMagmaRockFinishPushingPillar().

Definition at line 44 of file magma_rock.c.

FLAG_LOW_WEST_PILLAR_PUSHED

#define FLAG_LOW_WEST_PILLAR_PUSHED 0x8d9

Referenced by MagmaRockCliffLowWestCues, scInit(), scMagmaRockFinishPushingPillar() and scMagmaRockPushPillarEast().

Definition at line 45 of file magma_rock.c.

FLAG_LOW_EAST_PILLAR_A_PUSHED

#define FLAG_LOW_EAST_PILLAR_A_PUSHED 0x8da

Referenced by MagmaRockCliffLowEastCues, scInit() and scMagmaRockFinishPushingPillar().

Definition at line 46 of file magma_rock.c.

FLAG_LOW_EAST_PILLAR_B_PUSHED

#define FLAG_LOW_EAST_PILLAR_B_PUSHED 0x8db

Referenced by MagmaRockCliffLowEastCues, scInit(), scMagmaRockFinishPushingPillar() and scMagmaRockPushPillarWest().

Definition at line 47 of file magma_rock.c.

FLAG_WAY_IN_BLASTED

#define FLAG_WAY_IN_BLASTED 0x8dc

The top's great fire is put out and the rocks round it scattered, which opens the way into Magma Rock (scMagmaRockScatterEmbers).

Referenced by scInit() and scMagmaRockScatterEmbers().

Definition at line 50 of file magma_rock.c.

FLAG_CRACKED_PILLAR_A_BURST

#define FLAG_CRACKED_PILLAR_A_BURST FLAG_SCENE_TEMP(0x00)

Set as Burst breaks each cracked pillar, until the scene is left.

Referenced by MagmaRockCliffHighWestCues and MagmaRockCues.

Definition at line 52 of file magma_rock.c.

FLAG_CRACKED_PILLAR_B_BURST

#define FLAG_CRACKED_PILLAR_B_BURST FLAG_SCENE_TEMP(0x01)

Referenced by MagmaRockCliffLowEastCues and MagmaRockCues.

Definition at line 53 of file magma_rock.c.

FLAG_CRACKED_PILLAR_C_BURST

#define FLAG_CRACKED_PILLAR_C_BURST FLAG_SCENE_TEMP(0x02)

Referenced by MagmaRockCues.

Definition at line 54 of file magma_rock.c.

FLAG_CRACKED_PILLAR_D_BURST

#define FLAG_CRACKED_PILLAR_D_BURST FLAG_SCENE_TEMP(0x03)

Referenced by MagmaRockCues.

Definition at line 55 of file magma_rock.c.

FLAG_CRACKED_PILLAR_E_BURST

#define FLAG_CRACKED_PILLAR_E_BURST FLAG_SCENE_TEMP(0x04)

Referenced by MagmaRockCues.

Definition at line 56 of file magma_rock.c.

FLAG_CRUMBLING_PILLAR_A_CRACKED

#define FLAG_CRUMBLING_PILLAR_A_CRACKED FLAG_SCENE_TEMP(0x00)

The high west level's crumbling pillars: each one's flag is set once it has cracked under the leader, and the flag after it once it has fallen. The first's is FLAG_CRACKED_PILLAR_A_BURST's too.

Referenced by MagmaRockCrumblingPillars.

Definition at line 60 of file magma_rock.c.

FLAG_CRUMBLING_PILLAR_B_CRACKED

#define FLAG_CRUMBLING_PILLAR_B_CRACKED FLAG_SCENE_TEMP(0x02)

Referenced by MagmaRockCrumblingPillars.

Definition at line 61 of file magma_rock.c.

FLAG_CAVE_DOOR_USED

#define FLAG_CAVE_DOOR_USED FLAG_SCENE_TEMP(0xf8)

Set once Felix has been on the cave mouth's metatile (scMagmaRockEnterCave), so that when the game moves him onto it he is not sent straight in; his next step there by himself clears it (scMagmaRockResetCaveDoor).

Referenced by MagmaRockCues, scMagmaRockEnterCave() and scMagmaRockResetCaveDoor().

Definition at line 65 of file magma_rock.c.

FLAG_HIGH_WEST_STATUE_READY

#define FLAG_HIGH_WEST_STATUE_READY FLAG_SCENE_TEMP(0x12)

Set while Felix stands just behind the high west level's statue, the one place Burst can wake it from (scMagmaRockReadyHighWestStatue).

Referenced by MagmaRockCliffHighWestCues, scMagmaRockReadyHighWestStatue() and scMagmaRockResetHighWestStatue().

Definition at line 68 of file magma_rock.c.

FLAG_LEADER_KNOCKED_DOWN

#define FLAG_LEADER_KNOCKED_DOWN FLAG_SCENE_TEMP(0x60)

Set while a fireball knocks Felix off the high east wall (scMagmaRockKnockLeaderOffWall); the fireballs stop whooshing meanwhile.

Referenced by scMagmaRockKnockLeaderOffWall() and scMagmaRockLeaveEmbers().

Definition at line 71 of file magma_rock.c.

FLAG_VINE_A_GROWN

#define FLAG_VINE_A_GROWN FLAG_SCENE_TEMP(0x50)

The cliff's low east level: each vine Growth has grown there.

Referenced by MagmaRockCliffLowEastCues, scInit() and scMagmaRockGrowVineA().

Definition at line 73 of file magma_rock.c.

FLAG_VINE_B_GROWN

#define FLAG_VINE_B_GROWN FLAG_SCENE_TEMP(0x51)

Referenced by MagmaRockCliffLowEastCues, scInit() and scMagmaRockGrowVineB().

Definition at line 74 of file magma_rock.c.

FLAG_VINE_C_GROWN

#define FLAG_VINE_C_GROWN FLAG_SCENE_TEMP(0x52)

Referenced by MagmaRockCliffLowEastCues, scInit() and scMagmaRockGrowVineC().

Definition at line 75 of file magma_rock.c.

FLAG_LOW_WEST_ROPE_LASHED

#define FLAG_LOW_WEST_ROPE_LASHED FLAG_SCENE_TEMP(0x50)

Its low west level: the rope Lash ties between the two posts.

Referenced by MagmaRockCliffLowWestCues and scInit().

Definition at line 77 of file magma_rock.c.

FLAME_RISE_TICK

#define FLAME_RISE_TICK 35

A burning statue's flame column (scMagmaRockBurnStatue): from tick 35 of its burning each part rises 8 pixels a tick to its level, 16 pixels above the one below, and from tick 332 sinks as fast; the cap on top rises a tick ahead of the column.

Referenced by scMagmaRockRaiseFlamePart() and scMagmaRockRaiseFlameTop().

Definition at line 226 of file magma_rock.c.

FLAME_SINK_TICK

#define FLAME_SINK_TICK 332

Referenced by scMagmaRockRaiseFlamePart() and scMagmaRockRaiseFlameTop().

Definition at line 227 of file magma_rock.c.

FLAME_SPEED

#define FLAME_SPEED toFIXED(8)

Referenced by scMagmaRockRaiseFlamePart() and scMagmaRockRaiseFlameTop().

Definition at line 228 of file magma_rock.c.

FLAME_LEVEL_HEIGHT

#define FLAME_LEVEL_HEIGHT toFIXED(16)

Referenced by scMagmaRockRaiseFlamePart() and scMagmaRockRaiseFlameTop().

Definition at line 229 of file magma_rock.c.

PILLAR_CRUMBLE_TICK

#define PILLAR_CRUMBLE_TICK 178

The tick of Burst's explosions at which a cracked pillar they shake starts to crumble to a stump (its animation 3), before the last blast takes it away.

Referenced by scMagmaRockBurstCrackedPillar().

Definition at line 233 of file magma_rock.c.

EFFECT_SET_MODE

#define EFFECT_SET_MODE fdActorSelectAnimation

Referenced by EFFECT_SPAWN.

Definition at line 360 of file magma_rock.c.

EFFECT_SET_SCRIPT

#define EFFECT_SET_SCRIPT fdActorStartScript

Referenced by EFFECT_SPAWN.

Definition at line 361 of file magma_rock.c.

EFFECT_SPRITE_PRIORITY

#define EFFECT_SPRITE_PRIORITY

Definition at line 362 of file magma_rock.c.

DEFINE_BURST_ENTRANCE_OR_CLIFF_PILLAR

#define DEFINE_BURST_ENTRANCE_OR_CLIFF_PILLAR(

Burst at a cracked pillar at the entrance or on the cliff: the pillar breaks (scMagmaRockBurstCrackedPillar) and its flag keeps it gone until the party leaves.

Definition at line 1431 of file magma_rock.c.

DEFINE_BURST_CRACKED_PILLAR

#define DEFINE_BURST_CRACKED_PILLAR(name, pillar, flag)

Defines what Burst does to a cracked pillar: it breaks the pillar actor (scMagmaRockBurstCrackedPillar) and sets its flag.

Definition at line 1470 of file magma_rock.c.

Enumerations in detail

MAGMA_ROCK_CLIFF_LEVEL

enum MAGMA_ROCK_CLIFF_LEVEL

The cliff's four levels, by the last entrance of each: its high west and high east halves, then the low west and low east halves below them. They share one map, but to the player each is a screen of its own, with its own placed actors and cues, left by climbing a wall off its top or foot. From the entrance the party climbs onto the low east level, and the high east level's wall leads up to the top.

EnumeratorValueDescription
CLIFF_HIGH_WEST_LAST_ENTRANCE3
CLIFF_HIGH_EAST_LAST_ENTRANCE8
CLIFF_LOW_WEST_LAST_ENTRANCE12

Definition at line 85 of file magma_rock.c.

MAGMA_ROCK_CLIFF_ENTRANCE

enum MAGMA_ROCK_CLIFF_ENTRANCE

The cliff's entrances from within the scene, by the level each opens onto and the level it leads from; scene_exits.h names those from the entrance and the top. Two walls lead up from the low west level to the high west level, A the western, and one from the low east level to the high east level; a path leads from the high west level to the high east, and two from the low west level to the low east.

EnumeratorValueDescription
ENTRANCE_HIGH_WEST_FROM_BELOW_A1
ENTRANCE_HIGH_WEST_FROM_BELOW_B
ENTRANCE_HIGH_WEST_FROM_HIGH_EAST
ENTRANCE_HIGH_EAST_FROM_HIGH_WEST
ENTRANCE_HIGH_EAST_FROM_BELOW7
ENTRANCE_LOW_WEST_FROM_ABOVE_A9
ENTRANCE_LOW_WEST_FROM_ABOVE_B
ENTRANCE_LOW_WEST_FROM_LOW_EAST_A
ENTRANCE_LOW_WEST_FROM_LOW_EAST_B
ENTRANCE_LOW_EAST_FROM_LOW_WEST_A
ENTRANCE_LOW_EAST_FROM_ABOVE
ENTRANCE_LOW_EAST_FROM_LOW_WEST_B

Definition at line 98 of file magma_rock.c.

MAGMA_ROCK_CLIFF_EXIT

enum MAGMA_ROCK_CLIFF_EXIT

The cliff's exits from one of its levels to another, each leading to the entrance of the same letter: the high west level's two walls down to the low west level and the high east level's down to the low east level, the walls back up, and the paths between the levels side by side.

EnumeratorValueDescription
EXIT_HIGH_WEST_DOWN_A1
EXIT_HIGH_WEST_DOWN_B
EXIT_HIGH_WEST_TO_HIGH_EAST
EXIT_HIGH_EAST_TO_HIGH_WEST
EXIT_HIGH_EAST_DOWN7
EXIT_LOW_WEST_UP_A9
EXIT_LOW_WEST_UP_B
EXIT_LOW_WEST_TO_LOW_EAST_A
EXIT_LOW_WEST_TO_LOW_EAST_B
EXIT_LOW_EAST_TO_LOW_WEST_A
EXIT_LOW_EAST_UP
EXIT_LOW_EAST_TO_LOW_WEST_B

Definition at line 118 of file magma_rock.c.

MAGMA_ROCK_METATILE_BEHAVIOR

enum MAGMA_ROCK_METATILE_BEHAVIOR

The metatile behaviours the scene's cues answer. The three maps and the cliff's four levels each read them their own way, so one number can stand for two places. Metatiles on raised ground hold their behaviour some rows south of where they show on screen.

EnumeratorValueDescription
METATILE_BEHAVIOR_MAGMA_ROCK_CAVE_DOOR2The cave mouth above the entrance's four cracked pillars, metatile (16, 28).
METATILE_BEHAVIOR_MAGMA_ROCK_CRUMBLING_PILLAR20The tops of the high west level's two crumbling pillars, metatiles (15, 29) and (17, 29).
METATILE_BEHAVIOR_MAGMA_ROCK_FIRING_STATUE30A statue that spits a fireball once Burst wakes it
METATILE_BEHAVIOR_MAGMA_ROCK_FIRING_STATUE_B31(scMagmaRockFireStatue): the entrance's, at metatile (25, 25), the high west level's while Felix stands behind it, and the low east level's upper one, at metatile (48, 39). The low east level's lower statue that spits fire, metatile (52, 40).
METATILE_BEHAVIOR_MAGMA_ROCK_CRACKED_PILLAR_A31The cracked pillars Burst breaks, lettered as the scripts that break them: at the entrance A to D in front of the cave mouth, metatiles (15, 31), (17, 31), (14, 34) and (18, 34), and E on the ledge above, metatile (20, 25); on the cliff A on the high west level, metatile (22, 34), and B on the low east level, metatile (42, 39).
METATILE_BEHAVIOR_MAGMA_ROCK_CRACKED_PILLAR_B
METATILE_BEHAVIOR_MAGMA_ROCK_CRACKED_PILLAR_C
METATILE_BEHAVIOR_MAGMA_ROCK_CRACKED_PILLAR_D
METATILE_BEHAVIOR_MAGMA_ROCK_CRACKED_PILLAR_E
METATILE_BEHAVIOR_MAGMA_ROCK_PILLAR_PUSH40Where walking into a
METATILE_BEHAVIOR_MAGMA_ROCK_COLUMN_STATUE_A50stone pillar pushes it: west of the low west level's pillar, metatile (14, 36), and east of the low east level's, metatiles (37, 38) to (40, 38). A statue whose grey
METATILE_BEHAVIOR_MAGMA_ROCK_COLUMN_STATUE_B51cap rides up on a column of flame a while after Burst wakes it (scMagmaRockIgniteStatue), a level's first and second: the entrance's at metatile (9, 25), the high east level's at metatiles (54, 33) and (58, 34), the low west level's at (6, 38) and (26, 41) and the low east level's at (44, 39).
METATILE_BEHAVIOR_MAGMA_ROCK_BESIDE_HIGH_WEST_STATUE50On the high
METATILE_BEHAVIOR_MAGMA_ROCK_PAST_HIGH_WEST_STATUE51west level, the metatile just behind its statue, metatile (15, 34), and the one behind that, metatile (14, 34).
METATILE_BEHAVIOR_MAGMA_ROCK_SUMMIT_STATUE50The statue east of the great fire on the top, metatile (50, 22).

Definition at line 138 of file magma_rock.c.

anonymous enum

enum { CUE_FIREBALL_HITS_LEADER }

The cue a fireball raises as it runs into the leader (FIELD_STATE.raisedCue), which the high east level answers by knocking him off the wall.

EnumeratorValueDescription
CUE_FIREBALL_HITS_LEADER200

Definition at line 217 of file magma_rock.c.

MAGMA_ROCK_ENTRANCE_ACTOR_ID

enum MAGMA_ROCK_ENTRANCE_ACTOR_ID

The entrance: its two stone pillars, the statue on the west of the upper ledge whose cap rides up on a column of flame, the statue on the east of it that spits fire, the pair of statues on either side of the cave mouth with a fireball flying between them, and its cracked pillars, lettered as the scripts that break them: E on the upper ledge, A to D in front of the cave mouth.

EnumeratorValueDescription
ACTOR_ENTRANCE_PILLAR_AACTOR_FIRST_PLACED
ACTOR_ENTRANCE_COLUMN_STATUE
ACTOR_ENTRANCE_PILLAR_B
ACTOR_CRACKED_PILLAR_E
ACTOR_ENTRANCE_FIRING_STATUE
ACTOR_ENTRANCE_PAIR_WEST_STATUE
ACTOR_ENTRANCE_PAIR_EAST_STATUE
ACTOR_CRACKED_PILLAR_A
ACTOR_CRACKED_PILLAR_B
ACTOR_CRACKED_PILLAR_C
ACTOR_CRACKED_PILLAR_D
ACTOR_ENTRANCE_BOULDERThe boulder Lift raises off the path.
ACTOR_ENTRANCE_STATUE_CAP
ACTOR_ENTRANCE_FIREBALLThe fireball flying between the pair, drawn as SPRITE_FLAME_PUFF.

Definition at line 241 of file magma_rock.c.

MAGMA_ROCK_CLIFF_HIGH_WEST_ACTOR_ID

enum MAGMA_ROCK_CLIFF_HIGH_WEST_ACTOR_ID

The cliff's high west level: two stone pillars to push, the two crumbling pillars, the tightrope's posts, and the statue that spits fire at the cracked pillar east of it.

EnumeratorValueDescription
ACTOR_HIGH_WEST_PILLAR_AACTOR_FIRST_PLACED
ACTOR_CRUMBLING_PILLAR_A
ACTOR_CRUMBLING_PILLAR_B
ACTOR_HIGH_WEST_TIGHTROPE_WEST_POST
ACTOR_HIGH_WEST_TIGHTROPE_EAST_POST
ACTOR_HIGH_WEST_FIRING_STATUE
ACTOR_HIGH_WEST_CRACKED_PILLAR_A
ACTOR_HIGH_WEST_PILLAR_B

Definition at line 263 of file magma_rock.c.

MAGMA_ROCK_CLIFF_HIGH_EAST_ACTOR_ID

enum MAGMA_ROCK_CLIFF_HIGH_EAST_ACTOR_ID

Its high east level: three pairs of statues facing each other across the wall Felix climbs, one above another, with a fireball flying between each pair, two statues whose caps ride up on columns of flame, and a stone pillar to push.

EnumeratorValueDescription
ACTOR_STATUE_PAIR_A_WESTACTOR_FIRST_PLACED
ACTOR_STATUE_PAIR_A_EAST
ACTOR_STATUE_PAIR_B_WEST
ACTOR_STATUE_PAIR_B_EAST
ACTOR_STATUE_PAIR_C_WEST
ACTOR_STATUE_PAIR_C_EAST
ACTOR_HIGH_EAST_COLUMN_STATUE_A
ACTOR_HIGH_EAST_STATUE_CAP_A
ACTOR_HIGH_EAST_PILLAR
ACTOR_HIGH_EAST_COLUMN_STATUE_B
ACTOR_HIGH_EAST_STATUE_CAP_B
ACTOR_FIREBALL_A
ACTOR_FIREBALL_B
ACTOR_FIREBALL_C

Definition at line 279 of file magma_rock.c.

MAGMA_ROCK_CLIFF_LOW_WEST_ACTOR_ID

enum MAGMA_ROCK_CLIFF_LOW_WEST_ACTOR_ID

Its low west level: a stone pillar to push, two statues whose caps ride up on columns of flame, and the posts Lash ties the rope between.

EnumeratorValueDescription
ACTOR_LOW_WEST_PILLARACTOR_FIRST_PLACED
ACTOR_LOW_WEST_COLUMN_STATUE_A
ACTOR_LOW_WEST_STATUE_CAP_A
ACTOR_LOW_WEST_COLUMN_STATUE_B
ACTOR_LOW_WEST_STATUE_CAP_B
ACTOR_LOW_WEST_ROPE_WEST_POST
ACTOR_LOW_WEST_ROPE_EAST_POST

Definition at line 299 of file magma_rock.c.

MAGMA_ROCK_CLIFF_LOW_EAST_ACTOR_ID

enum MAGMA_ROCK_CLIFF_LOW_EAST_ACTOR_ID

Its low east level: two stone pillars to push, the cracked pillar, two statues that spit fire, one whose cap rides up on a column of flame, and three sprouts.

EnumeratorValueDescription
ACTOR_LOW_EAST_PILLAR_AACTOR_FIRST_PLACED
ACTOR_LOW_EAST_PILLAR_B
ACTOR_LOW_EAST_CRACKED_PILLAR
ACTOR_LOW_EAST_FIRING_STATUE_A
ACTOR_LOW_EAST_COLUMN_STATUE
ACTOR_LOW_EAST_STATUE_CAP
ACTOR_LOW_EAST_FIRING_STATUE_BACTOR_FIRST_PLACED + 7
ACTOR_LOW_EAST_SPROUT_AGrowth grows a vine from each
ACTOR_LOW_EAST_SPROUT_B
ACTOR_LOW_EAST_SPROUT_C

Definition at line 313 of file magma_rock.c.

MAGMA_ROCK_SUMMIT_ACTOR_ID

enum MAGMA_ROCK_SUMMIT_ACTOR_ID

The top: the great fire before the way in, and the statue east of it that spits fire at it.

EnumeratorValueDescription
ACTOR_GREAT_FIREACTOR_FIRST_PLACED
ACTOR_SUMMIT_STATUE

Definition at line 329 of file magma_rock.c.

Functions in detail

scMagmaRockCreateEffectActor

ACTOR * scMagmaRockCreateEffectActor(Sint32 x, Sint32 y, Sint32 z, Sint32 kind)

Unused: creates a hidden effect actor at a place: no motion, never targeted, drawn under the actors.

References fdActorSetSpriteFlags(), scFieldActorCreate(), scFieldActorSetSpriteColor(), scSetActorSpritePriority() and Sint32.

Definition at line 339 of file magma_rock.c.

scMagmaRockFightFury

void scMagmaRockFightFury(void)

Unused: talking to Fury starts its battle, as in Magma Rock's inside; no Fury stands outside.

References fdRequestDjinnBattle().

Definition at line 374 of file magma_rock.c.

scMagmaRockSettleBlocks

void scMagmaRockSettleBlocks(Uint16 *ids)

void scMagmaRockSettleBlocks()

For each pillar of a list ended by ACTOR_LIST_END: raises its metatile to its top, keeps the metatile's attributes, and where it stands on a climbable metatile (MAP_METATILE_CLIMBABLE) blocks the metatiles ahead of and behind it.

References fdActorGet(), fdActorSetSpriteFlags(), fdMapGetTerrainHeight(), scMagmaRockInsideSetMetatileShape(), scMapMetatileGetAttributes() and Sint32.

Referenced by scInit().

Definition at lines 394 and 2075 of file magma_rock.c.

scGetEntrances

const SCENE_ENTRANCE *scGetEntrances(void)

References SceneEntrances.

Definition at line 444 of file magma_rock.c.

scGetExitRegions

const SCENE_REGION *scGetExitRegions(void)

References MagmaRockCliffRegions, MagmaRockRegions, MagmaRockSummitRegions and MainRoutineStateWork.

Definition at line 453 of file magma_rock.c.

scGetExits

const Uint32 *scGetExits(void)

References SceneExits.

Definition at line 462 of file magma_rock.c.

scGetActorPlacements

const ACTOR_PLACE *scGetActorPlacements(void)

References MagmaRockCliffHighEastPlacements, MagmaRockCliffHighWestPlacements, MagmaRockCliffLowEastPlacements, MagmaRockCliffLowWestPlacements, MagmaRockPlacements, MagmaRockSummitPlacements and MainRoutineStateWork.

Definition at line 474 of file magma_rock.c.

scMagmaRockStartPushingPillar

void scMagmaRockStartPushingPillar(void)

Nothing visible happens as Felix starts to push one of the striped stone pillars, with Move or by walking into it; the push itself is the field engine's. The game first takes the pillar out of the map, so that its metatile is plain ground under it as it slides. At the entrance and on the low west and low east levels it also clears the walls the map's upper layer keeps along the pillars' paths (copied from spare metatiles off the screen), so that the pillar can slide along them; scMagmaRockFinishPushingPillar puts them back.

References fdActorLiftTargetBlock(), fdMapGridCopyMetatileAttributes(), MagmaRockCliffHighEastPillars, MagmaRockCliffHighWestPillars, MagmaRockCliffLowEastPillars, MagmaRockCliffLowWestPillars, MagmaRockEntrancePillars, MainRoutineStateWork and scMagmaRockInsideClearBlockMetatiles().

Referenced by MagmaRockCliffHighEastCues, MagmaRockCliffHighWestCues, MagmaRockCliffLowEastCues, MagmaRockCliffLowWestCues and MagmaRockCues.

Definition at line 499 of file magma_rock.c.

scMagmaRockEndScript

Sint32 scMagmaRockEndScript()

Sint32 scMagmaRockEndScript(void)

The overlay's stub to fdScriptEnd.

Referenced by scMagmaRockCrumblePillar(), scMagmaRockDropLeaderFromSummit(), scMagmaRockEnterCave(), scMagmaRockFinishPushingPillar(), scMagmaRockFireFromStatue(), scMagmaRockFireStatue(), scMagmaRockIgniteStatue(), scMagmaRockKnockLeaderOffWall(), scMagmaRockStepOnCrumblingPillar() and scMagmaRockStepOnTrap().

Definition at lines 548 and 974 of file magma_rock.c.

scMagmaRockFinishPushingPillar

Sint32 scMagmaRockFinishPushingPillar(void)

A striped stone pillar comes to rest after a push, and stands in the way again where it stopped. One that has reached the place the climb needs stays there when the party comes back: at the entrance the pillar on the statues' ledge pushed west out of the way, to metatile (15, 25), and the one on the ledge above pushed east, to metatile (16, 22), before the climb to the cliff; on the cliff the high west level's second pillar at metatile (27, 33), the high east level's at (55, 35), the low west level's at (16, 36), and the low east level's two at (40, 37) and (35, 38). The game stands the pillar in the map again, puts back the upper layer's walls scMagmaRockStartPushingPillar cleared, and sets the pillar's flag.

References fdActorPlaceMovedBlock(), fdMapGridCopyMetatileAttributes(), fdScriptSetFlag(), fdScriptStart(), MagmaRockCliffHighEastPillars, MagmaRockCliffHighWestPillars, MagmaRockCliffLowEastPillars, MagmaRockCliffLowWestPillars, MagmaRockEntrancePillars, MainRoutineStateWork, scBlocksMarkMetatiles(), scFieldScriptEndLastingPsynergy(), scMagmaRockEndScript() and Sint32.

Referenced by MagmaRockCliffHighEastCues, MagmaRockCliffHighWestCues, MagmaRockCliffLowEastCues, MagmaRockCliffLowWestCues and MagmaRockCues.

Definition at line 560 of file magma_rock.c.

syImportFieldPsynergySetupActorPair

void syImportFieldPsynergySetupActorPair(Sint32 owner, Uint16 value)

The overlay's import stub that sets up a field Psynergy's caster and target.

Referenced by scMagmaRockInsidePlayBurst() and scMagmaRockPlayBurst().

Definition at line 635 of file magma_rock.c.

scMagmaRockPlayBurst

void scMagmaRockPlayBurst(Uint16 value)

Plays Burst from the leader at an actor, outside the cue table: the explosion a statue's fireball makes where it lands.

References fdBattleEffectStopMainActor(), fdPsynergyEnd(), fdPsynergyLoadResources(), fdPsynergyRunHandler(), MainRoutineStateWork and syImportFieldPsynergySetupActorPair().

Referenced by scMagmaRockFireFromStatue().

Definition at line 639 of file magma_rock.c.

scMagmaRockThrowEmbers

void scMagmaRockThrowEmbers(ACTOR *actor)

A statue's update when the fireball of its pair reaches it: it throws embers and blinks red, faster and faster, flashes white, and after 144 ticks spits the fireball back.

References MagmaRockFlameEmberScript, scFieldActorSetSpriteColor(), scFieldEffectSpawn(), scMagmaRockMoveFireball(), Sint32, syRandom() and TickCount.

Referenced by scMagmaRockMoveFireball().

Definition at line 656 of file magma_rock.c.

scMagmaRockLeaveEmbers

void scMagmaRockLeaveEmbers(ACTOR *actor)

The update of a fireball or a statue's fire: every fourth tick it leaves an ember near it, drifting a little north or south, and every sixteenth it whooshes, unless one has just knocked Felix down.

References fdActorPlaySoundInView(), fdScriptGetFlag(), MagmaRockEmberScript, scFieldEffectSpawn(), Sint32, syRandom() and TickCount.

Referenced by scMagmaRockFireFromStatue() and scMagmaRockMoveFireball().

Definition at line 726 of file magma_rock.c.

scMagmaRockMoveFireball

void scMagmaRockMoveFireball(ACTOR *actor)

A fireball's update: it flies toward the other statue of its pair leaving embers; running into Felix raises CUE_FIREBALL_HITS_LEADER and takes it away, and reaching the statue hands it over (scMagmaRockThrowEmbers).

References fdActorGet(), MainRoutineStateWork, scMagmaRockLeaveEmbers(), scMagmaRockThrowEmbers(), scPosFlatDistance() and syCos().

Referenced by scMagmaRockPlaceFireball() and scMagmaRockThrowEmbers().

Definition at line 760 of file magma_rock.c.

scMagmaRockPlaceFireball

void scMagmaRockPlaceFireball(Uint16 id, Sint16 first, Sint16 side)

Unless the party keeps its place: sets a fireball on one statue of the pair whose first statue is first (side 0 that one, 1 the other), facing the other, and starts it flying.

References fdActorGet(), fdScriptGetFlag(), scMagmaRockMoveFireball(), scSetActorSpritePriority() and Sint32.

Referenced by scInit().

Definition at line 804 of file magma_rock.c.

scMagmaRockWarnStatue

void scMagmaRockWarnStatue(ACTOR *actor)

The update of a statue Burst has woken, counting down from 1,024 while no menu, Psynergy or item is in use: it blinks red quickly, then slowly from 528, and from 400 it burns (scMagmaRockBurnStatue).

References scFieldActorSetSpriteColor() and scMagmaRockBurnStatue().

Referenced by scMagmaRockIgniteStatue().

Definition at line 859 of file magma_rock.c.

scMagmaRockLookUpMetatileStatue

Sint32 scMagmaRockLookUpMetatileStatue(Sint32 x, Sint32 z, Uint16 *table)

Looks up the metatile at (x, z) in an (actor, metatile, value) table ended by ACTOR_LIST_END and returns the value of its row.

References result, scMapMetatileGetAttributes() and Sint32.

Referenced by scMagmaRockBurnStatue().

Definition at line 891 of file magma_rock.c.

scMagmaRockTargetStatue

void scMagmaRockTargetStatue(Sint32 stage)

Felix casts Burst at one of the yellow statues, and it glows red while the explosions go off round it, blinking faster at the last blast. The game finds the statue by its metatile in the room's table (scStatueFindUnderBurst) and blinks it (scStatueFlashUnderBurst), every fourth tick while the explosions shake the ground (BURST_STAGE_SMALL_BLAST) and every other one at the last blast (BURST_STAGE_GREAT_BLAST). The statue then fires (scMagmaRockFireStatue) or lights (scMagmaRockIgniteStatue).

References MagmaRockCliffHighEastStatues, MagmaRockCliffHighWestStatues, MagmaRockCliffLowEastStatues, MagmaRockCliffLowWestStatues, MagmaRockEntranceStatues, MagmaRockSummitStatues, MainRoutineStateWork, scStatueFindUnderBurst(), scStatueFlashUnderBurst() and Sint32.

Referenced by MagmaRockCliffHighEastCues, MagmaRockCliffHighWestCues, MagmaRockCliffLowEastCues, MagmaRockCliffLowWestCues, MagmaRockCues and MagmaRockSummitCues.

Definition at line 920 of file magma_rock.c.

scMagmaRockDriftAndSlow

void scMagmaRockDriftAndSlow(ACTOR *actor)

An ember's update: it moves by its velocity, kept in bounce, gravity and sceneWord, and slows by an eighth.

Referenced by scMagmaRockBurnStatue(), scMagmaRockFireFromStatue() and scMagmaRockRaiseFlameTop().

Definition at line 963 of file magma_rock.c.

scMagmaRockFireFromStatue

Sint32 scMagmaRockFireFromStatue(ACTOR *source)

A statue's fireball flies straight ahead, the camera following it, until it meets the edge of its ledge, a striped stone pillar or anything else standing in its way: at the edge or a stone pillar it bursts into embers, and on anything else it explodes as Burst does (scMagmaRockPlayBurst). Then the camera goes back to Felix.

References fdActorRelease(), fdActorSelectAnimation(), fdActorSetSpriteFlags(), fdCameraMoveToFX(), fdCameraWaitForArrival(), fdScriptClearFlag(), fdScriptSetFlag(), fdScriptStart(), MagmaRockEmberScript, MainRoutineStateWork, scFieldActorCreate(), scFieldActorSetMoveTargetFX(), scFieldActorWaitForMove(), scFieldEffectSpawn(), scFieldScriptEndLastingPsynergy(), scMagmaRockDriftAndSlow(), scMagmaRockEndScript(), scMagmaRockLeaveEmbers(), scMagmaRockPlayBurst(), scMapMetatileGetAttributes(), scPosFlatDistance(), scScriptCameraFollowActor(), Sint32, syCos(), syRandom(), sySynch() and TickCount.

Referenced by scMagmaRockFireStatue().

Definition at line 981 of file magma_rock.c.

scMagmaRockFireStatue

void scMagmaRockFireStatue(void)

After Felix's Burst, the yellow statue he cast it at flashes white and spits a fireball straight ahead: on the entrance's statues' ledge and the high west level at the cracked pillar beyond it, which the fireball's blast breaks, and on the top at the great fire. The fireball's flight is scMagmaRockFireFromStatue's. On the low east level both statues face west: the upper one's fireball meets the cracked pillar at metatile (42, 39), and the lower one's, from metatile (52, 40), the level's second cracked pillar, at (760, 648) on the same level (the placement table's seventh actor), and explodes on it as Burst does.

References fdScriptStart(), scFieldActorSetSpriteColor(), scFieldScriptEndLastingPsynergy(), scFieldScriptWait(), scMagmaRockEndScript() and scMagmaRockFireFromStatue().

Referenced by MagmaRockCliffHighWestCues, MagmaRockCliffLowEastCues, MagmaRockCues and MagmaRockSummitCues.

Definition at line 1115 of file magma_rock.c.

scMagmaRockIgniteStatue

void scMagmaRockIgniteStatue(void)

After Felix's Burst, a yellow statue with a grey cap blinks red for about ten seconds, faster at first; then fire bursts from it and its cap rides up on a column of flame for about five seconds, carrying Felix up to the ledge above if he is standing on it, before it sinks again. The game only starts the statue's countdown (scMagmaRockWarnStatue, then scMagmaRockBurnStatue).

References fdScriptStart(), scFieldScriptEndLastingPsynergy(), scMagmaRockEndScript() and scMagmaRockWarnStatue().

Referenced by MagmaRockCliffHighEastCues, MagmaRockCliffLowEastCues, MagmaRockCliffLowWestCues and MagmaRockCues.

Definition at line 1138 of file magma_rock.c.

scMagmaRockBurstCrackedPillar

void scMagmaRockBurstCrackedPillar(Sint32 stage, Sint32 tick)

Burst goes off at a cracked pillar: rocks fly up round it, one a tick while the explosions shake the ground and eight at the last blast, the pillar crumbles to a stump at PILLAR_CRUMBLE_TICK, and the last blast takes it away. It runs for Felix's own Burst at the pillar, and for the blast of a statue's fireball that lands on it, as on the cliff's high west level, where the statue on metatile (16, 34) breaks the cracked pillar on (22, 34) this way and sets no flag for it.

References fdActorSelectAnimation(), scMagmaRockDropRocks(), scMagmaRockStartFallingRocks(), scRockEndFalling() and Sint32.

Referenced by MagmaRockCliffHighWestCues, MagmaRockCliffLowEastCues and MagmaRockCues.

Definition at line 1158 of file magma_rock.c.

scMagmaRockRaiseFlamePart

void scMagmaRockRaiseFlamePart(ACTOR *part)

The update of one of the four parts of a statue's flame column (scMagmaRockBurnStatue): it rises and sinks with the statue's burning, and is released once sunk.

References fdActorRelease().

Referenced by scMagmaRockAttachFlamePart() and scMagmaRockBurnStatue().

Definition at line 1190 of file magma_rock.c.

scMagmaRockRaiseFlameTop

void scMagmaRockRaiseFlameTop(FIELD_OBJECT *object)

The update of a statue's cap on top of its flame column: it rises and sinks with the column, a tick ahead, throws a flame puff every eighth tick, and raises the statue's metatile with it, so that the leader on the cap rides up.

References MagmaRockEmberScript, scFieldEffectSpawn(), scMagmaRockDriftAndSlow(), scMagmaRockInsideSetMetatileShape(), Sint32, syRandom() and TickCount.

Referenced by scMagmaRockBurnStatue() and scMagmaRockRebuildFlameParts().

Definition at line 1224 of file magma_rock.c.

scMagmaRockBurnStatue

void scMagmaRockBurnStatue(ACTOR *actor)

A statue's update once it burns: embers first, then at tick 33 its flame column of four parts rises, and the cap on its top with it (scMagmaRockRaiseFlameTop).

References fdActorGet(), fdActorPlaySoundInView(), fdActorSelectAnimation(), fdActorSetSpriteFlags(), MagmaRockCliffHighEastStatues, MagmaRockCliffHighWestStatues, MagmaRockCliffLowEastStatues, MagmaRockCliffLowWestStatues, MagmaRockEmberScript, MagmaRockEntranceStatues, MainRoutineStateWork, scFieldActorCreate(), scFieldActorSetSpriteColor(), scFieldEffectSpawn(), scMagmaRockDriftAndSlow(), scMagmaRockLookUpMetatileStatue(), scMagmaRockRaiseFlamePart(), scMagmaRockRaiseFlameTop(), scSetActorSpritePriority(), Sint32, syRandom() and TickCount.

Referenced by scMagmaRockWarnStatue().

Definition at line 1296 of file magma_rock.c.

MagmaRockBurstCrackedPillarA

DEFINE_BURST_ENTRANCE_OR_CLIFF_PILLAR(MagmaRockBurstCrackedPillarA, ACTOR_CRACKED_PILLAR_A, ACTOR_HIGH_WEST_CRACKED_PILLAR_A, FLAG_CRACKED_PILLAR_A_BURST)

Burst breaks the north-west one of the four cracked pillars in front of the entrance's cave mouth (metatile (15, 31)), or the cracked pillar on the cliff's high west level (metatile (22, 34)). Either sets FLAG_CRACKED_PILLAR_A_BURST. The high west statue's fireball breaks that pillar through the statue's own rows instead (scMagmaRockBurstCrackedPillar), not this.

Referenced by MagmaRockCliffHighWestCues and MagmaRockCues.

Definition at line 1454 of file magma_rock.c.

MagmaRockBurstCrackedPillarB

DEFINE_BURST_ENTRANCE_OR_CLIFF_PILLAR(MagmaRockBurstCrackedPillarB, ACTOR_CRACKED_PILLAR_B, ACTOR_LOW_EAST_CRACKED_PILLAR, FLAG_CRACKED_PILLAR_B_BURST)

Burst breaks the north-east one of the four cracked pillars in front of the entrance's cave mouth (metatile (17, 31)), or the cracked pillar on the cliff's low east level (metatile (42, 39)) as its statue's fireball lands on it. Either sets FLAG_CRACKED_PILLAR_B_BURST.

Referenced by MagmaRockCliffLowEastCues and MagmaRockCues.

Definition at line 1463 of file magma_rock.c.

MagmaRockBurstCrackedPillarC

DEFINE_BURST_CRACKED_PILLAR(MagmaRockBurstCrackedPillarC, ACTOR_CRACKED_PILLAR_C, FLAG_CRACKED_PILLAR_C_BURST)

Burst breaks the south-west one of the four cracked pillars in front of the entrance's cave mouth (metatile (14, 34)). It sets FLAG_CRACKED_PILLAR_C_BURST.

Referenced by MagmaRockCues.

Definition at line 1482 of file magma_rock.c.

MagmaRockBurstCrackedPillarD

DEFINE_BURST_CRACKED_PILLAR(MagmaRockBurstCrackedPillarD, ACTOR_CRACKED_PILLAR_D, FLAG_CRACKED_PILLAR_D_BURST)

Burst breaks the south-east one of the four cracked pillars in front of the entrance's cave mouth (metatile (18, 34)). It sets FLAG_CRACKED_PILLAR_D_BURST.

Referenced by MagmaRockCues.

Definition at line 1489 of file magma_rock.c.

MagmaRockBurstCrackedPillarE

DEFINE_BURST_CRACKED_PILLAR(MagmaRockBurstCrackedPillarE, ACTOR_CRACKED_PILLAR_E, FLAG_CRACKED_PILLAR_E_BURST)

The fireball of the statue at the east end of the entrance's upper ledge lands on the cracked pillar west of it (metatile (20, 25)), and the blast breaks the pillar, opening the climb up to the ledge where it stood. It sets FLAG_CRACKED_PILLAR_E_BURST.

Referenced by MagmaRockCues.

Definition at line 1497 of file magma_rock.c.

scMagmaRockResetCaveDoor

void scMagmaRockResetCaveDoor(void)

Nothing visible happens when Felix, come out of the Ember Stone's room (MAGMA_ROCK_ENTRANCE_MAGMA_ROCK_INSIDE_EMBER_STONE), takes his first step of his own in the cave mouth above the entrance's cracked pillars (metatile (16, 28)). He arrives standing in the mouth facing out, and the game's placing him there only sets FLAG_CAVE_DOOR_USED (scMagmaRockEnterCave), so he is not sent straight back in; this step clears it, so that walking north into the cave takes him back inside from then on.

References fdScriptClearFlag() and MainRoutineStateWork.

Referenced by MagmaRockCues.

Definition at line 1508 of file magma_rock.c.

scMagmaRockEnterCave

void scMagmaRockEnterCave(void)

Felix walks north into the dark cave mouth above the entrance's cracked pillars (metatile (16, 28)) and goes inside Magma Rock, to the room of the Ember Stone. The game walks him a step further in, plays the exit sound and leaves; when the game rather than the player moved him onto the metatile, it only sets FLAG_CAVE_DOOR_USED.

References fdActorGet(), fdActorWalkTo(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptStart(), MainRoutineStateWork, scFieldScriptEndLastingPsynergy(), scFieldScriptSetExitRequest(), scFieldScriptWait() and scMagmaRockEndScript().

Referenced by MagmaRockCues.

Definition at line 1521 of file magma_rock.c.

scMagmaRockResolveBeforeBurst

void scMagmaRockResolveBeforeBurst(void)

Nothing visible happens as Felix begins to cast Burst at one of the yellow statues; the game settles whatever the field engine has pending before the statue's own scripts run (scMagmaRockTargetStatue).

References fdScriptEndLastingPsynergy().

Referenced by MagmaRockCliffHighEastCues, MagmaRockCliffHighWestCues, MagmaRockCliffLowEastCues, MagmaRockCliffLowWestCues, MagmaRockCues and MagmaRockSummitCues.

Definition at line 1543 of file magma_rock.c.

scMagmaRockCheckCrumblingPillars

void scMagmaRockCheckCrumblingPillars(void)

Felix comes down on one of the two dark pillars on the cliff's high west
level (metatiles (15,
29) and (17, 29)) without hopping straight on: the first time it cracks with
    a flash and a puff
of dust, the second time it crumbles under him and he drops with it to the
ground below (scMagmaRockStepOnCrumblingPillar).

References MagmaRockCrumblingPillars and scMagmaRockStepOnCrumblingPillar().

Referenced by MagmaRockCliffHighWestCues.

Definition at line 1554 of file magma_rock.c.

scMagmaRockReadyHighWestStatue

void scMagmaRockReadyHighWestStatue(void)

Nothing visible happens when Felix steps onto the metatile just behind the yellow statue on the cliff's high west level (metatile (15, 34)); from then on Burst cast at the statue wakes it, so that it spits a fireball east at the cracked pillar. The game makes the statue's metatile answer Burst as a statue that spits fire, and sets FLAG_HIGH_WEST_STATUE_READY.

References fdScriptSetFlag() and fdSetMetatileBehaviorAt().

Referenced by MagmaRockCliffHighWestCues.

Definition at line 1564 of file magma_rock.c.

scMagmaRockResetHighWestStatue

void scMagmaRockResetHighWestStatue(void)

Nothing visible happens when Felix steps a metatile further west from behind the high west level's yellow statue (metatile (14, 34)); Burst no longer wakes the statue until he steps back behind it. The game makes the statue's metatile plain ground again and clears FLAG_HIGH_WEST_STATUE_READY.

References fdScriptClearFlag() and fdSetMetatileBehaviorAt().

Referenced by MagmaRockCliffHighWestCues.

Definition at line 1577 of file magma_rock.c.

scMagmaRockKnockLeaderOffWall

void scMagmaRockKnockLeaderOffWall(void)

A fireball flying between a pair of yellow statues on the cliff's high east wall hits Felix as he climbs: he turns grey among dark puffs, falls to the foot of the wall with a thump that shakes the ground, and shakes his head.

References fdActorGetById(), fdActorSetAnimation(), fdActorSetAnimationSpeedById(), fdActorSetSpriteFlags(), fdActorWaitForAnimationChange(), fdCameraMoveToActor(), fdCameraWaitForArrival(), fdMapGridWaitForShakeToSettle(), fdScriptClearFlag(), fdScriptEndLastingPsynergy(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptStart(), fdScriptWait(), MainRoutineStateWork, scFieldActorSetSpriteColor(), scFieldEffectSpawn(), scMagmaRockEndScript(), Sint32, syRandom(), sySynch() and TickCount.

Referenced by MagmaRockCliffHighEastCues.

Definition at line 1589 of file magma_rock.c.

scMagmaRockPushPillarEast

void scMagmaRockPushPillarEast(void)

Felix walks east into the striped stone pillar on the cliff's low west level
from metatile (14,
36) and pushes it a metatile east, to metatile (16, 36), where it stays when
    the party comes
back. The game takes the pillar out of the map, clears the upper layer's
walls along its path for the push (scMagmaRockInsidePushBlockOnto), puts them
back and stands it in the map again.

References fdActorGet(), fdMapGridCopyMetatileAttributes(), fdScriptSetFlag(), MagmaRockCliffLowWestPillars, MainRoutineStateWork, scActorFindInMetatile(), scBlocksMarkMetatiles(), scMagmaRockInsideClearBlockMetatiles(), scMagmaRockInsidePushBlockOnto(), scMagmaRockInsideSetMetatileShape() and Sint32.

Referenced by MagmaRockCliffLowWestCues.

Definition at line 1687 of file magma_rock.c.

scMagmaRockPushPillarWest

void scMagmaRockPushPillarWest(void)

Felix walks west into the striped stone pillar beside the cracked pillar on the cliff's low east level, from any of metatiles (37, 38) to (40, 38), and pushes it a metatile west along a grey track; after four pushes it stands on the grey square at the track's end, metatile (35, 38), and stays there when the party comes back. The game moves the pillar as scMagmaRockPushPillarEast does.

References fdActorGet(), fdMapGridCopyMetatileAttributes(), fdScriptSetFlag(), MagmaRockCliffLowEastPillars, MainRoutineStateWork, scActorFindInMetatile(), scBlocksMarkMetatiles(), scMagmaRockInsideClearBlockMetatiles(), scMagmaRockInsidePushBlockOnto(), scMagmaRockInsideSetMetatileShape() and Sint32.

Referenced by MagmaRockCliffLowEastCues.

Definition at line 1729 of file magma_rock.c.

scMagmaRockGrowVineA

void scMagmaRockGrowVineA(void)

Growth on the west one of the two sprouts on the north-east ledge of the cliff's low east level (metatile (59, 39)) grows a vine up the wall above it. The game opens the three metatiles of wall above the sprout for climbing and sets FLAG_VINE_A_GROWN.

References fdMapGridCopyMetatileAttributes() and fdScriptSetFlag().

Referenced by MagmaRockCliffLowEastCues.

Definition at line 1769 of file magma_rock.c.

scMagmaRockGrowVineB

void scMagmaRockGrowVineB(void)

Growth on the east one of the two sprouts on the north-east ledge of the cliff's low east level (metatile (61, 39)) grows a vine up the wall above it. The game opens the three metatiles of wall above the sprout for climbing and sets FLAG_VINE_B_GROWN.

References fdMapGridCopyMetatileAttributes() and fdScriptSetFlag().

Referenced by MagmaRockCliffLowEastCues.

Definition at line 1779 of file magma_rock.c.

scMagmaRockGrowVineC

void scMagmaRockGrowVineC(void)

Growth on the sprout on the path where Felix comes up from the entrance, on the cliff's low east level (metatile (45, 41)), grows a vine up the wall above it. The game opens the three metatiles of wall above the sprout for climbing and sets FLAG_VINE_C_GROWN.

References fdMapGridCopyMetatileAttributes() and fdScriptSetFlag().

Referenced by MagmaRockCliffLowEastCues.

Definition at line 1789 of file magma_rock.c.

scMagmaRockScatterEmbers

void scMagmaRockScatterEmbers(Sint32 x, Sint32 z)

Four large flame puffs scatter round (x, z) in the blast at the great fire, and the way in stays open for good.

References fdScriptSetFlag(), MagmaRockEmberScript, scFieldEffectSpawn(), Sint32 and syRandom().

Referenced by scMagmaRockBlastWayIn().

Definition at line 1797 of file magma_rock.c.

scMagmaRockFlashTarget

void scMagmaRockFlashTarget(ACTOR *actor)

The great fire's update as Burst plays on it: it blinks white on the ticks its mask picks.

References scFieldActorSetSpriteColor() and TickCount.

Referenced by scMagmaRockBlastWayIn().

Definition at line 1831 of file magma_rock.c.

scMagmaRockBlastWayIn

void scMagmaRockBlastWayIn(Sint32 stage, Sint32 tick)

The statue's fireball explodes on the great fire on the top of Magma Rock: the fire blinks white as flame puffs scatter and rocks fly while the explosions shake the ground, and at the last blast the fire is gone and the rocks round it lie scattered, opening the way down into Magma Rock (metatiles (42, 17) to (46, 24)). The game copies the open ground and its pictures over those metatiles from spare ones below the room.

References fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesTo(), scMagmaRockDropRocks(), scMagmaRockFlashTarget(), scMagmaRockScatterEmbers(), scMagmaRockStartFallingRocks(), scRockEndFalling() and Sint32.

Referenced by MagmaRockSummitCues.

Definition at line 1845 of file magma_rock.c.

scGetCues

const CUE *scGetCues(void)

References MagmaRockCliffHighEastCues, MagmaRockCliffHighWestCues, MagmaRockCliffLowEastCues, MagmaRockCliffLowWestCues, MagmaRockCues, MagmaRockSummitCues and MainRoutineStateWork.

Definition at line 1900 of file magma_rock.c.

scMagmaRockDropLeaderFromSummit

void scMagmaRockDropLeaderFromSummit(void)

Felix arrives on the cliff's high east level by dropping from the top (MAGMA_ROCK_CLIFF_MAGMA_ROCK_SUMMIT_EAST_A): he falls in from 130 pixels up, lands with a thump in a ring of dust and leans back.

References fdActorGet(), fdActorSetAnimation(), fdActorSetAttachedEffect(), fdEffectAdvanceMotion(), fdMapGridCenterOnFollowedPoint(), fdScriptPlaySound(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, scFieldEffectSpawn(), scFieldMapGridWaitForShakeToSettle(), scFieldScriptEndLastingPsynergy(), scFieldScriptWait(), scMagmaRockEndScript(), Sint32, syCos(), sySin() and sySynch().

Referenced by scInit().

Definition at line 1930 of file magma_rock.c.

scMagmaRockLandLeader

void scMagmaRockLandLeader(void)

Arriving with the party's place kept: sets the leader on the ground under it.

References fdActorGet(), fdMapGetTerrainHeight(), fdScriptGetFlag(), MainRoutineStateWork, scScriptCameraFollowActor(), Sint32 and sySynch().

Referenced by scInit().

Definition at line 1998 of file magma_rock.c.

scMagmaRockAttachFlamePart

static inline void scMagmaRockAttachFlamePart(ACTOR *part, ACTOR *anchor, Uint8 order)

Hangs a part of a flame column on its statue at the given level (scMagmaRockRaiseFlamePart).

References scFieldActorSetSpriteColor() and scMagmaRockRaiseFlamePart().

Referenced by scMagmaRockBuildFlameColumn().

Definition at line 2019 of file magma_rock.c.

scMagmaRockBuildFlameColumn

static inline void scMagmaRockBuildFlameColumn(ACTOR *anchor)

Builds the four parts of a statue's flame column on re-entry, as scMagmaRockBurnStatue does.

References fdActorSelectAnimation(), fdActorSetSpriteFlags(), scMagmaRockAttachFlamePart(), scSetActorSpritePriority() and syImportActorCreate().

Referenced by scMagmaRockRebuildFlameParts().

Definition at line 2030 of file magma_rock.c.

scMagmaRockRebuildFlameParts

void scMagmaRockRebuildFlameParts(Uint16 id)

On entry: rebuilds the flame column under a statue's cap that was riding one when Felix left.

References fdActorGet(), scMagmaRockBuildFlameColumn() and scMagmaRockRaiseFlameTop().

Referenced by scInit().

Definition at line 2068 of file magma_rock.c.

scMagmaRockPlaceRope

void scMagmaRockPlaceRope()

The overlay's import stub to fdRopePlaceStub.

Referenced by scInit().

Definition at line 2077 of file magma_rock.c.

scInit

Sint32 scInit(void)

Sets up the map entered: the pushed pillars where they were left, the statues and their caps, the fireballs flying between the statue pairs, the tightrope and the rope, the grown vines and the blasted way in; then lifts Felix onto the wall or ledge he came in by.

References Call4(), fdActorGetById(), fdActorPlaceBlocks(), fdActorSetSpriteFlags(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesTo(), fdRopeInit(), fdScriptGetFlag(), fdTightropeInit(), MagmaRockCliffHighEastPillars, MagmaRockCliffHighEastStatues, MagmaRockCliffHighWestPillars, MagmaRockCliffHighWestStatues, MagmaRockCliffLowEastPillars, MagmaRockCliffLowEastStatues, MagmaRockCliffLowWestPillars, MagmaRockCliffLowWestStatues, MagmaRockCrumblingPillars, MagmaRockEntrancePillars, MagmaRockEntranceStatues, MagmaRockSummitStatues, MainRoutineStateWork, scBlocksMarkMetatiles(), scLeaderLift(), scMagmaRockDropLeaderFromSummit(), scMagmaRockInsideRaiseActorMetatiles(), scMagmaRockLandLeader(), scMagmaRockPlaceFireball(), scMagmaRockPlaceRope(), scMagmaRockPlaceTightrope(), scMagmaRockRebuildFlameParts(), scMagmaRockRestoreCrumblingPillars(), scMagmaRockSettleBlocks() and Sint32.

Definition at line 2083 of file magma_rock.c.

scPrepareMap

Sint32 scPrepareMap(void)

References Sint32.

Definition at line 2369 of file magma_rock.c.

scMagmaRockRestoreCrumblingPillars

void scMagmaRockRestoreCrumblingPillars(const Uint16 *table)

On entry: sets each listed pillar from its two flags (cracked, then fallen), then lifts the leader onto the ground under it.

References fdActorDisableById(), fdActorGet(), fdActorGetMetatileIndex(), fdActorSelectAnimation(), fdMapGetTerrainHeight(), fdMapGridGetTerrainKind(), fdMapShapeFindOrAdd(), fdScriptGetFlag(), MainRoutineStateWork, MapShapeGrid and Sint32.

Referenced by scInit().

Definition at line 2376 of file magma_rock.c.

scMagmaRockSpawnDustRing

void scMagmaRockSpawnDustRing(void)

Throws a ring of dust clouds out from Felix as he lands with a crumbled pillar.

References DustBurstScript, fdActorGet(), fdActorSelectAnimation(), fdActorSetSpriteFlags(), fdActorStartScript(), fdSpriteShareVRAMCacheEntry(), MainRoutineStateWork, scEffectAdvanceMotionAtLeaderPriority(), scFieldActorCreate(), Sint32, syCos() and sySin().

Referenced by scMagmaRockCrumblePillar(), scMagmaRockStepOnCrumblingPillar() and scMagmaRockStepOnTrap().

Definition at lines 2434 and 2662 of file magma_rock.c.

scMagmaRockStepOnCrumblingPillar

void scMagmaRockStepOnCrumblingPillar(Uint16 *list)

Felix on a crumbling pillar: the first time it cracks with a flash, the second time it crumbles and he drops with it, landing with a thump in a ring of dust.

References fdActorFindAtMetatile(), fdActorGetById(), fdActorSelectAnimation(), fdActorSetPosAndResetMotion(), fdLeaderSetMetatileShapeAt(), fdScriptGetFlag(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptStart(), fdTryJumpForward(), MainRoutineStateWork, scDustScatter(), scFieldActorSetSpriteColor(), scMagmaRockEndScript(), scMagmaRockSpawnDustRing(), Sint32 and sySynch().

Referenced by scMagmaRockCheckCrumblingPillars().

Definition at line 2439 of file magma_rock.c.

scMagmaRockCrumblePillar

void scMagmaRockCrumblePillar(MAGMA_ROCK_CRUMBLING_PILLAR *entry, Sint32 id)

Unused: a crumbling pillar named in the (actor, flag) table gives way with a shake, dust and a thump.

References fdActorGet(), fdActorSelectAnimation(), fdActorSetMetatileShape(), fdScriptGetFlag(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptStart(), scDustScatter(), scFieldActorSetPosAndResetMotion(), scMagmaRockEndScript(), scMagmaRockSpawnDustRing(), Sint32 and sySynch().

Definition at line 2517 of file magma_rock.c.

scMagmaRockStepOnTrap

void scMagmaRockStepOnTrap(Uint16 *list)

Unused: stepping onto a crumbling floor: the first time it shakes and cracks, the second time it gives way with the leader.

References fdActorCopyGraphics(), fdActorFindAtMetatile(), fdActorGetById(), fdActorSelectAnimation(), fdActorSetPosAndResetMotion(), fdLeaderSetMetatileShapeAt(), fdScriptGetFlag(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptStart(), fdTryJumpForward(), MainRoutineStateWork, scActorTakePlaceOf(), scDustScatter(), scFieldActorSetSpriteColor(), scMagmaRockEndScript(), scMagmaRockSpawnDustRing(), Sint32 and sySynch().

Definition at line 2567 of file magma_rock.c.

scMagmaRockDropRocks

void scMagmaRockDropRocks(Sint32 x, Sint32 y, Sint32 z, Sint32 count)

Drops count rocks from (x, y, z), each flung out at a random angle.

References scFieldVectorAddPolarOffsetFX(), Sint32 and syRandom().

Referenced by scMagmaRockBlastWayIn() and scMagmaRockBurstCrackedPillar().

Definition at line 2713 of file magma_rock.c.

syImportDecompressTaggedLZ

void syImportDecompressTaggedLZ(void *entry, void *dest)

The overlay's import stub to the tagged LZ decompressor.

Referenced by scMagmaRockStartFallingRocks().

Definition at line 2750 of file magma_rock.c.

scMagmaRockStartFallingRocks

void scMagmaRockStartFallingRocks(void)

Starts the falling rocks: loads their picture, prepares a small sprite for each rock and adds the event that draws them.

References fdEffectSpriteInit(), mnVRAMLoad(), scParticleUpdateFalling(), Sint32, syHeapSlotAllocate(), syImportDecompressTaggedLZ(), syResourceGetTableEntry(), sySetTickEvent() and syVRAMCacheFindFreeEntry().

Referenced by scMagmaRockBlastWayIn() and scMagmaRockBurstCrackedPillar().

Definition at line 2754 of file magma_rock.c.

Variables in detail

MagmaRockRegions

extern SCENE_REGION MagmaRockRegions[]

SCENE_REGION MagmaRockRegions[]

The exit regions of the entrance.

Referenced by scGetExitRegions().

Definition at lines 449 and 2887 of file magma_rock.c.

MagmaRockCliffRegions

extern SCENE_REGION MagmaRockCliffRegions[]

SCENE_REGION MagmaRockCliffRegions[]

The exit regions of the cliff.

Referenced by scGetExitRegions().

Definition at lines 450 and 2894 of file magma_rock.c.

MagmaRockSummitRegions

extern SCENE_REGION MagmaRockSummitRegions[]

SCENE_REGION MagmaRockSummitRegions[]

The exit regions of the top.

Referenced by scGetExitRegions().

Definition at lines 451 and 2911 of file magma_rock.c.

MagmaRockPlacements

extern ACTOR_PLACE MagmaRockPlacements[]

ACTOR_PLACE MagmaRockPlacements[]

The actors placed at the entrance.

Referenced by scGetActorPlacements().

Definition at lines 467 and 2976 of file magma_rock.c.

MagmaRockCliffHighWestPlacements

extern ACTOR_PLACE MagmaRockCliffHighWestPlacements[]

ACTOR_PLACE MagmaRockCliffHighWestPlacements[]

The actors placed in the cliff's high west level.

Referenced by scGetActorPlacements().

Definition at lines 468 and 3009 of file magma_rock.c.

MagmaRockCliffHighEastPlacements

extern ACTOR_PLACE MagmaRockCliffHighEastPlacements[]

ACTOR_PLACE MagmaRockCliffHighEastPlacements[]

The actors placed in the cliff's high east level.

Referenced by scGetActorPlacements().

Definition at lines 469 and 3031 of file magma_rock.c.

MagmaRockCliffLowWestPlacements

extern ACTOR_PLACE MagmaRockCliffLowWestPlacements[]

ACTOR_PLACE MagmaRockCliffLowWestPlacements[]

The actors placed in the cliff's low west level.

Referenced by scGetActorPlacements().

Definition at lines 470 and 3064 of file magma_rock.c.

MagmaRockCliffLowEastPlacements

extern ACTOR_PLACE MagmaRockCliffLowEastPlacements[]

ACTOR_PLACE MagmaRockCliffLowEastPlacements[]

The actors placed in the cliff's low east level.

Referenced by scGetActorPlacements().

Definition at lines 471 and 3084 of file magma_rock.c.

MagmaRockSummitPlacements

extern ACTOR_PLACE MagmaRockSummitPlacements[]

ACTOR_PLACE MagmaRockSummitPlacements[]

The actors placed on the top.

Referenced by scGetActorPlacements().

Definition at lines 472 and 3111 of file magma_rock.c.

MagmaRockCues

extern CUE MagmaRockCues[]

CUE MagmaRockCues[]

The cues of the entrance.

References MagmaRockBurstCrackedPillarA(), MagmaRockBurstCrackedPillarB(), MagmaRockBurstCrackedPillarC(), MagmaRockBurstCrackedPillarD(), MagmaRockBurstCrackedPillarE(), scMagmaRockBurstCrackedPillar(), scMagmaRockEnterCave(), scMagmaRockFinishPushingPillar(), scMagmaRockFireStatue(), scMagmaRockIgniteStatue(), scMagmaRockResetCaveDoor(), scMagmaRockResolveBeforeBurst(), scMagmaRockStartPushingPillar() and scMagmaRockTargetStatue().

Referenced by scGetCues().

Definition at lines 1893 and 3121 of file magma_rock.c.

MagmaRockCliffHighWestCues

extern CUE MagmaRockCliffHighWestCues[]

CUE MagmaRockCliffHighWestCues[]

The cues of the cliff's high west level.

References MagmaRockBurstCrackedPillarA(), scMagmaRockBurstCrackedPillar(), scMagmaRockCheckCrumblingPillars(), scMagmaRockFinishPushingPillar(), scMagmaRockFireStatue(), scMagmaRockReadyHighWestStatue(), scMagmaRockResetHighWestStatue(), scMagmaRockResolveBeforeBurst(), scMagmaRockStartPushingPillar() and scMagmaRockTargetStatue().

Referenced by scGetCues().

Definition at lines 1894 and 3190 of file magma_rock.c.

MagmaRockCliffHighEastCues

extern CUE MagmaRockCliffHighEastCues[]

CUE MagmaRockCliffHighEastCues[]

The cues of the cliff's high east level.

References scMagmaRockFinishPushingPillar(), scMagmaRockIgniteStatue(), scMagmaRockKnockLeaderOffWall(), scMagmaRockResolveBeforeBurst(), scMagmaRockStartPushingPillar() and scMagmaRockTargetStatue().

Referenced by scGetCues().

Definition at lines 1895 and 3238 of file magma_rock.c.

MagmaRockCliffLowWestCues

extern CUE MagmaRockCliffLowWestCues[]

CUE MagmaRockCliffLowWestCues[]

The cues of the cliff's low west level.

References scMagmaRockFinishPushingPillar(), scMagmaRockIgniteStatue(), scMagmaRockPushPillarEast(), scMagmaRockResolveBeforeBurst(), scMagmaRockStartPushingPillar() and scMagmaRockTargetStatue().

Referenced by scGetCues().

Definition at lines 1896 and 3277 of file magma_rock.c.

MagmaRockCliffLowEastCues

extern CUE MagmaRockCliffLowEastCues[]

CUE MagmaRockCliffLowEastCues[]

The cues of the cliff's low east level.

References MagmaRockBurstCrackedPillarB(), scMagmaRockBurstCrackedPillar(), scMagmaRockFinishPushingPillar(), scMagmaRockFireStatue(), scMagmaRockGrowVineA(), scMagmaRockGrowVineB(), scMagmaRockGrowVineC(), scMagmaRockIgniteStatue(), scMagmaRockPushPillarWest(), scMagmaRockResolveBeforeBurst(), scMagmaRockStartPushingPillar() and scMagmaRockTargetStatue().

Referenced by scGetCues().

Definition at lines 1897 and 3324 of file magma_rock.c.

MagmaRockSummitCues

extern CUE MagmaRockSummitCues[]

CUE MagmaRockSummitCues[]

The cues of the top.

References scMagmaRockBlastWayIn(), scMagmaRockFireStatue(), scMagmaRockResolveBeforeBurst() and scMagmaRockTargetStatue().

Referenced by scGetCues().

Definition at lines 1898 and 3399 of file magma_rock.c.

MagmaRockEntrancePillars

Sint16 MagmaRockEntrancePillars[]

The pillars Move pushes at the entrance, ended by -1.

Referenced by scInit(), scMagmaRockFinishPushingPillar() and scMagmaRockStartPushingPillar().

Definition at line 2794 of file magma_rock.c.

MagmaRockEntranceStatues

Sint16 MagmaRockEntranceStatues[]

The entrance's statues (scStatueFindUnderBurst): each row a statue, the metatile Burst finds it by and the cap its flame column raises (-1 for none), ended by -1.

Referenced by scInit(), scMagmaRockBurnStatue() and scMagmaRockTargetStatue().

Definition at line 2800 of file magma_rock.c.

MagmaRockCliffHighWestPillars

Sint16 MagmaRockCliffHighWestPillars[]

The pillars Move pushes on the cliff's high west level, ended by -1.

Referenced by scInit(), scMagmaRockFinishPushingPillar() and scMagmaRockStartPushingPillar().

Definition at line 2808 of file magma_rock.c.

MagmaRockCliffHighWestStatues

Sint16 MagmaRockCliffHighWestStatues[]

The high west level's statues, as MagmaRockEntranceStatues.

Referenced by scInit(), scMagmaRockBurnStatue() and scMagmaRockTargetStatue().

Definition at line 2813 of file magma_rock.c.

MagmaRockCrumblingPillars

Sint16 MagmaRockCrumblingPillars[]

The high west level's crumbling pillars: (actor, flag) rows ended by -1, the flag set once the pillar has cracked and the next once it has fallen.

Referenced by scInit() and scMagmaRockCheckCrumblingPillars().

Definition at line 2820 of file magma_rock.c.

MagmaRockCliffHighEastStatues

Sint16 MagmaRockCliffHighEastStatues[]

The high east level's statues, as MagmaRockEntranceStatues.

Referenced by scInit(), scMagmaRockBurnStatue() and scMagmaRockTargetStatue().

Definition at line 2827 of file magma_rock.c.

MagmaRockCliffHighEastPillars

Sint16 MagmaRockCliffHighEastPillars[]

The pillars Move pushes on the high east level, ended by -1.

Referenced by scInit(), scMagmaRockFinishPushingPillar() and scMagmaRockStartPushingPillar().

Definition at line 2836 of file magma_rock.c.

MagmaRockCliffLowWestStatues

Sint16 MagmaRockCliffLowWestStatues[]

The low west level's statues, as MagmaRockEntranceStatues.

Referenced by scInit(), scMagmaRockBurnStatue() and scMagmaRockTargetStatue().

Definition at line 2841 of file magma_rock.c.

MagmaRockCliffLowWestPillars

Sint16 MagmaRockCliffLowWestPillars[]

The pillars Move pushes on the low west level, ended by -1.

Referenced by scInit(), scMagmaRockFinishPushingPillar(), scMagmaRockPushPillarEast() and scMagmaRockStartPushingPillar().

Definition at line 2850 of file magma_rock.c.

MagmaRockCliffLowEastPillars

Sint16 MagmaRockCliffLowEastPillars[]

The pillars Move pushes on the low east level, ended by -1.

Referenced by scInit(), scMagmaRockFinishPushingPillar(), scMagmaRockPushPillarWest() and scMagmaRockStartPushingPillar().

Definition at line 2855 of file magma_rock.c.

MagmaRockCliffLowEastStatues

Sint16 MagmaRockCliffLowEastStatues[]

The low east level's statues, as MagmaRockEntranceStatues.

Referenced by scInit(), scMagmaRockBurnStatue() and scMagmaRockTargetStatue().

Definition at line 2860 of file magma_rock.c.

MagmaRockSummitStatues

Sint16 MagmaRockSummitStatues[]

The statue on the top, as MagmaRockEntranceStatues.

Referenced by scInit() and scMagmaRockTargetStatue().

Definition at line 2869 of file magma_rock.c.

FieldEffectDurationScripts

const Sint32 *FieldEffectDurationScripts[]

References FieldEffectLongScript, FieldEffectMediumScript, FieldEffectShortScript and Sint32.

Referenced by fdEffectSpawnResident(), scFieldEffectSpawn() and scFieldEffectSpawnLocal().

Definition at line 2878 of file magma_rock.c.

SceneExits

Uint32 SceneExits[]

Referenced by scGetExits().

Definition at line 2919 of file magma_rock.c.

On this page

MacrosEnumerationsFunctionsVariablesDescriptionMacros in detailFLAG_ENTRANCE_PILLAR_A_PUSHEDFLAG_ENTRANCE_PILLAR_B_PUSHEDFLAG_HIGH_WEST_PILLAR_B_PUSHEDFLAG_HIGH_EAST_PILLAR_PUSHEDFLAG_LOW_WEST_PILLAR_PUSHEDFLAG_LOW_EAST_PILLAR_A_PUSHEDFLAG_LOW_EAST_PILLAR_B_PUSHEDFLAG_WAY_IN_BLASTEDFLAG_CRACKED_PILLAR_A_BURSTFLAG_CRACKED_PILLAR_B_BURSTFLAG_CRACKED_PILLAR_C_BURSTFLAG_CRACKED_PILLAR_D_BURSTFLAG_CRACKED_PILLAR_E_BURSTFLAG_CRUMBLING_PILLAR_A_CRACKEDFLAG_CRUMBLING_PILLAR_B_CRACKEDFLAG_CAVE_DOOR_USEDFLAG_HIGH_WEST_STATUE_READYFLAG_LEADER_KNOCKED_DOWNFLAG_VINE_A_GROWNFLAG_VINE_B_GROWNFLAG_VINE_C_GROWNFLAG_LOW_WEST_ROPE_LASHEDFLAME_RISE_TICKFLAME_SINK_TICKFLAME_SPEEDFLAME_LEVEL_HEIGHTPILLAR_CRUMBLE_TICKEFFECT_SET_MODEEFFECT_SET_SCRIPTEFFECT_SPRITE_PRIORITYDEFINE_BURST_ENTRANCE_OR_CLIFF_PILLARDEFINE_BURST_CRACKED_PILLAREnumerations in detailMAGMA_ROCK_CLIFF_LEVELMAGMA_ROCK_CLIFF_ENTRANCEMAGMA_ROCK_CLIFF_EXITMAGMA_ROCK_METATILE_BEHAVIORanonymous enumMAGMA_ROCK_ENTRANCE_ACTOR_IDMAGMA_ROCK_CLIFF_HIGH_WEST_ACTOR_IDMAGMA_ROCK_CLIFF_HIGH_EAST_ACTOR_IDMAGMA_ROCK_CLIFF_LOW_WEST_ACTOR_IDMAGMA_ROCK_CLIFF_LOW_EAST_ACTOR_IDMAGMA_ROCK_SUMMIT_ACTOR_IDFunctions in detailscMagmaRockCreateEffectActorscMagmaRockFightFuryscMagmaRockSettleBlocksscGetEntrancesscGetExitRegionsscGetExitsscGetActorPlacementsscMagmaRockStartPushingPillarscMagmaRockEndScriptscMagmaRockFinishPushingPillarsyImportFieldPsynergySetupActorPairscMagmaRockPlayBurstscMagmaRockThrowEmbersscMagmaRockLeaveEmbersscMagmaRockMoveFireballscMagmaRockPlaceFireballscMagmaRockWarnStatuescMagmaRockLookUpMetatileStatuescMagmaRockTargetStatuescMagmaRockDriftAndSlowscMagmaRockFireFromStatuescMagmaRockFireStatuescMagmaRockIgniteStatuescMagmaRockBurstCrackedPillarscMagmaRockRaiseFlamePartscMagmaRockRaiseFlameTopscMagmaRockBurnStatueMagmaRockBurstCrackedPillarAMagmaRockBurstCrackedPillarBMagmaRockBurstCrackedPillarCMagmaRockBurstCrackedPillarDMagmaRockBurstCrackedPillarEscMagmaRockResetCaveDoorscMagmaRockEnterCavescMagmaRockResolveBeforeBurstscMagmaRockCheckCrumblingPillarsscMagmaRockReadyHighWestStatuescMagmaRockResetHighWestStatuescMagmaRockKnockLeaderOffWallscMagmaRockPushPillarEastscMagmaRockPushPillarWestscMagmaRockGrowVineAscMagmaRockGrowVineBscMagmaRockGrowVineCscMagmaRockScatterEmbersscMagmaRockFlashTargetscMagmaRockBlastWayInscGetCuesscMagmaRockDropLeaderFromSummitscMagmaRockLandLeaderscMagmaRockAttachFlamePartscMagmaRockBuildFlameColumnscMagmaRockRebuildFlamePartsscMagmaRockPlaceRopescInitscPrepareMapscMagmaRockRestoreCrumblingPillarsscMagmaRockSpawnDustRingscMagmaRockStepOnCrumblingPillarscMagmaRockCrumblePillarscMagmaRockStepOnTrapscMagmaRockDropRockssyImportDecompressTaggedLZscMagmaRockStartFallingRocksVariables in detailMagmaRockRegionsMagmaRockCliffRegionsMagmaRockSummitRegionsMagmaRockPlacementsMagmaRockCliffHighWestPlacementsMagmaRockCliffHighEastPlacementsMagmaRockCliffLowWestPlacementsMagmaRockCliffLowEastPlacementsMagmaRockSummitPlacementsMagmaRockCuesMagmaRockCliffHighWestCuesMagmaRockCliffHighEastCuesMagmaRockCliffLowWestCuesMagmaRockCliffLowEastCuesMagmaRockSummitCuesMagmaRockEntrancePillarsMagmaRockEntranceStatuesMagmaRockCliffHighWestPillarsMagmaRockCliffHighWestStatuesMagmaRockCrumblingPillarsMagmaRockCliffHighEastStatuesMagmaRockCliffHighEastPillarsMagmaRockCliffLowWestStatuesMagmaRockCliffLowWestPillarsMagmaRockCliffLowEastPillarsMagmaRockCliffLowEastStatuesMagmaRockSummitStatuesFieldEffectDurationScriptsSceneExits