Fixes tinkerer's caches displaying a negative time to produce components when clicked (#24195)

This commit is contained in:
Joan Lung
2017-02-18 22:21:08 +01:00
committed by AnturK
parent 4d4da6d0b4
commit a381072c16
@@ -81,7 +81,8 @@
if(is_servant_of_ratvar(user))
if(linkedwall)
if(wall_generation_cooldown > world.time)
user << "<span class='alloy'>[src] will produce a component in <b>[(world.time - wall_generation_cooldown) * 0.1]</b> seconds.</span>"
var/temp_time = (wall_generation_cooldown - world.time) * 0.1
user << "<span class='alloy'>[src] will produce a component in <b>[temp_time]</b> second[temp_time == 1 ? "":"s"].</span>"
else
user << "<span class='brass'>[src] is about to produce a component!</span>"
else if(anchored)