Skip to Content
The Alchemy Project

src/field/field_engine_psynergy.c

Using Psynergy on the field. More…

Included by field_engine.c.

Functions

NameDescription
Sint32fdUsePsynergy (Uint32 code)Uses Psynergy on the field. code holds the Psynergy (bits 0 to 9), its user (bits 10 to 13; UNIT_NONE for ISAAC) and ACT_PACKED to use it without paying PP.
BoolfdHasPsynergyCue (Sint32 group)Returns whether the scene has a Psynergy cue, in any phase, for Psynergy of group and what the leader faces.
Uint32fdHasItemCue (Uint16 item)Returns whether the scene has a script for item and what the leader faces.

Description

Using Psynergy on the field. Part of field_engine.c.

Functions in detail

fdUsePsynergy

Sint32 fdUsePsynergy(Uint32 code)

Uses Psynergy on the field. code holds the Psynergy (bits 0 to 9), its user (bits 10 to 13; UNIT_NONE for ISAAC) and ACT_PACKED to use it without paying PP.

References fdActorClearOutOfBounds(), fdActorLookup(), fdActorRespawn(), fdFindNearbyPsynergyTarget(), fdFindPsynergyCue(), fdLeaderStopMoving(), fdPsynergyDispatch(), fdPsynergyEnd(), fdPsynergyFinishMindRead(), fdPsynergyLoadResources(), fdPsynergyRun(), fdPsynergySetupActorPair(), fdPsynergyStartCast(), fdPsynergyStopCasterUpdate(), fdRunPsynergyEndScripts(), fdRunPsynergyScript(), fdYesNoAsk(), gmAbilityGetDefinitionStub(), gmFlagClearStub(), gmFlagGetStub(), gmFlagSetStub(), gmUnitAddPpStub(), gmUnitGetStub(), MainRoutineStateWork, mnFieldMessageShowStub(), mnMessageArgumentPushStub(), mnMessageCloseFinishedWindowsStub(), Sint32 and state.

Referenced by fdEngineRun().

Definition at line 8 of file field_engine_psynergy.c.

fdHasPsynergyCue

Bool fdHasPsynergyCue(Sint32 group)

Returns whether the scene has a Psynergy cue, in any phase, for Psynergy of group and what the leader faces.

References fdFindPsynergyCue() and Sint32.

Definition at line 152 of file field_engine_psynergy.c.

fdHasItemCue

Uint32 fdHasItemCue(Uint16 item)

Returns whether the scene has a script for item and what the leader faces.

References fdFindItemCue().

Definition at line 162 of file field_engine_psynergy.c.