Alchemy

carry.c

Carry: two hands lift the target, move it with the d-pad and drop it.

games/tbs/src/object/psynergy_effects/carry.c on GitHub

Carry: two hands lift the target, move it with the d-pad and drop it. Part of psynergy_effects.c, compiled only through it.

Functions

BattleFx_SpawnFallingParticles

void BattleFx_SpawnFallingParticles(void)

Scheduler callback while Carry holds its target: drops one particle a frame round the lifted object, 8 to 24 pixels above it and 0 to 48 pixels away in a random direction (BattleFx_InitializeFallingFragment).

Used by BattleFx_SteerLiftedTarget.

Line 12

BattleFx_CheckRaisedTargetCollision

static __inline__ s32 BattleFx_CheckRaisedTargetCollision(struct FieldActor *target, struct EffectVector *position)

Tests the target's move with its terrain reference raised 16 pixels, so a carried target passes over ground up to 24 pixels above its own (a step allows 8). Restores the reference before returning the collision result.

Used by BattleFx_SteerLiftedTarget.

Line 36

BattleFx_SteerLiftedTarget

void BattleFx_SteerLiftedTarget(s32 targetId)

Two hands lift it to 24 pixels above the ground; the d-pad moves it 16 pixels at a time and A, B, L or R drops it where it is.

Abilities: Carry (field kind 11), cast on a target.

Where the way is blocked a buzzer sounds.

Used by BattleFx_DispatchRequestKind.

Line 54

Also, functions without a comment: BattleFx_SpawnItemBreakMode1.

Macros, without a comment: CARRY_SHARD_MAX.

On this page