Using Psynergy on the field. More...
Go to the source code of this file.
Functions | |
| s32 | Field_UsePsynergy (u32 code) |
| Uses Psynergy on the field. | |
| s32 | BattleFx_HasMatchingEvent5 (s32 group) |
| Returns whether the scene has a Psynergy event, in any phase, for Psynergy of group and what the leader faces. | |
| u32 | BattleFx_HasTrigger (u16 item) |
| Returns whether the scene has an event for item and what the leader faces. | |
Using Psynergy on the field.
Part of object.c, the field object, compiled only through it.
Definition in file psynergy.c.
Uses Psynergy on the field.
code holds the Psynergy (bits 0 to 9), its user (bits 10 to 13; 15 for character 0) and ACT_PACKED to use it without paying PP. Checks it can be used here (Reveal not on the world map, Retreat where it is not blocked, after asking), pays its PP, then plays its effect between the scene's Psynergy events for what the leader faces: phase 1 before and phase 0 after. A phase 5 event is not run here; it only makes the effect aim at the actor ahead, and the effects that act on it (Force, Frost, Reveal) find it themselves. An after event whose trigger has flag 0x400 plays the effect itself. Called by Field_RunScene for the Psynergy request (work->command); sets work->resolvingAction while the effect plays.
Definition at line 17 of file psynergy.c.
Referenced by Field_RunScene(), and Field_UsePsynergy().
Returns whether the scene has a Psynergy event, in any phase, for Psynergy of group and what the leader faces.
Exported as BattleFx_HasMatchingEvent5Far, which no ☀️ code names.
Definition at line 141 of file psynergy.c.
Referenced by BattleFx_HasMatchingEvent5().
Returns whether the scene has an event for item and what the leader faces.
Called by the item menu (menu/item.c) through BattleFx_HasTriggerFar: such an item closes the menu and is used on the field.
Definition at line 151 of file psynergy.c.
Referenced by BattleFx_HasTrigger().