From c0e7dd3ef3a5349eda85c6c47102c07d5fc91a26 Mon Sep 17 00:00:00 2001
From: billc27 <110593711+billc27@users.noreply.github.com>
Date: Thu, 9 May 2024 18:16:49 +0700
Subject: [PATCH] fix: skill cutscene

---
 Assets/Scripts/Managers/GrenadeManager.cs | 4 ++--
 Assets/Scripts/Player/PlayerShooting.cs   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Assets/Scripts/Managers/GrenadeManager.cs b/Assets/Scripts/Managers/GrenadeManager.cs
index c6095c5..982c2d0 100644
--- a/Assets/Scripts/Managers/GrenadeManager.cs
+++ b/Assets/Scripts/Managers/GrenadeManager.cs
@@ -6,7 +6,7 @@ namespace Nightmare
 {
     public class GrenadeManager : MonoBehaviour
     {
-        public static double grenades;        // The player's score.
+        public static int grenades;        // The player's score.
 
 
         Text gText;                      // Reference to the Text component.
@@ -18,7 +18,7 @@ namespace Nightmare
             gText = GetComponent<Text>();
 
             // Reset the score.
-            grenades = double.PositiveInfinity;
+            grenades = 0;
         }
 
 
diff --git a/Assets/Scripts/Player/PlayerShooting.cs b/Assets/Scripts/Player/PlayerShooting.cs
index 4f53543..1bbb222 100644
--- a/Assets/Scripts/Player/PlayerShooting.cs
+++ b/Assets/Scripts/Player/PlayerShooting.cs
@@ -15,7 +15,7 @@ namespace Nightmare
         public float grenadeSpeed = 200f;
         public float grenadeFireDelay = 0.5f;
         public float damagePercent = 1;
-        int grenadeStock = 99;
+        int grenadeStock = int.MaxValue;
         
         float timer, grenadeTimer;
         public List<GameObject> weaponsList;
-- 
GitLab