summaryrefslogtreecommitdiff
path: root/src/enemy/ballChainSoldier.c
diff options
context:
space:
mode:
authorHenny022p <73211432+Henny022p@users.noreply.github.com>2026-02-08 16:59:19 +0100
committerGitHub <noreply@github.com>2026-02-08 16:59:19 +0100
commitb09c069c1a082b384d8e289707ffab608487a62f (patch)
tree4843cdbaaba1ce9d435186559deb41c1e35fc482 /src/enemy/ballChainSoldier.c
parentb68b975d6c893b0b24299f801a0b63582f11f234 (diff)
parentf3365f1e2ecd0559f50b21dcce1556a50d5db57c (diff)
Merge pull request #697 from Henny022p/peahat-delta-speed
Document Peahat
Diffstat (limited to 'src/enemy/ballChainSoldier.c')
-rw-r--r--src/enemy/ballChainSoldier.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/enemy/ballChainSoldier.c b/src/enemy/ballChainSoldier.c
index bc6ff6d2..f6010778 100644
--- a/src/enemy/ballChainSoldier.c
+++ b/src/enemy/ballChainSoldier.c
@@ -20,8 +20,6 @@ typedef struct {
u8 unk_7f;
} BallChainSoldierEntity;
-extern Entity* gUnk_020000B0;
-
void (*const BallChainSoldier_Functions[])(BallChainSoldierEntity*);
void (*const gUnk_080D06F8[])(BallChainSoldierEntity*);
const u8 gUnk_080D0724[];
@@ -210,7 +208,7 @@ void sub_0803E818(BallChainSoldierEntity* this) {
void sub_0803E86C(BallChainSoldierEntity* this) {
if (sub_08049FDC(super, 1) && sub_0803EAD0(this, 0x50)) {
- super->direction = DirectionRoundUp(GetFacingDirection(super, gUnk_020000B0));
+ super->direction = DirectionRoundUp(GetFacingDirection(super, gEnemyTarget));
}
super->action = 1;
@@ -276,12 +274,12 @@ bool32 sub_0803E9D4(BallChainSoldierEntity* this) {
if (sub_08049FDC(super, 1)) {
if (sub_0803EAD0(this, 0x38)) {
super->action = 3;
- super->direction = DirectionRoundUp(GetFacingDirection(super, gUnk_020000B0));
+ super->direction = DirectionRoundUp(GetFacingDirection(super, gEnemyTarget));
this->unk_7b = 1;
sub_0803E94C(this, 0);
return 1;
} else if (sub_0803EAD0(this, 0x4e)) {
- dir = sub_0804A044(super, gUnk_020000B0, 0x12);
+ dir = sub_0804A044(super, gEnemyTarget, 0x12);
if (dir != 0xff) {
if (--this->unk_7a != 0)
return 0;
@@ -302,7 +300,7 @@ bool32 sub_0803EA64(BallChainSoldierEntity* this) {
u32 dir;
if (sub_08049FDC(super, 1)) {
if (sub_0803EAD0(this, 0x4e)) {
- dir = sub_0804A044(super, gUnk_020000B0, 0x12);
+ dir = sub_0804A044(super, gEnemyTarget, 0x12);
if (dir != 0xff) {
if (--this->unk_7a != 0)
return 1;
@@ -322,7 +320,7 @@ bool32 sub_0803EA64(BallChainSoldierEntity* this) {
}
bool32 sub_0803EAD0(BallChainSoldierEntity* this, u32 distance) {
- return EntityWithinDistance(super, gUnk_020000B0->x.HALF.HI, gUnk_020000B0->y.HALF.HI - 4, distance);
+ return EntityWithinDistance(super, gEnemyTarget->x.HALF.HI, gEnemyTarget->y.HALF.HI - 4, distance);
}
void (*const BallChainSoldier_Functions[])(BallChainSoldierEntity*) = {