diff options
| author | Reinmmar <herwig.orlich@gmail.com> | 2023-09-17 21:07:48 +0200 |
|---|---|---|
| committer | Reinmmar <herwig.orlich@gmail.com> | 2023-09-17 21:07:48 +0200 |
| commit | ab3e4ef0f4d0e7c081ccc00b283df15324629489 (patch) | |
| tree | a921ba1820b378cb6042fb6f483f8ddd04ff89ca /src | |
| parent | e994fab66a6ef731908b0655f3c8d2bbb8b4ac5d (diff) | |
Labeled one Portal Type and some animations
Diffstat (limited to 'src')
| -rw-r--r-- | src/enemy/chuchuBoss.c | 2 | ||||
| -rw-r--r-- | src/enterPortalSubtask.c | 2 | ||||
| -rw-r--r-- | src/item/itemPegasusBoots.c | 4 | ||||
| -rw-r--r-- | src/item/itemRocsCape.c | 2 | ||||
| -rw-r--r-- | src/item/itemSword.c | 2 | ||||
| -rw-r--r-- | src/object/jarPortal.c | 2 | ||||
| -rw-r--r-- | src/object/keyStealingTakkuri.c | 2 | ||||
| -rw-r--r-- | src/object/lilypadLarge.c | 2 | ||||
| -rw-r--r-- | src/player.c | 6 | ||||
| -rw-r--r-- | src/playerUtils.c | 4 |
10 files changed, 14 insertions, 14 deletions
diff --git a/src/enemy/chuchuBoss.c b/src/enemy/chuchuBoss.c index ab565a0d..ad64876b 100644 --- a/src/enemy/chuchuBoss.c +++ b/src/enemy/chuchuBoss.c @@ -554,7 +554,7 @@ void sub_080262A8(ChuchuBossEntity* this) { super->timer = 1; sub_080276F4(super, 6, 1); if (super->type2 == 0) { - gPlayerState.animation = 0x104; + gPlayerState.animation = ANIM_DOOR; this->unk_84->unk_03 = 1; } else { this->unk_7c = 0; diff --git a/src/enterPortalSubtask.c b/src/enterPortalSubtask.c index 379ee2e7..fbb94ccc 100644 --- a/src/enterPortalSubtask.c +++ b/src/enterPortalSubtask.c @@ -258,7 +258,7 @@ bool32 sub_0804AD18(void) { case 6: return FALSE; case 3: - case 4: + case PT_POT: case 5: default: return FALSE; diff --git a/src/item/itemPegasusBoots.c b/src/item/itemPegasusBoots.c index 7b487cee..e6862802 100644 --- a/src/item/itemPegasusBoots.c +++ b/src/item/itemPegasusBoots.c @@ -71,7 +71,7 @@ void sub_080768F8(ItemBehavior* this, u32 index) { if ((gPlayerState.flags & PL_MINISH) == 0) { this->timer = 0x10; } else { - gPlayerState.animation = 0xc14; + gPlayerState.animation = ANIM_C14; } sub_08077D38(this, index); sub_08076964(this, index); @@ -119,7 +119,7 @@ void sub_08076964(ItemBehavior* this, u32 index) { SetItemAnim(this, 0x104); return; } else { - gPlayerState.animation = 0xc10; + gPlayerState.animation = ANIM_C10; return; } } else { diff --git a/src/item/itemRocsCape.c b/src/item/itemRocsCape.c index dee55950..cfb165a3 100644 --- a/src/item/itemRocsCape.c +++ b/src/item/itemRocsCape.c @@ -69,7 +69,7 @@ void sub_08076758(ItemBehavior* this, u32 index) { gPlayerEntity.field_0x7a.HWORD = 2; gPlayerEntity.zVelocity = Q_16_16(2.0); gPlayerState.jump_status |= 0x10; - gPlayerState.animation = 0x288; + gPlayerState.animation = ANIM_ROCS_CAPE; SoundReq(SFX_172); } } else { diff --git a/src/item/itemSword.c b/src/item/itemSword.c index 5598e0d7..f34718f0 100644 --- a/src/item/itemSword.c +++ b/src/item/itemSword.c @@ -31,7 +31,7 @@ void sub_08075338(ItemBehavior* this, u32 index) { if (gPlayerState.flags & PL_MINISH) { this->priority |= 0x80; sub_08077D38(this, index); - gPlayerState.animation = 0xc00; + gPlayerState.animation = ANIM_SWORD_MINISH; SoundReq(SFX_PLY_VO1); return; } diff --git a/src/object/jarPortal.c b/src/object/jarPortal.c index 5c5fdc2d..19c05a57 100644 --- a/src/object/jarPortal.c +++ b/src/object/jarPortal.c @@ -122,7 +122,7 @@ void sub_0808C01C(JarPortalEntity* this, u32 r1) { gArea.portal_x = super->x.HALF.HI; gArea.portal_y = super->y.HALF.HI; gArea.portal_exit_dir = 2; - type = 4; + type = PT_POT; if (r1 != 0) type = 2; gArea.portal_type = type; diff --git a/src/object/keyStealingTakkuri.c b/src/object/keyStealingTakkuri.c index 5d5f02ba..8a5a40b1 100644 --- a/src/object/keyStealingTakkuri.c +++ b/src/object/keyStealingTakkuri.c @@ -477,7 +477,7 @@ void sub_0809E1F0(KeyStealingTakkuriEntity* this) { void sub_0809E210(KeyStealingTakkuriEntity* this) { gPlayerEntity.animationState = GetAnimationStateForDirection8(GetFacingDirection(&gPlayerEntity, super)) & 0xfe; - gPlayerState.animation = 0x100; + gPlayerState.animation = ANIM_DEFAULT; } void sub_0809E238(KeyStealingTakkuriEntity* this) { diff --git a/src/object/lilypadLarge.c b/src/object/lilypadLarge.c index 9b380797..5c1e9949 100644 --- a/src/object/lilypadLarge.c +++ b/src/object/lilypadLarge.c @@ -551,7 +551,7 @@ void sub_08085E74(LilypadLargeEntity* this) { gPlayerEntity.x.HALF.LO = 0; gPlayerEntity.y.HALF.LO = 0; gPlayerEntity.direction = super->direction; - gPlayerState.animation = 0x100; + gPlayerState.animation = ANIM_DEFAULT; gRoomControls.camera_target = super; if (gPlayerState.item != NULL) { DeleteEntity(gPlayerState.item); diff --git a/src/player.c b/src/player.c index de8fa5eb..397b4857 100644 --- a/src/player.c +++ b/src/player.c @@ -1049,7 +1049,7 @@ static void PortalJumpOnUpdate(Entity* this) { this->subAction = 1; this->animationState = IdleSouth; this->spriteSettings.flipX = FALSE; - if (gArea.portal_type == 4) { + if (gArea.portal_type == PT_POT) { gPlayerState.animation = ANIM_ENTER_POT; } } @@ -1090,7 +1090,7 @@ static void PortalStandUpdate(Entity* this) { this->timer = 8; } - if (gArea.portal_type == 4) { + if (gArea.portal_type == PT_POT) { if (this->frame == 0) { UpdateAnimationSingleFrame(this); return; @@ -2049,7 +2049,7 @@ static void PlayerRollInit(Entity* this) { if (playerFlags & PL_NO_CAP) { gPlayerState.animation = ANIM_ROLL_NOCAP; } else { - gPlayerState.animation = 0x3a0; + gPlayerState.animation = ANIM_ROLL; } } gPlayerState.flags |= PL_ROLLING; diff --git a/src/playerUtils.c b/src/playerUtils.c index 97767102..2ea00c46 100644 --- a/src/playerUtils.c +++ b/src/playerUtils.c @@ -1975,7 +1975,7 @@ void ResolvePlayerAnimation(void) { case 5: anim = ANIM_DEFAULT_NOCAP; break; - case 4: + case PT_POT: anim = ANIM_DEFAULT; break; default: @@ -2016,7 +2016,7 @@ void ResolvePlayerAnimation(void) { return; } if ((gPlayerState.flags & PL_USE_PORTAL) != 0) { - anim = (gArea.portal_type == 4) ? 0x530 : 0x2c2; + anim = (gArea.portal_type == PT_POT) ? ANIM_IN_POT : ANIM_PORTAL; } else { if (gPlayerState.sword_state != 0) { anim = ANIM_SWORD_CHARGE_END; |
