mirror of
https://github.com/zeldaret/tmc
synced 2026-08-16 05:09:24 -04:00
name asm funcs
This commit is contained in:
@@ -74,7 +74,7 @@ void CuccoChick_Fusion(Entity* this) {
|
||||
this->spriteSettings.draw = 1;
|
||||
this->frameIndex = 1;
|
||||
} else {
|
||||
if (sub_08003FC4(this, 0x3000) == 0) {
|
||||
if (GravityUpdate(this, 0x3000) == 0) {
|
||||
this->zVelocity = 0x10000;
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -79,7 +79,7 @@ void sub_08068780(Entity* this) {
|
||||
|
||||
if (this->frame & 0x40) {
|
||||
this->frame &= 0xbf;
|
||||
if (sub_080040A8(this) == 0) {
|
||||
if (CheckOnScreen(this) == 0) {
|
||||
SoundReq(gUnk_0811153E[(s32)Random() % 3]);
|
||||
} else {
|
||||
EnqueueSFX(gUnk_08111538[(s32)Random() % 3]);
|
||||
|
||||
+1
-1
@@ -265,7 +265,7 @@ void sub_08060DFC(Entity* this) {
|
||||
|
||||
sub_0806F69C(this);
|
||||
sub_08060E94(this);
|
||||
uVar1 = sub_08003FC4(this, 0x2000);
|
||||
uVar1 = GravityUpdate(this, 0x2000);
|
||||
if (uVar1 == 0) {
|
||||
this->action = 7;
|
||||
this->collisionLayer = 1;
|
||||
|
||||
+2
-2
@@ -96,7 +96,7 @@ void sub_080604DC(Entity* this) {
|
||||
int iVar2;
|
||||
Entity* ent;
|
||||
|
||||
if (this->spriteSettings.draw == 1 && sub_080040A8(this)) {
|
||||
if (this->spriteSettings.draw == 1 && CheckOnScreen(this)) {
|
||||
if ((this->frame & 1) != 0) {
|
||||
this->frame &= 0xfe;
|
||||
ent = CreateFx(this, 17, 0x40);
|
||||
@@ -163,7 +163,7 @@ void sub_08060528(Entity* this) {
|
||||
this->field_0x6a.HWORD -= 1;
|
||||
}
|
||||
}
|
||||
sub_08003FC4(this, 0x1800);
|
||||
GravityUpdate(this, 0x1800);
|
||||
if (((this->field_0x6c.HALF.HI != 0) && (this->zVelocity == 0)) && this->z.WORD == 0) {
|
||||
this->field_0x6c.HALF.HI = 0;
|
||||
sub_080606C0(this);
|
||||
|
||||
@@ -174,7 +174,7 @@ void sub_0806AEA8(Entity* this) {
|
||||
int old = this->field_0x82.HWORD;
|
||||
this->field_0x82.HWORD &= ~0x20;
|
||||
if (old & 0x20) {
|
||||
sub_08003FC4(this, 0x4000);
|
||||
GravityUpdate(this, 0x4000);
|
||||
}
|
||||
HandleEntity0x82Actions(this);
|
||||
this->field_0x82.HWORD = old;
|
||||
@@ -226,7 +226,7 @@ void sub_0806AF70(Entity* this, ScriptExecutionContext* context) {
|
||||
}
|
||||
|
||||
void sub_0806AF78(Entity* this, ScriptExecutionContext* context) {
|
||||
sub_08003FC4(this, 0x1800);
|
||||
GravityUpdate(this, 0x1800);
|
||||
if (0 <= this->z.WORD && this->zVelocity < 1) {
|
||||
this->z.WORD = 0;
|
||||
sub_0806AF70(this, context);
|
||||
|
||||
+2
-2
@@ -137,7 +137,7 @@ void sub_08066E80(Entity* this, ScriptExecutionContext* context) {
|
||||
break;
|
||||
case 2:
|
||||
sub_0806F62C(this, 0x100, 0x80);
|
||||
sub_08003FC4(this, 0x2000);
|
||||
GravityUpdate(this, 0x2000);
|
||||
if (!(this->frame & 1)) {
|
||||
UpdateAnimationSingleFrame(this);
|
||||
}
|
||||
@@ -148,7 +148,7 @@ void sub_08066E80(Entity* this, ScriptExecutionContext* context) {
|
||||
case 3:
|
||||
sub_0806F62C(this, 0x100, 0x80);
|
||||
UpdateAnimationSingleFrame(this);
|
||||
if (sub_08003FC4(this, 0x2000) == 0) {
|
||||
if (GravityUpdate(this, 0x2000) == 0) {
|
||||
context->unk_18++;
|
||||
InitAnimationForceUpdate(this, 0x1E);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user