[MIRROR] Flower Buds now have a countdown for ghosts for when they're going to hatch (#923)

* Flower Buds now have a countdown for ghosts for when they're going to hatch (#53648)

They're two minute timers with no indication, which makes kudzu kinda annoying to spectate.

* Flower Buds now have a countdown for ghosts for when they're going to hatch

Co-authored-by: tralezab <40974010+tralezab@users.noreply.github.com>
This commit is contained in:
SkyratBot
2020-09-23 02:14:52 +01:00
committed by GitHub
co-authored by tralezab
parent 76e19dd9dd
commit 453c775b48
2 changed files with 19 additions and 0 deletions
+12
View File
@@ -157,3 +157,15 @@
var/obj/machinery/computer/arena/C = A.get_controller()
var/time_left = max(0, (C.start_time - world.time) / 10)
return round(time_left)
/obj/effect/countdown/flower_bud
name = "flower bud countdown"
/obj/effect/countdown/flower_bud/get_value()
var/obj/structure/alien/resin/flower_bud_enemy/bud = attached_to
if(!istype(bud))
return
if(!bud.finish_time)
return -1
var/time_left = max(0, (bud.finish_time - world.time) / 10)
return time_left