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:
Lohikar
2017-05-20 17:21:20 -05:00
committed by skull132
parent 52137ac6b9
commit 5b769df8fa
4 changed files with 13 additions and 5 deletions
+9
View File
@@ -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
+2
View File
@@ -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())