From a8d1b377e42c6fa3b65664c3d37940c55b46d0b8 Mon Sep 17 00:00:00 2001 From: keronshb Date: Sun, 5 Sep 2021 21:22:53 -0400 Subject: [PATCH] Plaguefix --- .../mob/living/simple_animal/hostile/plaguerat.dm | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/code/modules/mob/living/simple_animal/hostile/plaguerat.dm b/code/modules/mob/living/simple_animal/hostile/plaguerat.dm index 331dc1eb75..c72a835c2b 100644 --- a/code/modules/mob/living/simple_animal/hostile/plaguerat.dm +++ b/code/modules/mob/living/simple_animal/hostile/plaguerat.dm @@ -112,20 +112,23 @@ 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) to_chat(owner, "Excellent, you find more trash to spread your filth!") - new /obj/effect/decal/cleanable/dirt(T) new pickedtrash(T) if(4 to 6) to_chat(owner, "You find blood and gibs to feed your young!") new /obj/effect/decal/cleanable/blood/gibs(T) new /obj/effect/decal/cleanable/blood/(T) if(7 to 18) - to_chat(owner, "A corpse rises from the ground. Best to leave it alone.") - new /obj/effect/mob_spawn/human/corpse/assistant(T) + if(locate(body) 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) if(19 to 100) to_chat(owner, "Drat. Nothing.") - new /obj/effect/decal/cleanable/dirt(T) StartCooldown()