[#1716] Prevent infinite ammo cheat from filling bombchus unless the item is obtained (#1723)

This commit is contained in:
Garrett Cox 2022-10-10 03:19:44 -05:00 committed by GitHub
parent b0510d78f8
commit c00edb928b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -370,7 +370,7 @@ void GameState_Update(GameState* gameState) {
} }
// Bombchus (max: 50, no upgrades) // Bombchus (max: 50, no upgrades)
if (AMMO(ITEM_BOMBCHU) < 50) { if (INV_CONTENT(ITEM_BOMBCHU) == ITEM_BOMBCHU && AMMO(ITEM_BOMBCHU) < 50) {
AMMO(ITEM_BOMBCHU) = 50; AMMO(ITEM_BOMBCHU) = 50;
} }
} }