Merge pull request #562 from ArchieBeepBoop/anotherpatch

Exiles Patch + New Functions
This commit is contained in:
Dahlular
2020-10-07 19:35:43 -06:00
committed by GitHub
4 changed files with 171 additions and 119 deletions

View File

@@ -86,6 +86,14 @@
/obj/effect/mob_spawn/proc/equip(mob/M)
return
/obj/effect/mob_spawn/proc/delayusability(seconds)
addtimer(CALLBACK(src, .proc/enableghostrole), approximateSecondsToTicks(seconds))
/obj/effect/mob_spawn/proc/enableghostrole()
ghost_usable = TRUE
GLOB.poi_list |= src
LAZYADD(GLOB.mob_spawners[job_description ? job_description : name], src)
/obj/effect/mob_spawn/proc/create(ckey, name)
var/mob/living/M = new mob_type(get_turf(src)) //living mobs only
if(!random)