Merge pull request #34926 from ShizCalev/morguetray-revenant

Makes revenants spawn on dead bodies & bodycontainers
This commit is contained in:
Jordan Brown
2018-01-28 19:03:14 -05:00
committed by CitadelStationBot
parent da5d277ddb
commit b9f575fa11
8 changed files with 17 additions and 83 deletions
+7
View File
@@ -13,6 +13,8 @@
* Parent class for morgue and crematorium
* For overriding only
*/
GLOBAL_LIST_EMPTY(bodycontainers) //Let them act as spawnpoints for revenants and other ghosties.
/obj/structure/bodycontainer
icon = 'icons/obj/stationobjs.dmi'
icon_state = "morgue1"
@@ -26,7 +28,12 @@
var/message_cooldown
var/breakout_time = 600
/obj/structure/bodycontainer/Initialize()
. = ..()
GLOB.bodycontainers += src
/obj/structure/bodycontainer/Destroy()
GLOB.bodycontainers -= src
open()
if(connected)
qdel(connected)