Classify chest CMC for bombchus as lesser, not junk (#6349)

This commit is contained in:
Philip Dubé
2026-03-17 17:41:43 +00:00
committed by GitHub
parent 716f6bc042
commit 908ecbb795

View File

@@ -582,22 +582,20 @@ void EnBox_UpdateTexture(EnBox* this, PlayState* play) {
if (!isVanilla) { if (!isVanilla) {
getItemCategory = chestItem.getItemCategory; getItemCategory = chestItem.getItemCategory;
// If they have bombchus, don't consider the bombchu item major // If they have bombchus, don't consider the bombchu item major
if (INV_CONTENT(ITEM_BOMBCHU) == ITEM_BOMBCHU && if ((INV_CONTENT(ITEM_BOMBCHU) == ITEM_BOMBCHU &&
((chestItem.modIndex == MOD_RANDOMIZER && chestItem.getItemId == RG_PROGRESSIVE_BOMBCHU_BAG) || ((chestItem.modIndex == MOD_RANDOMIZER && chestItem.getItemId == RG_PROGRESSIVE_BOMBCHU_BAG) ||
(chestItem.modIndex == MOD_NONE && (chestItem.modIndex == MOD_NONE &&
(chestItem.getItemId == GI_BOMBCHUS_5 || chestItem.getItemId == GI_BOMBCHUS_10 || (chestItem.getItemId == GI_BOMBCHUS_5 || chestItem.getItemId == GI_BOMBCHUS_10 ||
chestItem.getItemId == GI_BOMBCHUS_20)))) { chestItem.getItemId == GI_BOMBCHUS_20)))) ||
getItemCategory = ITEM_CATEGORY_JUNK;
// If it's a bottle and they already have one, consider the item lesser // If it's a bottle and they already have one, consider the item lesser
} else if ((chestItem.modIndex == MOD_RANDOMIZER && chestItem.getItemId >= RG_BOTTLE_WITH_RED_POTION && ((chestItem.modIndex == MOD_RANDOMIZER && chestItem.getItemId >= RG_BOTTLE_WITH_RED_POTION &&
chestItem.getItemId <= RG_BOTTLE_WITH_POE) || chestItem.getItemId <= RG_BOTTLE_WITH_POE) ||
(chestItem.modIndex == MOD_NONE && (chestItem.modIndex == MOD_NONE &&
(chestItem.getItemId == GI_BOTTLE || chestItem.getItemId == GI_MILK_BOTTLE))) { (chestItem.getItemId == GI_BOTTLE || chestItem.getItemId == GI_MILK_BOTTLE)) &&
if (gSaveContext.inventory.items[SLOT_BOTTLE_1] != ITEM_NONE) { gSaveContext.inventory.items[SLOT_BOTTLE_1] != ITEM_NONE)) {
getItemCategory = ITEM_CATEGORY_LESSER; getItemCategory = ITEM_CATEGORY_LESSER;
} }
} }
}
switch (this->type) { switch (this->type) {
case ENBOX_TYPE_SMALL: case ENBOX_TYPE_SMALL: