mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 20:15:47 +01:00
Bug fixes
This commit is contained in:
@@ -69,8 +69,7 @@
|
||||
return 0
|
||||
|
||||
/obj/machinery/transformer/process()
|
||||
. = ..()
|
||||
if(cooldown && cooldown_timer <= world.time)
|
||||
if(cooldown && (cooldown_timer <= world.time))
|
||||
cooldown = FALSE
|
||||
update_icon()
|
||||
|
||||
|
||||
@@ -124,11 +124,12 @@
|
||||
|
||||
/obj/effect/countdown/transformer
|
||||
name = "transformer countdown"
|
||||
text_color = "#4C5866"
|
||||
|
||||
/obj/effect/countdown/transformer/get_value()
|
||||
var/obj/machinery/transformer/T = attached_to
|
||||
if(!istype(T))
|
||||
return
|
||||
else if(T.cooldown)
|
||||
var/seconds_left = (T.cooldown_timer - world.time) / 10
|
||||
return "[max(seconds_left, 0)]"
|
||||
var/seconds_left = max(0, (T.cooldown_timer - world.time) / 10)
|
||||
return "[round(seconds_left)]"
|
||||
|
||||
Reference in New Issue
Block a user