mirror of
https://github.com/zeldaret/tmc
synced 2026-07-31 08:06:30 -04:00
entity changes, textbox changes
This commit is contained in:
@@ -17,10 +17,10 @@ void Manager1_Main(Entity* this) {
|
||||
u8* pbVar2;
|
||||
|
||||
gUnk_08107C5C[this->action](this);
|
||||
gUnk_08107C48[((u8*)&this->field_0x20)[1]](this);
|
||||
bVar1 = gUnk_08107C40[((u8*)&this->field_0x20)[1]];
|
||||
if ((bVar1 != 0) && (*(u8*)&this->field_0x20 != bVar1)) {
|
||||
((u8*)&this->field_0x20)[0] = bVar1;
|
||||
gUnk_08107C48[((u8*)&this->hVelocity)[1]](this);
|
||||
bVar1 = gUnk_08107C40[((u8*)&this->hVelocity)[1]];
|
||||
if ((bVar1 != 0) && (*(u8*)&this->hVelocity != bVar1)) {
|
||||
((u8*)&this->hVelocity)[0] = bVar1;
|
||||
LoadGfxGroup(bVar1);
|
||||
}
|
||||
}
|
||||
@@ -28,9 +28,9 @@ void Manager1_Main(Entity* this) {
|
||||
void sub_080570B8(Entity* this) {
|
||||
u8* pbVar1;
|
||||
|
||||
LoadGfxGroup(((u8*)&this->field_0x20)[0]);
|
||||
LoadGfxGroup(((u8*)&this->hVelocity)[0]);
|
||||
this->height.WORD = 0;
|
||||
pbVar1 = ((u8*)&this->field_0x20 + 1);
|
||||
pbVar1 = ((u8*)&this->hVelocity + 1);
|
||||
if (*pbVar1 == 3) {
|
||||
gScreen.affine.bg3Updated = 1;
|
||||
} else {
|
||||
@@ -46,9 +46,9 @@ void sub_080570F8(void) {
|
||||
|
||||
void sub_08057118(Entity* this) {
|
||||
this->actionDelay = 0;
|
||||
*(u8*)&this->field_0x20 = 0;
|
||||
((u8*)&this->field_0x20)[1] = 0;
|
||||
((u8*)&this->field_0x20)[2] = 0;
|
||||
*(u8*)&this->hVelocity = 0;
|
||||
((u8*)&this->hVelocity)[1] = 0;
|
||||
((u8*)&this->hVelocity)[2] = 0;
|
||||
this->action = 1;
|
||||
gScreen.affine.bg3Control = 0x1e04;
|
||||
gScreen.lcd.displayControl |= 0x800;
|
||||
|
||||
@@ -139,9 +139,9 @@ void sub_0805B168(Manager1A* this) {
|
||||
u32 sub_0805B1CC(Manager1A* this) {
|
||||
u32 re = 0;
|
||||
if (CheckPlayerProximity(this->unk_20, this->unk_22, this->unk_24, this->unk_26)) {
|
||||
if ((gPlayerState.flags.all & 0x4) && (gPlayerState.flags.all & 0x1)) {
|
||||
gPlayerState.flags.all |= 0x8000;
|
||||
} else if (gPlayerState.flags.all & 0x8000) {
|
||||
if ((gPlayerState.flags & 0x4) && (gPlayerState.flags & 0x1)) {
|
||||
gPlayerState.flags |= 0x8000;
|
||||
} else if (gPlayerState.flags & 0x8000) {
|
||||
re = 1;
|
||||
}
|
||||
}
|
||||
@@ -157,7 +157,7 @@ void sub_0805B210(Manager1A* this) {
|
||||
gScreenTransition.areaID = tmp->unk_01;
|
||||
gScreenTransition.roomID = tmp->unk_02;
|
||||
gScreenTransition.playerLayer = tmp->unk_03;
|
||||
if (gPlayerState.flags.all & 0x80) {
|
||||
if (gPlayerState.flags & 0x80) {
|
||||
gScreenTransition.field_0xf = 6;
|
||||
} else {
|
||||
gScreenTransition.field_0xf = 2;
|
||||
|
||||
@@ -76,7 +76,7 @@ void sub_0805C7C4(Manager26* this) {
|
||||
}
|
||||
|
||||
void sub_0805C7CC(Manager26* this) {
|
||||
if (gPlayerState.flags.all & 0x80) {
|
||||
if (gPlayerState.flags & 0x80) {
|
||||
if (gPlayerEntity.y.HALF.HI < this->unk_2a + 0x10) {
|
||||
this->manager.unk_0d = 1;
|
||||
} else {
|
||||
|
||||
@@ -47,7 +47,7 @@ void Manager3_Main(Manager3* this) {
|
||||
gArea.field_0x18 = 1;
|
||||
gArea.curPortalType = 5;
|
||||
} else {
|
||||
if ((gPlayerState.flags.all & 0x20) && gPlayerState.jumpStatus == 0) {
|
||||
if ((gPlayerState.flags & 0x20) && gPlayerState.jumpStatus == 0) {
|
||||
gArea.field_0x18 = 2;
|
||||
} else {
|
||||
if (sub_08057810()) {
|
||||
@@ -94,7 +94,7 @@ void CreateMagicSparkles(u32 baseX, u32 baseY, u32 layer) {
|
||||
}
|
||||
|
||||
u32 sub_08057810(void) {
|
||||
if ((gPlayerState.flags.all & 0x80) && !gPlayerState.field_0xaa && (gArea.curPortalType != 0x6) &&
|
||||
if ((gPlayerState.flags & 0x80) && !gPlayerState.field_0xaa && (gArea.curPortalType != 0x6) &&
|
||||
(gPlayerState.heldObject == 0)) {
|
||||
switch (gPlayerState.field_0xa8) {
|
||||
case 0:
|
||||
|
||||
@@ -79,13 +79,13 @@ void sub_0805DF4C(Manager* this) {
|
||||
if (--this->unk_0e == 0) {
|
||||
this->action = 3;
|
||||
this->unk_0e = 0x1e;
|
||||
TextboxNoOverlapFollow(0x164f);
|
||||
MessageFromTarget(0x164f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void sub_0805DF98(Manager* this) {
|
||||
if ((gTextBox.doTextBox & 0x7f) == 0) {
|
||||
if ((gMessage.doTextBox & 0x7f) == 0) {
|
||||
if (this->unk_0e != 0) {
|
||||
this->unk_0e -= 1;
|
||||
} else {
|
||||
|
||||
@@ -37,7 +37,7 @@ void sub_0805E1F8(u32, u32);
|
||||
|
||||
void Manager39_Main(Manager39* this) {
|
||||
gUnk_08108E28[this->manager.action](this);
|
||||
if ((gRoomControls.roomID != this->unk_20) || (gTextBox.doTextBox & 0x7F)) {
|
||||
if ((gRoomControls.roomID != this->unk_20) || (gMessage.doTextBox & 0x7F)) {
|
||||
sub_0805E1D8(this);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ void Manager6_Main(Manager6* this) {
|
||||
for (i = this->warpList; i->posX != 0xFFFF; i++) {
|
||||
tmp = (i->unk_07.all & 0x3);
|
||||
if (((tmp & (gPlayerEntity.collisionLayer)) != 0) &&
|
||||
(((gPlayerState.flags.all & 0x80) != 0) || ((i->unk_07.b.unk2) != 0)) &&
|
||||
(((gPlayerState.flags & 0x80) != 0) || ((i->unk_07.b.unk2) != 0)) &&
|
||||
(CheckPlayerInRegion(i->posX, i->posY, i->width, i->height) != 0) &&
|
||||
(gPlayerEntity.height.HALF.HI == 0)) {
|
||||
DoExitTransition(GetCurrentRoomProperty(i->unk_06));
|
||||
|
||||
@@ -49,7 +49,7 @@ void sub_080585DC(ManagerA*);
|
||||
|
||||
void sub_08058408(ManagerA* this) {
|
||||
u32 tmp2;
|
||||
tmp2 = (gPlayerState.flags.all & 0x08);
|
||||
tmp2 = (gPlayerState.flags & 0x08);
|
||||
if (tmp2 != 0)
|
||||
return;
|
||||
if (!CheckPlayerInRegion(this->unk_20, this->unk_22, this->unk_24, this->unk_26))
|
||||
@@ -59,7 +59,7 @@ void sub_08058408(ManagerA* this) {
|
||||
return;
|
||||
case 2:
|
||||
sub_080585DC(this);
|
||||
if ((gPlayerState.flags.all & 0x80) == 0)
|
||||
if ((gPlayerState.flags & 0x80) == 0)
|
||||
return;
|
||||
case 0:
|
||||
default:
|
||||
@@ -118,7 +118,7 @@ extern void UnfreezeTime(void);
|
||||
void sub_08058514(ManagerA* this) {
|
||||
switch (this->manager.unk_0d) {
|
||||
case 1:
|
||||
if ((gPlayerState.flags.all & 0x1235) != 0)
|
||||
if ((gPlayerState.flags & 0x1235) != 0)
|
||||
return;
|
||||
if (gPlayerEntity.height.HALF.HI != 0)
|
||||
return;
|
||||
|
||||
@@ -343,7 +343,7 @@ void SetDirtTile(u32 tile) {
|
||||
|
||||
void sub_08059368(ManagerF* this) {
|
||||
this->manager.action = 1;
|
||||
if (this->unk_3c == gCurrentTextBox._28) {
|
||||
if (this->unk_3c == gTextRender.curToken.textIndex) {
|
||||
SetFlag(this->unk_3e);
|
||||
DeleteThisEntity();
|
||||
}
|
||||
@@ -360,7 +360,7 @@ void sub_0805938C(ManagerF* this) {
|
||||
}
|
||||
|
||||
u32 sub_080593CC(ManagerF* this) {
|
||||
if (!(gPlayerState.flags.all & 0x80) && gPlayerState.swimState != 0 && gPlayerEntity.animationState == 0 &&
|
||||
if (!(gPlayerState.flags & 0x80) && gPlayerState.swimState != 0 && gPlayerEntity.animationState == 0 &&
|
||||
(gPlayerState.field_0x90.HALF.LO & 0xF00) == 0x400) {
|
||||
return sub_0806FCB8(&gPlayerEntity, this->unk_38, this->unk_3a + 0xC, 6);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user