Merge pull request #16271 from SatinIsle/no-sleep-for-u

Temporarily disables sleeping on simple mobs
This commit is contained in:
Novacat
2024-09-06 16:11:08 -04:00
committed by GitHub
+5
View File
@@ -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