Skip to Content
The Alchemy Project

src/field/field_effect_tables.c

Tables of the field Psynergy, in the order of The Broken Seal's field_engine_tables.c: the pad's eight headings, Move's hand poses, the scripts of Growth's leaves, Force's fist and the three effect lengths, a halted actor's flicker, the Arrow's wobble, the metatiles Cyclone looks at and Blaze's tints.

Variables

NameDescription
const Uint16InputDpadAnglesEightWay [16]A heading for each value of the right, left, up and down bits of the +Control Pad, in eight ways (fdInputGetDpadAngleEightWay); the same as The Broken Seal's WorldMapCursorDirectionAngles.
const Uint8MoveHandPushPoses [4]Move's hand pose by the quarter turns from its side of the target to the push (fdPsynergySteerPushedTarget): pulling the target toward its side, it grips; pushing it away, it shows its palm; pushing it across, it is open.
const Sint32GrowthLeafScript []A leaf of Growth: waits 60 ticks and goes, as The Broken Seal's GrowthLeafScript.
const Uint8FieldEffectUnusedQuadrantModes [4]Unused: a copy of MoveHandPushPoses, as in The Broken Seal; nothing reads it.
const Sint32ForceFistScript []Force's fist: waits to arrive, sets off fdEffectSpawnHeavyImpact and releases the actor.
const Sint32FieldEffectShortEffectScript []The three scripts of FieldEffectDurationScripts: an effect that goes after 24, 46 or 128 ticks.
const Sint32FieldEffectMediumEffectScript []
const Sint32FieldEffectLongEffectScript []
const Sint8HaltFlickerColorModes [8]The colour modes a halted actor flickers through at random (fdPsynergyUpdateHaltedActor): its own colours twice as often as each of the others.
const Sint32ArrowWobbleAngles [8]The arrow's wobble once it has struck, a step a tick over eight ticks (fdPsynergyUpdateArrow): turns from its heading, scaled by ArrowWobbleFades.
const Sint32ArrowWobbleFades [4]The scale of the arrow's wobble, a step every eight ticks.
const Sint8FieldPsynergyNearbyMetatileOffsets [42]The 21 {x, z} metatile offsets within two metatiles of Cyclone's caster, the corners left out, that fdPsynergyGatherNearbyMetatiles looks at.
const Sint32BlazeTintColors [4]The tints fdPsynergyBlaze passes to fdStartColorTransition, one for each look of the flame.

Description

Tables of the field Psynergy, in the order of The Broken Seal's field_engine_tables.c: the pad's eight headings, Move's hand poses, the scripts of Growth's leaves, Force's fist and the three effect lengths, a halted actor's flicker, the Arrow's wobble, the metatiles Cyclone looks at and Blaze's tints.

Variables in detail

InputDpadAnglesEightWay

const Uint16 InputDpadAnglesEightWay[16]

A heading for each value of the right, left, up and down bits of the +Control Pad, in eight ways (fdInputGetDpadAngleEightWay); the same as The Broken Seal's WorldMapCursorDirectionAngles.

Referenced by fdInputGetDpadAngleEightWay().

Definition at line 15 of file field_effect_tables.c.

MoveHandPushPoses

const Uint8 MoveHandPushPoses[4]

Move's hand pose by the quarter turns from its side of the target to the push (fdPsynergySteerPushedTarget): pulling the target toward its side, it grips; pushing it away, it shows its palm; pushing it across, it is open. The Broken Seal's FieldEffectQuadrantModes.

Referenced by fdPsynergySteerPushedTarget().

Definition at line 25 of file field_effect_tables.c.

GrowthLeafScript

const Sint32 GrowthLeafScript[]

A leaf of Growth: waits 60 ticks and goes, as The Broken Seal's GrowthLeafScript.

References Sint32.

Referenced by fdPsynergyGrowth() and fdPsynergyGrowthOnTarget().

Definition at line 33 of file field_effect_tables.c.

FieldEffectUnusedQuadrantModes

const Uint8 FieldEffectUnusedQuadrantModes[4]

Unused: a copy of MoveHandPushPoses, as in The Broken Seal; nothing reads it.

Definition at line 39 of file field_effect_tables.c.

ForceFistScript

const Sint32 ForceFistScript[]

Force's fist: waits to arrive, sets off fdEffectSpawnHeavyImpact and releases the actor.

References fdEffectSpawnHeavyImpact() and Sint32.

Referenced by fdPsynergyForce().

Definition at line 47 of file field_effect_tables.c.

FieldEffectShortEffectScript

const Sint32 FieldEffectShortEffectScript[]

The three scripts of FieldEffectDurationScripts: an effect that goes after 24, 46 or 128 ticks.

References Sint32.

Referenced by FieldEffectDurationScripts.

Definition at line 54 of file field_effect_tables.c.

FieldEffectMediumEffectScript

const Sint32 FieldEffectMediumEffectScript[]

References Sint32.

Referenced by FieldEffectDurationScripts.

Definition at line 59 of file field_effect_tables.c.

FieldEffectLongEffectScript

const Sint32 FieldEffectLongEffectScript[]

References Sint32.

Referenced by FieldEffectDurationScripts.

Definition at line 64 of file field_effect_tables.c.

HaltFlickerColorModes

const Sint8 HaltFlickerColorModes[8]

The colour modes a halted actor flickers through at random (fdPsynergyUpdateHaltedActor): its own colours twice as often as each of the others.

Referenced by fdPsynergyUpdateHaltedActor().

Definition at line 71 of file field_effect_tables.c.

ArrowWobbleAngles

const Sint32 ArrowWobbleAngles[8]

The arrow's wobble once it has struck, a step a tick over eight ticks (fdPsynergyUpdateArrow): turns from its heading, scaled by ArrowWobbleFades.

References Sint32.

Referenced by fdPsynergyUpdateArrow().

Definition at line 79 of file field_effect_tables.c.

ArrowWobbleFades

const Sint32 ArrowWobbleFades[4]

The scale of the arrow's wobble, a step every eight ticks.

References Sint32.

Referenced by fdPsynergyUpdateArrow().

Definition at line 85 of file field_effect_tables.c.

FieldPsynergyNearbyMetatileOffsets

const Sint8 FieldPsynergyNearbyMetatileOffsets[42]

The 21 {x, z} metatile offsets within two metatiles of Cyclone's caster, the corners left out, that fdPsynergyGatherNearbyMetatiles looks at.

Referenced by fdPsynergyGatherNearbyMetatiles().

Definition at line 92 of file field_effect_tables.c.

BlazeTintColors

const Sint32 BlazeTintColors[4]

The tints fdPsynergyBlaze passes to fdStartColorTransition, one for each look of the flame.

References Sint32.

Referenced by fdPsynergyBlaze().

Definition at line 101 of file field_effect_tables.c.