Timed verbs (#2620)

This PR adds a new helper (ADD_VERB_IN(target, time, verb)) to add verbs to a mob using timers instead of spawn.

Also converted a few instances of spawn-verb-adding to the new helper.
This commit is contained in:
Lohikar
2017-06-05 23:36:35 +03:00
committed by skull132
parent 95fdd6f925
commit 42464b68e2
5 changed files with 25 additions and 27 deletions
+1 -2
View File
@@ -316,8 +316,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
usr << "Not when you're not dead!"
return
usr.verbs -= /mob/dead/observer/proc/dead_tele
spawn(30)
usr.verbs += /mob/dead/observer/proc/dead_tele
ADD_VERB_IN(usr, 30, /mob/dead/observer/proc/dead_tele)
var/area/thearea = ghostteleportlocs[A]
if(!thearea) return