papermario/src/code_1AF120.c

17 lines
479 B
C
Raw Normal View History

2020-10-15 05:49:49 +02:00
#include "common.h"
2020-10-16 00:11:56 +02:00
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;
}
2020-10-15 05:49:49 +02:00
INCLUDE_ASM(s32, "code_1AF120", ActorAddMovePos);