src/battle_effect/battle_effect_flora.c
The Flora summon, Sabre Dance and Backstab, with the function that sets a battler's sprite priority and an unused one that sends a unit outward. More…
Included by battle_effect.c.
Structures
| Name | Description | |
|---|---|---|
struct | FLORA_PETAL_WORK | Flora's petals in EffectScratch: the tile number of each of the petal's pictures, each petal's phase, position and velocity, and the object palette as it fades. |
Macros
| Name | Description | |
|---|---|---|
#define | FLORA_FIGURE_PIECES 12 | Flora is twelve 32x32 sprites in 256 colours, three across and four down, the first sprites of the effect state; then come her thirty-two 16x16 petals, the first fifteen each holding one of the tumbling petal's pictures (PinkPetalsTiles). |
#define | FLORA_FIGURE_COLUMNS 3 | |
#define | FLORA_PETAL_SPRITES FLORA_FIGURE_PIECES | |
#define | FLORA_PETAL_PICTURE_COUNT 15 | |
#define | FLORA_PETAL_COUNT 32 | |
#define | FLORA_PETAL_SIZE 16 | |
#define | FLORA_PETAL_PALETTE 15 | |
#define | FLORA_COLORS 240 | |
#define | FLORA_PHASE_ONE 256 | A petal's phase counts its tumbling pictures in 256ths: its high byte is the picture it shows. |
#define | FLORA_PATH_PETALS 6 | Petals 0 to 5 blow across the sky on paths of their own before Flora comes; 6 to 15 stream from her hand towards the foes from FLORA_LAUNCH_TICK; 16 to 31 burst out around her as she comes and again as she leaves. |
#define | FLORA_PETAL_AWAY_X 256 | Where a path petal waits before its path starts and is put away when Flora appears: off the screen's right edge. |
#define | FLORA_PETAL_AWAY_Y 48 | |
#define | FLORA_BURST_PETAL 16 | |
#define | FLORA_STORM_TICKS 128 | The storm: petals set out above the foes, of which one more falls each tick, sweeping down over them, until FLORA_STORM_DRAWN have fallen. |
#define | FLORA_STORM_PETALS 128 | |
#define | FLORA_STORM_DRAWN 64 | |
#define | FLORA_HIT_INTERVAL 15 | |
#define | FLORA_STORM_DAMAGE_TICK 56 | The battle shows the damage at FLORA_STORM_DAMAGE_TICK; the foes are struck over the FLORA_STORM_HIT_TICKS after it. |
#define | FLORA_STORM_HIT_TICKS 50 | |
#define | FLORA_STORM_PICTURES 4096 | Where the storm's fifteen petal pictures are unpacked to a byte a pixel in the effect's pictures. |
#define | FLORA_STATE ((FLORA_PETAL_WORK *)petals) | The petals' state, kept in the particles' memory. |
#define | FLORA_PETAL_PHASE (i) | Petal i's phase, FLORA_PETAL_WORK's phase[i], reached through FloraPetalTiles, which names its tile numbers from the second on. |
#define | FLORA_TICKS 300 | After the battle flashes away (SUMMON_OPENING_TICKS), the sky scene plays for FLORA_TICKS; A or B cuts it short after its first sixteen. |
#define | FLORA_WIDE_TICK 108 | The canvas, shown at its own width FLORA_CANVAS_X pixels right of the screen's left edge until then, widens to twice it. |
#define | FLORA_CANVAS_X 60 | |
#define | FLORA_APPEAR_TICK 112 | Flora appears in a flash of FLORA_FLASH_TICKS and fades in from white over FLORA_FADE_IN_TICKS. |
#define | FLORA_FLASH_TICKS 8 | |
#define | FLORA_FADE_IN_TICKS 32 | |
#define | FLORA_LAUNCH_TICK 223 | Petals stream from her hand from FLORA_LAUNCH_TICK, two ticks apart, as glows flare there; at FLORA_LEAVE_TICK she flies away. |
#define | FLORA_LEAVE_TICK 252 | |
#define | FLORA_GLOW_BYTES (height) ((height) / 2 * (height)) | The glows' pictures (FloraPetalPictures): shaded discs height pixels tall and half as wide, one after another. |
#define | FLORA_GLOW_X 44 | Where the glows flare on the canvas, by Flora's hand. |
#define | FLORA_GLOW_Y 78 | |
#define | FLORA_DIMMED_MOTE 3 | Ten copies of mote picture 3, each 7 levels dimmer than the one before, laid over the tenth mote picture from its 21st byte. |
#define | FLORA_DIMMED_MOTE_BYTES (FLORA_DIMMED_MOTE * FLORA_DIMMED_MOTE * 2) | |
#define | FLORA_DIMMED_MOTE_COPIES 10 | |
#define | FLORA_DIMMED_MOTES 590 | |
#define | FLORA_RING_MOTES 32 | The ring of motes: eight arms of four motes, spinning faster and faster from FLORA_RING_TICK, its spin at the start a 128th of a turn a tick. |
#define | FLORA_RING_ARMS 8 | |
#define | FLORA_ARM_MOTES (FLORA_RING_MOTES / FLORA_RING_ARMS) | |
#define | FLORA_RING_SPIN (TRIG_TURN / 128) | |
#define | FLORA_RING_TICK 156 | |
#define | FLORA_RING_TICKS 75 | |
#define | FLORA_LIGHT_RINGS 4 | The four rings of light (FireRingTexture): three as Flora appears and one as she leaves. |
#define | FLORA_RING_X 48 | The centre of the ring of motes and of the wheel, on the canvas. |
#define | FLORA_RING_Y 92 | |
#define | FLORA_WHEEL_DOTS 128 | The wheel: a ring of dots and one three quarters its size, joined by four spokes, which from FLORA_WHEEL_TICK turns, tilts flat and slides to the rings' centre, narrowing as it brightens to FLORA_WHEEL_GLOW; as Flora leaves it widens and fades. |
#define | FLORA_WHEEL_SPOKES 4 | |
#define | FLORA_WHEEL_GLOW 36 | |
#define | FLORA_WHEEL_TICK 186 | |
#define | FLORA_WHEEL_TICKS 80 | |
#define | SABRE_DANCE_TICKS 96 | |
#define | SABRE_DANCE_PARTICLES 32 | Of the particles set up, the first SABRE_DANCE_BLADES are drawn. |
#define | SABRE_DANCE_BLADES 8 | |
#define | SABRE_DANCE_HITS 8 | The target is struck SABRE_DANCE_HITS times, SABRE_DANCE_HIT_INTERVAL ticks apart from SABRE_DANCE_FIRST_HIT; the blades turn and fall on it at SABRE_DANCE_FALL_TICK, and the last strike shows the damage. |
#define | SABRE_DANCE_FIRST_HIT 20 | |
#define | SABRE_DANCE_HIT_INTERVAL 6 | |
#define | SABRE_DANCE_FALL_TICK 80 | |
#define | SABRE_DANCE_LAST_HIT 90 | |
#define | BACKSTAB_TICKS 60 | Backstab's length; the caster leaps at the foe at BACKSTAB_LEAP_TICK and strikes at BACKSTAB_STRIKE_TICK. |
#define | BACKSTAB_LEAP_TICK 16 | |
#define | BACKSTAB_STRIKE_TICK 32 | |
#define | SMOKE_COUNT 32 | Of the puffs of smoke set up, the first SMOKE_DRAWN rise, each through SmokeSheet's six pictures, four ticks each. |
#define | SMOKE_DRAWN 24 | |
#define | STAR_COUNT 16 | Sixteen pink stars burst from the target for BACKSTAB_STAR_TICKS, each through PinkStarSheet's six STAR_SIZE square pictures, which are decoded after the smoke's. |
#define | STAR_SIZE 16 | |
#define | STAR_PICTURE_COUNT 6 | |
#define | STAR_PICTURES 16000 | |
#define | BACKSTAB_STAR_TICKS 24 |
Functions
| Name | Description | |
|---|---|---|
static inline Uint8 * | SheetOf (BATTLE_EFFECT_STATE *owner) | The effect state's sprite sheet. |
void | btEffectRunFlora (BATTLE_EFFECT_PARM *args) | Flora: the battle flashes away to a violet sky where petals blow by. |
void | btEffectStartActorMotionOutward (Sint32 id) | Unused: nothing calls it. |
void | btEffectRunSabreDance (BATTLE_EFFECT_PARM *args) | Dancing blades. |
void | btObjectSetSpritePriority (Sint32 objectId, Sint32 priority) | Puts every sprite of a battler at OBJ priority priority, unless it is fading out. |
void | btEffectRunBackstab (BATTLE_EFFECT_PARM *args) | A pink star burst. |
Description
The Flora summon, Sabre Dance and Backstab, with the function that sets a
battler's sprite priority and an unused one that sends a unit outward. Part
of battle_effect.c.
Macros in detail
FLORA_FIGURE_PIECES
#define FLORA_FIGURE_PIECES 12
Flora is twelve 32x32 sprites in 256 colours, three across and four down, the first sprites of the effect state; then come her thirty-two 16x16 petals, the first fifteen each holding one of the tumbling petal's pictures (PinkPetalsTiles).
Referenced by btEffectRunFlora().
Definition at line 11 of file battle_effect_flora.c.
FLORA_FIGURE_COLUMNS
#define FLORA_FIGURE_COLUMNS 3
Referenced by btEffectRunFlora().
Definition at line 12 of file battle_effect_flora.c.
FLORA_PETAL_SPRITES
#define FLORA_PETAL_SPRITES FLORA_FIGURE_PIECES
Referenced by btEffectRunFlora().
Definition at line 13 of file battle_effect_flora.c.
FLORA_PETAL_PICTURE_COUNT
#define FLORA_PETAL_PICTURE_COUNT 15
Referenced by btEffectRunFlora().
Definition at line 14 of file battle_effect_flora.c.
FLORA_PETAL_COUNT
#define FLORA_PETAL_COUNT 32
Referenced by btEffectRunFlora().
Definition at line 15 of file battle_effect_flora.c.
FLORA_PETAL_SIZE
#define FLORA_PETAL_SIZE 16
Referenced by btEffectRunFlora().
Definition at line 16 of file battle_effect_flora.c.
FLORA_PETAL_PALETTE
#define FLORA_PETAL_PALETTE 15
Referenced by btEffectRunFlora().
Definition at line 17 of file battle_effect_flora.c.
FLORA_COLORS
#define FLORA_COLORS 240
Referenced by btEffectRunFlora().
Definition at line 18 of file battle_effect_flora.c.
FLORA_PHASE_ONE
#define FLORA_PHASE_ONE 256
A petal's phase counts its tumbling pictures in 256ths: its high byte is the picture it shows.
Referenced by btEffectRunFlora().
Definition at line 21 of file battle_effect_flora.c.
FLORA_PATH_PETALS
#define FLORA_PATH_PETALS 6
Petals 0 to 5 blow across the sky on paths of their own before Flora comes; 6
to 15 stream from her hand towards the foes from FLORA_LAUNCH_TICK; 16 to 31
burst out around her as she comes and again as she leaves.
Referenced by btEffectRunFlora().
Definition at line 25 of file battle_effect_flora.c.
FLORA_PETAL_AWAY_X
#define FLORA_PETAL_AWAY_X 256
Where a path petal waits before its path starts and is put away when Flora appears: off the screen's right edge.
Referenced by btEffectRunFlora().
Definition at line 28 of file battle_effect_flora.c.
FLORA_PETAL_AWAY_Y
#define FLORA_PETAL_AWAY_Y 48
Referenced by btEffectRunFlora().
Definition at line 29 of file battle_effect_flora.c.
FLORA_BURST_PETAL
#define FLORA_BURST_PETAL 16
Referenced by btEffectRunFlora().
Definition at line 30 of file battle_effect_flora.c.
FLORA_STORM_TICKS
#define FLORA_STORM_TICKS 128
The storm: petals set out above the foes, of which one more falls each tick,
sweeping down over them, until FLORA_STORM_DRAWN have fallen. Each foe is
struck every FLORA_HIT_INTERVAL ticks, the first time at a random moment.
Referenced by btEffectRunFlora().
Definition at line 34 of file battle_effect_flora.c.
FLORA_STORM_PETALS
#define FLORA_STORM_PETALS 128
Referenced by btEffectRunFlora().
Definition at line 35 of file battle_effect_flora.c.
FLORA_STORM_DRAWN
#define FLORA_STORM_DRAWN 64
Referenced by btEffectRunFlora().
Definition at line 36 of file battle_effect_flora.c.
FLORA_HIT_INTERVAL
#define FLORA_HIT_INTERVAL 15
Referenced by btEffectRunFlora().
Definition at line 37 of file battle_effect_flora.c.
FLORA_STORM_DAMAGE_TICK
#define FLORA_STORM_DAMAGE_TICK 56
The battle shows the damage at FLORA_STORM_DAMAGE_TICK; the foes are struck
over the FLORA_STORM_HIT_TICKS after it.
Referenced by btEffectRunFlora().
Definition at line 40 of file battle_effect_flora.c.
FLORA_STORM_HIT_TICKS
#define FLORA_STORM_HIT_TICKS 50
Referenced by btEffectRunFlora().
Definition at line 41 of file battle_effect_flora.c.
FLORA_STORM_PICTURES
#define FLORA_STORM_PICTURES 4096
Where the storm's fifteen petal pictures are unpacked to a byte a pixel in the effect's pictures.
Referenced by btEffectRunFlora().
Definition at line 44 of file battle_effect_flora.c.
FLORA_STATE
#define FLORA_STATE ((FLORA_PETAL_WORK *)petals)
The petals' state, kept in the particles' memory.
Referenced by btEffectRunFlora().
Definition at line 62 of file battle_effect_flora.c.
FLORA_PETAL_PHASE
#define FLORA_PETAL_PHASE(i)
Petal i's phase, FLORA_PETAL_WORK's phase[i], reached through
FloraPetalTiles, which names its tile numbers from the second on.
Referenced by btEffectRunFlora().
Definition at line 65 of file battle_effect_flora.c.
FLORA_TICKS
#define FLORA_TICKS 300
After the battle flashes away (SUMMON_OPENING_TICKS), the sky scene plays for
FLORA_TICKS; A or B cuts it short after its first sixteen.
Referenced by btEffectRunFlora().
Definition at line 70 of file battle_effect_flora.c.
FLORA_WIDE_TICK
#define FLORA_WIDE_TICK 108
The canvas, shown at its own width FLORA_CANVAS_X pixels right of the
screen's left edge until then, widens to twice it.
Referenced by btEffectRunFlora().
Definition at line 73 of file battle_effect_flora.c.
FLORA_CANVAS_X
#define FLORA_CANVAS_X 60
Referenced by btEffectRunFlora().
Definition at line 74 of file battle_effect_flora.c.
FLORA_APPEAR_TICK
#define FLORA_APPEAR_TICK 112
Flora appears in a flash of FLORA_FLASH_TICKS and fades in from white over
FLORA_FADE_IN_TICKS.
Referenced by btEffectRunFlora().
Definition at line 77 of file battle_effect_flora.c.
FLORA_FLASH_TICKS
#define FLORA_FLASH_TICKS 8
Referenced by btEffectRunFlora().
Definition at line 78 of file battle_effect_flora.c.
FLORA_FADE_IN_TICKS
#define FLORA_FADE_IN_TICKS 32
Referenced by btEffectRunFlora().
Definition at line 79 of file battle_effect_flora.c.
FLORA_LAUNCH_TICK
#define FLORA_LAUNCH_TICK 223
Petals stream from her hand from FLORA_LAUNCH_TICK, two ticks apart, as glows
flare there; at FLORA_LEAVE_TICK she flies away.
Referenced by btEffectRunFlora().
Definition at line 82 of file battle_effect_flora.c.
FLORA_LEAVE_TICK
#define FLORA_LEAVE_TICK 252
Referenced by btEffectRunFlora().
Definition at line 83 of file battle_effect_flora.c.
FLORA_GLOW_BYTES
#define FLORA_GLOW_BYTES(height) ((height) / 2 * (height))
The glows' pictures (FloraPetalPictures): shaded discs height pixels tall
and half as wide, one after another.
Referenced by btEffectRunFlora().
Definition at line 86 of file battle_effect_flora.c.
FLORA_GLOW_X
#define FLORA_GLOW_X 44
Where the glows flare on the canvas, by Flora's hand.
Referenced by btEffectRunFlora().
Definition at line 88 of file battle_effect_flora.c.
FLORA_GLOW_Y
#define FLORA_GLOW_Y 78
Referenced by btEffectRunFlora().
Definition at line 89 of file battle_effect_flora.c.
FLORA_DIMMED_MOTE
#define FLORA_DIMMED_MOTE 3
Ten copies of mote picture 3, each 7 levels dimmer than the one before, laid over the tenth mote picture from its 21st byte. Flora never draws either.
Referenced by btEffectRunFlora().
Definition at line 92 of file battle_effect_flora.c.
FLORA_DIMMED_MOTE_BYTES
#define FLORA_DIMMED_MOTE_BYTES (FLORA_DIMMED_MOTE * FLORA_DIMMED_MOTE * 2)
Referenced by btEffectRunFlora().
Definition at line 93 of file battle_effect_flora.c.
FLORA_DIMMED_MOTE_COPIES
#define FLORA_DIMMED_MOTE_COPIES 10
Referenced by btEffectRunFlora().
Definition at line 94 of file battle_effect_flora.c.
FLORA_DIMMED_MOTES
#define FLORA_DIMMED_MOTES 590
Referenced by btEffectRunFlora().
Definition at line 95 of file battle_effect_flora.c.
FLORA_RING_MOTES
#define FLORA_RING_MOTES 32
The ring of motes: eight arms of four motes, spinning faster and faster from
FLORA_RING_TICK, its spin at the start a 128th of a turn a tick.
Referenced by btEffectRunFlora().
Definition at line 98 of file battle_effect_flora.c.
FLORA_RING_ARMS
#define FLORA_RING_ARMS 8
Referenced by btEffectRunFlora().
Definition at line 99 of file battle_effect_flora.c.
FLORA_ARM_MOTES
#define FLORA_ARM_MOTES (FLORA_RING_MOTES / FLORA_RING_ARMS)
Referenced by btEffectRunFlora().
Definition at line 100 of file battle_effect_flora.c.
FLORA_RING_SPIN
#define FLORA_RING_SPIN (TRIG_TURN / 128)
Referenced by btEffectRunFlora().
Definition at line 101 of file battle_effect_flora.c.
FLORA_RING_TICK
#define FLORA_RING_TICK 156
Referenced by btEffectRunFlora().
Definition at line 102 of file battle_effect_flora.c.
FLORA_RING_TICKS
#define FLORA_RING_TICKS 75
Referenced by btEffectRunFlora().
Definition at line 103 of file battle_effect_flora.c.
FLORA_LIGHT_RINGS
#define FLORA_LIGHT_RINGS 4
The four rings of light (FireRingTexture): three as Flora appears and one as she leaves.
Referenced by btEffectRunFlora().
Definition at line 106 of file battle_effect_flora.c.
FLORA_RING_X
#define FLORA_RING_X 48
The centre of the ring of motes and of the wheel, on the canvas.
Referenced by btEffectRunFlora().
Definition at line 108 of file battle_effect_flora.c.
FLORA_RING_Y
#define FLORA_RING_Y 92
Referenced by btEffectRunFlora().
Definition at line 109 of file battle_effect_flora.c.
FLORA_WHEEL_DOTS
#define FLORA_WHEEL_DOTS 128
The wheel: a ring of dots and one three quarters its size, joined by four
spokes, which from FLORA_WHEEL_TICK turns, tilts flat and slides to the
rings' centre, narrowing as it brightens to FLORA_WHEEL_GLOW; as Flora leaves
it widens and fades.
Referenced by btEffectRunFlora().
Definition at line 114 of file battle_effect_flora.c.
FLORA_WHEEL_SPOKES
#define FLORA_WHEEL_SPOKES 4
Referenced by btEffectRunFlora().
Definition at line 115 of file battle_effect_flora.c.
FLORA_WHEEL_GLOW
#define FLORA_WHEEL_GLOW 36
Referenced by btEffectRunFlora().
Definition at line 116 of file battle_effect_flora.c.
FLORA_WHEEL_TICK
#define FLORA_WHEEL_TICK 186
Referenced by btEffectRunFlora().
Definition at line 117 of file battle_effect_flora.c.
FLORA_WHEEL_TICKS
#define FLORA_WHEEL_TICKS 80
Referenced by btEffectRunFlora().
Definition at line 118 of file battle_effect_flora.c.
SABRE_DANCE_TICKS
#define SABRE_DANCE_TICKS 96
Referenced by btEffectRunSabreDance().
Definition at line 1219 of file battle_effect_flora.c.
SABRE_DANCE_PARTICLES
#define SABRE_DANCE_PARTICLES 32
Of the particles set up, the first SABRE_DANCE_BLADES are drawn.
Referenced by btEffectRunSabreDance().
Definition at line 1221 of file battle_effect_flora.c.
SABRE_DANCE_BLADES
#define SABRE_DANCE_BLADES 8
Referenced by btEffectRunSabreDance().
Definition at line 1222 of file battle_effect_flora.c.
SABRE_DANCE_HITS
#define SABRE_DANCE_HITS 8
The target is struck SABRE_DANCE_HITS times, SABRE_DANCE_HIT_INTERVAL ticks
apart from SABRE_DANCE_FIRST_HIT; the blades turn and fall on it at
SABRE_DANCE_FALL_TICK, and the last strike shows the damage.
Referenced by btEffectRunSabreDance().
Definition at line 1226 of file battle_effect_flora.c.
SABRE_DANCE_FIRST_HIT
#define SABRE_DANCE_FIRST_HIT 20
Referenced by btEffectRunSabreDance().
Definition at line 1227 of file battle_effect_flora.c.
SABRE_DANCE_HIT_INTERVAL
#define SABRE_DANCE_HIT_INTERVAL 6
Referenced by btEffectRunSabreDance().
Definition at line 1228 of file battle_effect_flora.c.
SABRE_DANCE_FALL_TICK
#define SABRE_DANCE_FALL_TICK 80
Referenced by btEffectRunSabreDance().
Definition at line 1229 of file battle_effect_flora.c.
SABRE_DANCE_LAST_HIT
#define SABRE_DANCE_LAST_HIT 90
Referenced by btEffectRunSabreDance().
Definition at line 1230 of file battle_effect_flora.c.
BACKSTAB_TICKS
#define BACKSTAB_TICKS 60
Backstab's length; the caster leaps at the foe at BACKSTAB_LEAP_TICK and
strikes at BACKSTAB_STRIKE_TICK.
Referenced by btEffectRunBackstab().
Definition at line 1390 of file battle_effect_flora.c.
BACKSTAB_LEAP_TICK
#define BACKSTAB_LEAP_TICK 16
Referenced by btEffectRunBackstab().
Definition at line 1391 of file battle_effect_flora.c.
BACKSTAB_STRIKE_TICK
#define BACKSTAB_STRIKE_TICK 32
Referenced by btEffectRunBackstab().
Definition at line 1392 of file battle_effect_flora.c.
SMOKE_COUNT
#define SMOKE_COUNT 32
Of the puffs of smoke set up, the first SMOKE_DRAWN rise, each through
SmokeSheet's six pictures, four ticks each.
Referenced by btEffectRunBackstab().
Definition at line 1395 of file battle_effect_flora.c.
SMOKE_DRAWN
#define SMOKE_DRAWN 24
Referenced by btEffectRunBackstab().
Definition at line 1396 of file battle_effect_flora.c.
STAR_COUNT
#define STAR_COUNT 16
Sixteen pink stars burst from the target for BACKSTAB_STAR_TICKS, each
through PinkStarSheet's six STAR_SIZE square pictures, which are decoded
after the smoke's.
Referenced by btEffectRunBackstab().
Definition at line 1400 of file battle_effect_flora.c.
STAR_SIZE
#define STAR_SIZE 16
Referenced by btEffectRunBackstab().
Definition at line 1401 of file battle_effect_flora.c.
STAR_PICTURE_COUNT
#define STAR_PICTURE_COUNT 6
Referenced by btEffectRunBackstab().
Definition at line 1402 of file battle_effect_flora.c.
STAR_PICTURES
#define STAR_PICTURES 16000
Referenced by btEffectRunBackstab().
Definition at line 1403 of file battle_effect_flora.c.
BACKSTAB_STAR_TICKS
#define BACKSTAB_STAR_TICKS 24
Referenced by btEffectRunBackstab().
Definition at line 1404 of file battle_effect_flora.c.
Functions in detail
SheetOf
static inline Uint8 *SheetOf(BATTLE_EFFECT_STATE *owner)
The effect state's sprite sheet.
Referenced by btEffectRunFlora().
Definition at line 121 of file battle_effect_flora.c.
btEffectRunFlora
void btEffectRunFlora(BATTLE_EFFECT_PARM *args)
Flora: the battle flashes away to a violet sky where petals blow by. Flora appears in a flash amid rings of light and a burst of petals and circles; she drifts left as a ring of motes spins and a wheel of light turns by her hand, where glows flare and petals stream out, and flies away as a last ring of light flies out. A or B skips the sky scene. Then a storm of petals sweeps over the foes.
Abilities: Flora.
References BattleEffectGroundSquareCorners, BattleEffectLargeSquareMesh, BattleEffectMotePictures, BgScrollWork, btBackgroundLoadStub(), btCameraShake(), btCanvasBlitMirroredQuarters(), btEffectAdvanceScrollOnInterval(), btEffectConfigureEffectDisplay(), btEffectDrawClippedCanvasLine(), btEffectDrawShadedDiscQuarter(), btEffectFillWhiteBand(), btEffectPosProjectPoint(), btEffectSetupBlendedDisplay(), btEffectShowLivingTargets(), btEffectSpriteAcquire(), btEffectSpriteCreateWithTiles(), btEffectStartCanvasLayer(), btEffectStepPaletteToResource(), btEffectTintBattler(), btEffectTransferCanvas(), btGraphicsLoadGreyRamp(), btMotionApplyKnockbackStub(), btParticleAdvanceWithGravity2D(), btRenderAllocateModelList(), btRenderDrawModelList(), btRenderTransformVertices(), btResourceLoadAndDecompress(), EffectScratch, fdRenderApplyProjectedPlacementStub(), fdSpriteDestroyStub(), FloraBloomPitches, FloraBloomRolls, FloraBloomTicks, FloraBloomX, FloraBloomY, FloraPetalPictures, FloraPetalSizes, FloraSpritePalettes, FloraUnitScale, PerWork, ProjectionWork, SheetOf(), Sint32, syCloseEvent(), syCos(), syDecompressTaggedLZ(), syDMAXCopy(), syHeapAllocateEWRAM(), syHeapRelease() and 16 more.
Referenced by btEffectRunSummon().
Definition at line 135 of file battle_effect_flora.c.
btEffectStartActorMotionOutward
void btEffectStartActorMotionOutward(Sint32 id)
Unused: nothing calls it. Sends a unit outward: unless it is the Fusion Dragon or one of three of the Doom Dragon's forms, it moves 15 pixels further out on its own side, hopping if it stands under 10 pixels up; every unit then falls under a gravity of 0.6 pixels a tick without bouncing, and takes its damage pose.
References btObjectGetStub(), fdActorSelectAnimationStub(), gmUnitGet() and Sint32.
Definition at line 1189 of file battle_effect_flora.c.
btEffectRunSabreDance
void btEffectRunSabreDance(BATTLE_EFFECT_PARM *args)
Dancing blades. The canvas is moved over the target. Eight pairs of crossed blades rise spinning from below it, and the target is struck eight times, six ticks apart from tick 20: each strike shakes the screen, flashes the target and knocks it up. At tick 80 the blades turn point down in a fan above the target and plunge into it; the last strike, at tick 90, lets the battle show the damage.
Abilities: Sabre Dance.
References btCameraShake(), btEffectEndCanvasLayer(), btEffectPosProjectBattler(), btEffectStartActorMotion(), btEffectStartCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btObjectGetStub(), btParticleAdvanceWithGravity3D(), btRenderAllocateModelList(), btRenderDrawModelList(), btRenderTransformVertices(), btResourceLoadAndDecompress(), ProjectionWork, SabreDanceDaggerCorners, SabreDanceDaggerMesh, Sint32, syCloseEvent(), syHeapAllocateEWRAM(), syHeapRelease(), syInitMatrix(), syMatrixScaleUniform(), syRandom(), syRotZ(), sySetEvent(), sySoundPlayStub() and syTranslate().
Referenced by BattleEffectHandlers.
Definition at line 1240 of file battle_effect_flora.c.
btObjectSetSpritePriority
void btObjectSetSpritePriority(Sint32 objectId, Sint32 priority)
Puts every sprite of a battler at OBJ priority priority, unless it is
fading out.
References btActorGetSpriteStub(), btObjectGetStub() and Sint32.
Referenced by btEffectRunBackstab().
Definition at line 1375 of file battle_effect_flora.c.
btEffectRunBackstab
void btEffectRunBackstab(BATTLE_EFFECT_PARM *args)
A pink star burst. Smoke puffs from the caster for its first 24 ticks while the caster stands just past the target; at tick 16 it leaps at the target, and at tick 32 the palette turns pink, the caster lands beside the target, which is knocked back and flashes, and sixteen pink stars burst from it for 24 ticks. The battle keeps the sprites' priorities as the effect sets them throughout.
Abilities: Backstab.
References btCameraShake(), btEffectEndCanvasLayer(), btEffectPosProjectBattler(), btEffectPosProjectScaledBattler(), btEffectSetApproachMotion(), btEffectStartActorMotion(), btEffectStartCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btObjectGetStub(), btObjectSetSpritePriority(), btParticleAdvanceWithGravity2D(), btResourceLoadAndDecompress(), Sint32, syCloseEvent(), syCos(), syHeapSlotRelease(), syRandom(), syResourceGetTableEntry(), sySetEvent(), sySin() and sySoundPlayStub().
Referenced by BattleEffectHandlers.
Definition at line 1414 of file battle_effect_flora.c.