Skip to content

Commit

Permalink
Bugfix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kotáb Petr committed Jan 9, 2023
1 parent 33b4283 commit 4618cc6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion TestGame/Scenes/ShopScene.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 4618cc6

Please sign in to comment.