mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-11 15:15:32 +01:00
Merge pull request #16271 from SatinIsle/no-sleep-for-u
Temporarily disables sleeping on simple mobs
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user