From 468a610f15e81c6f2f9ae5761ff6864f38ae5ef5 Mon Sep 17 00:00:00 2001 From: keronshb Date: Mon, 6 Sep 2021 09:31:45 -0400 Subject: [PATCH] Corpsefix --- code/modules/mob/living/simple_animal/hostile/plaguerat.dm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/code/modules/mob/living/simple_animal/hostile/plaguerat.dm b/code/modules/mob/living/simple_animal/hostile/plaguerat.dm index c72a835c2b..efec421e6d 100644 --- a/code/modules/mob/living/simple_animal/hostile/plaguerat.dm +++ b/code/modules/mob/living/simple_animal/hostile/plaguerat.dm @@ -112,7 +112,6 @@ return var/turf/T = get_turf(owner) var/loot = rand(1,100) - var/body = /obj/effect/mob_spawn/human/corpse/assistant switch(loot) if(1 to 3) var/pickedtrash = pick(GLOB.ratking_trash) @@ -123,12 +122,12 @@ new /obj/effect/decal/cleanable/blood/gibs(T) new /obj/effect/decal/cleanable/blood/(T) if(7 to 18) - if(locate(body) in T) + if(locate(/mob/living/carbon/human) in T) to_chat(owner, "A corpse is blocking you from digging.") return else to_chat(owner, "A corpse rises from the ground. Best to leave it alone.") - new body(T) + new /obj/effect/mob_spawn/human/corpse/assistant(T) if(19 to 100) to_chat(owner, "Drat. Nothing.") StartCooldown()