src/field/field_psynergy_avoid.c
Included by field_psynergy.c.
Macros
| Name | Description | |
|---|---|---|
#define | AVOID_FLASHES 20 | Avoid's flashes, 5 ticks each; then the ticks its outline blinks, the chime coming on the 15th. |
#define | AVOID_BLINK_TICKS 70 | |
#define | AVOID_CHIME_TICK 15 |
Functions
| Name | Description | |
|---|---|---|
void | fdAvoidUpdateRingBackHalf (ACTOR *particle) | The back half of one of Avoid's falling rings, a golden arc (FieldEffectArcSparkTiles) behind the caster: it grows to full size by 3/64 a tick as it falls 2 pixels a tick around the caster, 9 pixels south of them and up to 5 more while small, and is gone 10 pixels above the ground (4 on the World Map). |
void | fdAvoidUpdateRingFrontHalf (ACTOR *particle) | The ring's front half: the same arc drawn upside down in front of the caster, 16 pixels south and up to 5 nearer while small. |
void | fdAvoidDropRing (ACTOR *src) | Drops one of Avoid's rings onto source: its two halves start 64 pixels above it at 0.4 of full size, drawn with the arc's tiles (FIELD_EFFECT_STATE.arcTileSlot), the front half over every sprite. |
void | fdEffectUpdateAvoidCaster (ACTOR *caster) | The caster during Avoid (fdPsynergyAvoid): drops a ring onto itself every 5 ticks (7 on the World Map), and spins in phase 1, 3/64 turn a tick. |
void | fdPsynergyShowAvoidWoreOff (void) | Avoid (or the Sacred Feather) has worn off, and the game says so. |
void | fdPsynergyAvoid (void) | Avoid: the caster spins and flashes, then blinks, and encounters are kept away until Avoid wears off. |
Macros in detail
AVOID_FLASHES
#define AVOID_FLASHES 20
Avoid's flashes, 5 ticks each; then the ticks its outline blinks, the chime coming on the 15th.
Referenced by fdPsynergyAvoid().
Definition at line 167 of file field_psynergy_avoid.c.
AVOID_BLINK_TICKS
#define AVOID_BLINK_TICKS 70
Referenced by fdPsynergyAvoid().
Definition at line 168 of file field_psynergy_avoid.c.
AVOID_CHIME_TICK
#define AVOID_CHIME_TICK 15
Referenced by fdPsynergyAvoid().
Definition at line 169 of file field_psynergy_avoid.c.
Functions in detail
fdAvoidUpdateRingBackHalf
void fdAvoidUpdateRingBackHalf(ACTOR *particle)
The back half of one of Avoid's falling rings, a golden arc
(FieldEffectArcSparkTiles) behind the caster: it grows to full size by 3/64 a
tick as it falls 2 pixels a tick around the caster, 9 pixels south of them
and up to 5 more while small, and is gone 10 pixels above the ground (4 on
the World Map).
References fdActorReleaseStub() and MainRoutineStateWork.
Referenced by fdAvoidDropRing().
Definition at line 8 of file field_psynergy_avoid.c.
fdAvoidUpdateRingFrontHalf
void fdAvoidUpdateRingFrontHalf(ACTOR *particle)
The ring's front half: the same arc drawn upside down in front of the caster, 16 pixels south and up to 5 nearer while small.
References fdActorReleaseStub() and MainRoutineStateWork.
Referenced by fdAvoidDropRing().
Definition at line 39 of file field_psynergy_avoid.c.
fdAvoidDropRing
void fdAvoidDropRing(ACTOR *src)
Drops one of Avoid's rings onto source: its two halves start 64 pixels above
it at 0.4 of full size, drawn with the arc's tiles
(FIELD_EFFECT_STATE.arcTileSlot), the front half over every sprite.
References fdActorCreateStub(), fdAvoidUpdateRingBackHalf(), fdAvoidUpdateRingFrontHalf(), fdSpriteStartAnimationStub(), Sint32, syVRAMCacheFreeEntry() and VramCacheEntries.
Referenced by fdEffectUpdateAvoidCaster().
Definition at line 71 of file field_psynergy_avoid.c.
fdEffectUpdateAvoidCaster
void fdEffectUpdateAvoidCaster(ACTOR *caster)
The caster during Avoid (fdPsynergyAvoid): drops a ring onto itself every 5
ticks (7 on the World Map), and spins in phase 1, 3/64 turn a tick.
References fdAvoidDropRing(), MainRoutineStateWork and Sint32.
Referenced by fdPsynergyAvoid().
Definition at line 120 of file field_psynergy_avoid.c.
fdPsynergyShowAvoidWoreOff
void fdPsynergyShowAvoidWoreOff(void)
Avoid (or the Sacred Feather) has worn off, and the game says so. "Avoid's effects wore off." (or "Sacred Feather's ...").
Clears MainRoutineStateWork.avoidDistance. Reached through fdPsynergyRunEnd
when the Psynergy request the leader's walking raises as Avoid runs out
(field_engine_walking.c) is handled.
References fdWorldMapFreeze(), fdWorldMapReloadPendingAreaGraphics(), MainRoutineStateWork, mnFieldMessageShowStub(), mnMessageArgumentPushStub() and Sint32.
Referenced by fdPsynergyRunEnd().
Definition at line 148 of file field_psynergy_avoid.c.
fdPsynergyAvoid
void fdPsynergyAvoid(void)
Avoid: the caster spins and flashes, then blinks, and encounters are kept away until Avoid wears off.
References fdActorSetSpriteColorModeStub(), fdEffectUpdateAvoidCaster(), FieldEffectArcSparkTiles, MainRoutineStateWork, mnFieldMessageShowStub(), Sint32, syGameFlagGet(), sySoundPlayStub(), sySynch(), syVRAMCacheFindFreeEntry(), syVRAMCacheFreeEntry() and syVRAMCacheLoad().
Referenced by fdPsynergyDispatch() and fdPsynergyRun().
Definition at line 173 of file field_psynergy_avoid.c.