mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 14:39:58 +01:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user