80238000 Part 1 Update

This commit is contained in:
PonderMan 2021-02-12 11:43:59 -06:00
parent 5f91533980
commit 8f8eb69b3a
2 changed files with 7 additions and 5 deletions

View File

@ -123,7 +123,7 @@ typedef struct Npc {
/* 0x078 */ s32 shadowIndex;
/* 0x07C */ f32 shadowScale;
/* 0x080 */ s32 unk_80;
/* 0x084 */ s32 unk_84;
/* 0x084 */ char unk_84[4];
/* 0x088 */ s16 isFacingAway;
/* 0x08A */ s16 yawCamOffset;
/* 0x08C */ s16 unk_8C;

View File

@ -1,12 +1,14 @@
#include "common.h"
ApiStatus func_80238000_714CF0(ScriptInstance *arg0) {
ApiStatus func_80238000_714CF0(ScriptInstance* script, s32 isInitialCall) {
BattleStatus* battleStatus = BATTLE_STATUS;
if ((battleStatus->flags2 & 0x40) != 0) {
arg0->varTable[0] = 1;
if (battleStatus->flags2 & 0x40) {
script->varTable[0] = 1;
} else {
arg0->varTable[0] = 0;
script->varTable[0] = 0;
}
return ApiStatus_DONE2;
}
INCLUDE_ASM(s32, "battle/partner/twink_714CF0", func_80238028_714D18);