From 5e14cc355fd3a4a27a0196f504fee16d68f39612 Mon Sep 17 00:00:00 2001
From: miepzerino <o.skotnik@gmail.com>
Date: Wed, 02 Apr 2025 17:25:03 +0000
Subject: [PATCH] #41 fixed item description text

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

diff --git a/Assets/Scripts/Managers/GameManager.cs b/Assets/Scripts/Managers/GameManager.cs
index 41e5ace..b5a90bf 100644
--- a/Assets/Scripts/Managers/GameManager.cs
+++ b/Assets/Scripts/Managers/GameManager.cs
@@ -165,10 +165,9 @@
                     if (playerInventory != null)
                     {
                         Item item = dropable.dropable;
-                        playerInventory.AddItem(item, dropable.dropAmount);
-                        Debug.Log("CellWorldPosition: " + cellWorldPosition);
-                        Debug.Log("TileGameObjectPosition: " + tileGameObject.transform.position);
-                        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