if timer is 0 < x <= 90

This commit is contained in:
Gurge44 committed 2024-05-28 18:04:56 +02:00
1 parent 37bf93267f
commit 347ff21137
1 file changed
+1 -1
+1 -1
View File
@@ -317,7 +317,7 @@ class ActionButtonSetFillUpPatch
{
public static void Postfix(ActionButton __instance, [HarmonyArgument(0)] float timer)
{
if (__instance.isCoolingDown)
if (__instance.isCoolingDown && timer is <= 90f and > 0f)
{
var color = PlayerControl.LocalPlayer.IsShifted() ? Color.green : Color.white;
__instance.cooldownTimerText.text = Utils.ColorString(color, Mathf.CeilToInt(timer).ToString());