Skip to content

Commit

Permalink
Update gold skulltula actor check in key override.
Browse files Browse the repository at this point in the history
  • Loading branch information
PhlexPlexico committed Jul 7, 2024
1 parent 69ad906 commit 0e234f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions code/include/game/actor.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ namespace game::act {
EnJs = 0x0085,
// Cursed Man Spider House
EnSsh = 0x0090,
// Gold Skullutla
EnSi = 0x0099,
// Powder Keg Trial Goron
EnGo = 0x00D5,
// [1] Deku Palace / Woodfall Temple moving platforms (after player lands on them)
Expand Down
4 changes: 2 additions & 2 deletions code/source/rnd/item_override.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ namespace rnd {
retKey.scene = scene;
retKey.type = ItemOverride_Type::OVR_COLLECTABLE;
retKey.flag = actor->overlay_info->info->flags;
} else if (actor->id == (game::act::Id)game::ItemId::GoldSkulltula) { // Gold Skulltula Token
retKey.scene = (actor->params >> 8) & 0x1F;
} else if (actor->id == game::act::Id::EnSi) { // Gold Skulltula Token
retKey.scene = scene;
retKey.type = ItemOverride_Type::OVR_SKULL;
retKey.flag = actor->params & 0xFF;
} else if (scene == 0x14C0 && actor->id == (game::act::Id)0x0075) { // Grotto Salesman
Expand Down

0 comments on commit 0e234f1

Please sign in to comment.