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 | 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