From c00edb928b9c41d7fbda6e58d882e7fd9f07e884 Mon Sep 17 00:00:00 2001 From: Garrett Cox Date: Mon, 10 Oct 2022 03:19:44 -0500 Subject: [PATCH] [#1716] Prevent infinite ammo cheat from filling bombchus unless the item is obtained (#1723) --- soh/src/code/game.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/soh/src/code/game.c b/soh/src/code/game.c index 9089606e6..712bc6f2a 100644 --- a/soh/src/code/game.c +++ b/soh/src/code/game.c @@ -370,7 +370,7 @@ void GameState_Update(GameState* gameState) { } // 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; } }