From 6cf1580dc4e77f1f956243d858567f6b75bf577d Mon Sep 17 00:00:00 2001 From: Farie82 Date: Sat, 28 Jan 2023 17:57:37 +0100 Subject: [PATCH] Stops the mother of terror from shitting out too much jelly (#20307) --- .../living/simple_animal/hostile/terror_spiders/mother.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/living/simple_animal/hostile/terror_spiders/mother.dm b/code/modules/mob/living/simple_animal/hostile/terror_spiders/mother.dm index 36077299d94..4c3ebf9ee10 100644 --- a/code/modules/mob/living/simple_animal/hostile/terror_spiders/mother.dm +++ b/code/modules/mob/living/simple_animal/hostile/terror_spiders/mother.dm @@ -82,9 +82,12 @@ to_chat(src, "Cannot secrete jelly in space.") return visible_message("[src] begins to secrete royal jelly.") - if(do_after(src, 100, target = loc)) + if(do_after_once(src, 100, target = loc, attempt_cancel_message = "You stop producing jelly.")) if(loc != mylocation) return + if(regen_points < jelly_cost) + to_chat(src, "You only have [regen_points] of the [jelly_cost] regeneration points you need to do this.") + return new /obj/structure/spider/royaljelly(loc) regen_points -= jelly_cost