papermario/src/code_1AF120.c
Ethan Roseman 3fcceae5be format
2020-10-15 18:44:42 -04:00

17 lines
480 B
C

#include "common.h"
ApiStatus GetDamageIntensity(ScriptInstance* script, s32 isInitialCall) {
if (gBattleStatus.lastAttackDamage < 4) {
script->varTable[0] = 0;
} else if (gBattleStatus.lastAttackDamage < 7) {
script->varTable[0] = 1;
} else if (gBattleStatus.lastAttackDamage < 10) {
script->varTable[0] = 2;
} else {
script->varTable[0] = 3;
}
return ApiStatus_DONE2;
}
INCLUDE_ASM(s32, "code_1AF120", ActorAddMovePos);