mirror of
https://github.com/pmret/papermario.git
synced 2024-11-09 20:42:41 +01:00
PR comments
This commit is contained in:
parent
32885019c7
commit
36113303d9
@ -5,7 +5,7 @@ static void UnkDurationCheck(ScriptInstance* script) {
|
||||
Npc* npc = get_npc_unsafe(script->owner1.enemy->npcID);
|
||||
|
||||
npc->duration--;
|
||||
if ((npc->duration << 0x10) <= 0) {
|
||||
if (npc->duration <= 0) {
|
||||
script->functionTemp[0].s = 0;
|
||||
}
|
||||
}
|
||||
|
@ -5,7 +5,7 @@ static void UnkNpcAIFunc10(ScriptInstance* script) {
|
||||
Npc* npc = get_npc_unsafe(script->owner1.enemy->npcID);
|
||||
|
||||
npc->duration--;
|
||||
if ((npc->duration << 0x10) == 0) {
|
||||
if (npc->duration == 0) {
|
||||
script->functionTemp[0].s = 15;
|
||||
}
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ static void UnkNpcAIFunc11(ScriptInstance* script, NpcAISettings* aiSettings, s3
|
||||
npc_move_heading(npc, npc->moveSpeed, npc->yaw);
|
||||
func_8003D660(npc, 1);
|
||||
npc->duration--;
|
||||
if ((npc->duration << 0x10) == 0) {
|
||||
if (npc->duration == 0) {
|
||||
script->functionTemp[0].s = 12;
|
||||
}
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
static void UnkNpcAIFunc3(ScriptInstance* script) {
|
||||
Npc* npc = get_npc_unsafe(script->owner1.enemy->npcID);
|
||||
|
||||
if ((npc->duration <= 0) || ((--npc->duration << 0x10) <= 0)) {
|
||||
if ((npc->duration <= 0) || (--npc->duration <= 0)) {
|
||||
if (npc->unk_8C == 0) {
|
||||
npc->duration = 0;
|
||||
script->functionTemp[0].s = 14;
|
||||
|
@ -6,7 +6,7 @@ static void UnkNpcAIFunc5(ScriptInstance* script) {
|
||||
Npc* npc = get_npc_unsafe(enemy->npcID);
|
||||
|
||||
npc->duration--;
|
||||
if ((npc->duration << 0x10) <= 0) {
|
||||
if (npc->duration <= 0) {
|
||||
enemy->varTable[0] = 0;
|
||||
script->functionTemp[0].s = 12;
|
||||
}
|
||||
|
@ -6,7 +6,7 @@ static void UnkNpcAIFunc7(ScriptInstance* script) {
|
||||
Npc* npc = get_npc_unsafe(enemy->npcID);
|
||||
|
||||
npc->duration--;
|
||||
if ((npc->duration << 0x10) <= 0) {
|
||||
if (npc->duration <= 0) {
|
||||
enemy->varTable[0] = 3;
|
||||
npc->duration = enemy->varTable[2];
|
||||
npc->currentAnim = enemy->animList[9];
|
||||
|
@ -6,7 +6,7 @@ static void UnkNpcAIFunc8(ScriptInstance* script) {
|
||||
Npc* npc = get_npc_unsafe(enemy->npcID);
|
||||
|
||||
npc->duration--;
|
||||
if ((npc->duration << 0x10) <= 0) {
|
||||
if (npc->duration <= 0) {
|
||||
enemy->varTable[0] = 4;
|
||||
npc->currentAnim = enemy->animList[0];
|
||||
npc->duration = enemy->varTable[3];
|
||||
|
@ -6,7 +6,7 @@ static void UnkNpcDurationFlagFunc(ScriptInstance* script) {
|
||||
Npc* npc = get_npc_unsafe(enemy->npcID);
|
||||
|
||||
npc->duration--;
|
||||
if ((npc->duration << 0x10) == 0) {
|
||||
if (npc->duration == 0) {
|
||||
if (enemy->unk_B0 & 0x80) {
|
||||
script->functionTemp[0].s = 15;
|
||||
} else {
|
||||
|
@ -1,4 +1,5 @@
|
||||
#include "common.h"
|
||||
#include "map.h"
|
||||
|
||||
static void set_script_owner_npc_anim(ScriptInstance* script) {
|
||||
Enemy* enemy = script->owner1.enemy;
|
||||
|
@ -1,4 +1,5 @@
|
||||
#include "common.h"
|
||||
#include "map.h"
|
||||
|
||||
static void set_script_owner_npc_col_height(ScriptInstance* script) {
|
||||
Enemy* enemy = script->owner1.enemy;
|
||||
|
Loading…
Reference in New Issue
Block a user