From 7f1913677d73bc96b0a1bac649b3518e95d0fdbf Mon Sep 17 00:00:00 2001
From: miepzerino <o.skotnik@gmail.com>
Date: Wed, 02 Apr 2025 17:05:30 +0000
Subject: [PATCH] #41 changed ground layer to start at y=-1

---
 Assets/Scripts/Managers/GameManager.cs |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/Assets/Scripts/Managers/GameManager.cs b/Assets/Scripts/Managers/GameManager.cs
index 21fb0d4..b5a90bf 100644
--- a/Assets/Scripts/Managers/GameManager.cs
+++ b/Assets/Scripts/Managers/GameManager.cs
@@ -165,8 +165,9 @@
                     if (playerInventory != null)
                     {
                         Item item = dropable.dropable;
-                        playerInventory.AddItem(item, dropable.dropAmount);
-                        CharacterLootObtained(tileGameObject.transform.position, item, dropable.dropAmount);
+                        int dropAmount = dropable.GetRandomDropAmount();
+                        playerInventory.AddItem(item, dropAmount);
+                        CharacterLootObtained(tileGameObject.transform.position, item, dropAmount);
                     }
                 }
                 tilemap.SetTile(cellCoord, null);

--
Gitblit v1.9.3