Now logs where the mob died

new var `location` that remembers where the mob died making on death spawn easier

usage example
oldmob/path/death()
    ..()
    new mob/path(location)
This commit is contained in:
Sharkmare
2019-02-28 10:29:02 +01:00
committed by GitHub
parent 19f75ac308
commit 2137bd5e3e
+1
View File
@@ -70,6 +70,7 @@
if(stat == DEAD)
return 0
var/location = get_turf(src) //CHOMPEDIT: since we use this so much lets define it here yknow
if(src.loc && istype(loc,/obj/belly)) deathmessage = "no message" //VOREStation Add - Prevents death messages from inside mobs
facing_dir = null