mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
if timer is 0 < x <= 90
This commit is contained in:
1 parent
37bf93267f
commit
347ff21137
1 file changed
+1
-1
+1
-1
@@ -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());
|
||||
|
||||
Reference in new issue
Block a user