mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-20 20:37:34 +01:00
Openturf tweaks & SSmob sleep detection (#2341)
changes: Openturfs no longer copy the below turf's name. Openturfs' desc now lists the name of the below turf instead of copying the below turf's desc. SSmob now detects sleeping Life() procs.
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
flags = SS_NO_INIT
|
||||
priority = SS_PRIORITY_MOB
|
||||
|
||||
var/list/slept = list()
|
||||
|
||||
var/list/currentrun = list()
|
||||
var/list/all_mice = list() // Contains all *living* mice.
|
||||
|
||||
@@ -35,7 +37,14 @@
|
||||
return
|
||||
continue
|
||||
|
||||
var/time = world.time
|
||||
|
||||
M.Life()
|
||||
|
||||
if (time != world.time && !slept[M.type])
|
||||
slept[M.type] = TRUE
|
||||
var/diff = world.time - time
|
||||
log_debug("SSmob: Type '[M.type]' slept for [diff] ds in Life()! Suppressing further warnings.")
|
||||
|
||||
if (MC_TICK_CHECK)
|
||||
return
|
||||
|
||||
@@ -93,6 +93,8 @@
|
||||
|
||||
// Update the openturf itself.
|
||||
T.appearance = T.below
|
||||
T.name = initial(T.name)
|
||||
T.desc = "Below seems to be \a [T.below]."
|
||||
|
||||
// Handle space parallax & starlight.
|
||||
if (T.is_above_space())
|
||||
|
||||
Reference in New Issue
Block a user