Adds hourglass (#44384)

* Adds hourglass

* Proper icon and animation.

* Makes throwing not break animate.

* Adds hourglass to library game vendor.
This commit is contained in:
AnturK
2019-06-10 10:31:24 +12:00
committed by oranges
parent 152e03cfd7
commit e0824114db
6 changed files with 102 additions and 6 deletions
+16 -4
View File
@@ -63,6 +63,12 @@
/obj/effect/countdown/ex_act(severity, target) //immune to explosions
return
/obj/effect/countdown/singularity_pull()
return
/obj/effect/countdown/singularity_act()
return
/obj/effect/countdown/syndicatebomb
name = "syndicate bomb countdown"
@@ -154,8 +160,14 @@
var/time_left = max(0, (A.death_time - world.time) / 10)
return round(time_left)
/obj/effect/countdown/singularity_pull()
return
/obj/effect/countdown/hourglass
name = "hourglass countdown"
/obj/effect/countdown/hourglass/get_value()
var/obj/item/hourglass/H = attached_to
if(!istype(H))
return
else
var/time_left = max(0, (H.finish_time - world.time) / 10)
return round(time_left)
/obj/effect/countdown/singularity_act()
return