Decomped IsThawingMove

This commit is contained in:
AnonymousRandomPerson 2025-09-11 23:14:29 -04:00
parent 90dba5e9ac
commit e2cafe7dee
4 changed files with 7 additions and 14 deletions

View File

@ -41,16 +41,3 @@ GetMoveCritChance: ; 0x02013B10
.align 2, 0
_02013B2C: .word DUNGEON_MOVE_TABLES
arm_func_end GetMoveCritChance
arm_func_start IsThawingMove
IsThawingMove: ; 0x02013B30
ldr r1, _02013B4C ; =DUNGEON_MOVE_TABLES
ldrh r2, [r0, #4]
ldr r1, [r1, #8]
mov r0, #0x1a
mla r0, r2, r0, r1
ldrb r0, [r0, #0x13]
bx lr
.align 2, 0
_02013B4C: .word DUNGEON_MOVE_TABLES
arm_func_end IsThawingMove

View File

@ -4,6 +4,7 @@
#include "move.h"
#include "util.h"
bool8 IsThawingMove(struct move *move);
// Returns true if the given move can be used while the user is affected by Taunt, or false if the move cannot be used while taunted.
bool8 IsUsableWhileTaunted(struct move *move);

View File

@ -9,6 +9,7 @@
#include "dungeon_visibility.h"
#include "inflict_status.h"
#include "math.h"
#include "moves_3.h"
#include "number_util.h"
#include "overlay_29_02338390.h"
#include "run_dungeon_1.h"
@ -16,7 +17,6 @@
#include "trap.h"
#include "weather.h"
extern bool8 IsThawingMove(struct move *move);
extern bool8 IsMonsterSleeping(struct entity* monster);
extern bool8 HasLastUsedMove(struct move *moves);
extern bool8 GendersEqualNotGenderless(s16 monster1, s16 monster2);

View File

@ -3,6 +3,11 @@
extern struct move_data_table_outer DUNGEON_MOVE_TABLES;
bool8 IsThawingMove(struct move *move)
{
return DUNGEON_MOVE_TABLES.moves->moves[move->id].ai_can_use_against_frozen;
}
bool8 IsUsableWhileTaunted(struct move *move)
{
return DUNGEON_MOVE_TABLES.moves->moves[move->id].usable_while_taunted;