mirror of
https://github.com/pmret/papermario.git
synced 2024-11-19 09:22:30 +01:00
17 lines
479 B
C
17 lines
479 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);
|