mirror of
https://github.com/zeldaret/tmc
synced 2026-08-20 14:15:10 -04:00
PlayerNormal ok
This commit is contained in:
+2
-2
@@ -230,7 +230,7 @@ void sub_08021B64(Entity* this) {
|
||||
this->actionDelay = (u8)iVar4;
|
||||
}
|
||||
|
||||
if (gPlayerState.flags & 0x110)
|
||||
if (gPlayerState.flags & (PL_DISABLE_ITEMS | PL_CAPTURED))
|
||||
iVar4 = 0;
|
||||
|
||||
if (iVar4 == 0) {
|
||||
@@ -244,7 +244,7 @@ void sub_08021B64(Entity* this) {
|
||||
}
|
||||
InitializeAnimation(this, 5);
|
||||
} else {
|
||||
gPlayerState.field_0x1a[0] |= 0x80;
|
||||
gPlayerState.mobility |= 0x80;
|
||||
gPlayerState.speed_modifier -= 0x50;
|
||||
gPlayerState.field_0xaa++;
|
||||
CopyPositionAndSpriteOffset(&gPlayerEntity, this);
|
||||
|
||||
+2
-2
@@ -160,7 +160,7 @@ NONMATCH("asm/non_matching/gibdo/sub_080376D0.inc", void sub_080376D0(Entity* th
|
||||
u8* x;
|
||||
if (sub_080379EC(this) == 0) {
|
||||
ResetPlayer();
|
||||
gPlayerState.field_0x1a[0] = gPlayerState.field_0x1a[0] | 0x80;
|
||||
gPlayerState.mobility = gPlayerState.mobility | 0x80;
|
||||
gPlayerState.field_0xa = gPlayerState.field_0xa | 0x80;
|
||||
CopyPositionAndSpriteOffset(&gPlayerEntity, this);
|
||||
UpdateAnimationSingleFrame(this);
|
||||
@@ -347,7 +347,7 @@ void sub_08037A58(Entity* this) {
|
||||
}
|
||||
|
||||
void sub_08037ACC(Entity* this) {
|
||||
gPlayerState.flags &= ~0x100;
|
||||
gPlayerState.flags &= ~PL_DISABLE_ITEMS;
|
||||
COLLISION_ON(&gPlayerEntity);
|
||||
gPlayerEntity.iframes = 0x1e;
|
||||
gPlayerEntity.knockbackDirection = DirectionFromAnimationState(this->animationState);
|
||||
|
||||
@@ -184,7 +184,7 @@ void sub_0802805C(Entity* this) {
|
||||
sub_0802810C(this);
|
||||
} else {
|
||||
ResetPlayer();
|
||||
gPlayerState.field_0x1a[0] |= 0x80;
|
||||
gPlayerState.mobility |= 0x80;
|
||||
PositionRelative(this, &gPlayerEntity, 0, 0x10000);
|
||||
|
||||
tmp = GetSpriteSubEntryOffsetDataPointer((u16)this->spriteIndex, this->frameIndex);
|
||||
@@ -203,7 +203,7 @@ void sub_0802805C(Entity* this) {
|
||||
}
|
||||
|
||||
NONMATCH("asm/non_matching/likeLike/sub_0802810C.inc", void sub_0802810C(Entity* this)) {
|
||||
gPlayerState.jumpStatus = 0x41;
|
||||
gPlayerState.jump_status = 0x41;
|
||||
gPlayerState.field_0xa = 0;
|
||||
gPlayerState.flags &= 0xffffffef;
|
||||
gPlayerEntity.flags |= 0x80;
|
||||
|
||||
@@ -1220,9 +1220,9 @@ void sub_0803B724(Entity* param_1) {
|
||||
}
|
||||
|
||||
void sub_0803B798(void) {
|
||||
gPlayerState.jumpStatus = 0x41;
|
||||
gPlayerState.jump_status = 0x41;
|
||||
gPlayerState.field_0xa = 0;
|
||||
gPlayerState.flags &= 0xffef;
|
||||
gPlayerState.flags &= ~(0xffff0000 | PL_CAPTURED);
|
||||
gPlayerEntity.flags |= 0x80;
|
||||
gPlayerEntity.zVelocity = 0x18000;
|
||||
gPlayerEntity.z.HALF.HI = -10;
|
||||
@@ -1242,7 +1242,7 @@ void sub_0803B804(Entity* this) {
|
||||
|
||||
void sub_0803B824(Entity* this) {
|
||||
ResetPlayer();
|
||||
gPlayerState.field_0x1a[0] = gPlayerState.field_0x1a[0] | 0x80;
|
||||
gPlayerState.mobility = gPlayerState.mobility | 0x80;
|
||||
sub_0806FA90(this, &gPlayerEntity, gUnk_080CFD1D[this->type], 1);
|
||||
gPlayerEntity.spriteOffsetY = -6;
|
||||
gPlayerEntity.spritePriority.b1 = 0;
|
||||
@@ -1252,7 +1252,7 @@ u32 sub_0803B870(Entity* this) {
|
||||
Entity* entity;
|
||||
|
||||
entity = this->child;
|
||||
if ((entity->bitfield & 0x80) != 0 && (gPlayerState.flags & 0x10) != 0) {
|
||||
if ((entity->bitfield & 0x80) != 0 && (gPlayerState.flags & PL_CAPTURED)) {
|
||||
this->action = 0x18;
|
||||
this->actionDelay = 0x44;
|
||||
this->spriteSettings.draw = 0;
|
||||
|
||||
@@ -83,7 +83,7 @@ void sub_080230E4(Entity* this) {
|
||||
gPlayerEntity.zVelocity = 0x18000;
|
||||
gPlayerEntity.direction = 0xff;
|
||||
gPlayerEntity.iframes = -0x14;
|
||||
gPlayerState.jumpStatus = 0x41;
|
||||
gPlayerState.jump_status = 0x41;
|
||||
gPlayerState.flags &= 0xfff7ffff;
|
||||
}
|
||||
|
||||
@@ -262,7 +262,7 @@ void sub_0802351C(Entity* this) {
|
||||
if (this->field_0x7c.BYTES.byte3 == 0) {
|
||||
if (this->type2 == 0) {
|
||||
gPlayerEntity.animationState = this->animationState & 7;
|
||||
gPlayerState.flags |= PL_TRAPPED;
|
||||
gPlayerState.flags |= PL_MOLDWORM_CAPTURED;
|
||||
PositionRelative(this, &gPlayerEntity, 0, gUnk_080CBC90[this->animationState & 7] << 0x10);
|
||||
gPlayerEntity.spriteOffsetY = -gUnk_080CBC90[this->animationState & 7];
|
||||
}
|
||||
@@ -397,7 +397,7 @@ void sub_08023894(Entity* this) {
|
||||
this->parent->field_0x7c.BYTES.byte3 = 1;
|
||||
InitializeAnimation(this, this->animationState);
|
||||
if (this->parent->type2 == 0) {
|
||||
gPlayerState.flags |= PL_RELEASED;
|
||||
gPlayerState.flags |= PL_MOLDWORM_RELEASED;
|
||||
gPlayerEntity.x.HALF.HI = this->x.HALF.HI;
|
||||
gPlayerEntity.y.HALF.HI = this->y.HALF.HI;
|
||||
gPlayerEntity.direction = DirectionRoundUp(GetFacingDirection(*(Entity**)&this->field_0x74, this));
|
||||
|
||||
@@ -931,8 +931,8 @@ void OctorokBoss_ExecuteAttackVacuum(Entity* this) {
|
||||
}
|
||||
if (tmp < 0x10) {
|
||||
if (sub_0806FC80(this, &gPlayerEntity, 0xf0) != 0) {
|
||||
if ((gPlayerState.flags & 0x800) == 0) {
|
||||
if ((gPlayerEntity.flags & 0x80) != 0) {
|
||||
if ((gPlayerState.flags & PL_FROZEN) == 0) {
|
||||
if ((gPlayerEntity.flags & PL_MINISH) != 0) {
|
||||
sub_0806F62C(&gPlayerEntity, 0x280, -GET_ANGLE_HI(this));
|
||||
if (sub_0806FC80(this, &gPlayerEntity, 0x48) != 0) {
|
||||
this->field_0x80.HALF.LO = 1;
|
||||
@@ -981,7 +981,7 @@ void OctorokBoss_ExecuteAttackVacuum(Entity* this) {
|
||||
OctorokBoss_SetAttackTimer(this);
|
||||
} else {
|
||||
GET_TIMER(this)--;
|
||||
if ((gPlayerState.flags == 0x800) && (GET_TIMER(this) == 0x3c)) {
|
||||
if ((gPlayerState.flags == PL_FROZEN) && (GET_TIMER(this) == 0x3c)) {
|
||||
tmp = sub_080045DA(gPlayerEntity.x.WORD - this->x.WORD, gPlayerEntity.y.WORD - this->y.WORD);
|
||||
if ((u8)((tmp - ((u8)-GET_ANGLE_HI(this) ^ 0x80))) > 0x80) {
|
||||
GET_HELPER(this)->targetAngle = GET_ANGLE_HI(this) + 0x30;
|
||||
|
||||
+6
-6
@@ -392,10 +392,10 @@ void sub_080244E8(Entity* this) {
|
||||
sub_080249DC(this);
|
||||
this->cutsceneBeh.HALF.HI = gPlayerEntity.spritePriority.b1;
|
||||
gPlayerEntity.flags &= 0x7f;
|
||||
gPlayerState.flags |= 0x100;
|
||||
gPlayerState.flags |= PL_DISABLE_ITEMS;
|
||||
gPlayerState.field_0xa |= 0x80;
|
||||
if (gPlayerState.swimState != 0) {
|
||||
gPlayerState.swimState = 0;
|
||||
if (gPlayerState.swim_state != 0) {
|
||||
gPlayerState.swim_state = 0;
|
||||
}
|
||||
}
|
||||
break;
|
||||
@@ -636,7 +636,7 @@ bool32 sub_08024B38(Entity* this) {
|
||||
Entity* ent;
|
||||
|
||||
if (gPlayerState.hurtBlinkSpeed != 0) {
|
||||
if (gPlayerState.swimState == 1) {
|
||||
if (gPlayerState.swim_state == 1) {
|
||||
if (gPlayerState.hurtBlinkSpeed > 3) {
|
||||
gPlayerState.hurtBlinkSpeed -= 3;
|
||||
} else {
|
||||
@@ -806,7 +806,7 @@ NONMATCH("asm/non_matching/pesto/sub_08024E4C.inc", void sub_08024E4C(Entity* th
|
||||
Entity* player = &gPlayerEntity;
|
||||
|
||||
ResetPlayer();
|
||||
gPlayerState.flags |= 0x100;
|
||||
gPlayerState.flags |= PL_DISABLE_ITEMS;
|
||||
gPlayerState.field_0xa |= 0x80;
|
||||
gPlayerState.queued_action = PLAYER_0807204C;
|
||||
gPlayerState.field_0x38 = 0x14;
|
||||
@@ -829,7 +829,7 @@ END_NONMATCH
|
||||
|
||||
void sub_08024F50(Entity* this) {
|
||||
gPlayerState.field_0xa = 0;
|
||||
gPlayerState.flags &= ~0x100;
|
||||
gPlayerState.flags &= ~PL_DISABLE_ITEMS;
|
||||
CopyPosition(this, &gPlayerEntity);
|
||||
gPlayerEntity.action = 1;
|
||||
COLLISION_ON(&gPlayerEntity);
|
||||
|
||||
@@ -163,7 +163,7 @@ void sub_0802953C(Entity* this) {
|
||||
sub_080296D8(this);
|
||||
} else {
|
||||
ResetPlayer();
|
||||
gPlayerState.field_0x1a[0] |= 0x80;
|
||||
gPlayerState.mobility |= 0x80;
|
||||
PositionRelative(this, &gPlayerEntity, 0, 0x10000);
|
||||
pbVar3 = GetSpriteSubEntryOffsetDataPointer((u16)this->spriteIndex, this->frameIndex);
|
||||
gPlayerEntity.spriteOffsetX = pbVar3[0];
|
||||
@@ -230,8 +230,8 @@ void sub_080296C8(Entity* this) {
|
||||
}
|
||||
|
||||
void sub_080296D8(Entity* this) {
|
||||
gPlayerState.jumpStatus = 0x41;
|
||||
gPlayerState.flags &= ~0x10;
|
||||
gPlayerState.jump_status = 0x41;
|
||||
gPlayerState.flags &= ~PL_CAPTURED;
|
||||
gPlayerEntity.flags |= 0x80;
|
||||
gPlayerEntity.zVelocity = 0x18000;
|
||||
gPlayerEntity.iframes = 0xa6;
|
||||
|
||||
@@ -71,7 +71,7 @@ void VaatiProjectileFunction1(Entity* this) {
|
||||
entity->flags = entity->flags & 0x7f;
|
||||
}
|
||||
} else {
|
||||
gPlayerState.flags &= 0xfffffeff; // using b.unk8 does not match
|
||||
gPlayerState.flags &= ~PL_DISABLE_ITEMS;
|
||||
entity = &gPlayerEntity;
|
||||
entity->flags = gPlayerEntity.flags | 0x80;
|
||||
}
|
||||
@@ -222,7 +222,7 @@ void VaatiProjectileFunction0Action9(Entity* this) {
|
||||
|
||||
void sub_0803E444(Entity* this) {
|
||||
ResetPlayer();
|
||||
gPlayerState.field_0x1a[0] = gPlayerState.field_0x1a[0] | 0x80;
|
||||
gPlayerState.mobility = gPlayerState.mobility | 0x80;
|
||||
gPlayerState.field_0xa = gPlayerState.field_0xa | 0x80;
|
||||
sub_0806FA90(this, this->field_0x4c, 0, -2);
|
||||
gPlayerEntity.spriteOffsetY += 0xe;
|
||||
|
||||
@@ -134,7 +134,7 @@ void sub_0802A69C(Entity* this) {
|
||||
|
||||
sub_0802A7D0(this);
|
||||
gPlayerState.field_0xa |= 0x80;
|
||||
gPlayerState.field_0x1a[0] |= 0x80;
|
||||
gPlayerState.mobility |= 0x80;
|
||||
gPlayerEntity.x.HALF.HI = this->field_0x7c.HALF.HI;
|
||||
gPlayerEntity.y.HALF.HI = this->field_0x80.HWORD;
|
||||
gPlayerEntity.z.HALF.HI = this->field_0x82.HWORD;
|
||||
@@ -168,7 +168,7 @@ void sub_0802A734(Entity* this) {
|
||||
} else {
|
||||
this->z.WORD -= 0x20000;
|
||||
gPlayerState.field_0xa |= 0x80;
|
||||
gPlayerState.field_0x1a[0] |= 0x80;
|
||||
gPlayerState.mobility |= 0x80;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -116,8 +116,8 @@ void sub_0802CE68(Entity* this) {
|
||||
u8 frames;
|
||||
|
||||
gPlayerState.field_0xa |= 0x80;
|
||||
gPlayerState.field_0x1a[0] |= 0x80;
|
||||
gPlayerState.flags |= 0x100;
|
||||
gPlayerState.mobility |= 0x80;
|
||||
gPlayerState.flags |= PL_DISABLE_ITEMS;
|
||||
if (!sub_0806FCB8(this, gPlayerEntity.x.HALF.HI, gPlayerEntity.y.HALF.HI, 4)) {
|
||||
this->direction = GetFacingDirection(this, &gPlayerEntity);
|
||||
LinearMoveUpdate(this);
|
||||
@@ -145,7 +145,7 @@ void sub_0802CEF4(Entity* this) {
|
||||
this->spriteSettings.shadow = 1;
|
||||
}
|
||||
gPlayerState.field_0xa |= 0x80;
|
||||
gPlayerState.field_0x1a[0] |= 0x80;
|
||||
gPlayerState.mobility |= 0x80;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user