mirror of
https://github.com/zeldaret/tmc
synced 2026-08-01 08:17:33 -04:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
+2
-2
@@ -44,8 +44,8 @@ void Anju(Entity *this)
|
||||
|
||||
void sub_0806C354(Entity *this)
|
||||
{
|
||||
this->field_0x68 = sub_0801E99C();
|
||||
sub_08078784(this,this->field_0x68);
|
||||
this->field_0x68.HALF.LO = sub_0801E99C();
|
||||
sub_08078784(this, this->field_0x68.HALF.LO);
|
||||
}
|
||||
|
||||
void Anju_Fusion(Entity *this)
|
||||
|
||||
@@ -123,8 +123,8 @@ void sub_08068ADC(Entity* this) {
|
||||
void sub_08068AFC(Entity* this) {
|
||||
this->action = 1;
|
||||
this->spriteSettings.b.draw = 1;
|
||||
*(u8*)&this->field_0x68 = sub_0801E99C(this);
|
||||
sub_08078784(this, *(u8*)&this->field_0x68);
|
||||
this->field_0x68.HALF.LO = sub_0801E99C(this);
|
||||
sub_08078784(this, this->field_0x68.HALF.LO);
|
||||
sub_0807DD50(this);
|
||||
}
|
||||
|
||||
@@ -161,14 +161,14 @@ void sub_08068B84(Entity* this) {
|
||||
void sub_08068BB4(Entity* this) {
|
||||
u32 item = gUnk_02002A40.stats.itemOnA;
|
||||
|
||||
this->field_0x69 = item;
|
||||
this->field_0x68.HALF.HI = item;
|
||||
item = gUnk_02002A40.stats.itemOnB;
|
||||
*(&this->field_0x69 + 1) = item;
|
||||
*(&this->field_0x68.HALF.HI + 1) = item;
|
||||
}
|
||||
|
||||
void sub_08068BD0(Entity* this) {
|
||||
ForceEquipItem(this->field_0x69, 0);
|
||||
ForceEquipItem(*(u8*)(&this->field_0x69 + 1), 1);
|
||||
ForceEquipItem(this->field_0x68.HALF.HI, 0);
|
||||
ForceEquipItem(*(u8*)(&this->field_0x68.HALF.HI + 1), 1);
|
||||
}
|
||||
|
||||
void sub_08068BEC(Entity* this, u32 unused) {
|
||||
|
||||
+3
-3
@@ -26,7 +26,7 @@ void Carpenter(Entity* this) {
|
||||
if (!LoadExtraSpriteData(this, gUnk_08110CA8 + this->entityType.form * 4))
|
||||
break;
|
||||
this->action = 1;
|
||||
this->field_0x69 = 0;
|
||||
this->field_0x68.HALF.HI = 0;
|
||||
sub_0805E3A0(this, 2);
|
||||
sub_0807DD64(this);
|
||||
|
||||
@@ -34,7 +34,7 @@ void Carpenter(Entity* this) {
|
||||
if (this->interactType == 2) {
|
||||
this->action = 2;
|
||||
this->interactType = 0;
|
||||
this->field_0x69 = this->animIndex;
|
||||
this->field_0x68.HALF.HI = this->animIndex;
|
||||
InitializeAnimation(this, sub_0806F5A4(GetFacingDirection(this, &gLinkEntity)) + 4 + (this->entityType.form * 8));
|
||||
sub_0806F118(this);
|
||||
} else {
|
||||
@@ -47,7 +47,7 @@ void Carpenter(Entity* this) {
|
||||
if (!UpdateFuseInteraction(this))
|
||||
break;
|
||||
this->action = 1;
|
||||
InitializeAnimation(this, this->field_0x69);
|
||||
InitializeAnimation(this, this->field_0x68.HALF.HI);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
+5
-5
@@ -34,7 +34,7 @@ void sub_08068FC0(Entity* ent) {
|
||||
ent->animationState = ent->entityType.parameter;
|
||||
ent->nonPlanarMovement = 0x40;
|
||||
|
||||
ent->field_0x6d = 0xFF;
|
||||
ent->field_0x6c.HALF.HI = 0xFF;
|
||||
|
||||
r2 = sub_0805ACC0(ent);
|
||||
if (r2 == 0) {
|
||||
@@ -51,7 +51,7 @@ void sub_08068FC0(Entity* ent) {
|
||||
*(u16*)&ent->field_0x68 = var1;
|
||||
ent->field_0x6a.HWORD = r2;
|
||||
}
|
||||
ent->field_0x6c = sub_0801E99C(ent);
|
||||
ent->field_0x6c.HALF.LO = sub_0801E99C(ent);
|
||||
|
||||
InitAnimationForceUpdate(ent, ent->animationState + 4);
|
||||
}
|
||||
@@ -194,15 +194,15 @@ void sub_0806920C(Entity* ent) {
|
||||
u32 var0 = gLinkState.flags.all & 0x80;
|
||||
u32 var1 = -var0 >> 0x1F;
|
||||
|
||||
if (var1 != ent->field_0x6d) {
|
||||
if (var1 != ent->field_0x6c.HALF.HI) {
|
||||
if (var1 == 0) {
|
||||
sub_08078778(ent);
|
||||
} else {
|
||||
sub_080787A8(ent, ent->field_0x6c);
|
||||
sub_080787A8(ent, ent->field_0x6c.HALF.LO);
|
||||
}
|
||||
}
|
||||
|
||||
ent->field_0x6d = var1;
|
||||
ent->field_0x6c.HALF.HI = var1;
|
||||
}
|
||||
|
||||
// Check if player interacting
|
||||
|
||||
+2
-2
@@ -52,8 +52,8 @@ void Dampe(Entity* this) {
|
||||
}
|
||||
|
||||
void sub_0806BE3C(Entity* this) {
|
||||
this->field_0x68 = sub_0801E99C();
|
||||
sub_08078784(this, this->field_0x68);
|
||||
this->field_0x68.HALF.LO = sub_0801E99C();
|
||||
sub_08078784(this, this->field_0x68.HALF.LO);
|
||||
}
|
||||
|
||||
void Dampe_Fusion(Entity* this) {
|
||||
|
||||
+5
-5
@@ -20,8 +20,8 @@ void sub_080659B8(Entity* this) {
|
||||
this->action = 1;
|
||||
this->spriteSettings.b.draw = 1;
|
||||
this->animationState = 6;
|
||||
this->field_0x69 = -1;
|
||||
this->field_0x68 = sub_0801E99C(this);
|
||||
this->field_0x68.HALF.HI = -1;
|
||||
this->field_0x68.HALF.LO = sub_0801E99C(this);
|
||||
InitAnimationForceUpdate(this, this->animationState / 2);
|
||||
}
|
||||
|
||||
@@ -57,14 +57,14 @@ void sub_08065A64(Entity* this) {
|
||||
u32 uVar2;
|
||||
|
||||
uVar2 = -(gLinkState.flags.all & 0x80) >> 0x1f;
|
||||
if (uVar2 != this->field_0x69) {
|
||||
if (uVar2 != this->field_0x68.HALF.HI) {
|
||||
if (uVar2 == 0) {
|
||||
sub_08078778(this);
|
||||
} else {
|
||||
sub_080787A8(this, this->field_0x68);
|
||||
sub_080787A8(this, this->field_0x68.HALF.LO);
|
||||
}
|
||||
}
|
||||
this->field_0x69 = uVar2;
|
||||
this->field_0x68.HALF.HI = uVar2;
|
||||
}
|
||||
|
||||
void sub_08065AA4(Entity* this) {
|
||||
|
||||
+2
-2
@@ -25,8 +25,8 @@ void sub_0805FE10(Entity *this)
|
||||
this->action = 1;
|
||||
this->spriteSettings.b.draw = TRUE;
|
||||
sub_0805E3A0(this, 2);
|
||||
this->field_0x68 = sub_0801E99C(this);
|
||||
sub_08078784(this, this->field_0x68);
|
||||
this->field_0x68.HALF.LO = sub_0801E99C(this);
|
||||
sub_08078784(this, this->field_0x68.HALF.LO);
|
||||
sub_0807DD50(this);
|
||||
}
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ void ForestMinish(Entity* this) {
|
||||
if (LoadExtraSpriteData(this, &gUnk_0810A348)) {
|
||||
this->action = 1;
|
||||
this->spriteSettings.b.draw = TRUE;
|
||||
this->field_0x69 = this->animationState = this->actionDelay << 1;
|
||||
this->field_0x68.HALF.HI = this->animationState = this->actionDelay << 1;
|
||||
this->actionDelay = 0;
|
||||
sub_0805E3A0(this, 2);
|
||||
StartCutscene(this, gUnk_08109D18[this->entityType.parameter]);
|
||||
@@ -66,8 +66,8 @@ void ForestMinish(Entity* this) {
|
||||
}
|
||||
|
||||
void sub_08060090(Entity* this) {
|
||||
this->field_0x68 = sub_0801E99C(this);
|
||||
sub_08078784(this, this->field_0x68);
|
||||
this->field_0x68.HALF.LO = sub_0801E99C(this);
|
||||
sub_08078784(this, this->field_0x68.HALF.LO);
|
||||
}
|
||||
|
||||
void ForestMinish_Head(Entity* this) {
|
||||
@@ -129,8 +129,8 @@ void sub_08060158(Entity *this)
|
||||
this->actionDelay = 2;
|
||||
iVar4 = sub_0806EDD8(this, 0x20, 0x20);
|
||||
if (iVar4 < 0) {
|
||||
this->animationState = this->field_0x69;
|
||||
iVar4 = this->field_0x69 << 2;
|
||||
this->animationState = this->field_0x68.HALF.HI;
|
||||
iVar4 = this->field_0x68.HALF.HI << 2;
|
||||
}
|
||||
temp = (this->animationState >> 1) * 0x20 + (iVar4 >> 1) * 2;
|
||||
bVar1 = gUnk_08109C98[temp];
|
||||
@@ -257,7 +257,7 @@ void sub_08060318(void)
|
||||
|
||||
void sub_08060340(void)
|
||||
{
|
||||
gUnk_02002A40.unk3 = gUnk_02002A40.unk2;
|
||||
gUnk_02002A40.unk490 = gUnk_02002A40.unk50;
|
||||
}
|
||||
|
||||
u32 sub_08060354(void)
|
||||
@@ -265,7 +265,7 @@ u32 sub_08060354(void)
|
||||
u32 iVar1;
|
||||
s32 iVar2;
|
||||
|
||||
iVar2 = gUnk_02002A40.unk2 - gUnk_02002A40.unk3;
|
||||
iVar2 = gUnk_02002A40.unk50 - gUnk_02002A40.unk490;
|
||||
if (CheckGlobalFlag(DRUG_1) == 0) {
|
||||
if (4 < iVar2) {
|
||||
return 0x8444;
|
||||
|
||||
+2
-2
@@ -18,8 +18,8 @@ void Gentari(Entity *this)
|
||||
this->action = 1;
|
||||
this->spriteSettings.b.draw = TRUE;
|
||||
sub_0805E3A0(this, 2);
|
||||
this->field_0x68 = sub_0801E99C(this);
|
||||
sub_08078784(this, this->field_0x68);
|
||||
this->field_0x68.HALF.LO = sub_0801E99C(this);
|
||||
sub_08078784(this, this->field_0x68.HALF.LO);
|
||||
sub_0807DD50(this);
|
||||
break;
|
||||
case 1:
|
||||
|
||||
+2
-2
@@ -13,8 +13,8 @@ void Librari(Entity* this) {
|
||||
this->action = 1;
|
||||
this->spriteSettings.b.draw = TRUE;
|
||||
this->animationState = this->actionDelay;
|
||||
this->field_0x68 = sub_0801E99C(this);
|
||||
sub_08078784(this, this->field_0x68);
|
||||
this->field_0x68.HALF.LO = sub_0801E99C(this);
|
||||
sub_08078784(this, this->field_0x68.HALF.LO);
|
||||
sub_0805E3A0(this, 2);
|
||||
sub_0807DD50(this);
|
||||
break;
|
||||
|
||||
+2
-2
@@ -32,8 +32,8 @@ void sub_08065888(Entity* this) {
|
||||
this->action = 1;
|
||||
this->spriteSettings.b.draw = 1;
|
||||
this->animationState = 4;
|
||||
this->field_0x68 = sub_0801E99C(this);
|
||||
sub_08078784(this, this->field_0x68);
|
||||
this->field_0x68.HALF.LO = sub_0801E99C(this);
|
||||
sub_08078784(this, this->field_0x68.HALF.LO);
|
||||
sub_0807DD50(this);
|
||||
}
|
||||
|
||||
|
||||
@@ -28,8 +28,8 @@ void MayorHagen(Entity *this)
|
||||
switch (this->action) {
|
||||
case 0:
|
||||
this->action = 1;
|
||||
this->field_0x69 = 0;
|
||||
this->field_0x68 = sub_0801E99C(this);
|
||||
this->field_0x68.HALF.HI = 0;
|
||||
this->field_0x68.HALF.LO = sub_0801E99C(this);
|
||||
sub_0805E3A0(this, 2);
|
||||
sub_0807DD50(this);
|
||||
break;
|
||||
@@ -38,7 +38,7 @@ void MayorHagen(Entity *this)
|
||||
if (v == 2) {
|
||||
this->action = v;
|
||||
this->interactType = 0;
|
||||
this->field_0x69 = this->animIndex;
|
||||
this->field_0x68.HALF.HI = this->animIndex;
|
||||
InitAnimationForceUpdate(this,4 + sub_0806F5A4(GetFacingDirection(this, &gLinkEntity)));
|
||||
sub_0806F118(this);
|
||||
break;
|
||||
@@ -50,7 +50,7 @@ void MayorHagen(Entity *this)
|
||||
case 2:
|
||||
if (UpdateFuseInteraction(this)) {
|
||||
this->action = 1;
|
||||
InitAnimationForceUpdate(this, this->field_0x69);
|
||||
InitAnimationForceUpdate(this, this->field_0x68.HALF.HI);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -65,7 +65,7 @@ void sub_0806CE80(Entity *this)
|
||||
{
|
||||
u32 v;
|
||||
u32 v2;
|
||||
v = gUnk_02002A40.filler[8];
|
||||
v = gUnk_02002A40.unk8;
|
||||
if (v == 5) {
|
||||
//flippers
|
||||
if (GetInventoryValue(0x46) == 0) {
|
||||
|
||||
+2
-2
@@ -111,8 +111,8 @@ void sub_08068780(Entity* this) {
|
||||
}
|
||||
|
||||
void sub_08068884(Entity* this) {
|
||||
this->field_0x68 = sub_0801E99C(this);
|
||||
sub_08078784(this, this->field_0x68);
|
||||
this->field_0x68.HALF.LO = sub_0801E99C(this);
|
||||
sub_08078784(this, this->field_0x68.HALF.LO);
|
||||
}
|
||||
|
||||
void Melari_Head(Entity* this) {
|
||||
|
||||
+3
-3
@@ -75,13 +75,13 @@ void sub_080670B4(Entity *this)
|
||||
|
||||
void sub_080670E4(Entity *this)
|
||||
{
|
||||
ShowNPCDialogue(this, &gUnk_08110C10[gUnk_02002A40.unk * 2]);
|
||||
ShowNPCDialogue(this, &gUnk_08110C10[gUnk_02002A40.unk8 * 2]);
|
||||
}
|
||||
|
||||
void sub_08067100(Entity *this)
|
||||
{
|
||||
this->field_0x68 = sub_0801E99C(this);
|
||||
sub_08078784(this, this->field_0x68);
|
||||
this->field_0x68.HALF.LO = sub_0801E99C(this);
|
||||
sub_08078784(this, this->field_0x68.HALF.LO);
|
||||
}
|
||||
|
||||
void Mutoh_Fusion(Entity *this)
|
||||
|
||||
+14
-14
@@ -125,11 +125,11 @@ void sub_08060528(Entity *this)
|
||||
case 0:
|
||||
this->action = 1;
|
||||
this->spriteSettings.b.draw = TRUE;
|
||||
this->field_0x68 = 0;
|
||||
this->field_0x69 = 0;
|
||||
this->field_0x68.HALF.LO = 0;
|
||||
this->field_0x68.HALF.HI = 0;
|
||||
this->field_0x6a.HWORD = 0;
|
||||
this->field_0x6d = 0;
|
||||
this->field_0x6c = sub_0801E99C(this);
|
||||
this->field_0x6c.HALF.HI = 0;
|
||||
this->field_0x6c.HALF.LO = sub_0801E99C(this);
|
||||
sub_0807DD50(this);
|
||||
break;
|
||||
case 1:
|
||||
@@ -170,7 +170,7 @@ void sub_08060528(Entity *this)
|
||||
if ((s16)this->field_0x6a.HWORD > 0x12b) {
|
||||
this->field_0x6a.HWORD = 0;
|
||||
this->field_0x20 = 0x20000;
|
||||
this->field_0x6d = 1;
|
||||
this->field_0x6c.HALF.HI = 1;
|
||||
sub_080788E0(this);
|
||||
sub_08004488(0x7c);
|
||||
}
|
||||
@@ -179,8 +179,8 @@ void sub_08060528(Entity *this)
|
||||
}
|
||||
}
|
||||
sub_08003FC4(this, 0x1800);
|
||||
if (((this->field_0x6d != 0) && (this->field_0x20 == 0)) && this->height.WORD == 0) {
|
||||
this->field_0x6d = 0;
|
||||
if (((this->field_0x6c.HALF.HI != 0) && (this->field_0x20 == 0)) && this->height.WORD == 0) {
|
||||
this->field_0x6c.HALF.HI = 0;
|
||||
sub_080606C0(this);
|
||||
}
|
||||
if ((-1 < this->height.WORD) &&
|
||||
@@ -192,15 +192,15 @@ void sub_08060528(Entity *this)
|
||||
|
||||
void sub_080606C0(Entity *this)
|
||||
{
|
||||
this->field_0x6c = sub_0801E99C(this);
|
||||
sub_08078784(this, this->field_0x6c);
|
||||
this->field_0x6c.HALF.LO = sub_0801E99C(this);
|
||||
sub_08078784(this, this->field_0x6c.HALF.LO);
|
||||
}
|
||||
|
||||
void sub_080606D8(Entity* this)
|
||||
{
|
||||
s32 iVar1;
|
||||
|
||||
iVar1 = gUnk_02002A40.unk - 2;
|
||||
iVar1 = gUnk_02002A40.unk8 - 2;
|
||||
if (iVar1 < 0) {
|
||||
iVar1 = 0;
|
||||
}
|
||||
@@ -211,8 +211,8 @@ void sub_080606D8(Entity* this)
|
||||
void sub_08060700(Entity *arg0, u32 arg1)
|
||||
{
|
||||
sub_0807DEDC(arg0,arg1,
|
||||
gUnk_0810A918[gUnk_0810A66C[arg0->field_0x69][arg0->field_0x68] * 4 + gRoomControls.roomOriginX],
|
||||
gUnk_0810A918[gUnk_0810A66C[arg0->field_0x69][arg0->field_0x68] * 4 + gRoomControls.roomOriginY + 2]);
|
||||
gUnk_0810A918[gUnk_0810A66C[arg0->field_0x68.HALF.HI][arg0->field_0x68.HALF.LO] * 4 + gRoomControls.roomOriginX],
|
||||
gUnk_0810A918[gUnk_0810A66C[arg0->field_0x68.HALF.HI][arg0->field_0x68.HALF.LO] * 4 + gRoomControls.roomOriginY + 2]);
|
||||
gUnk_02033280.unk |= 1;
|
||||
}
|
||||
#endif
|
||||
@@ -222,6 +222,6 @@ NAKED void sub_08060700(Entity *arg0, u32 arg1) {
|
||||
|
||||
void sub_0806075C(Entity *this)
|
||||
{
|
||||
this->field_0x68 = 0xb;
|
||||
this->field_0x69 = 0xff;
|
||||
this->field_0x68.HALF.LO = 0xb;
|
||||
this->field_0x68.HALF.HI = 0xff;
|
||||
}
|
||||
+3
-3
@@ -98,7 +98,7 @@ void sub_080660EC(Entity *this)
|
||||
{
|
||||
if (LoadExtraSpriteData(this, &gUnk_08110354) != 0) {
|
||||
this->action = 1;
|
||||
this->field_0x68 = sub_0801E99C(this);
|
||||
this->field_0x68.HALF.LO = sub_0801E99C(this);
|
||||
InitAnimationForceUpdate(this, 2);
|
||||
}
|
||||
}
|
||||
@@ -140,7 +140,7 @@ void sub_08066178(Entity *this)
|
||||
if (LoadExtraSpriteData(this, &gUnk_08110354) != 0) {
|
||||
this->action = 1;
|
||||
this->spriteSettings.b.draw = 1;
|
||||
this->field_0x68 = sub_0801E99C(this);
|
||||
this->field_0x68.HALF.LO = sub_0801E99C(this);
|
||||
sub_0807DD50(this);
|
||||
}
|
||||
}
|
||||
@@ -207,7 +207,7 @@ void sub_08066274(u32 arg0)
|
||||
|
||||
void sub_08066288(Entity *arg0)
|
||||
{
|
||||
sub_08078784(arg0, arg0->field_0x68);
|
||||
sub_08078784(arg0, arg0->field_0x68.HALF.LO);
|
||||
}
|
||||
|
||||
void Smith_Fusion(Entity *this)
|
||||
|
||||
+7
-7
@@ -64,15 +64,15 @@ void sub_08065608(Entity* this) {
|
||||
if (LoadExtraSpriteData(this, &gUnk_0810FEB0) != 0) {
|
||||
this->action = 1;
|
||||
this->spriteSettings.b.draw = 1;
|
||||
this->field_0x68 = sub_0801E99C(this);
|
||||
sub_08078784(this, this->field_0x68);
|
||||
this->field_0x68.HALF.LO = sub_0801E99C(this);
|
||||
sub_08078784(this, this->field_0x68.HALF.LO);
|
||||
sub_0807DD50(this);
|
||||
}
|
||||
}
|
||||
|
||||
void sub_08065648(Entity* this) {
|
||||
if (this->interactType == 2) {
|
||||
this->field_0x69 = this->action;
|
||||
this->field_0x68.HALF.HI = this->action;
|
||||
this->action = 4;
|
||||
this->interactType = 0;
|
||||
sub_0806F118(this);
|
||||
@@ -83,14 +83,14 @@ void sub_08065648(Entity* this) {
|
||||
|
||||
void sub_08065680(Entity* this) {
|
||||
if (UpdateFuseInteraction() != 0) {
|
||||
this->action = this->field_0x69;
|
||||
this->action = this->field_0x68.HALF.HI;
|
||||
InitAnimationForceUpdate(this, this->field_0x6a.HALF.LO);
|
||||
}
|
||||
}
|
||||
|
||||
void sub_080656A4(Entity* this) {
|
||||
if ((gTextBox.doTextBox & 0x7F) == 0) {
|
||||
this->action = this->field_0x69;
|
||||
this->action = this->field_0x68.HALF.HI;
|
||||
InitAnimationForceUpdate(this, this->field_0x6a.HALF.LO);
|
||||
}
|
||||
UpdateAnimationSingleFrame(this);
|
||||
@@ -98,7 +98,7 @@ void sub_080656A4(Entity* this) {
|
||||
|
||||
void sub_080656D4(Entity* this) {
|
||||
if (this->interactType == 2) {
|
||||
this->field_0x69 = this->action;
|
||||
this->field_0x68.HALF.HI = this->action;
|
||||
this->action = 4;
|
||||
this->interactType = 0;
|
||||
sub_0806F118(this);
|
||||
@@ -109,7 +109,7 @@ void sub_080656D4(Entity* this) {
|
||||
StartCutscene(this, &gUnk_0800B41C);
|
||||
goto label2;
|
||||
} else {
|
||||
this->field_0x69 = this->action;
|
||||
this->field_0x68.HALF.HI = this->action;
|
||||
this->action = 3;
|
||||
this->interactType = 0;
|
||||
TextboxNoOverlap(*(u32*)(*(u32*)&this->cutsceneBeh.HWORD + 4), this);
|
||||
|
||||
+5
-5
@@ -30,7 +30,7 @@ void Teachers(Entity* this) {
|
||||
this->action = 1;
|
||||
this->spriteSettings.b.draw = TRUE;
|
||||
this->animationState = this->actionDelay;
|
||||
this->field_0x69 = 0;
|
||||
this->field_0x68.HALF.HI = 0;
|
||||
sub_0805E3A0(this, 2);
|
||||
sub_0807DD50(this);
|
||||
}
|
||||
@@ -39,7 +39,7 @@ void Teachers(Entity* this) {
|
||||
if (this->interactType == 2) {
|
||||
this->action = 2;
|
||||
this->interactType = 0;
|
||||
this->field_0x69 = this->animIndex;
|
||||
this->field_0x68.HALF.HI = this->animIndex;
|
||||
InitializeAnimation(this,
|
||||
(this->animIndex & -4) + sub_0806F5A4(GetFacingDirection(this, &gLinkEntity)));
|
||||
sub_0806F118(this);
|
||||
@@ -50,15 +50,15 @@ void Teachers(Entity* this) {
|
||||
case 2:
|
||||
if (UpdateFuseInteraction(this)) {
|
||||
this->action = 1;
|
||||
InitializeAnimation(this, this->field_0x69);
|
||||
InitializeAnimation(this, this->field_0x68.HALF.HI);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void sub_0806C674(Entity *this)
|
||||
{
|
||||
this->field_0x68 = sub_0801E99C();
|
||||
sub_08078784(this, this->field_0x68);
|
||||
this->field_0x68.HALF.LO = sub_0801E99C();
|
||||
sub_08078784(this, this->field_0x68.HALF.LO);
|
||||
}
|
||||
|
||||
void Teachers_Head(Entity *this)
|
||||
|
||||
+11
-11
@@ -39,7 +39,7 @@ void sub_0806ABFC(Entity *this)
|
||||
|
||||
this->animationState = this->field_0x6a.HALF.LO << 1;
|
||||
animationState = this->animationState;
|
||||
this->field_0x69 = animationState << 2;
|
||||
this->field_0x68.HALF.HI = animationState << 2;
|
||||
|
||||
this->actionDelay = 0;
|
||||
}
|
||||
@@ -48,7 +48,7 @@ void sub_0806ABFC(Entity *this)
|
||||
/*void sub_0806AC3C(Entity *this) {
|
||||
if (this->field_0x58 <= 3) {
|
||||
s32 unk;
|
||||
u8 field_0x69;
|
||||
u8 field_0x68;
|
||||
|
||||
Entity *link = &gLinkEntity;
|
||||
if (sub_080041A0(this, link, 0x18, 0x18)) {
|
||||
@@ -58,24 +58,24 @@ void sub_0806ABFC(Entity *this)
|
||||
unk = this->animationState << 2;
|
||||
}
|
||||
|
||||
field_0x69 = this->field_0x69;
|
||||
field_0x68.HALF.HI = this->field_0x68.HALF.HI;
|
||||
|
||||
if (unk != field_0x69) {
|
||||
if (unk != field_0x68.HALF.HI) {
|
||||
s32 temp;
|
||||
|
||||
if (((unk - field_0x69) & 0x1f) <= 0xf) {
|
||||
field_0x69--;
|
||||
if (((unk - field_0x68.HALF.HI) & 0x1f) <= 0xf) {
|
||||
field_0x68.HALF.HI--;
|
||||
}
|
||||
else {
|
||||
field_0x69++;
|
||||
field_0x68.HALF.HI++;
|
||||
}
|
||||
|
||||
temp = field_0x69;
|
||||
this->field_0x69 = temp & 0x1f;
|
||||
temp = field_0x68.HALF.HI;
|
||||
this->field_0x68.HALF.HI = temp & 0x1f;
|
||||
}
|
||||
|
||||
if (!(this->field_0x69 & 7)) {
|
||||
this->animationState = sub_0806F5B0(this->field_0x69);
|
||||
if (!(this->field_0x68.HALF.HI & 7)) {
|
||||
this->animationState = sub_0806F5B0(this->field_0x68.HALF.HI);
|
||||
UpdateSprite(this, (this->animationState >> 1) ^ 2);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -123,7 +123,7 @@ void sub_08061CEC(Entity* this) {
|
||||
this->action = 1;
|
||||
this->spriteSettings.b.draw = TRUE;
|
||||
this->animationState = this->actionDelay;
|
||||
this->field_0x69 = 0xff;
|
||||
this->field_0x68.HALF.HI = 0xff;
|
||||
uVar2 = sub_0805ACC0(this);
|
||||
if (uVar2 == 0) {
|
||||
this->field_0x6a.HWORD = this->x.HALF.HI;
|
||||
@@ -132,7 +132,7 @@ void sub_08061CEC(Entity* this) {
|
||||
this->field_0x6a.HWORD = (uVar2 >> 0x10);
|
||||
}
|
||||
*(u16*)&this->field_0x6c = uVar2;
|
||||
this->field_0x68 = sub_0801E99C(this);
|
||||
this->field_0x68.HALF.LO = sub_0801E99C(this);
|
||||
sub_0807DD64(this);
|
||||
sub_08061D64(this);
|
||||
}
|
||||
@@ -143,7 +143,7 @@ void sub_08061D64(Entity* this) {
|
||||
this->action = 3;
|
||||
this->interactType = 0;
|
||||
sub_0806F118(this);
|
||||
this->field_0x69 = this->animIndex;
|
||||
this->field_0x68.HALF.HI = this->animIndex;
|
||||
InitializeAnimation(this, (this->animIndex & -4) + sub_0806F5A4(GetFacingDirection(this, &gLinkEntity)));
|
||||
} else {
|
||||
sub_0807DDAC(this, 0);
|
||||
@@ -156,7 +156,7 @@ void sub_08061D64(Entity* this) {
|
||||
this->action = 2;
|
||||
this->interactType = 0;
|
||||
sub_08062048(this);
|
||||
this->field_0x69 = this->animIndex;
|
||||
this->field_0x68.HALF.HI = this->animIndex;
|
||||
InitializeAnimation(this, (this->animIndex & -4) + sub_0806F5A4(GetFacingDirection(this, &gLinkEntity)));
|
||||
}
|
||||
}
|
||||
@@ -166,7 +166,7 @@ void sub_08061E24(Entity* this) {
|
||||
GetNextFrame(this);
|
||||
if ((gTextBox.doTextBox & 0x7f) == 0) {
|
||||
this->action = 1;
|
||||
InitializeAnimation(this, this->field_0x69);
|
||||
InitializeAnimation(this, this->field_0x68.HALF.HI);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -174,13 +174,13 @@ void sub_08061E50(Entity* this) {
|
||||
|
||||
if (UpdateFuseInteraction(this) != 0) {
|
||||
this->action = 1;
|
||||
InitializeAnimation(this, this->field_0x69);
|
||||
InitializeAnimation(this, this->field_0x68.HALF.HI);
|
||||
}
|
||||
}
|
||||
|
||||
void sub_08061E70(Entity* this) {
|
||||
if ((this->entityType).subtype == 6) {
|
||||
sub_08078784(this, this->field_0x68);
|
||||
sub_08078784(this, this->field_0x68.HALF.LO);
|
||||
} else {
|
||||
sub_08078778(this);
|
||||
}
|
||||
@@ -300,7 +300,7 @@ void sub_08062048(Entity *this)
|
||||
int iVar1;
|
||||
|
||||
if ((this->entityType).subtype == 6) {
|
||||
iVar1 = gUnk_02002A40.unk - 2;
|
||||
iVar1 = gUnk_02002A40.unk8 - 2;
|
||||
if (iVar1 < 0) {
|
||||
iVar1 = 0;
|
||||
}
|
||||
|
||||
@@ -78,8 +78,8 @@ void sub_0806C870(Entity *this)
|
||||
u8 bVar1;
|
||||
|
||||
bVar1 = sub_0801E99C();
|
||||
this->field_0x68 = bVar1;
|
||||
sub_08078784(this, this->field_0x68);
|
||||
this->field_0x68.HALF.LO = bVar1;
|
||||
sub_08078784(this, this->field_0x68.HALF.LO);
|
||||
}
|
||||
|
||||
void WindTribespeople_Head(Entity *this)
|
||||
@@ -122,7 +122,7 @@ void sub_0806C90C(Entity *param_1,Entity *param_2)
|
||||
|
||||
void sub_0806C928(Entity *this)
|
||||
{
|
||||
ShowNPCDialogue(this, &gUnk_08113ABC[gUnk_02002A40.unk * 2]);
|
||||
ShowNPCDialogue(this, &gUnk_08113ABC[gUnk_02002A40.unk8 * 2]);
|
||||
}
|
||||
|
||||
void sub_0806C944(Entity *this)
|
||||
|
||||
Reference in New Issue
Block a user