From 0f43d3a24a26435c5805261af40880cb96bdc9f2 Mon Sep 17 00:00:00 2001
From: miepzerino <o.skotnik@gmail.com>
Date: Sun, 06 Apr 2025 16:38:43 +0000
Subject: [PATCH] #48 added chunk caching

---
 Assets/Scripts/Prefab/Drilling/Dropable.cs |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/Assets/Scripts/Prefab/Drilling/Dropable.cs b/Assets/Scripts/Prefab/Drilling/Dropable.cs
index 884458c..568af73 100644
--- a/Assets/Scripts/Prefab/Drilling/Dropable.cs
+++ b/Assets/Scripts/Prefab/Drilling/Dropable.cs
@@ -1,3 +1,4 @@
+using Assets.Scripts.Attributes;
 using System.Collections;
 using System.Collections.Generic;
 using UnityEngine;
@@ -6,5 +7,10 @@
 {
     public bool isDropable = true;
     public Item dropable;
-    public int dropAmount = 1;
+    [MinMax(1, 10)]
+    public Vector2 dropRange = new Vector2(1, 3);
+    public int GetRandomDropAmount()
+    {
+        return Random.Range((int)dropRange.x, (int)dropRange.y + 1);
+    }
 }

--
Gitblit v1.9.3