Skip to Content
The Alchemy Project

src/battle_effect/battle_effect_hail.c

Hail and Ground. More…

Included by battle_effect.c.

Macros

NameDescription
#defineHAIL_CHIPS 64ice chips in PARTICLES
#defineGROUND_TICKS 96ticks of Ground
#defineHAIL_TICKS 64ticks of Hail
#defineHAIL_CHIP_PICTURES
#definePORTAL_WIDTH 24PortalSheet's portal
#definePORTAL_HEIGHT 48
#defineHAIL_DJINNI_PICTURE 26048the small Mercury Djinni
#defineGROUND_DJINNI_PICTURE 26048The small Venus Djinni in the portal sprite sheet.
#defineGROUND_PORTALS 8The portals set out in state->particles from 0, and the first of them, the ones drawn.
#defineGROUND_PORTALS_DRAWN 6
#defineGROUND_FIRST_CRACKLE 32The crackles round the portals in state->particles from GROUND_FIRST_CRACKLE, GROUND_CRACKLES_PER_PORTAL a portal.
#defineGROUND_CRACKLES_PER_PORTAL 4
#defineGROUND_CRACKLES (GROUND_PORTALS * GROUND_CRACKLES_PER_PORTAL)

Functions

NameDescription
voidbtEffectRunHail (BATTLE_EFFECT_PARM *args)After a Mercury Djinni enters, ice chips burst out of the first target and waves of water rise along the bottom of the screen.
voidbtEffectRunGround (BATTLE_EFFECT_PARM *args)After a Venus Djinni enters, six glowing portals leave the user, swirl and close in on the first target, each striking it as it arrives.
voidbtCameraShake (Sint32 rangeX, Uint32 rangeY)Shakes the battle view by up to rangeX and rangeY pixels while the effect's shakeFrame ticks last, then puts it back where it was.

Description

Hail and Ground. Part of battle_effect.c.

Macros in detail

HAIL_CHIPS

#define HAIL_CHIPS 64

ice chips in PARTICLES

Referenced by btEffectRunHail().

Definition at line 3 of file battle_effect_hail.c.

GROUND_TICKS

#define GROUND_TICKS 96

ticks of Ground

Referenced by btEffectRunGround().

Definition at line 5 of file battle_effect_hail.c.

HAIL_TICKS

#define HAIL_TICKS 64

ticks of Hail

Referenced by btEffectRunHail().

Definition at line 6 of file battle_effect_hail.c.

HAIL_CHIP_PICTURES

#define HAIL_CHIP_PICTURES

Referenced by btEffectRunHail().

Definition at line 8 of file battle_effect_hail.c.

PORTAL_WIDTH

#define PORTAL_WIDTH 24

PortalSheet's portal

Referenced by btEffectRunGround().

Definition at line 10 of file battle_effect_hail.c.

PORTAL_HEIGHT

#define PORTAL_HEIGHT 48

Referenced by btEffectRunGround().

Definition at line 11 of file battle_effect_hail.c.

HAIL_DJINNI_PICTURE

#define HAIL_DJINNI_PICTURE 26048

the small Mercury Djinni

Referenced by btEffectRunHail().

Definition at line 12 of file battle_effect_hail.c.

GROUND_DJINNI_PICTURE

#define GROUND_DJINNI_PICTURE 26048

The small Venus Djinni in the portal sprite sheet.

Referenced by btEffectRunGround().

Definition at line 195 of file battle_effect_hail.c.

GROUND_PORTALS

#define GROUND_PORTALS 8

The portals set out in state->particles from 0, and the first of them, the ones drawn.

Referenced by btEffectRunGround().

Definition at line 198 of file battle_effect_hail.c.

GROUND_PORTALS_DRAWN

#define GROUND_PORTALS_DRAWN 6

Referenced by btEffectRunGround().

Definition at line 199 of file battle_effect_hail.c.

GROUND_FIRST_CRACKLE

#define GROUND_FIRST_CRACKLE 32

The crackles round the portals in state->particles from GROUND_FIRST_CRACKLE, GROUND_CRACKLES_PER_PORTAL a portal.

Referenced by btEffectRunGround().

Definition at line 202 of file battle_effect_hail.c.

GROUND_CRACKLES_PER_PORTAL

#define GROUND_CRACKLES_PER_PORTAL 4

Referenced by btEffectRunGround().

Definition at line 203 of file battle_effect_hail.c.

GROUND_CRACKLES

#define GROUND_CRACKLES (GROUND_PORTALS * GROUND_CRACKLES_PER_PORTAL)

Referenced by btEffectRunGround().

Definition at line 204 of file battle_effect_hail.c.

Functions in detail

btEffectRunHail

void btEffectRunHail(BATTLE_EFFECT_PARM *args)

After a Mercury Djinni enters, ice chips burst out of the first target and waves of water rise along the bottom of the screen.

Abilities: Hail.

Hail
Hail

References btCameraShake(), btEffectBuildCanvasBlitters(), btEffectRunDjinniEntrance(), btEffectStartCanvasLayer(), btEffectTintBattler(), btMotionApplyKnockbackStub(), btParticleAdvanceWithGravity3D(), btProjectionUnit(), btResourceLoadAndDecompress(), HailPictureHeights, HailPictures, HailPictureWidths, Sint32, state, syCos(), syRandom(), sySin() and width.

Referenced by BattleEffectHandlers.

Definition at line 18 of file battle_effect_hail.c.

btEffectRunGround

void btEffectRunGround(BATTLE_EFFECT_PARM *args)

After a Venus Djinni enters, six glowing portals leave the user, swirl and close in on the first target, each striking it as it arrives.

Abilities: Ground.

Ground
Ground

References btCameraShake(), btEffectRunDjinniEntrance(), btEffectStartCanvasLayer(), btEffectStepPaletteToResource(), btObjectGetStub(), btProjectionPoint(), btResourceLoadAndDecompress(), GroundCrackleFlips, GroundPortalHeights, GroundPortalPictures, GroundPortalWidths, GroundPortalX, GroundPortalY, Sint32, state, syCos(), syHeapSlotRelease(), syRandom(), sySin() and sySoundPlayStub().

Referenced by BattleEffectHandlers.

Definition at line 210 of file battle_effect_hail.c.

btCameraShake

void btCameraShake(Sint32 rangeX, Uint32 rangeY)

Shakes the battle view by up to rangeX and rangeY pixels while the effect's shakeFrame ticks last, then puts it back where it was. Both offsets are centred on half of rangeY, so where rangeX is the smaller the view shakes to one side only.

References BgScrollWork, ProjectionWork, Sint32, state and syRandom().

Referenced by btEffectRunAnnihilation(), btEffectRunAstralBlast(), btEffectRunAtalanta(), btEffectRunBladeRain(), btEffectRunBolt(), btEffectRunBoreas(), btEffectRunBurstShower(), btEffectRunCastingImpact(), btEffectRunCybele(), btEffectRunDeathPlunge(), btEffectRunDragonCloud(), btEffectRunDragonFire(), btEffectRunEruption(), btEffectRunFire(), btEffectRunFlashingStrike(), btEffectRunFlurry(), btEffectRunFroth(), btEffectRunGaia(), btEffectRunGround(), btEffectRunGrowingColumns(), btEffectRunHail(), btEffectRunHelmSplitter(), btEffectRunIce(), btEffectRunJupiter(), btEffectRunKirin(), btEffectRunLobbedShells(), btEffectRunMars(), btEffectRunMercury(), btEffectRunMirroredWall(), btEffectRunNeptune(), btEffectRunPlanetDiver(), btEffectRunPlasma(), btEffectRunPrism(), btEffectRunProjectileVolley(), btEffectRunQuake(), btEffectRunRagnarok(), btEffectRunRamses(), btEffectRunRay(), btEffectRunRushingStrike(), btEffectRunShiningStar(), btEffectRunSparkGroups(), btEffectRunSpire(), btEffectRunStarfieldFall(), btEffectRunStreakVolley(), btEffectRunSwirlSwipe(), btEffectRunTargetMotes(), btEffectRunTargetStrike(), btEffectRunThor(), btEffectRunThorn(), btEffectRunTitanBlade() and 5 more.

Definition at line 425 of file battle_effect_hail.c.