From 1694a28784036b0358c245de8914681a66394d69 Mon Sep 17 00:00:00 2001 From: SatinIsle Date: Fri, 6 Sep 2024 19:24:24 +0100 Subject: [PATCH] Temporarily disables sleeping on simple mobs Due to a bug that causes them to never wake up again, the previous attempt at fixing this caused death to stop working, so I'll leave it like this until a solution is found whilst leaving the option in for carbon mobs. Not the most elegant solution but hopefully only temporary, seeing as simple mobs may be even more accessible to players soon. --- code/modules/mob/living/living.dm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/modules/mob/living/living.dm b/code/modules/mob/living/living.dm index 3cb39ea3f8..cbb6d7fac3 100644 --- a/code/modules/mob/living/living.dm +++ b/code/modules/mob/living/living.dm @@ -1334,6 +1334,11 @@ /mob/living/verb/mob_sleep() set name = "Sleep" set category = "IC" + + if(istype(src, /mob/living/simple_mob)) + to_chat(src, SPAN_NOTICE("Sleeping is currently disabled on simple mobs due to a bug.")) + return + if(!toggled_sleeping && alert(src, "Are you sure you wish to go to sleep? You will snooze until you use the Sleep verb again.", "Sleepy Time", "No", "Yes") == "No") return toggled_sleeping = !toggled_sleeping