From e304a1a4c54e8c650f9c938a55ec5ec999beac76 Mon Sep 17 00:00:00 2001
From: Julius <juliusfe@stud.ntnu.no>
Date: Sat, 10 Dec 2022 14:03:53 +0100
Subject: [PATCH] Fixed cooldown indicator

---
 MrBigsock/Assets/Code/PlayerController.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/MrBigsock/Assets/Code/PlayerController.cs b/MrBigsock/Assets/Code/PlayerController.cs
index 7b2540a0..d423498a 100644
--- a/MrBigsock/Assets/Code/PlayerController.cs
+++ b/MrBigsock/Assets/Code/PlayerController.cs
@@ -188,7 +188,7 @@ namespace BigSock {
 
 			// Update the UI.
 			AbilityUI?.SetCharge(ability.Index, ability.ChargePercent);
-			AbilityUI?.SetCooldown(ability.Index, ability.CooldownPercent);
+			AbilityUI?.SetCooldown(ability.Index, 1f - ability.CooldownPercent);
 
 		}
 
-- 
GitLab