From 7dbfa2e4e9eab5e0597b061666122217efc4cf62 Mon Sep 17 00:00:00 2001 From: Alan Date: Sat, 1 Aug 2026 02:23:12 -0400 Subject: [PATCH] Tweak terror spider egg laying messages. (#32347) --- .../simple_animal/hostile/terror_spiders/queen_terror.dm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/code/modules/mob/living/simple_animal/hostile/terror_spiders/queen_terror.dm b/code/modules/mob/living/simple_animal/hostile/terror_spiders/queen_terror.dm index dd1183d506e..ab7b3c2a048 100644 --- a/code/modules/mob/living/simple_animal/hostile/terror_spiders/queen_terror.dm +++ b/code/modules/mob/living/simple_animal/hostile/terror_spiders/queen_terror.dm @@ -252,13 +252,12 @@ var/list/eggtypes_uncapped = list(TS_DESC_RED, TS_DESC_GRAY, TS_DESC_GREEN) var/eggtype = tgui_input_list(src, "What kind of eggs?", "Laying Eggs", eggtypes) + if(!(eggtype in eggtypes)) + return FALSE if(canlay < 1) // this was checked before input() but we have to check again to prevent them spam-clicking the popup. to_chat(src, SPAN_DANGER("Too soon to lay another egg.")) return - if(!(eggtype in eggtypes)) - to_chat(src, SPAN_DANGER("Unrecognized egg type.")) - return FALSE // Multiple of eggtypes_uncapped can be laid at once. Other types must be laid one at a time (to prevent exploits) var/numlings = 1 @@ -270,7 +269,7 @@ else if(canlay == 2) numlings = input("How many in the batch?") as null|anything in list(1, 2) if(eggtype == null || numlings == null) - to_chat(src, SPAN_DANGER("Cancelled.")) + to_chat(src, SPAN_DANGER("You stop laying eggs.")) return if(!isturf(loc)) to_chat(src, SPAN_DANGER("Eggs can only be laid while standing on a floor."))