Skip to content

Commit

Permalink
Adjust bottle fixes to ensure we don't set ext data on default items. (
Browse files Browse the repository at this point in the history
  • Loading branch information
PhlexPlexico authored Feb 27, 2024
1 parent a0fc082 commit 29388ce
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions code/source/rnd/item_override.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -672,8 +672,14 @@ namespace rnd {
override = ItemOverride_Lookup(fromActor, (u16)gctx->scene, getItemId);
if (override.key.all != 0) {
// Override the stored get item if we are a bottled item.
if (override.value.getItemId == 0x59 || override.value.getItemId == 0x60 || override.value.getItemId == 0x6A ||
override.value.getItemId == 0x6E || override.value.getItemId == 0x6F) {
// If we're in the default spot to retrieve these items, set stored to NONE to avoid
// This should avoid ext data being set before getting an actual bottle.
if (storedGetItemId == 0x59 || storedGetItemId == 0x60 || storedGetItemId == 0x6A || storedGetItemId == 0x6E ||
storedGetItemId == 0x6F) {
storedGetItemId = GetItemID::GI_NONE;
} else if (override.value.getItemId == 0x59 || override.value.getItemId == 0x60 ||
override.value.getItemId == 0x6A || override.value.getItemId == 0x6E ||
override.value.getItemId == 0x6F) {
storedGetItemId = (GetItemID) override.value.getItemId;
}
}
Expand Down

0 comments on commit 29388ce

Please sign in to comment.