src/scene/magma_rock_inside.c
Magma Rock's inside, the rooms in the volcano that the great blast on its top opened. More…
#include "graphics/palette_buffers.h"#include "scene/falling_rocks.h"#include "shared/actor_set_sprite_priority.c"#include "shared/actor_create_silhouette.c"#include "item_ids.h"#include "field/script_inline.h"#include "field/field_engine.h"#include "scene/magma_rock.h"#include "scene/scene.h"#include "game/game.h"#include "macros.h"#include "field/call.h"#include "field/actor_script.h"#include "text/msg_ids.h"#include "scene/trial_road.h"#include "scene/pushed_actor.h"#include "scene/tundaria_tower.h"#include "shared/scene_create_imported_actor.c"#include "../field/field_effect_move.c"#include "shared/field_effect_spawn.c"#include "shared/position_distance.c"#include "shared/actor_find_at_metatile.c"#include "shared/block_push_onto.c"#include "shared/map_metatile_fill_byte.c"#include "shared/position_flat_distance.c"#include "shared/map_metatile_set_shape.c"#include "shared/map_metatile_get.c"#include "shared/map_metatile_set.c"#include "shared/blocks_mark_metatiles.c"#include "shared/block_clear_metatiles.c"#include "shared/actors_raise_metatiles.c"#include "shared/statue_flash_under_burst.c"#include "shared/statue_find_under_burst.c"#include "shared/orbit_update.c"#include "shared/actor_aim_at_watched.c"#include "shared/pillar_restore_raised.c"#include "shared/leader_check_crumbling_step.c"#include "shared/pillar_take_out_of_play.c"#include "shared/pillar_restore.c"#include "shared/actor_take_place_of.c"#include "shared/field_effect_advance_motion_priority.c"#include "shared/dust_scatter.c"#include "shared/actor_set_metatile_shape.c"#include "shared/leader_set_metatile_shape.c"#include "shared/particle_update_falling.c"#include "shared/rock_end_falling.c"#include "shared/field_effect_duration_scripts.c"#include "shared/push_leader_steps.c"#include "shared/magma_rock_ember_scripts.c"#include "shared/lesson_scripts.c"#include "shared/dust_scatter_script.c"#include "shared/dust_burst_script.c"#include "shared/scene_entrances_default.c"
Structures
| Name | Description | |
|---|---|---|
struct | SPARK_ORBITER | A spark circling Jenna as she learns Blaze, as its script reads the actor: its place, the radius it circles at, the steps it has left, its angle and speed, and the actor it circles. |
Macros
| Name | Description | |
|---|---|---|
#define | FLAG_ENTRANCE_FLOODED FLAG_AREA_TEMP(0x00) | The lava rises in three parts of the volcano, each when a statue's fireball strikes the great stone face there, and drains when a floor switch by that part's gate is pressed; the flags hold the state until the party comes back in from outside. |
#define | FLAG_FURY_FLOODED FLAG_AREA_TEMP(0x01) | |
#define | FLAG_LOWER_ROOMS_FLOODED FLAG_AREA_TEMP(0x02) | |
#define | FLAG_WEST_TORCH_LIT FLAG_AREA_TEMP(0x03) | |
#define | FLAG_EAST_TORCH_LIT FLAG_AREA_TEMP(0x04) | |
#define | FLAG_TABLET_TORCH_LIT FLAG_AREA_TEMP(0x05) | |
#define | FLAG_INSIDE_CRACKED_PILLAR_A_BURST FLAG_AREA_TEMP(0x50) | Set as Burst breaks each of the cracked pillars' room's two pillars, until the party leaves Magma Rock. |
#define | FLAG_INSIDE_CRACKED_PILLAR_B_BURST FLAG_AREA_TEMP(0x51) | |
#define | FLAG_ENTRANCE_PILLAR_PUSHED 0x9f0 | Each pushed pillar's flag keeps it where it was pushed. |
#define | FLAG_FURY_PILLAR_PUSHED 0x9f1 | |
#define | FLAG_PILLAR_A_PUSHED 0x9f2 | |
#define | FLAG_PILLAR_B_PUSHED 0x9f3 | |
#define | FLAG_PILLAR_C_PUSHED 0x9f4 | |
#define | FLAG_NORTH_PILLAR_PUSHED 0x9f5 | |
#define | FLAG_EAST_PILLAR_PUSHED 0x9f6 | |
#define | FLAG_LEDGE_PILLAR_PUSHED 0x9f7 | |
#define | FLAG_ROCKS_RELEASED 0x9f8 | |
#define | FLAG_MAGMA_BALL_TAKEN 0x9f9 | |
#define | FLAG_BLAZE_LEARNED 0x9fa | |
#define | FLAG_ANY_MARKER_LIT FLAG_SCENE_TEMP(0x00) | The Blaze tablet's room: the map's upper layer numbers some of the stones on the way to the tablet; stopping on one raises the cue STEP_METATILE_CUE_BASE plus its number, and its flag then keeps the stone behind it gone. |
#define | FLAG_MARKER_LIT (marker) (FLAG_SCENE_TEMP(0x00) + (marker)) | |
#define | FLAG_TORCH_LIT (flame) | The flag that keeps a torch of the ember stone's room lit, by its flame's actor: FLAG_WEST_TORCH_LIT or FLAG_EAST_TORCH_LIT. |
#define | FACING_QUARTER_MASK (TRIG_TURN - DEGtoANG(90)) | The quarter turn a facing lies in, as Felix faces a switch or the lava: an eighth of a turn added, then this kept. |
#define | EFFECT_SET_MODE fdActorSelectAnimation | |
#define | EFFECT_SET_SCRIPT fdActorStartScript | |
#define | EFFECT_SPRITE_PRIORITY | |
#define | DEFINE_MAGMA_ROCK_INSIDE_BURST_PILLAR (name, pillar, flag) | Defines what Burst does to a cracked pillar: it crumbles (scMagmaRockInsideBurstCrackedPillar) and its flag is set. |
#define | DEFINE_MAGMA_ROCK_INSIDE_LIGHT_TORCH (name, litFlag, flame, x, z) | Defines what Blaze at a torch does: unless litFlag is set, flame waits hidden on it at (x, z), a sixteenth of its size. |
#define | DEFINE_MAGMA_ROCK_INSIDE_READ_TABLET_FROM (name, sideX) | Defines a function for reading the Blaze tablet from one side: once Blaze is learned only its inscription shows; before, Felix walks from sideX round to its front, faces it, and reads it. |
#define | HIDE_LAVA () | Hides the lava's layer (BG2) while the lava is down: it is blended in at weight 0. |
Enumerations
| Name | Description | |
|---|---|---|
enum | anonymous enum { STEP_METATILE_CUE_BASE } | The cue a numbered stone of the Blaze tablet's room raises, less its number. |
enum | anonymous enum { MARKER_WALKWAY_END, MARKER_PLATFORM_FOOT } | The numbers the Blaze tablet room's upper layer gives the metatiles of column 16 on the way to the tablet: the end of the entrance's walkway (row 26), then a stone every second row, up to the foot of the tablet's platform (row 14). |
enum | MAGMA_ROCK_INSIDE_METATILE_BEHAVIOR { METATILE_FLOOR_SWITCH, METATILE_SECOND_FLOOR_SWITCH, METATIL … } | The metatile behaviours the rooms' maps mark their spots with, which the cue tables answer. |
enum | anonymous enum { CRACKED_PILLARS_UPPER_HALL_LAST_ENTRANCE } | The cracked pillars' room's entrances up to this one open onto its upper hall, whose lava rises with Fury's room's; the rest onto its lower rooms. |
enum | anonymous enum { CHAINS_NORTH_LAST_ENTRANCE } | The room of chains' entrances up to this one open onto its north part, by the north floor switch; the rest onto its south part. |
enum | MAGMA_ROCK_INSIDE_UPPER_PASSAGES_PASSAGE { MAGMA_ROCK_INSIDE_UPPER_PASSAGES_WEST_TO_EAST, MAGMA_ROCK_IN … } | The upper passages' two parts: a doorway in the west part's north wall leads to the foot of a passage in the east part, and back. |
enum | MAGMA_ROCK_INSIDE_ENTRANCE_PASSAGE { MAGMA_ROCK_INSIDE_ENTRANCE_HALL_TO_SOUTH_ROOM, MAGMA_ROCK_IN … } | The entrance hall's passage south, from the hall's south-east to a doorway in the north wall of the room south of it, and back. |
enum | MAGMA_ROCK_INSIDE_FURY_PASSAGE { MAGMA_ROCK_INSIDE_FURY_NORTH_TO_SOUTHWEST, MAGMA_ROCK_INSIDE … } | Fury's room's three parts: a passage south from the west end of its north part to a doorway of the south-west part, and a passage south from that part to the doorway of the south-east part, where Fury waits. |
enum | MAGMA_ROCK_INSIDE_CHAINS_PASSAGE { MAGMA_ROCK_INSIDE_CHAINS_NORTH_TO_SOUTH_WEST, MAGMA_ROCK_INS … } | The room of chains' two passages from its north part, by the north floor switch, south to the two doorways of its south part, by the south floor switch and the grated gate. |
enum | MAGMA_ROCK_INSIDE_LOWER_ROOMS_PASSAGE { MAGMA_ROCK_INSIDE_LOWER_ROOMS_NORTHEAST_TO_SOUTHEAST_WEST, M … } | The lower rooms' passages into the south-east room: three passages south from the north-east room to its three doorways, and two doorways of the south-west room to the feet of its two passages. |
enum | MAGMA_ROCK_INSIDE_EMBER_STONE_PASSAGE { MAGMA_ROCK_INSIDE_EMBER_STONE_WEST_TO_NORTHEAST_WEST, MAGMA_ … } | The ember stone room's passages: three passages south from its west part, the way to the Blaze tablet's stairway, to the two doorways of the north-east part, where the stone lies in the lava, and to the doorway behind the pillar the two torches sink; and a passage south from the north-east part to the doorway of the south-east part. |
enum | MAGMA_ROCK_INSIDE_UPPER_PASSAGES_ACTOR_ID { ACTOR_UPPER_PASSAGES_PLATFORM } | The upper passages: one lava platform. |
enum | MAGMA_ROCK_INSIDE_ENTRANCE_ACTOR_ID { ACTOR_STATUE, ACTOR_COLUMN_A, ACTOR_COLUMN_B, ACTOR_COLUMN_C … } | The entrance hall: the small statue whose fireball sets the great face flooding it, the row of columns standing across its lava, the pillar pushed into that row, an unseen marker on its floor switch and the Mars Djinni "Fire19". |
enum | MAGMA_ROCK_INSIDE_FURY_ACTOR_ID { ACTOR_FURY_SWITCH_MARKER, ACTOR_WEST_PLATFORM, ACTOR_FURY_PI … } | Fury's room: the statue, an unseen marker on its floor switch, two lava platforms, the pillar pushed into the lava, the tightrope's posts and Fury. |
enum | MAGMA_ROCK_INSIDE_CRACKED_PILLARS_ACTOR_ID { ACTOR_CRACKED_PILLAR_A, ACTOR_CRACKED_PILLAR_B, ACTOR_LOWER_ … } | The room of the cracked pillars: three statues, the two cracked pillars Burst breaks, ten lava platforms, three pillars to push and a column. |
enum | MAGMA_ROCK_INSIDE_CHAINS_ACTOR_ID { ACTOR_NORTH_SWITCH_MARKER, ACTOR_SOUTH_SWITCH_MARKER, ACTOR_ … } | The room of chains: unseen markers on its two floor switches and the two chains hanging down its wall either side of its doorway, which Whirlwind swings. |
enum | MAGMA_ROCK_INSIDE_LOWER_ROOMS_ACTOR_ID { ACTOR_NORTH_PLATFORM, ACTOR_NORTH_PILLAR, ACTOR_SOUTHWEST_PL … } | The lower rooms: three lava platforms and two pillars to push. |
enum | MAGMA_ROCK_INSIDE_EMBER_STONE_ACTOR_ID { ACTOR_SUNKEN_PILLAR_A, ACTOR_SUNKEN_PILLAR_B, ACTOR_SUNKEN_P … } | The room of the ember stone: the sunken pillars, the pillar the two torches lower, the stone that holds the Magma Ball, the rocks and flames that fall with it, the torches' flames and a pillar to push. |
enum | anonymous enum { PILLAR_ANIMATION_SUNK, COLUMN_ANIMATION_STANDING, COLUMN_ANI … } | The animations of the yellow-topped stone pillars (SPRITE_YELLOW_BLOCK) and of the orange columns: standing whole (animation 1 of both sprites), or sunk to their tops in the lava or (the pillars) into the floor. |
enum | anonymous enum { FLAME_GROW_STEPS } | A torch Blaze lights: its flame starts a sixteenth of its size and grows by a sixteenth FLAME_GROW_STEPS times, 5 ticks apart; then the pillar the torches guard sinks PILLAR_SINK_DEPTH pixels into the floor, a pixel every 5 ticks, as deep as the ember stone room's sunken pillars stand. |
enum | anonymous enum { LAVA_ALREADY_UP } | What scMagmaRockInsideRaiseLava and scMagmaRockInsideDrainLava keep while the lava is already up; only its being nonzero is read. |
enum | anonymous enum { PLATFORM_PATH_THIRD_CORNER } | A lava platform's path script is four corners, each a move and a wait for arrival, five words: the second platform of each pair of the cracked pillars' room starts at this word, the third corner, across from the first. |
enum | MAGMA_ROCK_INSIDE_BLAZE_TABLET_ACTOR_ID { ACTOR_BLAZE_TABLET, ACTOR_TORCH_PILLAR, ACTOR_SOURCE_FLAME, … } | The Blaze tablet's room: the tablet, and on the ledge in the lava's south-west the pillar in the way out, the flame burning in the west bowl beside it, which Blaze carries, and the flame of the east bowl it lights. |
enum | anonymous enum { FIRE_BURST_TICKS } | The ticks a statue's fireball bursts where it lands, throwing out an ember every other tick. |
enum | anonymous enum { CRACKED_PILLAR_ANIMATION_CRUMBLE, CRACKED_PILLAR_CRUMBLE_TIC … } | A cracked pillar's animation as Burst breaks it: its two cracked pictures, then its stump, 41 ticks each. |
enum | anonymous enum { LAVA_FALL_FLAME_BURSTS } | The bursts of flame, 8 ticks apart, as a statue's fireball strikes a great stone face. |
Functions
| Name | Description | |
|---|---|---|
void | scSetActorSpritePriority (ACTOR *actor, Sint32 priority) | Fixes the priority of the actor's sprite and its shadow, which then no longer follows the map metatile under it (clears ACTOR_PRIORITY_AUTOMATIC). |
void | scMagmaRockInsideBurstCrackedPillar (Sint32 stage, Sint32 tick) | Burst on one of the tall cracked pillars: rocks fall round it while Burst lasts, one at each small explosion and eight at the last blast, which also takes the pillar away, leaving a cloud of dust; meanwhile the pillar crumbles. |
void | scMagmaRockInsideTrackStepMetatile (void) | A tick event: once Felix stops on a new metatile, puts back the picture of the stepping stone he left and, in the Blaze tablet's room, raises the cue of that stone if the map's upper layer numbers it (STEP_METATILE_CUE_BASE plus its number, scMagmaRockInsideStepOnMarker). |
void | fdActorSetMetatileShape (Sint32 heightOffset, Sint32 layer, Sint32 owner) | Gives the metatile of layer under an actor the shape of the ground there, level steps of 8 pixels (METATILE_HEIGHT_STEPS) higher, or lower when negative, as a crumbling pillar sinks 4. |
static __inline__ ACTOR * | scMagmaRockInsideCreateActor (Sint32 kind, Sint32 x, Sint32 y, Sint32 z) | Creates an actor of the given sprite at a point in the room. |
void | scMagmaRockInsidePausePlatform () | A lava platform's update: holds it still while a menu, Psynergy or an item is in use, and before the room's opening transition has started. |
void | scBlocksMarkMetatiles (Uint16 *ids) | For each actor of a list ended by ACTOR_LIST_END: clears its mark and, if it stands on a climbable metatile, walls off the overhead layer's metatiles a row north and south of where it is drawn and marks it. |
void | scMagmaRockInsideWaitForLanding (ACTOR *actor) | Waits up to 60 ticks for an actor's vertical speed to come to zero. |
Sint32 | scMapMetatileGetAttributes (Uint32 layer, Sint32 x, Sint32 y) | Returns a metatile's collision code and attributes as a halfword. |
Sint32 | scStatueFindUnderBurst (Uint16 *table) | Looks up the metatile Burst is cast at in an (actor, metatile, value) table ended by ACTOR_LIST_END: on a match, makes the row's statue the target and returns its value. |
Sint32 | scPosFlatDistance (FIXED *from, FIXED *to) | The distance between two positions across the ground (x and z), in whole pixels. |
void | scMagmaRockInsideTrailEmbers (ACTOR *actor) | A statue's fireball's update as it flies: it trails an ember every fourth tick, a few pixels to either side, and whooshes every sixteenth. |
void | scMagmaRockInsideRaiseLava (void) | A statue's fireball strikes the great stone face: the screen shakes as flames burst over the face, it roars and its eyes light red, lava pours from its mouth and spreads over the hall's floor until the hall is flooded. |
void | scMagmaRockInsideDropRocks (Sint32 x, Sint32 y, Sint32 z, Sint32 count) | Spawns count rocks around (x, y, z), each pushed out at a random angle and thrown up and out along it. |
void | scMagmaRockInsideStartFallingRocks (void) | Starts the falling rocks: loads their picture, prepares 64 small sprites and adds the event that draws them. |
void | scMagmaRockInsideSetEntranceFlooded (void) | The entrance hall as flooded: its flag set, the metatile at (15, 13) no longer climbable, and its columns and pillar shown standing in the lava. |
void | scMagmaRockInsideSetFuryFlooded (void) | Fury's room as flooded: its flag set, the metatiles at (24, 15) and (9, 16) no longer climbable, and its pillar shown standing in the lava; from the cracked pillars' room, only the metatile at (26, 14). |
void | scMagmaRockInsideSetLowerRoomsFlooded (void) | The lower rooms as flooded: their flag set and, in the cracked pillars' room, its eight white platforms afloat in pairs, each pair's second starting across the square from the first, and its three pillars and column shown standing in the lava. |
void | scMagmaRockInsideRaiseActorMetatiles (Uint16 *list) | For each statue of a list of (statue, metatile, cap) rows ended by ACTOR_LIST_END: holds it still, without a shadow, and raises the metatile it stands on 32 pixels above the ground there, so it stands as a block. |
void | scDustScatter (Sint32 spread) | Eight clouds of dust rise in a row across the leader, 2 pixels apart, and fly out from him in eight directions when spread is set. |
void | fdLeaderSetMetatileShapeAt (Sint32 heightOffset, Sint32 layer) | Sets the shape of the metatile under the leader level steps above its ground. |
void | scMagmaRockInsideSpawnDustRing (void) | Throws a ring of 16 dust clouds out from the leader as a pillar lands. |
void | scMagmaRockInsideDecompressTaggedLZ (void *entry, void *dest) | Decompresses a tagged LZ resource through the overlay's import. |
void | scMagmaRockInsideInitRockSprite (EFFECT_SPR *sprite, Sint32 width, Sint32 height, Uint32 attributes, Sint32 tile) | Sets up an effect sprite of the given size, attributes and tile, through the overlay's import. |
void | scParticleUpdateFalling (void) | Each tick, the falling rocks in flight: each falls, damped and pulled down, for FALLING_ROCK_TICKS ticks, keeping all but a sixty-fourth of its speed each tick, and shows the five pictures of falling_rock.png in turn, four ticks apiece, shrinking as it goes. |
void | syImportFieldPsynergySetupActorPair (Sint32 owner, Uint16 value) | The overlay's import stub that sets up a field Psynergy's caster and target. |
void | fdActorPlaySoundInView (ACTOR *actor, Sint32 sound) | 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. |
void | scMagmaRockInsideFightFury (void) | Talking to Fury, the Mars Djinni on the ledge just west of the north doorway into its room's east hall, starts a battle with it. |
void | scMagmaRockInsideMeetDjinni (void) | Talking to the Mars Djinni in the entrance hall's south (metatile (18, 31)) makes it join the party. |
void | scMagmaRockInsideStartLavaPlatform (Sint32 id, Sint32 *path, Sint16 flag) | Sets a white lava platform afloat: risen and running round its path while flag (its part's lava) is set, sunk under the floor otherwise; its update holds it still during menus. |
Sint32 | scMagmaRockInsideSetMetatileShape (Sint32 terrain, Sint32 x, Sint32 z, Sint32 height) | Sets the shape of a metatile to the height given. |
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 placed actors of the room the party is in. |
void | scMagmaRockInsideStartPushingPillar (void) | Nothing visible happens as Felix starts to push one of the yellow-topped stone pillars, whether by walking into it or with Move; the game frees the metatiles it walled off, so that it can slide. |
void | scMagmaRockInsideFinishPushingPillar (void) | A yellow-topped stone pillar Felix has pushed comes to rest a metatile further on. |
Sint32 | syImportBattleEffectStopMainActor (void) | The overlay's import stub to fdBattleEffectStopMainActor. |
void | scMagmaRockInsidePlayBurst (Uint16 value) | Plays Burst from Felix at an actor, as when he casts it, for a statue's fireball that strikes one: in the cracked pillars' room, the pillar it hits breaks as if Burst had been cast at it. |
void | scFieldEffectSpawn (Sint32 x, Sint32 y, Sint32 z, Sint32 velocityX, Sint32 velocityY, Sint32 velocityZ, Uint32 flags, const EFFECT_OPTIONS *options) | Spawns a field effect at x, y, z moving at the velocity given, its type, scale, palette, priority, script, rotation, spin and update chosen by the EFFECT_USE_ flags from the options. |
void | scMagmaRockInsideResolveBeforeBurst (void) | Nothing visible happens as Felix starts casting Burst at a fire-spitting statue; the game finishes what the field engine still had pending, so that the cast and the statue's fire play undisturbed. |
void | scStatueFlashUnderBurst (ACTOR *actor) | The update of a statue Burst is going off at: it blinks red on the ticks its mask picks. |
void | scMagmaRockInsideTargetStatue (Sint32 stage) | As Felix casts Burst at the small statue beside a great stone face, the statue blinks red, slowly through the small explosions and faster at the last blast. |
void | scMagmaRockInsideDriftAndSlow (ACTOR *actor) | An ember's update as a statue's fireball bursts: moves it by its velocity, kept in bounce, gravity and sceneWord, and slows it by an eighth. |
void | scMagmaRockInsideFireFromStatue (ACTOR *source) | A statue's fireball flies the way the statue faces, the camera following, until it meets the edge of the fire's reach, a great stone face or something standing in its path. |
void | scRockEndFalling (void) | Ends the falling rocks: removes their event and frees their picture and state. |
void | scMagmaRockInsideFireStatue (void) | Once Felix's Burst on the small statue beside a great stone face is over, the statue flashes white and spits a fireball the way it faces. |
void | scMagmaRockInsideLeapOverLava (void) | Felix walks to the lava's edge where something stands in the lava two metatiles ahead, a white platform, a column or a pillar pushed in, and springs across onto it, keeping pace with a platform as it moves. |
void | scMagmaRockInsideDrainLava (void) | Felix steps onto the small floor switch beside a grated gate and presses it down: the ground shakes and the gate lifts. |
DEFINE_MAGMA_ROCK_INSIDE_BURST_PILLAR( | MagmaRockInsideBurstCrackedPillarA , ACTOR_CRACKED_PILLAR_A, FLAG_INSIDE_CRACKED_PILLAR_A_BURST) | Burst cast at the tall cracked pillar east of the cracked pillars' room's north statue (metatile (17, 12)) breaks it: rocks fall round it as it crumbles and the last blast leaves only dust. |
DEFINE_MAGMA_ROCK_INSIDE_BURST_PILLAR( | MagmaRockInsideBurstCrackedPillarB , ACTOR_CRACKED_PILLAR_B, FLAG_INSIDE_CRACKED_PILLAR_B_BURST) | Burst cast at the cracked pillars' room's other tall cracked pillar (metatiles (19, 14) and (24, 16)) breaks it: rocks fall round it as it crumbles and the last blast leaves only dust. |
void | scMagmaRockInsideSmokeEmber (ACTOR *actor) | The update of a rock or flame the ember stone throws: it trails smoking embers every other tick for 64 ticks. |
static __inline__ void | ThrowFromLava (Sint32 id, Sint32 x, Sint32 z) | Throws a rock or flame up out of the lava where the ember stone lies, to land at (x, z) in pixels, smoking as it flies (scMagmaRockInsideSmokeEmber). |
void | scMagmaRockInsideReleaseRocks (void) | The first time Felix hops onto the islet in the lava at metatile (45, 19), in the ember stone's room east of the torches' ledge, the room shakes and the camera turns to the lava: embers spout and pound, four rocks and four flames are thrown out to land on the islets round the spot, and last the ember stone itself, a glowing red rock, lands on an islet to the west. |
void | scMagmaRockInsideTakeFlame (void) | Felix casts Blaze at one of the flames the ember stone threw into the lava: Blaze sprays far, and unless the east torch on the ledge west of the lava is already lit, a small hidden flame waits on it, which grows if the spray reaches it (scMagmaRockInsideGrowFlame). |
DEFINE_MAGMA_ROCK_INSIDE_LIGHT_TORCH( | MagmaRockInsideLightTorch , FLAG_WEST_TORCH_LIT, ACTOR_WEST_TORCH_FLAME, 600, 312) | Felix casts Blaze at the east torch's flame on the ledge west of the ember stone's lava: unless the west torch beside it is lit, a small hidden flame waits on the west torch, which grows if the spray reaches it (scMagmaRockInsideGrowFlame). |
static __inline__ void | GrowFlame (ACTOR *flame) | The flame Blaze's spray reached shows and grows from a sixteenth of its size to full. |
static __inline__ void | RumbleBeforePillarSinks (void) | Once a torch's flame burns, Felix's Psynergy ends and the ground rumbles, before the camera turns to the pillar the torch guards (SinkPillar). |
static __inline__ void | SinkPillar (ACTOR *pillar) | The pillar a torch guards sinks PILLAR_SINK_DEPTH pixels into the floor, a pixel every 5 ticks, with a translucent black silhouette of it (scPlaceTranslucentBlackActorFX) until it is down. |
void | scMagmaRockInsideGrowFlame (void) | Blaze's spray reaches a torch on the ledge west of the ember stone's lava, and its flame grows until it burns full. |
void | scMagmaRockInsidePutOutFlames (void) | Nothing visible happens when Blaze, cast at a flame in the ember stone's room, reaches no torch; the game takes away the hidden flames it had set waiting on the unlit torches. |
void | scMagmaRockInsideExamineEmberStone (void) | Examining the ember stone, the red rock the eruption threw onto an islet in the lava (metatile (43, 14)): "There's something burning like an ember within the stone." Answering yes, Felix takes the Magma Ball from it, if someone in the party can carry it. |
void | scMagmaRockInsideOpenStairs (void) | Walking north into the stone wall under its golden crest, at the end of the sunken pillars' path in the ember stone room's west (metatile (15, 21)), opens a stairway in it step by step, and Felix walks in and on to the Blaze tablet's room. |
void | scMagmaRockInsideStartStepMetatiles (void) | Starts watching the stepping stones Felix walks on in the Blaze tablet's room (scMagmaRockInsideTrackStepMetatile). |
void | scMagmaRockInsideStampStepMetatile (void) | Nothing seems to happen as Felix steps onto one of the stepping stones that cross the Blaze tablet room's lava, but he is seen standing on top of it: the game saves the stone's picture under him (to metatile (73, 72)) and draws the picture kept at (70, 72) in its place, until he leaves it (scMagmaRockInsideTrackStepMetatile). |
void | scMagmaRockInsideStampOtherStepMetatile (void) | Nothing seems to happen as Felix steps onto a stepping stone of the other kind in the Blaze tablet room's lava, but he is seen standing on top of it: as scMagmaRockInsideStampStepMetatile, drawing the picture kept at (71, 72). |
void | scMagmaRockInsideFadeStoneAway (Sint32 x, Sint32 z) | The stepping stone at (x, z), in pixels, in the line of stepping stones that leads to the Blaze tablet, glows white with a drip and fades away into the lava (an object window over it, blended out), and its metatile is walled off. |
void | scMagmaRockInsideStepOnMarker (void) | Felix walks north from the Blaze tablet room's entrance along the line of stepping stones to the tablet's platform (column 16 of the map): on every second stone, the stone he has just stepped off glows white with a drip and fades away into the lava, so there is no way back. |
DEFINE_MAGMA_ROCK_INSIDE_LIGHT_TORCH( | MagmaRockInsideLightTabletTorch , FLAG_TABLET_TORCH_LIT, ACTOR_TORCH_FLAME, 136, 360) | Felix casts Blaze at the flame in the west bowl on the ledge in the Blaze tablet room's south-west: unless the east bowl beside it is lit, a small hidden flame waits in the east bowl, which grows if the spray reaches it (scMagmaRockInsideGrowTabletFlame). |
void | scMagmaRockInsideGrowTabletFlame (void) | Blaze's spray reaches the east bowl on the Blaze tablet room's south-west ledge, and its flame grows until it burns full; the ground rumbles, the camera turns to the stone pillar between the bowls, and it sinks into the floor until its top is a stepping stone across the lava (metatile (7, 21)), the way out of the room. |
void | scMagmaRockInsidePutOutTabletFlame (void) | Nothing visible happens when Blaze, cast at the flame on the Blaze tablet room's south-west ledge, does not reach the east bowl; the game takes away the hidden flame it had set waiting there. |
void | scMagmaRockInsideSpawnSpark (ACTOR *src) | Leaves a small red spark behind a spark circling in to Jenna as she learns Blaze (scMagmaRockInsideOrbitParent). |
Bool | scMagmaRockInsideOrbitParent (SPARK_ORBITER *object) | A spark's script call: circles in to its parent, leaving sparks, until its steps run out; 0 ends its script. |
Sint32 | scMagmaRockInsideDriftForSteps (ORBIT *object) | A rising spark's script call: drifts by its centre and radius, kept as velocities, for its phase's count of steps; 0 ends its script. |
void | scMagmaRockInsideTrailSparks (ACTOR *actor) | An actor's update: drops a white sparkle near it every eighth tick. |
void | scMagmaRockInsideLearnBlaze (Sint32 tabletId, Sint32 learnerId) | The Blaze tablet's lesson: the music fades, the ground shakes and the screen takes on a warm tint as the tablet lifts, blinking and shooting sparks up; red sparks circle in to the one who learns and rise round her as she lifts too, the screen flashes white, and both settle back as the music returns. |
void | scMagmaRockInsideReadBlazeTablet (void) | Felix reads the Blaze tablet from the south: "Wielder of Flame's strength, Lay your hands upon this stone." The first time, Jenna steps out beside him ("Flame's strength? |
void | scMagmaRockInsideReadBlazeTabletFromNorth (void) | Felix reads the Blaze tablet from behind, on its north side: the first time he walks round its west side to the front and it is read there (scMagmaRockInsideReadBlazeTablet); once Blaze is learned only its inscription is shown. |
DEFINE_MAGMA_ROCK_INSIDE_READ_TABLET_FROM( | MagmaRockInsideReadBlazeTabletFromEast , 280) | Felix reads the Blaze tablet from its east side: the first time he steps round to the front and it is read there (scMagmaRockInsideReadBlazeTablet); once Blaze is learned only its inscription is shown. |
DEFINE_MAGMA_ROCK_INSIDE_READ_TABLET_FROM( | MagmaRockInsideReadBlazeTabletFromWest , 248) | Felix reads the Blaze tablet from its west side: the first time he steps round to the front and it is read there (scMagmaRockInsideReadBlazeTablet); once Blaze is learned only its inscription is shown. |
const CUE * | scGetCues (void) | The scene's cues: the rooms of names' for any entrance above ENTRANCE_NAMES_ABOVE, else the debug room's. |
void | scMagmaRockInsideLayerWithLeader (ACTOR *pillar) | The entrance hall pillar's update: its drawing order comes from the metatiles under it, except while Felix stands at its height and not in front of it, when it is drawn at the lowest priority. |
static __inline__ void | RaiseSwitchMarker (Sint32 id) | Stands an unseen marker 20 pixels up on a floor switch, a platform Felix stands on until he presses the switch down (scMagmaRockInsideDrainLava). |
static __inline__ void | SettleActorAt (Sint32 id, Sint32 height) | Sets an actor down at the given height, no longer falling. |
Sint32 | scInit (void) | Sets up the room the party comes into: Felix able to stand on the lava platforms, the room's pillars, statues and switch markers in place, and its lava up or hidden by the flags. |
Sint32 | scPrepareMap (void) | Coming back in from outside, at the summit or by the door from Magma Rock's entrance, the party finds the lava drained from every room. |
void | scMagmaRockInsideCrumblePillar (const void *data, Sint32 id) | Unused: a crumbling pillar named in the (actor, flag) table gives way with a shake, rubble and a thump, as on Magma Rock's outside. |
void | scMagmaRockInsideStepOnTrap (const Uint16 *table) | Unused: stepping onto a crumbling floor, as on Magma Rock's outside: the first time it shakes and cracks, the second time it gives way with the leader. |
Variables
| Name | Description | |
|---|---|---|
extern Sint32 | MagmaRockInsideFlameScript [] | A small spark's actor script (scMagmaRockInsideSpawnSpark). |
extern Sint32 | MagmaRockInsideLastStepMetatile | The metatile the leader last stopped on, x in the high half and z in the low, or -1 for none (scMagmaRockInsideTrackStepMetatile). |
extern Sint16 | MagmaRockInsideEntrancePillars [] | The pillars Move pushes in the entrance, ended by -1. |
extern Sint16 | MagmaRockInsideFuryPillars [] | The pillars Move pushes in Fury's room, ended by -1. |
extern Sint16 | MagmaRockInsideCrackedPillarsPillars [] | The pillars Move pushes in the cracked pillars' room, ended by -1. |
extern Sint16 | MagmaRockInsideEmberStonePillars [] | The pillars Move pushes in the ember stone's room, ended by -1. |
extern Sint32 | MagmaRockInsideCrackedPillarsFirstPairPath [] | The cracked pillars' room's lava platforms A and B: one square, B starting at its third corner (scMagmaRockInsideSetLowerRoomsFlooded). |
extern Sint32 | MagmaRockInsideCrackedPillarsSecondPairPath [] | The cracked pillars' room's lava platforms C and D, as A and B. |
extern Sint32 | MagmaRockInsideCrackedPillarsThirdPairPath [] | The cracked pillars' room's lava platforms E and F, as A and B. |
extern Sint32 | MagmaRockInsideCrackedPillarsFourthPairPath [] | The cracked pillars' room's lava platforms G and H, as A and B. |
extern Uint32 | DustScatterScript [] | It lasts 33 ticks, then stops and is gone. |
extern Uint32 | DustBurstScript [] | It lasts 44 ticks, then stops and is gone. |
extern Uint32 | FieldEffectShortScript [] | |
extern Uint32 | FieldEffectMediumScript [] | The flash about the Tomegathericon: held 45 ticks, then put away and freed. |
Sint32 | MagmaRockInsideStepMetatileWidth | The stepping stone Felix stands on in the Blaze tablet's room, whose picture was swapped for one of him on top of it: the size and map place of the metatiles to put back as he leaves it. |
Sint32 | MagmaRockInsideStepMetatileHeight | |
Sint32 | MagmaRockInsideStepMetatileX | |
Sint32 | MagmaRockInsideStepMetatileZ | |
extern Sint32 | PushLeaderSteps [] | One metatile along each facing's nearest direction (PUSH_STEP). |
extern ACTOR_PLACE | MagmaRockInsidePlacements [] | The actors placed in the upper passages: its one white platform. |
extern ACTOR_PLACE | MagmaRockInsideEntrancePlacements [] | The actors placed in the entrance. |
extern ACTOR_PLACE | MagmaRockInsideFuryPlacements [] | The actors placed in Fury's room. |
extern ACTOR_PLACE | MagmaRockInsideCrackedPillarsPlacements [] | The actors placed in the cracked pillars' room. |
extern ACTOR_PLACE | MagmaRockInsideChainsPlacements [] | The actors placed in the room of chains. |
extern ACTOR_PLACE | MagmaRockInsideLowerRoomsPlacements [] | The actors placed in the lower rooms. |
extern ACTOR_PLACE | MagmaRockInsideEmberStonePlacements [] | The actors placed in the ember stone's room. |
extern ACTOR_PLACE | MagmaRockInsideBlazeTabletPlacements [] | The actors placed in the Blaze tablet's room. |
extern Sint16 | MagmaRockInsideLowerRoomsPillars [] | The pillars Move pushes in the lower rooms, ended by -1. |
extern Uint32 | MagmaRockEmberScript [] | An ember's actor script. |
extern Sint16 | MagmaRockInsideStatues [] | The statue Burst wakes in the entrance hall and in Fury's room, as (actor, the metatile Burst is cast at, unused) rows ended by -1. |
extern Sint16 | MagmaRockInsideCrackedPillarsStatues [] | The cracked pillars' room's three statues, as (actor, the metatile Burst is cast at, unused) rows ended by -1 (scStatueFindUnderBurst). |
extern Sint32 | MagmaRockFlameEmberScript [] | A flame ember's actor script. |
extern Uint32 | LessonTabletRiseScript [] | The tablet lifts 24 pixels. |
extern Sint32 | MagmaRockInsideRisingSparkScript [] | A spark shooting up from the Blaze tablet as it lifts: its actor script. |
extern Sint32 | MagmaRockInsideCirclingSparkScript [] | A circling spark's actor script (scMagmaRockInsideOrbitParent). |
extern Uint32 | LessonAdeptRiseScript [] | The Adept rises 16 pixels. |
extern Sint32 | MagmaRockInsideOrbitScript [] | A rising spark's actor script: it circles and drifts for its steps (scMagmaRockInsideDriftForSteps). |
extern Sint32 | LessonTabletSettleScript [] | The tablet settles back on its stand. |
extern Sint32 | LessonAdeptSettleScript [] | The Adept settles back to the ground. |
extern CUE | MagmaRockInsideCues [] | The cues of the upper passages. |
extern CUE | MagmaRockInsideEntranceCues [] | The cues of the entrance. |
extern CUE | MagmaRockInsideFuryCues [] | The cues of Fury's room. |
extern CUE | MagmaRockInsideCrackedPillarsCues [] | The cues of the cracked pillars' room. |
extern CUE | MagmaRockInsideChainsCues [] | The cues of the room of chains. |
extern CUE | MagmaRockInsideLowerRoomsCues [] | The cues of the lower rooms. |
extern CUE | MagmaRockInsideEmberStoneCues [] | The cues of the ember stone's room. |
extern CUE | MagmaRockInsideBlazeTabletCues [] | The cues of the Blaze tablet's room. |
extern Sint32 | MagmaRockInsideUpperPassagesPlatformPath [] | The upper passages' lava platform: round a rectangle, for as long as the lava flows. |
extern Sint32 | MagmaRockInsideFuryWestPlatformPath [] | Fury's room's west lava platform: round a rectangle. |
extern Sint32 | MagmaRockInsideFuryEastPlatformPath [] | Fury's room's east lava platform: east to 760 once, and it stays there. |
extern Sint32 | MagmaRockInsideCrackedPillarsWestPlatformPath [] | The west lava platform of the cracked pillars' room's upper hall, which floods with Fury's room: round a rectangle. |
extern Sint32 | MagmaRockInsideCrackedPillarsEastPlatformPath [] | The east lava platform of the cracked pillars' room's upper hall, which floods with Fury's room: round a rectangle. |
extern Sint32 | MagmaRockInsideLowerRoomsNorthPlatformPath [] | The lower rooms' north lava platform: round a rectangle. |
extern Sint32 | MagmaRockInsideLowerRoomsSouthwestPlatformPath [] | The lower rooms' southwest lava platform: round a rectangle. |
extern Sint32 | MagmaRockInsideLowerRoomsSoutheastPlatformPath [] | The lower rooms' southeast lava platform: round a rectangle. |
extern Uint32 | FieldEffectLongScript [] | |
const Sint32 * | FieldEffectDurationScripts [] | The field effects' three scripts by how long an effect lasts: short, medium and long. |
Uint32 | SceneExits [] | The room has no exits of its own. |
Description
Magma Rock's inside, the rooms in the volcano that the great blast on its top opened. Three halls are each watched by a great stone face: Burst on the small statue beside it makes the statue spit a fireball into the face, whose eyes light red as it pours lava over the hall's floor, and a floor switch beside a grated gate lets the lava drain away again. While the lava is up, platforms float round it and Felix leaps from its edge onto them, or onto the pillars he has pushed into it. A Mars Djinni left over from the first journey may wait in the entrance hall's south, Fury waits in its own room, and the Lucky Medal, Mist Potion, Salamander Tail and Golem Core lie in chests. Deep inside, stepping onto an islet in the lava sets off a rock that bursts out of it, throwing burning rocks and flames round the room; a crest on the stone wall there opens into a stairway to a sea of lava crossed on stepping stones, where Jenna learns Blaze at the tablet. Blaze then carries a flame to a torch to sink the pillar on the way out, and back in the ember stone's room carries the fallen flames to the two torches that let the party reach the stone and take the Magma Ball from it.
Macros in detail
FLAG_ENTRANCE_FLOODED
#define FLAG_ENTRANCE_FLOODED FLAG_AREA_TEMP(0x00)
The lava rises in three parts of the volcano, each when a statue's fireball strikes the great stone face there, and drains when a floor switch by that part's gate is pressed; the flags hold the state until the party comes back in from outside.
Referenced by scInit(), scMagmaRockInsideDrainLava(), scMagmaRockInsideRaiseLava(), scMagmaRockInsideSetEntranceFlooded() and scPrepareMap().
Definition at line 58 of file magma_rock_inside.c.
FLAG_FURY_FLOODED
#define FLAG_FURY_FLOODED FLAG_AREA_TEMP(0x01)
Referenced by MagmaRockInsideCrackedPillarsCues, scInit(), scMagmaRockInsideDrainLava(), scMagmaRockInsideRaiseLava(), scMagmaRockInsideSetFuryFlooded() and scPrepareMap().
Definition at line 59 of file magma_rock_inside.c.
FLAG_LOWER_ROOMS_FLOODED
#define FLAG_LOWER_ROOMS_FLOODED FLAG_AREA_TEMP(0x02)
Referenced by MagmaRockInsideLowerRoomsCues, scInit(), scMagmaRockInsideDrainLava(), scMagmaRockInsideFinishPushingPillar(), scMagmaRockInsideRaiseLava(), scMagmaRockInsideSetLowerRoomsFlooded() and scPrepareMap().
Definition at line 60 of file magma_rock_inside.c.
FLAG_WEST_TORCH_LIT
#define FLAG_WEST_TORCH_LIT FLAG_AREA_TEMP(0x03)
Referenced by MagmaRockInsideEmberStoneCues, scInit(), scMagmaRockInsideGrowFlame() and scMagmaRockInsidePutOutFlames().
Definition at line 61 of file magma_rock_inside.c.
FLAG_EAST_TORCH_LIT
#define FLAG_EAST_TORCH_LIT FLAG_AREA_TEMP(0x04)
Referenced by MagmaRockInsideEmberStoneCues, scInit(), scMagmaRockInsideGrowFlame(), scMagmaRockInsidePutOutFlames() and scMagmaRockInsideTakeFlame().
Definition at line 62 of file magma_rock_inside.c.
FLAG_TABLET_TORCH_LIT
#define FLAG_TABLET_TORCH_LIT FLAG_AREA_TEMP(0x05)
Referenced by MagmaRockInsideBlazeTabletCues, scInit(), scMagmaRockInsideGrowTabletFlame() and scMagmaRockInsidePutOutTabletFlame().
Definition at line 63 of file magma_rock_inside.c.
FLAG_INSIDE_CRACKED_PILLAR_A_BURST
#define FLAG_INSIDE_CRACKED_PILLAR_A_BURST FLAG_AREA_TEMP(0x50)
Set as Burst breaks each of the cracked pillars' room's two pillars, until the party leaves Magma Rock.
Referenced by MagmaRockInsideCrackedPillarsCues and MagmaRockInsideCrackedPillarsPlacements.
Definition at line 66 of file magma_rock_inside.c.
FLAG_INSIDE_CRACKED_PILLAR_B_BURST
#define FLAG_INSIDE_CRACKED_PILLAR_B_BURST FLAG_AREA_TEMP(0x51)
Referenced by MagmaRockInsideCrackedPillarsCues and MagmaRockInsideCrackedPillarsPlacements.
Definition at line 67 of file magma_rock_inside.c.
FLAG_ENTRANCE_PILLAR_PUSHED
#define FLAG_ENTRANCE_PILLAR_PUSHED 0x9f0
Each pushed pillar's flag keeps it where it was pushed.
Referenced by MagmaRockInsideEntranceCues, scInit() and scMagmaRockInsideFinishPushingPillar().
Definition at line 69 of file magma_rock_inside.c.
FLAG_FURY_PILLAR_PUSHED
#define FLAG_FURY_PILLAR_PUSHED 0x9f1
Referenced by MagmaRockInsideFuryCues, scInit() and scMagmaRockInsideFinishPushingPillar().
Definition at line 70 of file magma_rock_inside.c.
FLAG_PILLAR_A_PUSHED
#define FLAG_PILLAR_A_PUSHED 0x9f2
Referenced by MagmaRockInsideCrackedPillarsCues, scInit() and scMagmaRockInsideFinishPushingPillar().
Definition at line 71 of file magma_rock_inside.c.
FLAG_PILLAR_B_PUSHED
#define FLAG_PILLAR_B_PUSHED 0x9f3
Referenced by MagmaRockInsideCrackedPillarsCues, scInit() and scMagmaRockInsideFinishPushingPillar().
Definition at line 72 of file magma_rock_inside.c.
FLAG_PILLAR_C_PUSHED
#define FLAG_PILLAR_C_PUSHED 0x9f4
Referenced by MagmaRockInsideCrackedPillarsCues, scInit() and scMagmaRockInsideFinishPushingPillar().
Definition at line 73 of file magma_rock_inside.c.
FLAG_NORTH_PILLAR_PUSHED
#define FLAG_NORTH_PILLAR_PUSHED 0x9f5
Referenced by MagmaRockInsideLowerRoomsCues, scInit() and scMagmaRockInsideFinishPushingPillar().
Definition at line 74 of file magma_rock_inside.c.
FLAG_EAST_PILLAR_PUSHED
#define FLAG_EAST_PILLAR_PUSHED 0x9f6
Referenced by MagmaRockInsideLowerRoomsCues, scInit() and scMagmaRockInsideFinishPushingPillar().
Definition at line 75 of file magma_rock_inside.c.
FLAG_LEDGE_PILLAR_PUSHED
#define FLAG_LEDGE_PILLAR_PUSHED 0x9f7
Referenced by MagmaRockInsideEmberStoneCues, scInit() and scMagmaRockInsideFinishPushingPillar().
Definition at line 76 of file magma_rock_inside.c.
FLAG_ROCKS_RELEASED
#define FLAG_ROCKS_RELEASED 0x9f8
Referenced by MagmaRockInsideEmberStoneCues, scInit() and scMagmaRockInsideReleaseRocks().
Definition at line 77 of file magma_rock_inside.c.
FLAG_MAGMA_BALL_TAKEN
#define FLAG_MAGMA_BALL_TAKEN 0x9f9
Referenced by MagmaRockInsideEmberStoneCues, scInit() and scMagmaRockInsideExamineEmberStone().
Definition at line 78 of file magma_rock_inside.c.
FLAG_BLAZE_LEARNED
#define FLAG_BLAZE_LEARNED 0x9fa
Referenced by scMagmaRockInsideReadBlazeTablet() and scMagmaRockInsideReadBlazeTabletFromNorth().
Definition at line 79 of file magma_rock_inside.c.
FLAG_ANY_MARKER_LIT
#define FLAG_ANY_MARKER_LIT FLAG_SCENE_TEMP(0x00)
The Blaze tablet's room: the map's upper layer numbers some of the stones on
the way to the tablet; stopping on one raises the cue STEP_METATILE_CUE_BASE
plus its number, and its flag then keeps the stone behind it gone.
Referenced by scMagmaRockInsideStepOnMarker().
Definition at line 83 of file magma_rock_inside.c.
FLAG_MARKER_LIT
#define FLAG_MARKER_LIT(marker) (FLAG_SCENE_TEMP(0x00) + (marker))
Referenced by scInit() and scMagmaRockInsideStepOnMarker().
Definition at line 84 of file magma_rock_inside.c.
FLAG_TORCH_LIT
#define FLAG_TORCH_LIT(flame)
The flag that keeps a torch of the ember stone's room lit, by its flame's
actor: FLAG_WEST_TORCH_LIT or FLAG_EAST_TORCH_LIT.
Referenced by scMagmaRockInsideGrowFlame().
Definition at line 361 of file magma_rock_inside.c.
FACING_QUARTER_MASK
#define FACING_QUARTER_MASK (TRIG_TURN - DEGtoANG(90))
The quarter turn a facing lies in, as Felix faces a switch or the lava: an eighth of a turn added, then this kept.
Referenced by scMagmaRockInsideDrainLava() and scMagmaRockInsideLeapOverLava().
Definition at line 385 of file magma_rock_inside.c.
EFFECT_SET_MODE
#define EFFECT_SET_MODE fdActorSelectAnimation
Referenced by EFFECT_SPAWN.
Definition at line 416 of file magma_rock_inside.c.
EFFECT_SET_SCRIPT
#define EFFECT_SET_SCRIPT fdActorStartScript
Referenced by EFFECT_SPAWN.
Definition at line 417 of file magma_rock_inside.c.
EFFECT_SPRITE_PRIORITY
#define EFFECT_SPRITE_PRIORITY
Definition at line 418 of file magma_rock_inside.c.
DEFINE_MAGMA_ROCK_INSIDE_BURST_PILLAR
#define DEFINE_MAGMA_ROCK_INSIDE_BURST_PILLAR(name, pillar, flag)
Defines what Burst does to a cracked pillar: it crumbles
(scMagmaRockInsideBurstCrackedPillar) and its flag is set.
Definition at line 1605 of file magma_rock_inside.c.
DEFINE_MAGMA_ROCK_INSIDE_LIGHT_TORCH
#define DEFINE_MAGMA_ROCK_INSIDE_LIGHT_TORCH(name, litFlag, flame, x, z)
Defines what Blaze at a torch does: unless litFlag is set, flame waits hidden on it at (x, z), a sixteenth of its size.
Definition at line 1791 of file magma_rock_inside.c.
DEFINE_MAGMA_ROCK_INSIDE_READ_TABLET_FROM
#define DEFINE_MAGMA_ROCK_INSIDE_READ_TABLET_FROM(name, sideX)
Defines a function for reading the Blaze tablet from one side: once Blaze is learned only its inscription shows; before, Felix walks from sideX round to its front, faces it, and reads it.
Definition at line 2610 of file magma_rock_inside.c.
HIDE_LAVA
#define HIDE_LAVA()
Hides the lava's layer (BG2) while the lava is down: it is blended in at weight 0.
Referenced by scInit().
Definition at line 2810 of file magma_rock_inside.c.
Enumerations in detail
anonymous enum
enum { STEP_METATILE_CUE_BASE }
The cue a numbered stone of the Blaze tablet's room raises, less its number.
| Enumerator | Value | Description |
|---|---|---|
STEP_METATILE_CUE_BASE | 200 |
Definition at line 87 of file magma_rock_inside.c.
anonymous enum
enum { MARKER_WALKWAY_END, MARKER_PLATFORM_FOOT }
The numbers the Blaze tablet room's upper layer gives the metatiles of column 16 on the way to the tablet: the end of the entrance's walkway (row 26), then a stone every second row, up to the foot of the tablet's platform (row 14). The five stones between are the ones that fade away.
| Enumerator | Value | Description |
|---|---|---|
MARKER_WALKWAY_END | 1 | |
MARKER_PLATFORM_FOOT | 7 |
Definition at line 96 of file magma_rock_inside.c.
MAGMA_ROCK_INSIDE_METATILE_BEHAVIOR
enum MAGMA_ROCK_INSIDE_METATILE_BEHAVIOR
The metatile behaviours the rooms' maps mark their spots with, which the cue tables answer. A room may use a number in its own sense.
| Enumerator | Value | Description |
|---|---|---|
METATILE_FLOOR_SWITCH | 30 | A floor switch beside a lava gate; the |
METATILE_SECOND_FLOOR_SWITCH | 31 | room of chains has a second. |
METATILE_ERUPTION_ISLET | 30 | The ember stone's room: the islets in |
METATILE_EMBER_STONE | 31 | the lava that set the stone off, and the stone where it lands. |
METATILE_BLAZE_TABLET | 30 | The Blaze tablet, read from any side. |
METATILE_STATUE | 50 | The metatile before a fire-spitting statue that Burst is cast at. |
METATILE_LOWER_WEST_STATUE | 51 | |
METATILE_LOWER_EAST_STATUE | 52 | |
METATILE_LAVA_EDGE | 70 | The lava's edge, where Felix leaps onto what stands in the lava; the cracked pillars' room's two pillars stand on edge metatiles of their own. |
METATILE_CRACKED_PILLAR_A | 71 | |
METATILE_CRACKED_PILLAR_B | 72 | |
METATILE_LAVA_EDGE_NORTH | 73 | Leapt from walking north. |
METATILE_LAVA_EDGE_WEST | 75 | Leapt from walking west. |
METATILE_LAVA_EDGE_EAST | 78 | The far side of the upper passages' lava. |
METATILE_STEPPING_STONE_A | 80 | The Blaze tablet room's stepping |
METATILE_STEPPING_STONE_B | 81 | stones, two pictures of them in turn. |
Definition at line 104 of file magma_rock_inside.c.
anonymous enum
enum { CRACKED_PILLARS_UPPER_HALL_LAST_ENTRANCE }
The cracked pillars' room's entrances up to this one open onto its upper hall, whose lava rises with Fury's room's; the rest onto its lower rooms.
| Enumerator | Value | Description |
|---|---|---|
CRACKED_PILLARS_UPPER_HALL_LAST_ENTRANCE | 7 |
Definition at line 134 of file magma_rock_inside.c.
anonymous enum
enum { CHAINS_NORTH_LAST_ENTRANCE }
The room of chains' entrances up to this one open onto its north part, by the north floor switch; the rest onto its south part.
| Enumerator | Value | Description |
|---|---|---|
CHAINS_NORTH_LAST_ENTRANCE | 8 |
Definition at line 141 of file magma_rock_inside.c.
MAGMA_ROCK_INSIDE_UPPER_PASSAGES_PASSAGE
enum MAGMA_ROCK_INSIDE_UPPER_PASSAGES_PASSAGE
The upper passages' two parts: a doorway in the west part's north wall leads to the foot of a passage in the east part, and back.
| Enumerator | Value | Description |
|---|---|---|
MAGMA_ROCK_INSIDE_UPPER_PASSAGES_WEST_TO_EAST | 1 | |
MAGMA_ROCK_INSIDE_UPPER_PASSAGES_EAST_TO_WEST | 4 | |
MAGMA_ROCK_INSIDE_UPPER_PASSAGES_WEST_FROM_EAST | 1 | |
MAGMA_ROCK_INSIDE_UPPER_PASSAGES_EAST_FROM_WEST | 4 |
Definition at line 153 of file magma_rock_inside.c.
MAGMA_ROCK_INSIDE_ENTRANCE_PASSAGE
enum MAGMA_ROCK_INSIDE_ENTRANCE_PASSAGE
The entrance hall's passage south, from the hall's south-east to a doorway in the north wall of the room south of it, and back.
| Enumerator | Value | Description |
|---|---|---|
MAGMA_ROCK_INSIDE_ENTRANCE_HALL_TO_SOUTH_ROOM | 6 | |
MAGMA_ROCK_INSIDE_ENTRANCE_SOUTH_ROOM_TO_HALL | ||
MAGMA_ROCK_INSIDE_ENTRANCE_HALL_FROM_SOUTH_ROOM | 6 | |
MAGMA_ROCK_INSIDE_ENTRANCE_SOUTH_ROOM_FROM_HALL |
Definition at line 163 of file magma_rock_inside.c.
MAGMA_ROCK_INSIDE_FURY_PASSAGE
enum MAGMA_ROCK_INSIDE_FURY_PASSAGE
Fury's room's three parts: a passage south from the west end of its north part to a doorway of the south-west part, and a passage south from that part to the doorway of the south-east part, where Fury waits.
| Enumerator | Value | Description |
|---|---|---|
MAGMA_ROCK_INSIDE_FURY_NORTH_TO_SOUTHWEST | 2 | |
MAGMA_ROCK_INSIDE_FURY_SOUTHWEST_TO_NORTH | 6 | |
MAGMA_ROCK_INSIDE_FURY_SOUTHWEST_TO_SOUTHEAST | 8 | |
MAGMA_ROCK_INSIDE_FURY_SOUTHEAST_TO_SOUTHWEST | ||
MAGMA_ROCK_INSIDE_FURY_NORTH_FROM_SOUTHWEST | 2 | |
MAGMA_ROCK_INSIDE_FURY_SOUTHWEST_FROM_NORTH | 6 | |
MAGMA_ROCK_INSIDE_FURY_SOUTHWEST_FROM_SOUTHEAST | 8 | |
MAGMA_ROCK_INSIDE_FURY_SOUTHEAST_FROM_SOUTHWEST |
Definition at line 174 of file magma_rock_inside.c.
MAGMA_ROCK_INSIDE_CHAINS_PASSAGE
enum MAGMA_ROCK_INSIDE_CHAINS_PASSAGE
The room of chains' two passages from its north part, by the north floor switch, south to the two doorways of its south part, by the south floor switch and the grated gate.
| Enumerator | Value | Description |
|---|---|---|
MAGMA_ROCK_INSIDE_CHAINS_NORTH_TO_SOUTH_WEST | 3 | |
MAGMA_ROCK_INSIDE_CHAINS_NORTH_TO_SOUTH_EAST | ||
MAGMA_ROCK_INSIDE_CHAINS_SOUTH_TO_NORTH_WEST | 9 | |
MAGMA_ROCK_INSIDE_CHAINS_SOUTH_TO_NORTH_EAST | ||
MAGMA_ROCK_INSIDE_CHAINS_NORTH_FROM_SOUTH_WEST | 3 | |
MAGMA_ROCK_INSIDE_CHAINS_NORTH_FROM_SOUTH_EAST | ||
MAGMA_ROCK_INSIDE_CHAINS_SOUTH_FROM_NORTH_WEST | 9 | |
MAGMA_ROCK_INSIDE_CHAINS_SOUTH_FROM_NORTH_EAST |
Definition at line 189 of file magma_rock_inside.c.
MAGMA_ROCK_INSIDE_LOWER_ROOMS_PASSAGE
enum MAGMA_ROCK_INSIDE_LOWER_ROOMS_PASSAGE
The lower rooms' passages into the south-east room: three passages south from the north-east room to its three doorways, and two doorways of the south-west room to the feet of its two passages.
| Enumerator | Value | Description |
|---|---|---|
MAGMA_ROCK_INSIDE_LOWER_ROOMS_NORTHEAST_TO_SOUTHEAST_WEST | 8 | |
MAGMA_ROCK_INSIDE_LOWER_ROOMS_NORTHEAST_TO_SOUTHEAST_MIDDLE | ||
MAGMA_ROCK_INSIDE_LOWER_ROOMS_NORTHEAST_TO_SOUTHEAST_EAST | ||
MAGMA_ROCK_INSIDE_LOWER_ROOMS_SOUTHWEST_TO_SOUTHEAST_WEST | 12 | |
MAGMA_ROCK_INSIDE_LOWER_ROOMS_SOUTHWEST_TO_SOUTHEAST_EAST | ||
MAGMA_ROCK_INSIDE_LOWER_ROOMS_SOUTHEAST_TO_NORTHEAST_WEST | ||
MAGMA_ROCK_INSIDE_LOWER_ROOMS_SOUTHEAST_TO_NORTHEAST_MIDDLE | 16 | |
MAGMA_ROCK_INSIDE_LOWER_ROOMS_SOUTHEAST_TO_NORTHEAST_EAST | ||
MAGMA_ROCK_INSIDE_LOWER_ROOMS_SOUTHEAST_TO_SOUTHWEST_WEST | ||
MAGMA_ROCK_INSIDE_LOWER_ROOMS_SOUTHEAST_TO_SOUTHWEST_EAST | ||
MAGMA_ROCK_INSIDE_LOWER_ROOMS_NORTHEAST_FROM_SOUTHEAST_WEST | 8 | |
MAGMA_ROCK_INSIDE_LOWER_ROOMS_NORTHEAST_FROM_SOUTHEAST_MIDDLE | ||
MAGMA_ROCK_INSIDE_LOWER_ROOMS_NORTHEAST_FROM_SOUTHEAST_EAST | ||
MAGMA_ROCK_INSIDE_LOWER_ROOMS_SOUTHWEST_FROM_SOUTHEAST_WEST | 12 | |
MAGMA_ROCK_INSIDE_LOWER_ROOMS_SOUTHWEST_FROM_SOUTHEAST_EAST | ||
MAGMA_ROCK_INSIDE_LOWER_ROOMS_SOUTHEAST_FROM_NORTHEAST_WEST | ||
MAGMA_ROCK_INSIDE_LOWER_ROOMS_SOUTHEAST_FROM_NORTHEAST_MIDDLE | 16 | |
MAGMA_ROCK_INSIDE_LOWER_ROOMS_SOUTHEAST_FROM_NORTHEAST_EAST | ||
MAGMA_ROCK_INSIDE_LOWER_ROOMS_SOUTHEAST_FROM_SOUTHWEST_WEST | ||
MAGMA_ROCK_INSIDE_LOWER_ROOMS_SOUTHEAST_FROM_SOUTHWEST_EAST |
Definition at line 204 of file magma_rock_inside.c.
MAGMA_ROCK_INSIDE_EMBER_STONE_PASSAGE
enum MAGMA_ROCK_INSIDE_EMBER_STONE_PASSAGE
The ember stone room's passages: three passages south from its west part, the way to the Blaze tablet's stairway, to the two doorways of the north-east part, where the stone lies in the lava, and to the doorway behind the pillar the two torches sink; and a passage south from the north-east part to the doorway of the south-east part.
| Enumerator | Value | Description |
|---|---|---|
MAGMA_ROCK_INSIDE_EMBER_STONE_WEST_TO_NORTHEAST_WEST | 2 | |
MAGMA_ROCK_INSIDE_EMBER_STONE_WEST_TO_NORTHEAST_EAST | ||
MAGMA_ROCK_INSIDE_EMBER_STONE_WEST_TO_PILLAR_DOORWAY | ||
MAGMA_ROCK_INSIDE_EMBER_STONE_NORTHEAST_TO_WEST_WEST | ||
MAGMA_ROCK_INSIDE_EMBER_STONE_NORTHEAST_TO_WEST_EAST | ||
MAGMA_ROCK_INSIDE_EMBER_STONE_PILLAR_DOORWAY_TO_WEST | ||
MAGMA_ROCK_INSIDE_EMBER_STONE_NORTHEAST_TO_SOUTHEAST | ||
MAGMA_ROCK_INSIDE_EMBER_STONE_SOUTHEAST_TO_NORTHEAST | ||
MAGMA_ROCK_INSIDE_EMBER_STONE_WEST_FROM_NORTHEAST_WEST | 2 | |
MAGMA_ROCK_INSIDE_EMBER_STONE_WEST_FROM_NORTHEAST_EAST | ||
MAGMA_ROCK_INSIDE_EMBER_STONE_WEST_FROM_PILLAR_DOORWAY | ||
MAGMA_ROCK_INSIDE_EMBER_STONE_NORTHEAST_FROM_WEST_WEST | ||
MAGMA_ROCK_INSIDE_EMBER_STONE_NORTHEAST_FROM_WEST_EAST | ||
MAGMA_ROCK_INSIDE_EMBER_STONE_PILLAR_DOORWAY_FROM_WEST | ||
MAGMA_ROCK_INSIDE_EMBER_STONE_NORTHEAST_FROM_SOUTHEAST | ||
MAGMA_ROCK_INSIDE_EMBER_STONE_SOUTHEAST_FROM_NORTHEAST |
Definition at line 233 of file magma_rock_inside.c.
MAGMA_ROCK_INSIDE_UPPER_PASSAGES_ACTOR_ID
enum MAGMA_ROCK_INSIDE_UPPER_PASSAGES_ACTOR_ID
The upper passages: one lava platform.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_UPPER_PASSAGES_PLATFORM | ACTOR_FIRST_PLACED |
Definition at line 254 of file magma_rock_inside.c.
MAGMA_ROCK_INSIDE_ENTRANCE_ACTOR_ID
enum MAGMA_ROCK_INSIDE_ENTRANCE_ACTOR_ID
The entrance hall: the small statue whose fireball sets the great face flooding it, the row of columns standing across its lava, the pillar pushed into that row, an unseen marker on its floor switch and the Mars Djinni "Fire19".
| Enumerator | Value | Description |
|---|---|---|
ACTOR_STATUE | ACTOR_FIRST_PLACED | |
ACTOR_COLUMN_A | ||
ACTOR_COLUMN_B | ||
ACTOR_COLUMN_C | ||
ACTOR_COLUMN_D | ||
ACTOR_COLUMN_E | ||
ACTOR_COLUMN_F | ||
ACTOR_ENTRANCE_PILLAR | ||
ACTOR_ENTRANCE_SWITCH_MARKER | ||
ACTOR_FIRE19 | the Mars Djinni left over from the first journey |
Definition at line 263 of file magma_rock_inside.c.
MAGMA_ROCK_INSIDE_FURY_ACTOR_ID
enum MAGMA_ROCK_INSIDE_FURY_ACTOR_ID
Fury's room: the statue, an unseen marker on its floor switch, two lava platforms, the pillar pushed into the lava, the tightrope's posts and Fury.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_FURY_SWITCH_MARKER | ACTOR_FIRST_PLACED + 1 | |
ACTOR_WEST_PLATFORM | ||
ACTOR_FURY_PILLAR | ||
ACTOR_EAST_PLATFORM | ||
ACTOR_TIGHTROPE_WEST_POST | ||
ACTOR_TIGHTROPE_EAST_POST | ||
ACTOR_FURY |
Definition at line 279 of file magma_rock_inside.c.
MAGMA_ROCK_INSIDE_CRACKED_PILLARS_ACTOR_ID
enum MAGMA_ROCK_INSIDE_CRACKED_PILLARS_ACTOR_ID
The room of the cracked pillars: three statues, the two cracked pillars Burst
breaks, ten lava platforms, three pillars to push and a column. Its north
statue and its upper hall's two platforms stand in the slots ACTOR_STATUE,
ACTOR_WEST_PLATFORM and ACTOR_EAST_PLATFORM name, as in the entrance hall and
Fury's room.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_CRACKED_PILLAR_A | ACTOR_FIRST_PLACED + 1 | |
ACTOR_CRACKED_PILLAR_B | ACTOR_FIRST_PLACED + 3 | |
ACTOR_LOWER_WEST_STATUE | ACTOR_FIRST_PLACED + 5 | |
ACTOR_LOWER_EAST_STATUE | ||
ACTOR_LAVA_PLATFORM_A | ||
ACTOR_LAVA_PLATFORM_B | ||
ACTOR_LAVA_PLATFORM_C | ||
ACTOR_LAVA_PLATFORM_D | ||
ACTOR_LAVA_PLATFORM_E | ||
ACTOR_LAVA_PLATFORM_F | ||
ACTOR_LAVA_PLATFORM_G | ||
ACTOR_LAVA_PLATFORM_H | ||
ACTOR_PILLAR_A | ||
ACTOR_PILLAR_B | ||
ACTOR_PILLAR_C | ||
ACTOR_LOWER_COLUMN |
Definition at line 295 of file magma_rock_inside.c.
MAGMA_ROCK_INSIDE_CHAINS_ACTOR_ID
enum MAGMA_ROCK_INSIDE_CHAINS_ACTOR_ID
The room of chains: unseen markers on its two floor switches and the two chains hanging down its wall either side of its doorway, which Whirlwind swings.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_NORTH_SWITCH_MARKER | ACTOR_FIRST_PLACED | |
ACTOR_SOUTH_SWITCH_MARKER | ||
ACTOR_HANGING_CHAIN_A | ||
ACTOR_HANGING_CHAIN_B |
Definition at line 318 of file magma_rock_inside.c.
MAGMA_ROCK_INSIDE_LOWER_ROOMS_ACTOR_ID
enum MAGMA_ROCK_INSIDE_LOWER_ROOMS_ACTOR_ID
The lower rooms: three lava platforms and two pillars to push.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_NORTH_PLATFORM | ACTOR_FIRST_PLACED | |
ACTOR_NORTH_PILLAR | ||
ACTOR_SOUTHWEST_PLATFORM | ||
ACTOR_SOUTHEAST_PLATFORM | ||
ACTOR_EAST_PILLAR |
Definition at line 327 of file magma_rock_inside.c.
MAGMA_ROCK_INSIDE_EMBER_STONE_ACTOR_ID
enum MAGMA_ROCK_INSIDE_EMBER_STONE_ACTOR_ID
The room of the ember stone: the sunken pillars, the pillar the two torches lower, the stone that holds the Magma Ball, the rocks and flames that fall with it, the torches' flames and a pillar to push.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_SUNKEN_PILLAR_A | ACTOR_FIRST_PLACED | |
ACTOR_SUNKEN_PILLAR_B | ||
ACTOR_SUNKEN_PILLAR_C | ||
ACTOR_BLOCKING_PILLAR | ||
ACTOR_EMBER_STONE | ||
ACTOR_FALLEN_ROCK_A | ||
ACTOR_FALLEN_ROCK_B | ||
ACTOR_FALLEN_ROCK_C | ||
ACTOR_FALLEN_ROCK_D | ||
ACTOR_FALLEN_FLAME_A | ||
ACTOR_FALLEN_FLAME_B | ||
ACTOR_FALLEN_FLAME_C | ||
ACTOR_FALLEN_FLAME_D | ||
ACTOR_WEST_TORCH_FLAME | ||
ACTOR_EAST_TORCH_FLAME | ||
ACTOR_LEDGE_PILLAR |
Definition at line 339 of file magma_rock_inside.c.
anonymous enum
enum { PILLAR_ANIMATION_SUNK, COLUMN_ANIMATION_STANDING, COLUMN_ANIMATION_SUNK }
The animations of the yellow-topped stone pillars (SPRITE_YELLOW_BLOCK) and
of the orange columns: standing whole (animation 1 of both sprites), or sunk
to their tops in the lava or (the pillars) into the floor.
| Enumerator | Value | Description |
|---|---|---|
PILLAR_ANIMATION_SUNK | 4 | |
COLUMN_ANIMATION_STANDING | 1 | |
COLUMN_ANIMATION_SUNK | 2 |
Definition at line 367 of file magma_rock_inside.c.
anonymous enum
enum { FLAME_GROW_STEPS }
A torch Blaze lights: its flame starts a sixteenth of its size and grows by a
sixteenth FLAME_GROW_STEPS times, 5 ticks apart; then the pillar the torches
guard sinks PILLAR_SINK_DEPTH pixels into the floor, a pixel every 5 ticks,
as deep as the ember stone room's sunken pillars stand.
| Enumerator | Value | Description |
|---|---|---|
FLAME_GROW_STEPS | 16 |
Definition at line 378 of file magma_rock_inside.c.
anonymous enum
enum { LAVA_ALREADY_UP }
What scMagmaRockInsideRaiseLava and scMagmaRockInsideDrainLava keep while the
lava is already up; only its being nonzero is read.
| Enumerator | Value | Description |
|---|---|---|
LAVA_ALREADY_UP | 212 |
Definition at line 389 of file magma_rock_inside.c.
anonymous enum
enum { PLATFORM_PATH_THIRD_CORNER }
A lava platform's path script is four corners, each a move and a wait for arrival, five words: the second platform of each pair of the cracked pillars' room starts at this word, the third corner, across from the first.
| Enumerator | Value | Description |
|---|---|---|
PLATFORM_PATH_THIRD_CORNER | 10 |
Definition at line 397 of file magma_rock_inside.c.
MAGMA_ROCK_INSIDE_BLAZE_TABLET_ACTOR_ID
enum MAGMA_ROCK_INSIDE_BLAZE_TABLET_ACTOR_ID
The Blaze tablet's room: the tablet, and on the ledge in the lava's south-west the pillar in the way out, the flame burning in the west bowl beside it, which Blaze carries, and the flame of the east bowl it lights.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_BLAZE_TABLET | ACTOR_FIRST_PLACED | |
ACTOR_TORCH_PILLAR | ||
ACTOR_SOURCE_FLAME | ||
ACTOR_TORCH_FLAME |
Definition at line 405 of file magma_rock_inside.c.
anonymous enum
enum { FIRE_BURST_TICKS }
The ticks a statue's fireball bursts where it lands, throwing out an ember every other tick.
| Enumerator | Value | Description |
|---|---|---|
FIRE_BURST_TICKS | 16 |
Definition at line 943 of file magma_rock_inside.c.
anonymous enum
enum { CRACKED_PILLAR_ANIMATION_CRUMBLE, CRACKED_PILLAR_CRUMBLE_TICK }
A cracked pillar's animation as Burst breaks it: its two cracked pictures,
then its stump, 41 ticks each. It starts at tick CRACKED_PILLAR_CRUMBLE_TICK
of the cast, among the small explosions, and the pillar has crumbled to its
stump by the last blast, which takes it away.
| Enumerator | Value | Description |
|---|---|---|
CRACKED_PILLAR_ANIMATION_CRUMBLE | 3 | |
CRACKED_PILLAR_CRUMBLE_TICK | 178 |
Definition at line 1098 of file magma_rock_inside.c.
anonymous enum
enum { LAVA_FALL_FLAME_BURSTS }
The bursts of flame, 8 ticks apart, as a statue's fireball strikes a great stone face.
| Enumerator | Value | Description |
|---|---|---|
LAVA_FALL_FLAME_BURSTS | 16 |
Definition at line 1194 of file magma_rock_inside.c.
Functions in detail
scMagmaRockInsideBurstCrackedPillar
void scMagmaRockInsideBurstCrackedPillar(Sint32 stage, Sint32 tick)
Burst on one of the tall cracked pillars: rocks fall round it while Burst lasts, one at each small explosion and eight at the last blast, which also takes the pillar away, leaving a cloud of dust; meanwhile the pillar crumbles.
References fdActorSelectAnimation(), scMagmaRockInsideDropRocks(), scMagmaRockInsideStartFallingRocks(), scRockEndFalling() and Sint32.
Definition at lines 39 and 1108 of file magma_rock_inside.c.
scMagmaRockInsideTrackStepMetatile
void scMagmaRockInsideTrackStepMetatile(void)
A tick event: once Felix stops on a new metatile, puts back the picture of
the stepping stone he left and, in the Blaze tablet's room, raises the cue of
that stone if the map's upper layer numbers it (STEP_METATILE_CUE_BASE plus
its number, scMagmaRockInsideStepOnMarker).
References fdActorGet(), fdMapGridCopyMetatilesLayered(), MagmaRockInsideLastStepMetatile, MagmaRockInsideStepMetatileHeight, MagmaRockInsideStepMetatileWidth, MagmaRockInsideStepMetatileX, MagmaRockInsideStepMetatileZ, MainRoutineStateWork, scFieldPartyGetLeaderActor(), scMapMetatileGetAttributes() and Sint32.
Referenced by scMagmaRockInsideStartStepMetatiles().
Definition at lines 40 and 1986 of file magma_rock_inside.c.
scMagmaRockInsideCreateActor
static __inline__ ACTOR * scMagmaRockInsideCreateActor(Sint32 kind, Sint32 x, Sint32 y, Sint32 z)
Creates an actor of the given sprite at a point in the room.
References Sint32 and syImportActorCreate().
Referenced by scMagmaRockInsideFireFromStatue() and scMagmaRockInsideSpawnSpark().
Definition at line 44 of file magma_rock_inside.c.
scMagmaRockInsidePausePlatform
void scMagmaRockInsidePausePlatform()
void scMagmaRockInsidePausePlatform(ACTOR *actor)
A lava platform's update: holds it still while a menu, Psynergy or an item is in use, and before the room's opening transition has started.
Referenced by scMagmaRockInsideStartLavaPlatform().
Definition at lines 423 and 551 of file magma_rock_inside.c.
scMagmaRockInsideWaitForLanding
void scMagmaRockInsideWaitForLanding(ACTOR *actor)
Waits up to 60 ticks for an actor's vertical speed to come to zero.
References Sint32 and sySynch().
Referenced by scMagmaRockInsideFinishPushingPillar().
Definition at lines 435 and 522 of file magma_rock_inside.c.
scMagmaRockInsideTrailEmbers
void scMagmaRockInsideTrailEmbers(ACTOR *actor)
A statue's fireball's update as it flies: it trails an ember every fourth tick, a few pixels to either side, and whooshes every sixteenth.
References fdActorPlaySoundInView(), MagmaRockEmberScript, scFieldEffectSpawn(), Sint32, syRandom() and TickCount.
Referenced by scMagmaRockInsideFireFromStatue().
Definition at lines 443 and 835 of file magma_rock_inside.c.
scMagmaRockInsideRaiseLava
void scMagmaRockInsideRaiseLava(void)
A statue's fireball strikes the great stone face: the screen shakes as flames burst over the face, it roars and its eyes light red, lava pours from its mouth and spreads over the hall's floor until the hall is flooded. When the lava is already up, the face only flares and pours again.
References fdMapGridCenterOnFollowedPoint(), fdMapGridCopyMetatilesTo(), fdScriptGetFlag(), fdScriptPlaySound(), fdScriptWait(), MagmaRockEmberScript, MagmaRockFlameEmberScript, MainRoutineStateWork, scFieldEffectSpawn(), scFieldMapGridWaitForShakeToSettle(), scMagmaRockInsideSetEntranceFlooded(), scMagmaRockInsideSetFuryFlooded(), scMagmaRockInsideSetLowerRoomsFlooded(), Sint32, syRandom() and sySynch().
Referenced by scMagmaRockInsideFireFromStatue().
Definition at lines 444 and 1203 of file magma_rock_inside.c.
scMagmaRockInsideDropRocks
void scMagmaRockInsideDropRocks(Sint32 x, Sint32 y, Sint32 z, Sint32 count)
Spawns count rocks around (x, y, z), each pushed out at a random angle and thrown up and out along it.
References scFieldVectorAddPolarOffsetFX(), Sint32 and syRandom().
Referenced by scMagmaRockInsideBurstCrackedPillar().
Definition at lines 446 and 3383 of file magma_rock_inside.c.
scMagmaRockInsideStartFallingRocks
void scMagmaRockInsideStartFallingRocks(void)
Starts the falling rocks: loads their picture, prepares 64 small sprites and adds the event that draws them.
References mnVRAMLoad(), scFieldSetTickEvent(), scMagmaRockInsideDecompressTaggedLZ(), scMagmaRockInsideInitRockSprite(), scParticleUpdateFalling(), Sint32, syHeapSlotAllocate(), syResourceGetTableEntry() and syVRAMCacheFindFreeEntry().
Referenced by scMagmaRockInsideBurstCrackedPillar().
Definition at lines 448 and 3412 of file magma_rock_inside.c.
scMagmaRockInsideSetEntranceFlooded
void scMagmaRockInsideSetEntranceFlooded(void)
The entrance hall as flooded: its flag set, the metatile at (15, 13) no longer climbable, and its columns and pillar shown standing in the lava.
References fdActorSetAnimation(), fdScriptSetFlag(), scMapMetatileSetAttributes() and Sint32.
Referenced by scInit() and scMagmaRockInsideRaiseLava().
Definition at lines 450 and 2680 of file magma_rock_inside.c.
scMagmaRockInsideSetFuryFlooded
void scMagmaRockInsideSetFuryFlooded(void)
Fury's room as flooded: its flag set, the metatiles at (24, 15) and (9, 16) no longer climbable, and its pillar shown standing in the lava; from the cracked pillars' room, only the metatile at (26, 14).
References fdActorSetAnimation(), fdScriptSetFlag(), MainRoutineStateWork and scMapMetatileSetAttributes().
Referenced by scInit() and scMagmaRockInsideRaiseLava().
Definition at lines 451 and 2694 of file magma_rock_inside.c.
scMagmaRockInsideSetLowerRoomsFlooded
void scMagmaRockInsideSetLowerRoomsFlooded(void)
The lower rooms as flooded: their flag set and, in the cracked pillars' room, its eight white platforms afloat in pairs, each pair's second starting across the square from the first, and its three pillars and column shown standing in the lava.
References fdActorGet(), fdActorSetAnimation(), fdScriptSetFlag(), MagmaRockInsideCrackedPillarsFirstPairPath, MagmaRockInsideCrackedPillarsFourthPairPath, MagmaRockInsideCrackedPillarsSecondPairPath, MagmaRockInsideCrackedPillarsThirdPairPath, MainRoutineStateWork, scMagmaRockInsideStartLavaPlatform() and Sint32.
Referenced by scInit() and scMagmaRockInsideRaiseLava().
Definition at lines 452 and 2713 of file magma_rock_inside.c.
scMagmaRockInsideSpawnDustRing
void scMagmaRockInsideSpawnDustRing(void)
Throws a ring of 16 dust clouds out from the leader as a pillar lands.
References DustBurstScript, fdActorGet(), fdActorSelectAnimation(), fdActorSetSpriteFlags(), fdActorStartScript(), fdSpriteShareVRAMCacheEntry(), MainRoutineStateWork, scEffectAdvanceMotionAtLeaderPriority(), scFieldActorCreate(), syCos() and sySin().
Referenced by scLeaderCheckCrumblingStep(), scMagmaRockInsideCrumblePillar(), scMagmaRockInsideStepOnTrap(), scTrialRoadCrumblePillar() and scTrialRoadStepOnTrap().
Definition at lines 463 and 3335 of file magma_rock_inside.c.
scMagmaRockInsideDecompressTaggedLZ
void scMagmaRockInsideDecompressTaggedLZ(void *entry, void *dest)
Decompresses a tagged LZ resource through the overlay's import.
Referenced by scMagmaRockInsideStartFallingRocks().
Definition at line 469 of file magma_rock_inside.c.
scMagmaRockInsideInitRockSprite
void scMagmaRockInsideInitRockSprite(EFFECT_SPR *sprite, Sint32 width, Sint32 height, Uint32 attributes, Sint32 tile)
Sets up an effect sprite of the given size, attributes and tile, through the overlay's import.
Referenced by scMagmaRockInsideStartFallingRocks().
Definition at line 472 of file magma_rock_inside.c.
scMagmaRockInsideFightFury
void scMagmaRockInsideFightFury(void)
Talking to Fury, the Mars Djinni on the ledge just west of the north doorway into its room's east hall, starts a battle with it.
References fdRequestDjinnBattle().
Referenced by MagmaRockInsideFuryCues.
Definition at line 501 of file magma_rock_inside.c.
scMagmaRockInsideMeetDjinni
void scMagmaRockInsideMeetDjinni(void)
Talking to the Mars Djinni in the entrance hall's south (metatile (18, 31))
makes it join the party. It is the spare Djinni the text names "Fire19"
(DJINNI_FIRE19), and it stands there until it has joined (its FLAG_DJINNI): a
Mars Djinni of the first journey, waiting here for a party that did not bring
all seven over from it.
References fdDjinnJoinParty().
Referenced by MagmaRockInsideEntranceCues.
Definition at line 511 of file magma_rock_inside.c.
scMagmaRockInsideStartLavaPlatform
void scMagmaRockInsideStartLavaPlatform(Sint32 id, Sint32 *path, Sint16 flag)
Sets a white lava platform afloat: risen and running round its path while flag (its part's lava) is set, sunk under the floor otherwise; its update holds it still during menus.
References fdActorGetById(), fdActorSelectAnimation(), fdActorSetSpriteFlags(), fdActorStartScript(), fdScriptGetFlag(), scMagmaRockInsidePausePlatform() and Sint32.
Referenced by scInit() and scMagmaRockInsideSetLowerRoomsFlooded().
Definition at line 566 of file magma_rock_inside.c.
scGetEntrances
const SCENE_ENTRANCE *scGetEntrances(void)
References SceneEntrances.
Definition at line 600 of file magma_rock_inside.c.
scGetExitRegions
const SCENE_REGION *scGetExitRegions(void)
Definition at line 605 of file magma_rock_inside.c.
scGetExits
const Uint32 *scGetExits(void)
References SceneExits.
Definition at line 610 of file magma_rock_inside.c.
scGetActorPlacements
const ACTOR_PLACE *scGetActorPlacements(void)
The placed actors of the room the party is in.
References MagmaRockInsideBlazeTabletPlacements, MagmaRockInsideChainsPlacements, MagmaRockInsideCrackedPillarsPlacements, MagmaRockInsideEmberStonePlacements, MagmaRockInsideEntrancePlacements, MagmaRockInsideFuryPlacements, MagmaRockInsideLowerRoomsPlacements, MagmaRockInsidePlacements and MainRoutineStateWork.
Definition at line 627 of file magma_rock_inside.c.
scMagmaRockInsideStartPushingPillar
void scMagmaRockInsideStartPushingPillar(void)
Nothing visible happens as Felix starts to push one of the yellow-topped stone pillars, whether by walking into it or with Move; the game frees the metatiles it walled off, so that it can slide.
References fdActorLiftTargetBlock(), MagmaRockInsideCrackedPillarsPillars, MagmaRockInsideEmberStonePillars, MagmaRockInsideEntrancePillars, MagmaRockInsideFuryPillars, MagmaRockInsideLowerRoomsPillars, MainRoutineStateWork and scMagmaRockInsideClearBlockMetatiles().
Referenced by MagmaRockInsideCrackedPillarsCues, MagmaRockInsideEmberStoneCues, MagmaRockInsideEntranceCues, MagmaRockInsideFuryCues and MagmaRockInsideLowerRoomsCues.
Definition at line 654 of file magma_rock_inside.c.
scMagmaRockInsideFinishPushingPillar
void scMagmaRockInsideFinishPushingPillar(void)
A yellow-topped stone pillar Felix has pushed comes to rest a metatile further on. Pushed off the ledge in the lower rooms or the ember stone's room, it drops with a thud, into the lava when it is up, sinking until only its top shows. Once a pillar reaches its place its flag keeps it there when the party comes back: the entrance hall's pushed north into the row of columns (row 16 of the map), Fury's room's at row 41, the cracked pillars' room's three at column 21, the lower rooms' at columns 47 and 57 and the ember stone room's at column 43.
References fdActorPlaceMovedBlock(), fdActorRelease(), fdActorSelectAnimation(), fdMapGetTerrainHeight(), fdMapGridCopyMetatileAttributes(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptGetFlag(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptStart(), MagmaRockInsideEmberStonePillars, MagmaRockInsideLowerRoomsPillars, MainRoutineStateWork, scBlocksMarkMetatiles(), scMagmaRockInsideWaitForLanding(), scPlaceTranslucentBlackActorFX(), Sint32 and sySynch().
Referenced by MagmaRockInsideCrackedPillarsCues, MagmaRockInsideEmberStoneCues, MagmaRockInsideEntranceCues, MagmaRockInsideFuryCues and MagmaRockInsideLowerRoomsCues.
Definition at line 682 of file magma_rock_inside.c.
syImportBattleEffectStopMainActor
Sint32 syImportBattleEffectStopMainActor(void)
The overlay's import stub to fdBattleEffectStopMainActor.
Referenced by scMagmaRockInsidePlayBurst().
Definition at line 805 of file magma_rock_inside.c.
scMagmaRockInsidePlayBurst
void scMagmaRockInsidePlayBurst(Uint16 value)
Plays Burst from Felix at an actor, as when he casts it, for a statue's fireball that strikes one: in the cracked pillars' room, the pillar it hits breaks as if Burst had been cast at it.
References fdPsynergyEnd(), fdPsynergyLoadResources(), fdPsynergyRunHandler(), MainRoutineStateWork, syImportBattleEffectStopMainActor() and syImportFieldPsynergySetupActorPair().
Referenced by scMagmaRockInsideFireFromStatue().
Definition at line 810 of file magma_rock_inside.c.
scMagmaRockInsideResolveBeforeBurst
void scMagmaRockInsideResolveBeforeBurst(void)
Nothing visible happens as Felix starts casting Burst at a fire-spitting statue; the game finishes what the field engine still had pending, so that the cast and the statue's fire play undisturbed.
References fdScriptEndLastingPsynergy().
Referenced by MagmaRockInsideCrackedPillarsCues, MagmaRockInsideEntranceCues and MagmaRockInsideFuryCues.
Definition at line 868 of file magma_rock_inside.c.
scMagmaRockInsideTargetStatue
void scMagmaRockInsideTargetStatue(Sint32 stage)
As Felix casts Burst at the small statue beside a great stone face, the statue blinks red, slowly through the small explosions and faster at the last blast. In the entrance hall the statue's metatile is (26, 12); in Fury's room (20, 15); the cracked pillars' room has three, at (12, 12), (20, 33) and (30, 33), and its own table.
References MagmaRockInsideCrackedPillarsStatues, MagmaRockInsideStatues, MainRoutineStateWork, scFieldScriptEndLastingPsynergy(), scStatueFindUnderBurst(), scStatueFlashUnderBurst() and Sint32.
Referenced by MagmaRockInsideCrackedPillarsCues, MagmaRockInsideEntranceCues and MagmaRockInsideFuryCues.
Definition at line 883 of file magma_rock_inside.c.
scMagmaRockInsideDriftAndSlow
void scMagmaRockInsideDriftAndSlow(ACTOR *actor)
An ember's update as a statue's fireball bursts: moves it by its velocity, kept in bounce, gravity and sceneWord, and slows it by an eighth.
References Sint32.
Referenced by scMagmaRockInsideFireFromStatue().
Definition at line 926 of file magma_rock_inside.c.
scMagmaRockInsideFireFromStatue
void scMagmaRockInsideFireFromStatue(ACTOR *source)
A statue's fireball flies the way the statue faces, the camera following,
until it meets the edge of the fire's reach, a great stone face or something
standing in its path. It bursts against the edge or a stone pillar; against a
face it sets the face pouring lava (scMagmaRockInsideRaiseLava); against
anything else it plays Burst there.
References fdActorRelease(), fdActorSelectAnimation(), fdActorSetSpriteFlags(), fdCameraMoveToFX(), fdCameraWaitForArrival(), fdScriptClearFlag(), fdScriptEnd(), fdScriptSetFlag(), fdScriptStart(), MagmaRockEmberScript, MainRoutineStateWork, scFieldActorSetMoveTargetFX(), scFieldActorWaitForMove(), scFieldEffectSpawn(), scFieldScriptEndLastingPsynergy(), scMagmaRockInsideCreateActor(), scMagmaRockInsideDriftAndSlow(), scMagmaRockInsidePlayBurst(), scMagmaRockInsideRaiseLava(), scMagmaRockInsideTrailEmbers(), scMapMetatileGetAttributes(), scPosFlatDistance(), scScriptCameraFollowActor(), Sint32, syCos(), syRandom(), sySynch() and TickCount.
Referenced by scMagmaRockInsideFireStatue().
Definition at line 953 of file magma_rock_inside.c.
scMagmaRockInsideFireStatue
void scMagmaRockInsideFireStatue(void)
Once Felix's Burst on the small statue beside a great stone face is over, the
statue flashes white and spits a fireball the way it faces. In the three
halls with a face the fireball strikes it, and the face's eyes light red as
it pours lava over the floor (scMagmaRockInsideFireFromStatue).
References fdScriptEnd(), fdScriptStart(), scFieldActorSetSpriteColor(), scFieldScriptEndLastingPsynergy(), scFieldScriptWait() and scMagmaRockInsideFireFromStatue().
Referenced by MagmaRockInsideCrackedPillarsCues, MagmaRockInsideEntranceCues and MagmaRockInsideFuryCues.
Definition at line 1076 of file magma_rock_inside.c.
scMagmaRockInsideLeapOverLava
void scMagmaRockInsideLeapOverLava(void)
Felix walks to the lava's edge where something stands in the lava two metatiles ahead, a white platform, a column or a pillar pushed in, and springs across onto it, keeping pace with a platform as it moves. Such edges are on both sides of the upper passages' lava, at metatiles (44, 39) and (50, 39), and along the lava in Fury's room, the cracked pillars' room and, once its lava is up, the lower rooms. Where nothing stands there, nothing happens.
References fdActorGet(), fdActorSelectAnimation(), fdActorSetSpriteFlags(), fdScriptEnd(), fdScriptPlaySound(), fdScriptStart(), MainRoutineStateWork, scActorFindInMetatile(), scFieldScriptEndLastingPsynergy(), Sint32 and sySynch().
Referenced by MagmaRockInsideCrackedPillarsCues, MagmaRockInsideCues, MagmaRockInsideFuryCues and MagmaRockInsideLowerRoomsCues.
Definition at line 1143 of file magma_rock_inside.c.
scMagmaRockInsideDrainLava
void scMagmaRockInsideDrainLava(void)
Felix steps onto the small floor switch beside a grated gate and presses it down: the ground shakes and the gate lifts. If the lava is up it pours out through the gate, embers rising as it fades from the floor; then the gate drops shut and he steps back off the switch. The switches are at metatile (19, 27) in the entrance hall, (32, 21) in Fury's room, and (47, 13) and (49, 42) in the room of chains, which drain the lower rooms.
References fdActorFlagsSet(), fdActorGet(), fdActorSetAnimation(), fdActorWalkToAndWait(), fdMapGridCopyMetatilesTo(), fdScriptClearFlag(), fdScriptEnd(), fdScriptGetFlag(), fdScriptPlaySound(), fdScriptStart(), MagmaRockEmberScript, MainRoutineStateWork, scFieldActorSetSpritePriority(), scFieldEffectSpawn(), scFieldMapGridWaitForShakeToSettle(), scFieldScriptEndLastingPsynergy(), scFieldScriptWait(), scMapMetatileSetAttributes(), Sint32, syRandom() and sySynch().
Referenced by MagmaRockInsideChainsCues, MagmaRockInsideEntranceCues and MagmaRockInsideFuryCues.
Definition at line 1426 of file magma_rock_inside.c.
MagmaRockInsideBurstCrackedPillarA
DEFINE_MAGMA_ROCK_INSIDE_BURST_PILLAR(MagmaRockInsideBurstCrackedPillarA, ACTOR_CRACKED_PILLAR_A, FLAG_INSIDE_CRACKED_PILLAR_A_BURST)
Burst cast at the tall cracked pillar east of the cracked pillars' room's
north statue (metatile (17, 12)) breaks it: rocks fall round it as it
crumbles and the last blast leaves only dust. The statue's own fireball
breaks it the same way. FLAG_INSIDE_CRACKED_PILLAR_A_BURST keeps it gone.
Referenced by MagmaRockInsideCrackedPillarsCues.
Definition at line 1618 of file magma_rock_inside.c.
MagmaRockInsideBurstCrackedPillarB
DEFINE_MAGMA_ROCK_INSIDE_BURST_PILLAR(MagmaRockInsideBurstCrackedPillarB, ACTOR_CRACKED_PILLAR_B, FLAG_INSIDE_CRACKED_PILLAR_B_BURST)
Burst cast at the cracked pillars' room's other tall cracked pillar
(metatiles (19, 14) and (24, 16)) breaks it: rocks fall round it as it
crumbles and the last blast leaves only dust.
FLAG_INSIDE_CRACKED_PILLAR_B_BURST keeps it gone.
Referenced by MagmaRockInsideCrackedPillarsCues.
Definition at line 1626 of file magma_rock_inside.c.
scMagmaRockInsideSmokeEmber
void scMagmaRockInsideSmokeEmber(ACTOR *actor)
The update of a rock or flame the ember stone throws: it trails smoking embers every other tick for 64 ticks.
References MagmaRockEmberScript and scFieldEffectSpawn().
Referenced by scMagmaRockInsideReleaseRocks() and ThrowFromLava().
Definition at line 1632 of file magma_rock_inside.c.
ThrowFromLava
static __inline__ void ThrowFromLava(Sint32 id, Sint32 x, Sint32 z)
Throws a rock or flame up out of the lava where the ember stone lies, to land
at (x, z) in pixels, smoking as it flies (scMagmaRockInsideSmokeEmber).
References fdActorGetById(), fdActorSetDestination(), scMagmaRockInsideSmokeEmber() and Sint32.
Referenced by scMagmaRockInsideReleaseRocks().
Definition at line 1658 of file magma_rock_inside.c.
scMagmaRockInsideReleaseRocks
void scMagmaRockInsideReleaseRocks(void)
The first time Felix hops onto the islet in the lava at metatile (45, 19), in
the ember stone's room east of the torches' ledge, the room shakes and the
camera turns to the lava: embers spout and pound, four rocks and four flames
are thrown out to land on the islets round the spot, and last the ember stone
itself, a glowing red rock, lands on an islet to the west.
FLAG_ROCKS_RELEASED keeps them there.
References fdActorGetById(), fdActorSetDestination(), fdCameraWaitForArrival(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptStart(), fdScriptWait(), MagmaRockFlameEmberScript, MainRoutineStateWork, scFieldActorWaitForMoveById(), scFieldEffectSpawn(), scFieldMapGridWaitForShakeToSettle(), scMagmaRockInsideSmokeEmber(), scScriptCameraFollowActor(), Sint32, syRandom(), sySynch() and ThrowFromLava().
Referenced by MagmaRockInsideEmberStoneCues.
Definition at line 1674 of file magma_rock_inside.c.
scMagmaRockInsideTakeFlame
void scMagmaRockInsideTakeFlame(void)
Felix casts Blaze at one of the flames the ember stone threw into the lava:
Blaze sprays far, and unless the east torch on the ledge west of the lava is
already lit, a small hidden flame waits on it, which grows if the spray
reaches it (scMagmaRockInsideGrowFlame).
References fdActorGet(), fdScriptGetFlag() and scFieldActorSetSpriteColor().
Referenced by MagmaRockInsideEmberStoneCues.
Definition at line 1774 of file magma_rock_inside.c.
MagmaRockInsideLightTorch
DEFINE_MAGMA_ROCK_INSIDE_LIGHT_TORCH(MagmaRockInsideLightTorch, FLAG_WEST_TORCH_LIT, ACTOR_WEST_TORCH_FLAME, 600, 312)
Felix casts Blaze at the east torch's flame on the ledge west of the ember
stone's lava: unless the west torch beside it is lit, a small hidden flame
waits on the west torch, which grows if the spray reaches it
(scMagmaRockInsideGrowFlame).
Referenced by MagmaRockInsideEmberStoneCues.
Definition at line 1808 of file magma_rock_inside.c.
GrowFlame
static __inline__ void GrowFlame(ACTOR *flame)
The flame Blaze's spray reached shows and grows from a sixteenth of its size to full.
References fdScriptPlaySound(), scFieldActorSetSpriteColor(), Sint32 and sySynch().
Referenced by scMagmaRockInsideGrowFlame() and scMagmaRockInsideGrowTabletFlame().
Definition at line 1816 of file magma_rock_inside.c.
RumbleBeforePillarSinks
static __inline__ void RumbleBeforePillarSinks(void)
Once a torch's flame burns, Felix's Psynergy ends and the ground rumbles,
before the camera turns to the pillar the torch guards (SinkPillar).
References fdScriptPlaySound(), fdScriptStart(), scFieldScriptEndLastingPsynergy() and scFieldScriptWait().
Referenced by scMagmaRockInsideGrowFlame() and scMagmaRockInsideGrowTabletFlame().
Definition at line 1833 of file magma_rock_inside.c.
SinkPillar
static __inline__ void SinkPillar(ACTOR *pillar)
The pillar a torch guards sinks PILLAR_SINK_DEPTH pixels into the floor, a
pixel every 5 ticks, with a translucent black silhouette of it
(scPlaceTranslucentBlackActorFX) until it is down.
References fdActorRelease(), fdActorSelectAnimation(), fdScriptPlaySound(), scFieldScriptWait(), scPlaceTranslucentBlackActorFX() and Sint32.
Referenced by scMagmaRockInsideGrowFlame() and scMagmaRockInsideGrowTabletFlame().
Definition at line 1845 of file magma_rock_inside.c.
scMagmaRockInsideGrowFlame
void scMagmaRockInsideGrowFlame(void)
Blaze's spray reaches a torch on the ledge west of the ember stone's lava, and its flame grows until it burns full. Once both torches burn, the ground rumbles, the camera turns to the stone pillar between them, and it sinks into the floor, opening the doorway behind it (metatile (38, 18)).
References fdActorGetById(), fdCameraWaitForArrival(), fdScriptEnd(), fdScriptGetFlag(), fdScriptSetFlag(), GrowFlame(), RumbleBeforePillarSinks(), scMapMetatileSetAttributes() and SinkPillar().
Referenced by MagmaRockInsideEmberStoneCues.
Definition at line 1882 of file magma_rock_inside.c.
scMagmaRockInsidePutOutFlames
void scMagmaRockInsidePutOutFlames(void)
Nothing visible happens when Blaze, cast at a flame in the ember stone's room, reaches no torch; the game takes away the hidden flames it had set waiting on the unlit torches.
References fdScriptGetFlag().
Referenced by MagmaRockInsideEmberStoneCues.
Definition at line 1907 of file magma_rock_inside.c.
scMagmaRockInsideExamineEmberStone
void scMagmaRockInsideExamineEmberStone(void)
Examining the ember stone, the red rock the eruption threw onto an islet in the lava (metatile (43, 14)): "There's something burning like an ember within the stone." Answering yes, Felix takes the Magma Ball from it, if someone in the party can carry it.
References fdActorSetAnimation(), fdItemDisplayShowItem(), fdScriptEnd(), fdScriptOpenMessage(), fdScriptSetFlag(), fdScriptStart(), gmPartyGiveItem(), MainRoutineStateWork, mnMessageShowCentered(), scFieldPartyInventoryFindMember(), scFieldScriptAskYesNoWithActorAnimation(), scFieldScriptEndLastingPsynergy() and scFieldScriptSetMessageId().
Referenced by MagmaRockInsideEmberStoneCues.
Definition at line 1922 of file magma_rock_inside.c.
scMagmaRockInsideOpenStairs
void scMagmaRockInsideOpenStairs(void)
Walking north into the stone wall under its golden crest, at the end of the sunken pillars' path in the ember stone room's west (metatile (15, 21)), opens a stairway in it step by step, and Felix walks in and on to the Blaze tablet's room.
References fdActorGet(), fdActorWalkTo(), fdMapGridCopyMetatilesTo(), fdScriptEnd(), fdScriptPlaySound(), fdScriptStart(), MainRoutineStateWork, scFieldScriptEndLastingPsynergy(), scFieldScriptSetExitRequest(), scFieldScriptWait() and Sint32.
Referenced by MagmaRockInsideEmberStoneCues.
Definition at line 1954 of file magma_rock_inside.c.
scMagmaRockInsideStartStepMetatiles
void scMagmaRockInsideStartStepMetatiles(void)
Starts watching the stepping stones Felix walks on in the Blaze tablet's room
(scMagmaRockInsideTrackStepMetatile).
References MagmaRockInsideLastStepMetatile, scFieldSetTickEvent() and scMagmaRockInsideTrackStepMetatile().
Referenced by scInit().
Definition at line 2024 of file magma_rock_inside.c.
scMagmaRockInsideStampStepMetatile
void scMagmaRockInsideStampStepMetatile(void)
Nothing seems to happen as Felix steps onto one of the stepping stones that
cross the Blaze tablet room's lava, but he is seen standing on top of it: the
game saves the stone's picture under him (to metatile (73, 72)) and draws the
picture kept at (70, 72) in its place, until he leaves it
(scMagmaRockInsideTrackStepMetatile). The stones of this picture alternate
with the other kind along each row (scMagmaRockInsideStampOtherStepMetatile),
as Air's Rock's do (scAirsRockInsideStampWideMetatileUnderLeader).
References fdActorGet(), fdMapGridCopyMetatilesLayered(), MagmaRockInsideLastStepMetatile, MagmaRockInsideStepMetatileHeight, MagmaRockInsideStepMetatileWidth, MagmaRockInsideStepMetatileX, MagmaRockInsideStepMetatileZ, scFieldPartyGetLeaderActor() and Sint32.
Referenced by MagmaRockInsideBlazeTabletCues and scMagmaRockInsideStepOnMarker().
Definition at line 2037 of file magma_rock_inside.c.
scMagmaRockInsideStampOtherStepMetatile
void scMagmaRockInsideStampOtherStepMetatile(void)
Nothing seems to happen as Felix steps onto a stepping stone of the other
kind in the Blaze tablet room's lava, but he is seen standing on top of it:
as scMagmaRockInsideStampStepMetatile, drawing the picture kept at (71, 72).
References fdActorGet(), fdMapGridCopyMetatilesLayered(), MagmaRockInsideLastStepMetatile, MagmaRockInsideStepMetatileHeight, MagmaRockInsideStepMetatileWidth, MagmaRockInsideStepMetatileX, MagmaRockInsideStepMetatileZ, scFieldPartyGetLeaderActor() and Sint32.
Referenced by MagmaRockInsideBlazeTabletCues.
Definition at line 2070 of file magma_rock_inside.c.
scMagmaRockInsideFadeStoneAway
void scMagmaRockInsideFadeStoneAway(Sint32 x, Sint32 z)
The stepping stone at (x, z), in pixels, in the line of stepping stones that leads to the Blaze tablet, glows white with a drip and fades away into the lava (an object window over it, blended out), and its metatile is walled off.
References fdActorRelease(), fdActorSetSpriteFlags(), fdMapGridCopyMetatilesTo(), fdScriptEnd(), fdScriptPlaySound(), fdScriptStart(), scFieldActorCreate(), scFieldScriptEndLastingPsynergy(), scMapMetatileSetAttributes(), scSetActorSpritePriority(), Sint32 and sySynch().
Referenced by scMagmaRockInsideStepOnMarker().
Definition at line 2103 of file magma_rock_inside.c.
scMagmaRockInsideStepOnMarker
void scMagmaRockInsideStepOnMarker(void)
Felix walks north from the Blaze tablet room's entrance along the line of
stepping stones to the tablet's platform (column 16 of the map): on every
second stone, the stone he has just stepped off glows white with a drip and
fades away into the lava, so there is no way back. Five go in all, the first
the stone just north of the entrance's walkway, the last the stone just below
the tablet's platform. Retreat is barred in this room too, so the party
leaves by the way Blaze opens (scMagmaRockInsideGrowTabletFlame). The flags
keep the stones gone.
References fdActorGet(), fdScriptGetFlag(), fdScriptSetFlag(), MainRoutineStateWork, scMagmaRockInsideFadeStoneAway(), scMagmaRockInsideStampStepMetatile(), scMapMetatileGetAttributes() and Sint32.
Referenced by MagmaRockInsideBlazeTabletCues.
Definition at line 2151 of file magma_rock_inside.c.
MagmaRockInsideLightTabletTorch
DEFINE_MAGMA_ROCK_INSIDE_LIGHT_TORCH(MagmaRockInsideLightTabletTorch, FLAG_TABLET_TORCH_LIT, ACTOR_TORCH_FLAME, 136, 360)
Felix casts Blaze at the flame in the west bowl on the ledge in the Blaze
tablet room's south-west: unless the east bowl beside it is lit, a small
hidden flame waits in the east bowl, which grows if the spray reaches it
(scMagmaRockInsideGrowTabletFlame).
Referenced by MagmaRockInsideBlazeTabletCues.
Definition at line 2185 of file magma_rock_inside.c.
scMagmaRockInsideGrowTabletFlame
void scMagmaRockInsideGrowTabletFlame(void)
Blaze's spray reaches the east bowl on the Blaze tablet room's south-west ledge, and its flame grows until it burns full; the ground rumbles, the camera turns to the stone pillar between the bowls, and it sinks into the floor until its top is a stepping stone across the lava (metatile (7, 21)), the way out of the room.
References fdActorGet(), fdCameraWaitForArrival(), fdScriptEnd(), fdScriptSetFlag(), GrowFlame(), RumbleBeforePillarSinks(), scMapMetatileSetAttributes() and SinkPillar().
Referenced by MagmaRockInsideBlazeTabletCues.
Definition at line 2196 of file magma_rock_inside.c.
scMagmaRockInsidePutOutTabletFlame
void scMagmaRockInsidePutOutTabletFlame(void)
Nothing visible happens when Blaze, cast at the flame on the Blaze tablet room's south-west ledge, does not reach the east bowl; the game takes away the hidden flame it had set waiting there.
References fdScriptGetFlag().
Referenced by MagmaRockInsideBlazeTabletCues.
Definition at line 2216 of file magma_rock_inside.c.
scMagmaRockInsideSpawnSpark
void scMagmaRockInsideSpawnSpark(ACTOR *src)
Leaves a small red spark behind a spark circling in to Jenna as she learns
Blaze (scMagmaRockInsideOrbitParent).
References fdActorSelectAnimation(), fdActorSetBlendMode(), fdActorSetSpriteFlags(), fdActorStartScript(), MagmaRockInsideFlameScript, scFieldActorSetSpriteColor(), scMagmaRockInsideCreateActor() and scSetActorSpritePriority().
Referenced by scMagmaRockInsideOrbitParent().
Definition at line 2227 of file magma_rock_inside.c.
scMagmaRockInsideOrbitParent
Bool scMagmaRockInsideOrbitParent(SPARK_ORBITER *object)
A spark's script call: circles in to its parent, leaving sparks, until its steps run out; 0 ends its script.
References scFieldVectorAddPolarOffsetFX(), scMagmaRockInsideSpawnSpark() and Sint32.
Referenced by MagmaRockInsideCirclingSparkScript.
Definition at line 2264 of file magma_rock_inside.c.
scMagmaRockInsideDriftForSteps
Sint32 scMagmaRockInsideDriftForSteps(ORBIT *object)
A rising spark's script call: drifts by its centre and radius, kept as velocities, for its phase's count of steps; 0 ends its script.
References Sint32.
Referenced by MagmaRockInsideOrbitScript.
Definition at line 2300 of file magma_rock_inside.c.
scMagmaRockInsideTrailSparks
void scMagmaRockInsideTrailSparks(ACTOR *actor)
An actor's update: drops a white sparkle near it every eighth tick.
References scFieldEffectSpawn(), syRandom() and TickCount.
Referenced by scMagmaRockInsideLearnBlaze().
Definition at line 2317 of file magma_rock_inside.c.
scMagmaRockInsideLearnBlaze
void scMagmaRockInsideLearnBlaze(Sint32 tabletId, Sint32 learnerId)
The Blaze tablet's lesson: the music fades, the ground shakes and the screen takes on a warm tint as the tablet lifts, blinking and shooting sparks up; red sparks circle in to the one who learns and rise round her as she lifts too, the screen flashes white, and both settle back as the music returns.
References fdActorGetById(), fdActorSelectAnimation(), fdActorSetBlendMode(), fdActorSetScript(), fdActorSetSpriteColorById(), fdActorSetSpriteFlags(), fdActorStartScript(), fdCameraMoveToFX(), fdPaletteFadeSetSource(), fdPaletteFadeSetTarget(), fdPaletteFadeStartInterpolation(), fdScriptPlaySound(), fdScriptWait(), gmPlayMusic(), LessonAdeptRiseScript, LessonAdeptSettleScript, LessonTabletRiseScript, LessonTabletSettleScript, MagmaRockInsideCirclingSparkScript, MagmaRockInsideOrbitScript, MagmaRockInsideRisingSparkScript, scFieldActorCreate(), scFieldActorSetSpriteColor(), scFieldVectorAddPolarOffsetFX(), scMagmaRockInsideTrailSparks(), scSetActorSpritePriority(), Sint32, syImportActorCreate(), syRandom() and sySynch().
Referenced by scMagmaRockInsideReadBlazeTablet().
Definition at line 2354 of file magma_rock_inside.c.
scMagmaRockInsideReadBlazeTablet
void scMagmaRockInsideReadBlazeTablet(void)
Felix reads the Blaze tablet from the south: "Wielder of Flame's strength, Lay your hands upon this stone." The first time, Jenna steps out beside him ("Flame's strength? Hey, that must mean it's finally my turn!"), he nods and steps back, she lays her hands on the tablet and learns Blaze, and after they nod to each other she walks back into the party. Once Blaze is learned, only the inscription is shown.
References fdActorFaceDirection(), fdActorFaceEachOther(), fdActorGet(), fdActorPlaceOnActor(), fdActorSetAnimation(), fdActorSetDestination(), fdActorSetMovementType(), fdActorWalkTo(), fdActorWalkToAndWait(), fdPartyLearnAbility(), fdScriptEnd(), fdScriptGetFlag(), fdScriptSetFlag(), fdScriptShowMessage(), fdScriptStart(), MainRoutineStateWork, mnMessageShowCentered(), scFieldActorWaitForMoveById(), scFieldMapGridWaitForShakeToSettle(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId(), scFieldScriptWait(), scMagmaRockInsideLearnBlaze() and Sint32.
Referenced by MagmaRockInsideBlazeTabletCues and scMagmaRockInsideReadBlazeTabletFromNorth().
Definition at line 2506 of file magma_rock_inside.c.
scMagmaRockInsideReadBlazeTabletFromNorth
void scMagmaRockInsideReadBlazeTabletFromNorth(void)
Felix reads the Blaze tablet from behind, on its north side: the first time
he walks round its west side to the front and it is read there
(scMagmaRockInsideReadBlazeTablet); once Blaze is learned only its
inscription is shown.
References fdActorFaceDirection(), fdActorWalkToAndWait(), fdScriptEnd(), fdScriptGetFlag(), fdScriptStart(), MainRoutineStateWork, mnMessageShowCentered(), scFieldScriptEndLastingPsynergy(), scFieldScriptWait() and scMagmaRockInsideReadBlazeTablet().
Referenced by MagmaRockInsideBlazeTabletCues.
Definition at line 2586 of file magma_rock_inside.c.
MagmaRockInsideReadBlazeTabletFromEast
DEFINE_MAGMA_ROCK_INSIDE_READ_TABLET_FROM( MagmaRockInsideReadBlazeTabletFromEast, 280)
Felix reads the Blaze tablet from its east side: the first time he steps
round to the front and it is read there (scMagmaRockInsideReadBlazeTablet);
once Blaze is learned only its inscription is shown.
Referenced by MagmaRockInsideBlazeTabletCues.
Definition at line 2636 of file magma_rock_inside.c.
MagmaRockInsideReadBlazeTabletFromWest
DEFINE_MAGMA_ROCK_INSIDE_READ_TABLET_FROM( MagmaRockInsideReadBlazeTabletFromWest, 248)
Felix reads the Blaze tablet from its west side: the first time he steps
round to the front and it is read there (scMagmaRockInsideReadBlazeTablet);
once Blaze is learned only its inscription is shown.
Referenced by MagmaRockInsideBlazeTabletCues.
Definition at line 2642 of file magma_rock_inside.c.
scGetCues
const CUE *scGetCues(void)
References MagmaRockInsideBlazeTabletCues, MagmaRockInsideChainsCues, MagmaRockInsideCrackedPillarsCues, MagmaRockInsideCues, MagmaRockInsideEmberStoneCues, MagmaRockInsideEntranceCues, MagmaRockInsideFuryCues, MagmaRockInsideLowerRoomsCues and MainRoutineStateWork.
Definition at line 2654 of file magma_rock_inside.c.
scMagmaRockInsideLayerWithLeader
void scMagmaRockInsideLayerWithLeader(ACTOR *pillar)
The entrance hall pillar's update: its drawing order comes from the metatiles under it, except while Felix stands at its height and not in front of it, when it is drawn at the lowest priority.
References fdActorGet(), MainRoutineStateWork and scSetActorSpritePriority().
Referenced by scInit().
Definition at line 2771 of file magma_rock_inside.c.
RaiseSwitchMarker
static __inline__ void RaiseSwitchMarker(Sint32 id)
Stands an unseen marker 20 pixels up on a floor switch, a platform Felix
stands on until he presses the switch down (scMagmaRockInsideDrainLava).
References fdActorGetById() and Sint32.
Referenced by scInit().
Definition at line 2818 of file magma_rock_inside.c.
SettleActorAt
static __inline__ void SettleActorAt(Sint32 id, Sint32 height)
Sets an actor down at the given height, no longer falling.
References fdActorGetById() and Sint32.
Referenced by scInit().
Definition at line 2828 of file magma_rock_inside.c.
scInit
Sint32 scInit(void)
Sets up the room the party comes into: Felix able to stand on the lava platforms, the room's pillars, statues and switch markers in place, and its lava up or hidden by the flags.
References fdActorGetById(), fdActorPlaceBlocks(), fdActorSelectAnimation(), fdActorSetAnimation(), fdActorSetMovementType(), fdActorSetSpriteFlags(), fdActorSetSpritePriority(), fdEffectStartBlankOverlay(), fdHangingVinePlace(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesTo(), fdScriptGetFlag(), fdScriptSetFlag(), fdTightropeInit(), fdTightropePlace(), MagmaRockInsideCrackedPillarsEastPlatformPath, MagmaRockInsideCrackedPillarsFirstPairPath, MagmaRockInsideCrackedPillarsFourthPairPath, MagmaRockInsideCrackedPillarsPillars, MagmaRockInsideCrackedPillarsSecondPairPath, MagmaRockInsideCrackedPillarsStatues, MagmaRockInsideCrackedPillarsThirdPairPath, MagmaRockInsideCrackedPillarsWestPlatformPath, MagmaRockInsideEmberStonePillars, MagmaRockInsideEntrancePillars, MagmaRockInsideFuryEastPlatformPath, MagmaRockInsideFuryPillars, MagmaRockInsideFuryWestPlatformPath, MagmaRockInsideLowerRoomsNorthPlatformPath, MagmaRockInsideLowerRoomsPillars, MagmaRockInsideLowerRoomsSoutheastPlatformPath, MagmaRockInsideLowerRoomsSouthwestPlatformPath, MagmaRockInsideStatues, MagmaRockInsideUpperPassagesPlatformPath, MainRoutineStateWork, RaiseSwitchMarker(), scMagmaRockInsideLayerWithLeader(), scMagmaRockInsideRaiseActorMetatiles(), scMagmaRockInsideSetEntranceFlooded(), scMagmaRockInsideSetFuryFlooded(), scMagmaRockInsideSetLowerRoomsFlooded(), scMagmaRockInsideStartLavaPlatform(), scMagmaRockInsideStartStepMetatiles(), scMapMetatileSetAttributes(), SettleActorAt() and Sint32.
Definition at line 2837 of file magma_rock_inside.c.
scPrepareMap
Sint32 scPrepareMap(void)
Coming back in from outside, at the summit or by the door from Magma Rock's entrance, the party finds the lava drained from every room.
References fdScriptClearFlag(), fdScriptGetFlag(), MainRoutineStateWork and Sint32.
Definition at line 3157 of file magma_rock_inside.c.
scMagmaRockInsideCrumblePillar
void scMagmaRockInsideCrumblePillar(const void *data, Sint32 id)
Unused: a crumbling pillar named in the (actor, flag) table gives way with a shake, rubble and a thump, as on Magma Rock's outside.
References fdActorGet(), fdActorSelectAnimation(), fdActorSetMetatileShape(), fdScriptEnd(), fdScriptGetFlag(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptStart(), scDustScatter(), scFieldActorSetPosAndResetMotion(), scMagmaRockInsideSpawnDustRing(), Sint32 and sySynch().
Definition at line 3187 of file magma_rock_inside.c.
scMagmaRockInsideStepOnTrap
void scMagmaRockInsideStepOnTrap(const Uint16 *table)
Unused: stepping onto a crumbling floor, as on Magma Rock's outside: the first time it shakes and cracks, the second time it gives way with the leader.
References fdActorCopyGraphics(), fdActorFindAtMetatile(), fdActorGetById(), fdActorSelectAnimation(), fdActorSetPosAndResetMotion(), fdLeaderSetMetatileShapeAt(), fdScriptEnd(), fdScriptGetFlag(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptStart(), fdTryJumpForward(), MainRoutineStateWork, scActorTakePlaceOf(), scDustScatter(), scFieldActorSetSpriteColor(), scMagmaRockInsideSpawnDustRing(), Sint32 and sySynch().
Definition at line 3235 of file magma_rock_inside.c.
Variables in detail
MagmaRockInsideFlameScript
extern Sint32 MagmaRockInsideFlameScript[]
Sint32 MagmaRockInsideFlameScript[]
A small spark's actor script (scMagmaRockInsideSpawnSpark).
References Sint32.
Referenced by scMagmaRockInsideSpawnSpark().
Definition at lines 35 and 3618 of file magma_rock_inside.c.
MagmaRockInsideLastStepMetatile
extern Sint32 MagmaRockInsideLastStepMetatile
Sint32 MagmaRockInsideLastStepMetatile
The metatile the leader last stopped on, x in the high half and z in the low,
or -1 for none (scMagmaRockInsideTrackStepMetatile).
References Sint32.
Referenced by scMagmaRockInsideStampOtherStepMetatile(), scMagmaRockInsideStampStepMetatile(), scMagmaRockInsideStartStepMetatiles() and scMagmaRockInsideTrackStepMetatile().
Definition at lines 37 and 4564 of file magma_rock_inside.c.
MagmaRockInsideEntrancePillars
extern Sint16 MagmaRockInsideEntrancePillars[]
Sint16 MagmaRockInsideEntrancePillars[]
The pillars Move pushes in the entrance, ended by -1.
Referenced by scInit() and scMagmaRockInsideStartPushingPillar().
Definition at lines 425 and 3578 of file magma_rock_inside.c.
MagmaRockInsideFuryPillars
extern Sint16 MagmaRockInsideFuryPillars[]
Sint16 MagmaRockInsideFuryPillars[]
The pillars Move pushes in Fury's room, ended by -1.
Referenced by scInit() and scMagmaRockInsideStartPushingPillar().
Definition at lines 427 and 3589 of file magma_rock_inside.c.
MagmaRockInsideCrackedPillarsPillars
extern Sint16 MagmaRockInsideCrackedPillarsPillars[]
Sint16 MagmaRockInsideCrackedPillarsPillars[]
The pillars Move pushes in the cracked pillars' room, ended by -1.
Referenced by scInit() and scMagmaRockInsideStartPushingPillar().
Definition at lines 429 and 3603 of file magma_rock_inside.c.
MagmaRockInsideEmberStonePillars
extern Sint16 MagmaRockInsideEmberStonePillars[]
Sint16 MagmaRockInsideEmberStonePillars[]
The pillars Move pushes in the ember stone's room, ended by -1.
Referenced by scInit(), scMagmaRockInsideFinishPushingPillar() and scMagmaRockInsideStartPushingPillar().
Definition at lines 431 and 3613 of file magma_rock_inside.c.
MagmaRockInsideCrackedPillarsFirstPairPath
extern Sint32 MagmaRockInsideCrackedPillarsFirstPairPath[]
Sint32 MagmaRockInsideCrackedPillarsFirstPairPath[]
The cracked pillars' room's lava platforms A and B: one square, B starting at its third corner
(scMagmaRockInsideSetLowerRoomsFlooded).
References Sint32.
Referenced by scInit() and scMagmaRockInsideSetLowerRoomsFlooded().
Definition at lines 454 and 3508 of file magma_rock_inside.c.
MagmaRockInsideCrackedPillarsSecondPairPath
extern Sint32 MagmaRockInsideCrackedPillarsSecondPairPath[]
Sint32 MagmaRockInsideCrackedPillarsSecondPairPath[]
The cracked pillars' room's lava platforms C and D, as A and B.
References Sint32.
Referenced by scInit() and scMagmaRockInsideSetLowerRoomsFlooded().
Definition at lines 455 and 3518 of file magma_rock_inside.c.
MagmaRockInsideCrackedPillarsThirdPairPath
extern Sint32 MagmaRockInsideCrackedPillarsThirdPairPath[]
Sint32 MagmaRockInsideCrackedPillarsThirdPairPath[]
The cracked pillars' room's lava platforms E and F, as A and B.
References Sint32.
Referenced by scInit() and scMagmaRockInsideSetLowerRoomsFlooded().
Definition at lines 456 and 3528 of file magma_rock_inside.c.
MagmaRockInsideCrackedPillarsFourthPairPath
extern Sint32 MagmaRockInsideCrackedPillarsFourthPairPath[]
Sint32 MagmaRockInsideCrackedPillarsFourthPairPath[]
The cracked pillars' room's lava platforms G and H, as A and B.
References Sint32.
Referenced by scInit() and scMagmaRockInsideSetLowerRoomsFlooded().
Definition at lines 457 and 3538 of file magma_rock_inside.c.
MagmaRockInsideStepMetatileWidth
Sint32 MagmaRockInsideStepMetatileWidth
The stepping stone Felix stands on in the Blaze tablet's room, whose picture was swapped for one of him on top of it: the size and map place of the metatiles to put back as he leaves it.
References Sint32.
Referenced by scMagmaRockInsideStampOtherStepMetatile(), scMagmaRockInsideStampStepMetatile() and scMagmaRockInsideTrackStepMetatile().
Definition at line 489 of file magma_rock_inside.c.
MagmaRockInsideStepMetatileHeight
Sint32 MagmaRockInsideStepMetatileHeight
References Sint32.
Referenced by scMagmaRockInsideStampOtherStepMetatile(), scMagmaRockInsideStampStepMetatile() and scMagmaRockInsideTrackStepMetatile().
Definition at line 490 of file magma_rock_inside.c.
MagmaRockInsideStepMetatileX
Sint32 MagmaRockInsideStepMetatileX
References Sint32.
Referenced by scMagmaRockInsideStampOtherStepMetatile(), scMagmaRockInsideStampStepMetatile() and scMagmaRockInsideTrackStepMetatile().
Definition at line 491 of file magma_rock_inside.c.
MagmaRockInsideStepMetatileZ
Sint32 MagmaRockInsideStepMetatileZ
References Sint32.
Referenced by scMagmaRockInsideStampOtherStepMetatile(), scMagmaRockInsideStampStepMetatile() and scMagmaRockInsideTrackStepMetatile().
Definition at line 492 of file magma_rock_inside.c.
MagmaRockInsidePlacements
extern ACTOR_PLACE MagmaRockInsidePlacements[]
ACTOR_PLACE MagmaRockInsidePlacements[]
The actors placed in the upper passages: its one white platform.
Referenced by scGetActorPlacements().
Definition at lines 615 and 3859 of file magma_rock_inside.c.
MagmaRockInsideEntrancePlacements
extern ACTOR_PLACE MagmaRockInsideEntrancePlacements[]
ACTOR_PLACE MagmaRockInsideEntrancePlacements[]
The actors placed in the entrance.
Referenced by scGetActorPlacements().
Definition at lines 616 and 3866 of file magma_rock_inside.c.
MagmaRockInsideFuryPlacements
extern ACTOR_PLACE MagmaRockInsideFuryPlacements[]
ACTOR_PLACE MagmaRockInsideFuryPlacements[]
The actors placed in Fury's room.
Referenced by scGetActorPlacements().
Definition at lines 617 and 3896 of file magma_rock_inside.c.
MagmaRockInsideCrackedPillarsPlacements
extern ACTOR_PLACE MagmaRockInsideCrackedPillarsPlacements[]
ACTOR_PLACE MagmaRockInsideCrackedPillarsPlacements[]
The actors placed in the cracked pillars' room.
Referenced by scGetActorPlacements().
Definition at lines 618 and 3918 of file magma_rock_inside.c.
MagmaRockInsideChainsPlacements
extern ACTOR_PLACE MagmaRockInsideChainsPlacements[]
ACTOR_PLACE MagmaRockInsideChainsPlacements[]
The actors placed in the room of chains.
Referenced by scGetActorPlacements().
Definition at lines 619 and 3968 of file magma_rock_inside.c.
MagmaRockInsideLowerRoomsPlacements
extern ACTOR_PLACE MagmaRockInsideLowerRoomsPlacements[]
ACTOR_PLACE MagmaRockInsideLowerRoomsPlacements[]
The actors placed in the lower rooms.
Referenced by scGetActorPlacements().
Definition at lines 620 and 3981 of file magma_rock_inside.c.
MagmaRockInsideEmberStonePlacements
extern ACTOR_PLACE MagmaRockInsideEmberStonePlacements[]
ACTOR_PLACE MagmaRockInsideEmberStonePlacements[]
The actors placed in the ember stone's room.
Referenced by scGetActorPlacements().
Definition at lines 621 and 3996 of file magma_rock_inside.c.
MagmaRockInsideBlazeTabletPlacements
extern ACTOR_PLACE MagmaRockInsideBlazeTabletPlacements[]
ACTOR_PLACE MagmaRockInsideBlazeTabletPlacements[]
The actors placed in the Blaze tablet's room.
Referenced by scGetActorPlacements().
Definition at lines 622 and 4041 of file magma_rock_inside.c.
MagmaRockInsideLowerRoomsPillars
extern Sint16 MagmaRockInsideLowerRoomsPillars[]
Sint16 MagmaRockInsideLowerRoomsPillars[]
The pillars Move pushes in the lower rooms, ended by -1.
Referenced by scInit(), scMagmaRockInsideFinishPushingPillar() and scMagmaRockInsideStartPushingPillar().
Definition at lines 624 and 3608 of file magma_rock_inside.c.
MagmaRockInsideStatues
extern Sint16 MagmaRockInsideStatues[]
Sint16 MagmaRockInsideStatues[]
The statue Burst wakes in the entrance hall and in Fury's room, as (actor, the metatile Burst is cast at, unused) rows ended by -1.
Referenced by scInit() and scMagmaRockInsideTargetStatue().
Definition at lines 873 and 3584 of file magma_rock_inside.c.
MagmaRockInsideCrackedPillarsStatues
extern Sint16 MagmaRockInsideCrackedPillarsStatues[]
Sint16 MagmaRockInsideCrackedPillarsStatues[]
The cracked pillars' room's three statues, as (actor, the metatile Burst is cast at, unused) rows
ended by -1 (scStatueFindUnderBurst).
Referenced by scInit() and scMagmaRockInsideTargetStatue().
Definition at lines 874 and 3595 of file magma_rock_inside.c.
MagmaRockInsideRisingSparkScript
extern Sint32 MagmaRockInsideRisingSparkScript[]
Sint32 MagmaRockInsideRisingSparkScript[]
A spark shooting up from the Blaze tablet as it lifts: its actor script.
References Sint32.
Referenced by scMagmaRockInsideLearnBlaze().
Definition at lines 2343 and 3625 of file magma_rock_inside.c.
MagmaRockInsideCirclingSparkScript
extern Sint32 MagmaRockInsideCirclingSparkScript[]
Sint32 MagmaRockInsideCirclingSparkScript[]
A circling spark's actor script (scMagmaRockInsideOrbitParent).
References scMagmaRockInsideOrbitParent() and Sint32.
Referenced by scMagmaRockInsideLearnBlaze().
Definition at lines 2344 and 3633 of file magma_rock_inside.c.
MagmaRockInsideOrbitScript
extern Sint32 MagmaRockInsideOrbitScript[]
Sint32 MagmaRockInsideOrbitScript[]
A rising spark's actor script: it circles and drifts for its steps
(scMagmaRockInsideDriftForSteps).
References scActorAimAtWatched(), scMagmaRockInsideDriftForSteps(), scOrbitUpdate() and Sint32.
Referenced by scMagmaRockInsideLearnBlaze().
Definition at lines 2346 and 3641 of file magma_rock_inside.c.
MagmaRockInsideCues
extern CUE MagmaRockInsideCues[]
CUE MagmaRockInsideCues[]
The cues of the upper passages.
References scMagmaRockInsideLeapOverLava().
Referenced by scGetCues().
Definition at lines 2645 and 4057 of file magma_rock_inside.c.
MagmaRockInsideEntranceCues
extern CUE MagmaRockInsideEntranceCues[]
CUE MagmaRockInsideEntranceCues[]
The cues of the entrance.
References scMagmaRockInsideDrainLava(), scMagmaRockInsideFinishPushingPillar(), scMagmaRockInsideFireStatue(), scMagmaRockInsideMeetDjinni(), scMagmaRockInsideResolveBeforeBurst(), scMagmaRockInsideStartPushingPillar() and scMagmaRockInsideTargetStatue().
Referenced by scGetCues().
Definition at lines 2646 and 4092 of file magma_rock_inside.c.
MagmaRockInsideFuryCues
extern CUE MagmaRockInsideFuryCues[]
CUE MagmaRockInsideFuryCues[]
The cues of Fury's room.
References scMagmaRockInsideDrainLava(), scMagmaRockInsideFightFury(), scMagmaRockInsideFinishPushingPillar(), scMagmaRockInsideFireStatue(), scMagmaRockInsideLeapOverLava(), scMagmaRockInsideResolveBeforeBurst(), scMagmaRockInsideStartPushingPillar() and scMagmaRockInsideTargetStatue().
Referenced by scGetCues().
Definition at lines 2647 and 4148 of file magma_rock_inside.c.
MagmaRockInsideCrackedPillarsCues
extern CUE MagmaRockInsideCrackedPillarsCues[]
CUE MagmaRockInsideCrackedPillarsCues[]
The cues of the cracked pillars' room.
References MagmaRockInsideBurstCrackedPillarA(), MagmaRockInsideBurstCrackedPillarB(), scMagmaRockInsideFinishPushingPillar(), scMagmaRockInsideFireStatue(), scMagmaRockInsideLeapOverLava(), scMagmaRockInsideResolveBeforeBurst(), scMagmaRockInsideStartPushingPillar() and scMagmaRockInsideTargetStatue().
Referenced by scGetCues().
Definition at lines 2648 and 4216 of file magma_rock_inside.c.
MagmaRockInsideChainsCues
extern CUE MagmaRockInsideChainsCues[]
CUE MagmaRockInsideChainsCues[]
The cues of the room of chains.
References scMagmaRockInsideDrainLava().
Referenced by scGetCues().
Definition at lines 2649 and 4338 of file magma_rock_inside.c.
MagmaRockInsideLowerRoomsCues
extern CUE MagmaRockInsideLowerRoomsCues[]
CUE MagmaRockInsideLowerRoomsCues[]
The cues of the lower rooms.
References scMagmaRockInsideFinishPushingPillar(), scMagmaRockInsideLeapOverLava() and scMagmaRockInsideStartPushingPillar().
Referenced by scGetCues().
Definition at lines 2650 and 4385 of file magma_rock_inside.c.
MagmaRockInsideEmberStoneCues
extern CUE MagmaRockInsideEmberStoneCues[]
CUE MagmaRockInsideEmberStoneCues[]
The cues of the ember stone's room.
References MagmaRockInsideLightTorch(), scMagmaRockInsideExamineEmberStone(), scMagmaRockInsideFinishPushingPillar(), scMagmaRockInsideGrowFlame(), scMagmaRockInsideOpenStairs(), scMagmaRockInsidePutOutFlames(), scMagmaRockInsideReleaseRocks(), scMagmaRockInsideStartPushingPillar() and scMagmaRockInsideTakeFlame().
Referenced by scGetCues().
Definition at lines 2651 and 4468 of file magma_rock_inside.c.
MagmaRockInsideBlazeTabletCues
extern CUE MagmaRockInsideBlazeTabletCues[]
CUE MagmaRockInsideBlazeTabletCues[]
The cues of the Blaze tablet's room.
References MagmaRockInsideLightTabletTorch(), MagmaRockInsideReadBlazeTabletFromEast(), MagmaRockInsideReadBlazeTabletFromWest(), scMagmaRockInsideGrowTabletFlame(), scMagmaRockInsidePutOutTabletFlame(), scMagmaRockInsideReadBlazeTablet(), scMagmaRockInsideReadBlazeTabletFromNorth(), scMagmaRockInsideStampOtherStepMetatile(), scMagmaRockInsideStampStepMetatile() and scMagmaRockInsideStepOnMarker().
Referenced by scGetCues().
Definition at lines 2652 and 4567 of file magma_rock_inside.c.
MagmaRockInsideUpperPassagesPlatformPath
extern Sint32 MagmaRockInsideUpperPassagesPlatformPath[]
Sint32 MagmaRockInsideUpperPassagesPlatformPath[]
The upper passages' lava platform: round a rectangle, for as long as the lava flows.
References Sint32.
Referenced by scInit().
Definition at lines 2799 and 3455 of file magma_rock_inside.c.
MagmaRockInsideFuryWestPlatformPath
extern Sint32 MagmaRockInsideFuryWestPlatformPath[]
Sint32 MagmaRockInsideFuryWestPlatformPath[]
Fury's room's west lava platform: round a rectangle.
References Sint32.
Referenced by scInit().
Definition at lines 2800 and 3465 of file magma_rock_inside.c.
MagmaRockInsideFuryEastPlatformPath
extern Sint32 MagmaRockInsideFuryEastPlatformPath[]
Sint32 MagmaRockInsideFuryEastPlatformPath[]
Fury's room's east lava platform: east to 760 once, and it stays there.
References Sint32.
Referenced by scInit().
Definition at lines 2801 and 3475 of file magma_rock_inside.c.
MagmaRockInsideCrackedPillarsWestPlatformPath
extern Sint32 MagmaRockInsideCrackedPillarsWestPlatformPath[]
Sint32 MagmaRockInsideCrackedPillarsWestPlatformPath[]
The west lava platform of the cracked pillars' room's upper hall, which floods with Fury's room: round a rectangle.
References Sint32.
Referenced by scInit().
Definition at lines 2802 and 3486 of file magma_rock_inside.c.
MagmaRockInsideCrackedPillarsEastPlatformPath
extern Sint32 MagmaRockInsideCrackedPillarsEastPlatformPath[]
Sint32 MagmaRockInsideCrackedPillarsEastPlatformPath[]
The east lava platform of the cracked pillars' room's upper hall, which floods with Fury's room: round a rectangle.
References Sint32.
Referenced by scInit().
Definition at lines 2803 and 3497 of file magma_rock_inside.c.
MagmaRockInsideLowerRoomsNorthPlatformPath
extern Sint32 MagmaRockInsideLowerRoomsNorthPlatformPath[]
Sint32 MagmaRockInsideLowerRoomsNorthPlatformPath[]
The lower rooms' north lava platform: round a rectangle.
References Sint32.
Referenced by scInit().
Definition at lines 2804 and 3548 of file magma_rock_inside.c.
MagmaRockInsideLowerRoomsSouthwestPlatformPath
extern Sint32 MagmaRockInsideLowerRoomsSouthwestPlatformPath[]
Sint32 MagmaRockInsideLowerRoomsSouthwestPlatformPath[]
The lower rooms' southwest lava platform: round a rectangle.
References Sint32.
Referenced by scInit().
Definition at lines 2805 and 3558 of file magma_rock_inside.c.
MagmaRockInsideLowerRoomsSoutheastPlatformPath
extern Sint32 MagmaRockInsideLowerRoomsSoutheastPlatformPath[]
Sint32 MagmaRockInsideLowerRoomsSoutheastPlatformPath[]
The lower rooms' southeast lava platform: round a rectangle.
References Sint32.
Referenced by scInit().
Definition at lines 2806 and 3568 of file magma_rock_inside.c.
FieldEffectDurationScripts
const Sint32 *FieldEffectDurationScripts[]
References FieldEffectLongScript, FieldEffectMediumScript, FieldEffectShortScript and Sint32.
Referenced by fdEffectSpawnResident(), scFieldEffectSpawn() and scFieldEffectSpawnLocal().
Definition at line 3655 of file magma_rock_inside.c.
SceneExits
Uint32 SceneExits[]
Referenced by scGetExits().
Definition at line 3663 of file magma_rock_inside.c.