Alchemy
Loading...
Searching...
No Matches

use.c File Reference

Using an item or Psynergy from the menu: what it does to the party, and the sound it plays. More...

Go to the source code of this file.

Functions

void Item_PrepareUsePalette (void)
 Copies and lightens the palette used by the item-use animation.
void Item_UseNoOpCallback (void)
 Reserved empty callback during an item's menu animation.
s32 Item_Use (s32 slot, s32 ownerId, s32 targetId)
 Applies the slot's action, then consumes or transforms the item on success.
s32 Item_ReturnOne (void)
s32 BattleEffect_ApplyToTargets (s32 effectId, s32 sourceId, s32 targetId, s32 fixedScale)
 Applies healing or permanent-stat effects to one member or the whole party.
void Item_PlayUseAnimation (u32 item)
 Runs the animation selected by the item's action definition.
void Ability_PlayUseAnimation (s32 action)
 Starts the action's menu animation and waits for its completion.
s32 Menu_ReservedStatusZero (void)

Detailed Description

Using an item or Psynergy from the menu: what it does to the party, and the sound it plays.

Part of menu.c, the menu object, compiled only through it.

Definition in file use.c.

Function Documentation

◆ Item_PrepareUsePalette()

void Item_PrepareUsePalette ( void )

Copies and lightens the palette used by the item-use animation.

Definition at line 9 of file use.c.

Referenced by Item_PrepareUsePalette().

◆ Item_UseNoOpCallback()

void Item_UseNoOpCallback ( void )

Reserved empty callback during an item's menu animation.

Definition at line 15 of file use.c.

Referenced by Item_UseNoOpCallback().

◆ Item_Use()

s32 Item_Use ( s32 slot,
s32 ownerId,
s32 targetId )

Applies the slot's action, then consumes or transforms the item on success.

Definition at line 18 of file use.c.

Referenced by Item_Use(), and ItemMenu_Use().

◆ Item_ReturnOne()

s32 Item_ReturnOne ( void )

Definition at line 47 of file use.c.

Referenced by Item_ReturnOne().

◆ BattleEffect_ApplyToTargets()

s32 BattleEffect_ApplyToTargets ( s32 effectId,
s32 sourceId,
s32 targetId,
s32 fixedScale )

Applies healing or permanent-stat effects to one member or the whole party.

The result message is kept in menu work; -1 reports that nothing changed.

Definition at line 51 of file use.c.

Referenced by BattleEffect_ApplyToTargets(), Item_Use(), and Menu_ResolveSelectedAction().

◆ Item_PlayUseAnimation()

void Item_PlayUseAnimation ( u32 item)

Runs the animation selected by the item's action definition.

Definition at line 311 of file use.c.

Referenced by Item_PlayUseAnimation(), and ItemMenu_Use().

◆ Ability_PlayUseAnimation()

void Ability_PlayUseAnimation ( s32 action)

Starts the action's menu animation and waits for its completion.

Definition at line 317 of file use.c.

Referenced by Ability_PlayUseAnimation(), Item_PlayUseAnimation(), and Menu_ResolveSelectedAction().

◆ Menu_ReservedStatusZero()

s32 Menu_ReservedStatusZero ( void )

Definition at line 382 of file use.c.

Referenced by Menu_ReservedStatusZero().