Classify chest CMC for bombchus as lesser, not junk (#6349)
This commit is contained in:
@@ -582,20 +582,18 @@ 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;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user