Skip to Content
The Alchemy Project

src/battle_effect/battle_effect_ramses.c

The Ramses summon. More…

Included by battle_effect.c.

Macros

NameDescription
#defineRAMSES_TICKS 320A or B cuts it short
#defineRAMSES_STRIKE_TICK 260the fist strikes the targets
#defineRAMSES_ROCKS 6rocks that fall and bounce
#defineRAMSES_FIRST_PUFF 6the first puff in state->particles
#defineRAMSES_FIRST_ROCK_PUFF 30the first rock puff in state->particles
#defineRAMSES_SPARKS 512sparks of the strike
#defineRAMSES_STATUE_SPRITES 7The statue's own sprites, its fist's two after them, and the rocks' after those.
#defineRAMSES_FIST_SPRITE RAMSES_STATUE_SPRITES
#defineRAMSES_FIRST_ROCK_SPRITE (RAMSES_FIST_SPRITE + 2)
#defineRAMSES_PUFF_TICKS 24A puff's life: four pictures, six ticks each; a spent one keeps its variant past it.
#defineRAMSES_PUFFS 56Puffs drifted and drawn.
#defineRAMSES_SLAMS 3The fist's three slams, the first on the tick its circling ends, each RAMSES_SLAM_INTERVAL ticks after the last.
#defineRAMSES_FIRST_SLAM 91
#defineRAMSES_SLAM_INTERVAL 40

Functions

NameDescription
voidbtEffectRunRamses (BATTLE_EFFECT_PARM *args)In a desert the giant statue of Ramses pounds the ground with its fist while rocks rain down, then launches the fist at the targets, which strikes them in a burst of sparks.

Description

The Ramses summon. Part of battle_effect.c.

Macros in detail

RAMSES_TICKS

#define RAMSES_TICKS 320

A or B cuts it short

Referenced by btEffectRunRamses().

Definition at line 3 of file battle_effect_ramses.c.

RAMSES_STRIKE_TICK

#define RAMSES_STRIKE_TICK 260

the fist strikes the targets

Referenced by btEffectRunRamses().

Definition at line 4 of file battle_effect_ramses.c.

RAMSES_ROCKS

#define RAMSES_ROCKS 6

rocks that fall and bounce

Referenced by btEffectRunRamses().

Definition at line 5 of file battle_effect_ramses.c.

RAMSES_FIRST_PUFF

#define RAMSES_FIRST_PUFF 6

the first puff in state->particles

Referenced by btEffectRunRamses().

Definition at line 6 of file battle_effect_ramses.c.

RAMSES_FIRST_ROCK_PUFF

#define RAMSES_FIRST_ROCK_PUFF 30

the first rock puff in state->particles

Referenced by btEffectRunRamses().

Definition at line 7 of file battle_effect_ramses.c.

RAMSES_SPARKS

#define RAMSES_SPARKS 512

sparks of the strike

Referenced by btEffectRunRamses().

Definition at line 8 of file battle_effect_ramses.c.

RAMSES_STATUE_SPRITES

#define RAMSES_STATUE_SPRITES 7

The statue's own sprites, its fist's two after them, and the rocks' after those.

Referenced by btEffectRunRamses().

Definition at line 12 of file battle_effect_ramses.c.

RAMSES_FIST_SPRITE

#define RAMSES_FIST_SPRITE RAMSES_STATUE_SPRITES

Referenced by btEffectRunRamses().

Definition at line 13 of file battle_effect_ramses.c.

RAMSES_FIRST_ROCK_SPRITE

#define RAMSES_FIRST_ROCK_SPRITE (RAMSES_FIST_SPRITE + 2)

Referenced by btEffectRunRamses().

Definition at line 14 of file battle_effect_ramses.c.

RAMSES_PUFF_TICKS

#define RAMSES_PUFF_TICKS 24

A puff's life: four pictures, six ticks each; a spent one keeps its variant past it.

Referenced by btEffectRunRamses().

Definition at line 17 of file battle_effect_ramses.c.

RAMSES_PUFFS

#define RAMSES_PUFFS 56

Puffs drifted and drawn.

Referenced by btEffectRunRamses().

Definition at line 19 of file battle_effect_ramses.c.

RAMSES_SLAMS

#define RAMSES_SLAMS 3

The fist's three slams, the first on the tick its circling ends, each RAMSES_SLAM_INTERVAL ticks after the last.

Referenced by btEffectRunRamses().

Definition at line 22 of file battle_effect_ramses.c.

RAMSES_FIRST_SLAM

#define RAMSES_FIRST_SLAM 91

Referenced by btEffectRunRamses().

Definition at line 23 of file battle_effect_ramses.c.

RAMSES_SLAM_INTERVAL

#define RAMSES_SLAM_INTERVAL 40

Referenced by btEffectRunRamses().

Definition at line 24 of file battle_effect_ramses.c.

Functions in detail

btEffectRunRamses

void btEffectRunRamses(BATTLE_EFFECT_PARM *args)

In a desert the giant statue of Ramses pounds the ground with its fist while rocks rain down, then launches the fist at the targets, which strikes them in a burst of sparks.

Abilities: Ramses.

References btBackgroundLoadStub(), btCameraShake(), btEffectConfigureEffectDisplay(), btEffectCreateSprites(), btEffectSetupBlendedDisplay(), btEffectShowLivingTargets(), btEffectStartCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btEffectWipeCanvas(), btMotionApplyKnockbackStub(), btParticleAdvanceWithGravity2D(), btResourceLoadAndDecompress(), fdRenderApplyProjectedPlacementStub(), fdSpriteCreateStub(), fdSpriteDestroyStub(), fdSpriteStartAnimationStub(), PerRepeat, RamsesPuffPictures, RamsesPuffSizes, RamsesStatueColumns, RamsesStatueRows, Sint32, state, syCos(), syRandom(), sySetEvent(), sySin(), sySoundPlayStub() and sySynch().

Referenced by btEffectRunSummon().

Definition at line 31 of file battle_effect_ramses.c.