Skip to content

Commit

Permalink
bugfix: Spell Cooldown Visual (#3725)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gottfrei authored Oct 17, 2023
1 parent 4d88505 commit c7ce692
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/datums/spell_cooldown/spell_charges.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit c7ce692

Please sign in to comment.