Decompile Armos

This commit is contained in:
octorock
2022-02-05 23:00:30 +01:00
parent e1fc6d628c
commit 3649a3e016
18 changed files with 766 additions and 1206 deletions
-1164
View File
File diff suppressed because it is too large Load Diff
+29
View File
@@ -0,0 +1,29 @@
.syntax unified
push {r4, lr}
adds r4, r0, #0
bl sub_080309A8
adds r3, r4, #0
adds r3, #0x5a
ldrb r1, [r3]
movs r0, #0x80
ands r0, r1
lsls r0, r0, #0x18
lsrs r2, r0, #0x18
cmp r2, #0
beq _080304DE
adds r0, r4, #0
bl sub_08030580
b _080304F0
_080304DE:
lsls r0, r1, #0x18
lsrs r0, r0, #0x18
cmp r0, #1
bne _080304F0
strb r2, [r3]
movs r0, #0x95
lsls r0, r0, #1
bl EnqueueSFX
_080304F0:
pop {r4, pc}
.align 2, 0
.syntax divided
+86
View File
@@ -0,0 +1,86 @@
.syntax unified
push {r4, lr}
adds r4, r0, #0
ldrh r1, [r4, #0x2e]
movs r2, #0xf
adds r0, r2, #0
ands r0, r1
movs r3, #0
cmp r0, #8
bne _080305D0
movs r3, #1
_080305D0:
ldrh r0, [r4, #0x32]
ands r2, r0
cmp r2, #8
bne _080305DC
movs r0, #2
orrs r3, r0
_080305DC:
cmp r3, #3
bne _080305E4
movs r0, #1
b _0803064C
_080305E4:
ldrb r1, [r4, #0x15]
movs r0, #8
ands r0, r1
cmp r0, #0
beq _0803061E
movs r0, #1
ands r0, r3
cmp r0, #0
bne _08030608
adds r0, r4, #0
bl ProcessMovement
cmp r0, #0
bne _0803064A
ldrb r0, [r4, #0x15]
movs r1, #0x10
eors r0, r1
b _08030648
_08030608:
cmp r2, #8
ble _08030610
movs r0, #0x10
b _08030612
_08030610:
movs r0, #0
_08030612:
strb r0, [r4, #0x15]
ldrb r1, [r4, #0x15]
movs r0, #8
ands r0, r1
cmp r0, #0
bne _0803064A
_0803061E:
movs r0, #2
ands r3, r0
cmp r3, #0
bne _08030638
adds r0, r4, #0
bl ProcessMovement
cmp r0, #0
bne _0803064A
ldrb r0, [r4, #0x15]
movs r1, #0x10
eors r0, r1
b _08030648
_08030638:
ldrh r1, [r4, #0x2e]
movs r0, #0xf
ands r0, r1
cmp r0, #8
ble _08030646
movs r0, #8
b _08030648
_08030646:
movs r0, #0x18
_08030648:
strb r0, [r4, #0x15]
_0803064A:
movs r0, #0
_0803064C:
pop {r4, pc}
.align 2, 0
.syntax divided
+136
View File
@@ -0,0 +1,136 @@
.syntax unified
push {r4, r5, r6, r7, lr}
mov r7, r8
push {r7}
adds r4, r0, #0
movs r1, #1
bl sub_08049FDC
cmp r0, #0
beq _080307C0
adds r0, r4, #0
adds r0, #0x7a
ldrh r0, [r0]
cmp r0, #0
beq _080307C0
movs r0, #0x18
strb r0, [r4, #0xe]
ldr r0, _080307B0 @ =gUnk_020000B0
ldr r1, [r0]
adds r0, r4, #0
bl sub_0800132C
adds r5, r0, #0
cmp r5, #0xff
beq _080307CC
movs r0, #0
mov r8, r0
bl Random
movs r1, #7
ands r1, r0
cmp r1, #0
bne _0803070E
ldrb r0, [r4, #0x14]
adds r6, r4, #0
adds r6, #0x82
cmp r0, #0xff
bne _0803072A
_0803070E:
adds r2, r4, #0
adds r2, #0x82
ldrb r1, [r2]
movs r0, #3
ands r0, r1
adds r6, r2, #0
cmp r0, #3
beq _0803072A
adds r0, r5, #4
movs r1, #0x18
ands r0, r1
strb r0, [r4, #0x15]
movs r1, #1
mov r8, r1
_0803072A:
mov r7, r8
cmp r7, #0
bne _08030746
bl Random
movs r1, #2
ands r1, r0
subs r1, #1
lsls r1, r1, #3
adds r1, #4
adds r1, r5, r1
movs r0, #0x18
ands r1, r0
strb r1, [r4, #0x15]
_08030746:
adds r0, r4, #0
adds r0, #0x38
ldrb r0, [r0]
ldr r1, _080307B4 @ =gUnk_02027EB4
mov ip, r1
cmp r0, #2
bne _08030758
ldr r7, _080307B8 @ =gUnk_0200D654
mov ip, r7
_08030758:
movs r0, #0x2e
ldrsh r1, [r4, r0]
ldr r3, _080307BC @ =gUnk_080CE164
ldrb r0, [r4, #0x15]
lsrs r0, r0, #2
adds r2, r0, r3
ldrb r2, [r2]
lsls r2, r2, #0x18
asrs r2, r2, #0x18
adds r1, r1, r2
movs r7, #0x32
ldrsh r2, [r4, r7]
adds r0, #1
adds r0, r0, r3
ldrb r0, [r0]
lsls r0, r0, #0x18
asrs r0, r0, #0x18
adds r2, r2, r0
mov r0, ip
movs r3, #0
bl sub_080AE4CC
cmp r0, #0
beq _0803079E
movs r0, #4
adds r1, r5, #0
ands r1, r0
eors r1, r0
lsls r1, r1, #1
movs r0, #0x10
ands r5, r0
orrs r1, r5
strb r1, [r4, #0x15]
movs r0, #0
mov r8, r0
_0803079E:
adds r0, r4, #0
bl sub_080307D4
ldrb r0, [r6]
lsls r0, r0, #1
mov r1, r8
orrs r0, r1
strb r0, [r6]
b _080307CC
.align 2, 0
_080307B0: .4byte gUnk_020000B0
_080307B4: .4byte gUnk_02027EB4
_080307B8: .4byte gUnk_0200D654
_080307BC: .4byte gUnk_080CE164
_080307C0:
movs r0, #4
strb r0, [r4, #0xc]
movs r0, #0x78
strb r0, [r4, #0xe]
movs r0, #0xa0
strh r0, [r4, #0x24]
_080307CC:
pop {r3}
mov r8, r3
pop {r4, r5, r6, r7, pc}
.align 2, 0
.syntax divided
+154
View File
@@ -0,0 +1,154 @@
.syntax unified
push {r4, r5, r6, r7, lr}
mov r7, sl
mov r6, sb
mov r5, r8
push {r5, r6, r7}
adds r5, r0, #0
ldr r0, [r5, #0x7c]
cmp r0, #0
bne _08030880
b _0803099C
_08030880:
ldr r0, _08030928 @ =gPlayerState
ldr r0, [r0, #0x30]
movs r1, #0x80
ands r0, r1
cmp r0, #0
bne _0803088E
b _0803098A
_0803088E:
ldr r0, _0803092C @ =gRoomControls
mov sb, r0
ldrh r0, [r5, #0x2e]
mov r2, sb
ldrh r1, [r2, #6]
subs r0, r0, r1
lsls r0, r0, #0x10
lsrs r7, r0, #0x10
ldrh r0, [r5, #0x32]
ldrh r1, [r2, #8]
subs r0, r0, r1
lsls r0, r0, #0x10
lsrs r6, r0, #0x10
movs r3, #0x2e
ldrsh r0, [r5, r3]
ldrh r1, [r2, #6]
subs r0, r0, r1
asrs r4, r0, #4
movs r2, #0x3f
ands r4, r2
movs r1, #0x32
ldrsh r0, [r5, r1]
mov r3, sb
ldrh r1, [r3, #8]
subs r0, r0, r1
asrs r0, r0, #4
ands r0, r2
lsls r0, r0, #6
orrs r4, r0
movs r0, #0x38
adds r0, r0, r5
mov r8, r0
ldrb r1, [r0]
adds r0, r4, #0
bl GetTileType
ldr r1, _08030930 @ =0x00004049
mov sl, r1
cmp r0, sl
bne _08030950
adds r0, r7, #0
adds r1, r6, #0
movs r2, #2
movs r3, #0xc
bl CheckPlayerInRegion
cmp r0, #0
beq _0803093C
subs r1, r6, #4
adds r0, r7, #0
movs r2, #2
movs r3, #4
bl CheckPlayerInRegion
cmp r0, #0
beq _0803098A
ldr r2, _08030934 @ =gPlayerEntity
adds r2, #0x29
ldrb r1, [r2]
movs r0, #8
rsbs r0, r0, #0
ands r0, r1
movs r1, #3
orrs r0, r1
strb r0, [r2]
ldr r0, [r5, #0x7c]
bl DoExitTransition
ldr r0, _08030938 @ =gRoomTransition
adds r1, r5, #0
adds r1, #0x80
ldrb r1, [r1]
adds r0, #0xae
strh r1, [r0]
movs r0, #1
b _0803099E
.align 2, 0
_08030928: .4byte gPlayerState
_0803092C: .4byte gRoomControls
_08030930: .4byte 0x00004049
_08030934: .4byte gPlayerEntity
_08030938: .4byte gRoomTransition
_0803093C:
ldr r0, _0803094C @ =0x00004022
mov r3, r8
ldrb r2, [r3]
adds r1, r4, #0
bl SetTile
b _0803098A
.align 2, 0
_0803094C: .4byte 0x00004022
_08030950:
adds r1, r6, #6
adds r0, r7, #0
movs r2, #2
movs r3, #5
bl CheckPlayerInRegion
cmp r0, #0
beq _0803098A
movs r4, #0x2e
ldrsh r1, [r5, r4]
mov r2, sb
ldrh r0, [r2, #6]
subs r1, r1, r0
asrs r1, r1, #4
movs r3, #0x3f
ands r1, r3
movs r4, #0x32
ldrsh r0, [r5, r4]
ldrh r2, [r2, #8]
subs r0, r0, r2
asrs r0, r0, #4
ands r0, r3
lsls r0, r0, #6
orrs r1, r0
mov r0, r8
ldrb r2, [r0]
mov r0, sl
bl SetTile
_0803098A:
adds r2, r5, #0
adds r2, #0x29
ldrb r1, [r2]
movs r0, #8
rsbs r0, r0, #0
ands r0, r1
movs r1, #4
orrs r0, r1
strb r0, [r2]
_0803099C:
movs r0, #0
_0803099E:
pop {r3, r4, r5}
mov r8, r3
mov sb, r4
mov sl, r5
pop {r4, r5, r6, r7, pc}
.syntax divided
-3
View File
@@ -4,9 +4,6 @@
.section .rodata
.align 2
gUnk_080CE164:: @ 080CE164
.incbin "armos/gUnk_080CE164.bin"
gSpriteAnimations_Armos_0:: @ 080CE16C
.include "animations/gSpriteAnimations_Armos_0.s"
-27
View File
@@ -1,27 +0,0 @@
.include "asm/macros.inc"
.include "constants/constants.inc"
.section .rodata
.align 2
gUnk_080CE124:: @ 080CE124
.4byte sub_080301BC
.4byte sub_080301D4
.4byte sub_08001324
.4byte sub_0804A7D4
.4byte sub_08030240
.4byte nullsub_17
gUnk_080CE13C:: @ 080CE13C
.4byte sub_0803026C
.4byte sub_0803030C
.4byte sub_08030338
.4byte sub_08030430
.4byte sub_08030474
.4byte sub_080304BC
.4byte sub_080304F4
.4byte sub_08030524
.4byte sub_08030554
gUnk_080CE160:: @ 080CE160
.incbin "armos/gUnk_080CE160.bin"
+1 -1
View File
@@ -175,7 +175,7 @@ void Tektite(Entity*);
void WizzrobeWind();
void WizzrobeFire();
void WizzrobeIce();
void Armos(Entity*);
void Armos();
void Eyegore(Entity*);
void Rope(Entity*);
void SmallPesto(Entity*);
+2
View File
@@ -173,4 +173,6 @@ extern Entity* sub_080A2A3C(Entity*, u32, u32, u32);
extern void sub_0806FCF4(Entity*, s32, s32, s32);
extern u32 sub_080041DC(Entity*, u32, u32);
extern void sub_080AE58C(Entity*, u32, u32);
extern u32 sub_0800132C(Entity*, Entity*);
extern bool32 sub_080AE4CC(Entity*, u32, u32, u32);
#endif
+2 -2
View File
@@ -367,7 +367,7 @@ SECTIONS {
src/enemy/wizzrobeIce.o(.text);
src/enemy/code_080300AC.o(.text);
asm/enemy/code_080300AC.o(.text);
asm/enemy/armos.o(.text);
src/enemy/armos.o(.text);
asm/enemy/eyegore.o(.text);
src/enemy/rope.o(.text);
src/enemy/smallPesto.o(.text);
@@ -1019,7 +1019,7 @@ SECTIONS {
data/animations/enemy/wizzrobeFire.o(.rodata);
src/enemy/wizzrobeIce.o(.rodata);
data/animations/enemy/wizzrobeIce.o(.rodata);
data/const/enemy/armos.o(.rodata);
src/enemy/armos.o(.rodata);
data/animations/enemy/armos.o(.rodata);
data/const/enemy/eyegore.o(.rodata);
data/animations/enemy/eyegore.o(.rodata);
+355
View File
@@ -0,0 +1,355 @@
/**
* @file armos.c
* @ingroup Enemies
*
* @brief Armos enemy
*/
#define NENT_DEPRECATED
#include "global.h"
#include "enemy.h"
#include "functions.h"
typedef struct {
/*0x00*/ Entity base;
/*0x68*/ u8 unk_68[0x10];
/*0x78*/ u16 unk_78;
/*0x7a*/ u16 unk_7a;
/*0x7c*/ ScreenTransitionData* unk_7c;
/*0x80*/ u8 unk_80;
/*0x81*/ u8 unk_81;
/*0x82*/ u8 unk_82;
/*0x83*/ u8 unk_83;
/*0x84*/ u32 unk_84;
} ArmosEntity;
extern Hitbox gUnk_080FD2F0;
extern Hitbox gHitbox_15;
extern Entity* gUnk_020000B0;
extern Entity gUnk_02027EB4;
extern Entity gUnk_0200D654;
extern void (*const gUnk_080CE124[])(ArmosEntity*);
extern void (*const gUnk_080CE13C[])(ArmosEntity*);
extern const u8 gUnk_080CE160[];
extern const s8 gUnk_080CE164[];
void sub_08030150(ArmosEntity*);
void sub_080309C8(ArmosEntity*, u32);
void sub_080309E8(ArmosEntity*);
void sub_08030580(ArmosEntity*);
void sub_080307EC(ArmosEntity*);
bool32 sub_0803086C(ArmosEntity*);
bool32 sub_08030650(ArmosEntity*);
void sub_080309A8(ArmosEntity*);
void sub_08030834(ArmosEntity*);
void sub_080306C4(ArmosEntity*);
void sub_08030A04(ArmosEntity*);
bool32 sub_080305BC(ArmosEntity*);
void sub_080307D4(ArmosEntity*);
void sub_08030590(ArmosEntity*);
void Armos(ArmosEntity* this) {
EnemyFunctionHandler(super, (EntityActionArray)&gUnk_080CE124);
SetChildOffset(super, 0, 1, -0x10);
sub_08030150(this);
}
void sub_080301BC(ArmosEntity* this) {
gUnk_080CE13C[super->action](this);
}
void sub_080301D4(ArmosEntity* this) {
if ((super->action == 1) && (super->field_0x4c == &gPlayerEntity)) {
super->iframes = -0x1e;
}
if ((super->health != 0) && (super->health != this->unk_81)) {
super->action = 8;
sub_080309C8(this, 6);
sub_080309E8(this);
}
if (super->field_0x43 != 0) {
sub_0804A9FC(super, 0x1c);
}
this->unk_81 = super->health;
sub_0804AA30(super, gUnk_080CE124);
}
void sub_08030240(ArmosEntity* this) {
if (super->animIndex == 6) {
if ((super->frame & 0x80) == 0) {
GetNextFrame(super);
}
}
sub_08001242(super);
}
void nullsub_17(ArmosEntity* this) {
}
void sub_0803026C(ArmosEntity* this) {
u16* ptr;
sub_0804A720(super);
this->unk_80 = super->actionDelay;
ptr = &gRoomTransition.armos_data.data[this->unk_80 * 2];
if (ptr[0] != 0) {
super->x.HALF.HI = ptr[0];
super->y.HALF.HI = ptr[1];
this->unk_84 = (gRoomTransition.armos_data.field_0xac >> this->unk_80) & 1;
} else {
this->unk_84 = (0x47d >> this->unk_80) & 1;
}
if (super->type2 != 0) {
this->unk_7c = (ScreenTransitionData*)GetCurrentRoomProperty(super->type2);
}
this->unk_81 = super->health;
sub_08030580(this);
sub_080307EC(this);
if (this->unk_80 == 2 && gRoomControls.origin_y + 0x80 < super->y.HALF.HI) {
super->action = 7;
sub_080309C8(this, 7);
}
}
void sub_0803030C(ArmosEntity* this) {
if (sub_0803086C(this) == 0 && this->unk_84 != 0 && sub_08030650(this)) {
super->action = 2;
super->subAction = 0;
}
}
void sub_08030338(ArmosEntity* this) {
u8 bVar2;
u32 uVar3;
if (this->unk_80 != 2) {
sub_080309A8(this);
} else {
UpdateAnimationVariableFrames(super, 3);
if ((this->unk_84 != 0) && (super->frameIndex == 0x25)) {
super->frameIndex = 0x19;
}
}
if (super->frame == 1) {
if (super->subAction == 0) {
super->subAction = 1;
}
uVar3 = super->actionDelay + 1;
super->actionDelay = (u8)uVar3;
if ((uVar3 & 1) == 0) {
return;
}
super->spriteOffsetX = gUnk_080CE160[(uVar3 & 6) >> 1];
} else {
if (super->frame == 2) {
super->frame = 0;
if (this->unk_80 != 2) {
super->flags2 = 0xb;
super->hitType = 8;
super->hitbox = (Hitbox*)&gUnk_080FD2F0;
}
sub_08030834(this);
EnqueueSFX(SFX_12A);
return;
}
bVar2 = super->frame & 0x80;
if ((super->frame & 0x80) != 0) {
if (this->unk_80 != 2) {
super->action = 3;
super->animationState = 0xff;
this->unk_7a = 600;
this->unk_82 = 0;
sub_080306C4(this);
sub_080309E8(this);
return;
}
super->action = 6;
super->actionDelay = 0x1a;
super->speed = 0x300;
super->direction = 0x10;
return;
} else {
super->spriteOffsetX = bVar2;
}
}
}
void sub_08030430(ArmosEntity* this) {
sub_08030A04(this);
if (0x100 < super->speed) {
GetNextFrame(super);
}
sub_080309A8(this);
if (this->unk_7a != 0) {
this->unk_7a--;
}
if (--super->actionDelay == 0) {
sub_080306C4(this);
}
}
void sub_08030474(ArmosEntity* this) {
if (--super->actionDelay == 0) {
super->action = 3;
super->actionDelay = 1;
this->unk_7a = 0x3c;
sub_080309E8(this);
} else {
if (sub_080305BC(this)) {
sub_08030590(this);
} else {
sub_080307D4(this);
sub_080309A8(this);
}
}
}
NONMATCH("asm/non_matching/armos/sub_080304BC.inc", void sub_080304BC(ArmosEntity* this)) {
u32 tmp;
sub_080309A8(this);
tmp = super->frame & 0x80;
if (tmp != 0) {
sub_08030580(this);
} else {
if (super->frame == 1) {
super->frame = tmp;
EnqueueSFX(SFX_12A);
}
}
}
END_NONMATCH
void sub_080304F4(ArmosEntity* this) {
LinearMoveUpdate(super);
sub_080309A8(this);
if (--super->actionDelay == 0) {
super->action = 7;
sub_080309C8(this, 5);
sub_080307EC(this);
}
}
void sub_08030524(ArmosEntity* this) {
if ((super->frame & 0x80) == 0) {
sub_080309A8(this);
} else if (super->frame == 1) {
super->frame = 0;
EnqueueSFX(SFX_12A);
}
}
void sub_08030554(ArmosEntity* this) {
sub_080309A8(this);
if ((super->frame & 0x80) != 0) {
super->action = 3;
sub_080309C8(this, (u32)super->animationState);
sub_080306C4(this);
}
}
void sub_08030580(ArmosEntity* this) {
super->action = 1;
sub_080309C8(this, 4);
}
void sub_08030590(ArmosEntity* this) {
super->action = 5;
super->flags2 = 1;
super->hitType = 1;
super->hitbox = (Hitbox*)&gHitbox_15;
sub_080309C8(this, 5);
sub_080307EC(this);
}
ASM_FUNC("asm/non_matching/armos/sub_080305BC.inc", bool32 sub_080305BC(ArmosEntity* this))
bool32 sub_08030650(ArmosEntity* this) {
if (super->type == 0) {
if (super->bitfield == 0x80) {
return 1;
}
} else if (this->unk_80 != 2) {
if ((sub_08049FDC(super, 1) == 0) || (0x20 < (gUnk_020000B0->x.HALF.HI - super->x.HALF.HI) + 0x10U)) {
return FALSE;
}
return TRUE;
} else {
if (sub_08049FDC(super, 1) == 0) {
return FALSE;
}
if (gUnk_020000B0->x.HALF.HI >= (s32)(gRoomControls.origin_x + 0xa8)) {
return FALSE;
}
return TRUE;
}
return FALSE;
}
ASM_FUNC("asm/non_matching/armos/sub_080306C4.inc", void sub_080306C4(ArmosEntity* this))
void sub_080307D4(ArmosEntity* this) {
u8 tmp = super->direction >> 3;
if (tmp != super->animationState) {
super->animationState = tmp;
sub_080309C8(this, tmp);
}
}
void sub_080307EC(ArmosEntity* this) {
u32 position = COORD_TO_TILE(super);
this->unk_78 = GetTileIndex(position, super->collisionLayer);
SetTile(0x4022, position, (u32)super->collisionLayer);
}
void sub_08030834(ArmosEntity* this) {
SetTile(this->unk_78, COORD_TO_TILE(super), super->collisionLayer);
}
ASM_FUNC("asm/non_matching/armos/sub_0803086C.inc", bool32 sub_0803086C(ArmosEntity* this))
void sub_080309A8(ArmosEntity* this) {
GetNextFrame(super);
if ((this->unk_84 != 0) && (super->frameIndex == 0x25)) {
super->frameIndex = 0x19;
}
}
void sub_080309C8(ArmosEntity* this, u32 param_2) {
InitializeAnimation(super, param_2);
if ((this->unk_84 != 0) && (super->frameIndex == 0x25)) {
super->frameIndex = 0x19;
}
}
void sub_080309E8(ArmosEntity* this) {
if (super->health < 5) {
super->speed = 0x120;
} else if (super->health <= 8) {
super->speed = 0xe0;
}
}
void sub_08030A04(ArmosEntity* this) {
ProcessMovement(super);
if ((super->frame & 1) != 0) {
super->frame = super->frame & 0xfe;
EnqueueSFX(SFX_101);
}
}
void (*const gUnk_080CE124[])(ArmosEntity*) = {
sub_080301BC, sub_080301D4, (void (*)(ArmosEntity*))sub_08001324, (void (*)(ArmosEntity*))sub_0804A7D4,
sub_08030240, nullsub_17,
};
void (*const gUnk_080CE13C[])(ArmosEntity*) = {
sub_0803026C, sub_0803030C, sub_08030338, sub_08030430, sub_08030474,
sub_080304BC, sub_080304F4, sub_08030524, sub_08030554,
};
const u8 gUnk_080CE160[] = {
255,
0,
1,
0,
};
const s8 gUnk_080CE164[] = { 0, -7, 7, 0, 0, 7, -7, 0 };
-1
View File
@@ -11,7 +11,6 @@
extern void sub_08008796(Entity*, u32, u32, u32);
extern u32 sub_0804A024(Entity*, u32, u32);
extern bool32 sub_080AE4CC(Entity*, u32, u32, u32);
extern Entity gUnk_0200D654;
extern Entity gUnk_02027EB4;
-2
View File
@@ -163,8 +163,6 @@ bool32 Leever_PlayerInRange(Entity* ent, s32 arg2) {
}
}
extern u32 sub_0800132C(Entity*, Entity*);
void Leever_Move(Entity* this) {
if (sub_08049FDC(this, 1) == 0) {
this->field_0x74.HWORD = 1;
-1
View File
@@ -10,7 +10,6 @@ const u8 gUnk_080CF498[];
extern u16* GetLayerByIndex(u32);
extern s32 sub_080012DC(Entity*);
extern bool32 sub_080AE4CC(Entity*, u32, u32, u32);
extern u32 sub_0804A044(Entity*, Entity*, u32);
void sub_08037E14(Entity* this);
+1 -1
View File
@@ -6,9 +6,9 @@
*/
#include "enemy.h"
#include "functions.h"
extern u32 sub_0804A024(Entity*, u32, u32);
extern bool32 sub_080AE4CC(Entity*, u32, u32, u32);
extern bool32 sub_080AF038(Entity*);
extern Entity gUnk_02027EB4;
-1
View File
@@ -41,7 +41,6 @@ u32 PointInsideRadius(s32, s32, s32);
extern Entity gUnk_0200D654;
extern Entity gUnk_02027EB4;
extern bool32 sub_080AE4CC(Entity*, u32, u32, u32);
extern u32 sub_080AF1EC(Entity*);
u32 sub_080611D4(Entity*);
-2
View File
@@ -2,8 +2,6 @@
#include "entity.h"
#include "functions.h"
extern u32 sub_080AE4CC(Entity*, u32, u32, u32);
extern void* gUnk_02027EB4;
extern void* gUnk_0200D654;
-1
View File
@@ -5,7 +5,6 @@
#include "projectile.h"
extern u32 sub_080644C8(Entity*);
extern bool32 sub_080AE4CC(Entity*, u32, u32, u32);
extern Entity gUnk_02027EB4;
extern const Hitbox gUnk_080FD1E4;