From c7ce6926799fa5f18ea7bde39ce8af6d5765515f Mon Sep 17 00:00:00 2001 From: Zwei <35403274+Gottfrei@users.noreply.github.com> Date: Tue, 17 Oct 2023 03:32:19 +0300 Subject: [PATCH] bugfix: Spell Cooldown Visual (#3725) --- code/datums/spell_cooldown/spell_charges.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/datums/spell_cooldown/spell_charges.dm b/code/datums/spell_cooldown/spell_charges.dm index be541c147f6..adc599bd358 100644 --- a/code/datums/spell_cooldown/spell_charges.dm +++ b/code/datums/spell_cooldown/spell_charges.dm @@ -61,7 +61,7 @@ /datum/spell_cooldown/charges/statpanel_info() var/charge_string = charge_duration != 0 ? round(min(1, (charge_duration - (charge_time - world.time)) / charge_duration), 0.01) * 100 : 100 // need this for possible 0 charge duration var/recharge_string = recharge_duration != 0 ? round(min(1, (recharge_duration - (recharge_time - world.time)) / recharge_duration), 0.01) * 100 : 100 - return "[charge_string != 100 ? "[charge_string]%\n" : ""][recharge_string != 100 ? "[recharge_string]%\n" : ""][current_charges]/[max_charges]" + return "[charge_string != 100 ? "[charge_string]%\n" : ""][recharge_string != 100 ? "[recharge_string]%\n" : ""][current_charges != max_charges ? "[current_charges]/[max_charges]" : ""]" /datum/spell_cooldown/charges/get_availability_percentage()