pokeplatinum/res/battle/scripts/subscripts/subscript_aqua_ring_heal.s
2024-07-16 12:01:40 -07:00

22 lines
738 B
ArmAsm
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include "macros/btlcmd.inc"
.data
_000:
// {1} restored {0}s HP!
PrintMessage pl_msg_00000368_01030, TAG_NICKNAME_MOVE, BTLSCR_MSG_TEMP, BTLSCR_MSG_TEMP
Wait
WaitButtonABTime 30
UpdateVar OPCODE_FLAG_ON, BTLVAR_BATTLE_CTX_STATUS, SYSCTL_SKIP_SPRITE_BLINK
CheckItemHoldEffect CHECK_NOT_HAVE, BTLSCR_MSG_TEMP, HOLD_EFFECT_LEECH_BOOST, _031
GetItemEffectParam BTLSCR_MSG_TEMP, BTLVAR_CALC_TEMP
UpdateVar OPCODE_ADD, BTLVAR_CALC_TEMP, 0x00000064
UpdateVarFromVar OPCODE_MUL, BTLVAR_HP_CALC_TEMP, BTLVAR_CALC_TEMP
UpdateVar OPCODE_DIV, BTLVAR_HP_CALC_TEMP, 100
_031:
PlayBattleAnimation BTLSCR_MSG_TEMP, BATTLE_ANIMATION_RESTORE_HP
Wait
Call BATTLE_SUBSCRIPT_UPDATE_HP
End