From 4618cc69e0b53a27d69e3f478d7d13eaf3b12ad1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kot=C3=A1b=20Petr?= <518-kotabpe@users.noreply.localhost> Date: Mon, 9 Jan 2023 15:14:29 +0100 Subject: [PATCH] Bugfix. --- TestGame/Scenes/ShopScene.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/TestGame/Scenes/ShopScene.cs b/TestGame/Scenes/ShopScene.cs index 580b8c1..f5e0646 100644 --- a/TestGame/Scenes/ShopScene.cs +++ b/TestGame/Scenes/ShopScene.cs @@ -12,7 +12,7 @@ namespace TestGame.Scenes { internal class ShopScene : Scene { - private const int upgradesPrice = 10; + private const int upgradesPrice = 30; private const float wateringUpgradeStep = 0.1f; private const int wateringUpgradePrice = upgradesPrice; @@ -324,6 +324,9 @@ private void CreateLeaveButton() public void SellItem(Item item, int quantity) { + if (item is WaterCan) + return; + inventory.Coins += item.Price * quantity; item.Quantity -= quantity; }