Skip to content

Commit

Permalink
Change setting back to zero to ensure the option works properly.
Browse files Browse the repository at this point in the history
Put some less restrictions on repeatable items on cycle reset.
  • Loading branch information
PhlexPlexico committed Feb 22, 2024
1 parent 9c46098 commit c7fde8c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion code/source/rnd/chest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace rnd {
game::actors::EnBoxType Chest_OverrideSize(game::actors::En_Box* actor, game::GlobalContext* gctx) {
// First check to see if setting is enabled.
// TODO: Create setting
if (gSettingsContext.chestSize == 1) {
if (gSettingsContext.chestSize == 0) {
return (game::actors::EnBoxType)0xFF;
}
s16 gid = (actor->dyna.params << 0x14) >> 0x19;
Expand Down
6 changes: 3 additions & 3 deletions code/source/rnd/item_override.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ namespace rnd {
rItemOverrides[0].value.looksLikeItemId = 0x26;
rItemOverrides[1].key.scene = 0x6F;
rItemOverrides[1].key.type = ItemOverride_Type::OVR_CHEST;
rItemOverrides[1].value.getItemId = 0x02;
rItemOverrides[1].value.looksLikeItemId = 0x02;
rItemOverrides[1].value.getItemId = 0x0C;
rItemOverrides[1].value.looksLikeItemId = 0x0C;
rItemOverrides[2].key.scene = 0x12;
rItemOverrides[2].key.type = ItemOverride_Type::OVR_COLLECTABLE;
rItemOverrides[2].value.getItemId = 0x37;
Expand Down Expand Up @@ -592,7 +592,7 @@ namespace rnd {
bool ItemOverride_IsItemObtained(ItemOverride override) {
ItemRow* itemToBeGiven = ItemTable_GetItemRow(override.value.getItemId);
return (game::HasMask((game::ItemId)itemToBeGiven->itemId) || game::HasItem((game::ItemId)itemToBeGiven->itemId) ||
(itemToBeGiven->itemId > 0x49 && itemToBeGiven->itemId < 0x9E));
(itemToBeGiven->itemId > 0x49 && itemToBeGiven->itemId < 0x81));
}

extern "C" {
Expand Down

0 comments on commit c7fde8c

Please sign in to comment.