Skip to content

Commit

Permalink
Add additional check to see if item is received in skulltula token pl…
Browse files Browse the repository at this point in the history
…acements. (#99)
  • Loading branch information
PhlexPlexico authored Dec 30, 2024
1 parent 4176170 commit 5063201
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion code/source/rnd/item_override.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,8 @@ namespace rnd {
}
} else if (override.key.type == ItemOverride_Type::OVR_SKULL &&
(gctx->scene == game::SceneId::SwampSpiderHouse || gctx->scene == game::SceneId::OceansideSpiderHouse) &&
ItemOverride_IsSkullCollected(fromActor, gctx->scene)) {
(ItemOverride_IsSkullCollected(fromActor, gctx->scene) &&
ItemOverride_IsItemObtainedOrEmptyBottle(override))) {
override.value.getItemId = 0x02;
override.value.looksLikeItemId = 0x02;
}
Expand Down
3 changes: 2 additions & 1 deletion code/source/rnd/models.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ namespace rnd {
ItemOverride override = ItemOverride_Lookup(actor, (u16)globalCtx->scene, baseItemId);

if (override.key.all != 0) {
if (override.key.type == ItemOverride_Type::OVR_SKULL && ItemOverride_IsSkullCollected(actor, globalCtx->scene)) {
if (override.key.type == ItemOverride_Type::OVR_SKULL && ItemOverride_IsSkullCollected(actor, globalCtx->scene) &&
ItemOverride_IsItemObtainedOrEmptyBottle(override)) {
override.value.getItemId = 0x02;
override.value.looksLikeItemId = 0x02;
}
Expand Down

0 comments on commit 5063201

Please sign in to comment.