From 3be3a2371f74f1afdb002548f9743fc1577bd54f Mon Sep 17 00:00:00 2001 From: Sharkmare <34294231+Sharkmare@users.noreply.github.com> Date: Wed, 20 Feb 2019 21:09:27 +0100 Subject: [PATCH] Random lootdrops for scary bats but this time they work --- code/modules/mob/living/simple_animal/animals/bat.dm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/living/simple_animal/animals/bat.dm b/code/modules/mob/living/simple_animal/animals/bat.dm index 8127d5076d..4abed4dac1 100644 --- a/code/modules/mob/living/simple_animal/animals/bat.dm +++ b/code/modules/mob/living/simple_animal/animals/bat.dm @@ -49,11 +49,16 @@ /mob/living/simple_animal/hostile/scarybat/New(loc, mob/living/L as mob) ..() - if(prob(30))//30% should be nice for a tiny bonus of silver, at least gives fighting mobs more purpose - contents += "/obj/item/weapon/ore/silver" //CHOMP EDIT: Random chance for bats to carry silver if(istype(L)) owner = L +/mob/living/simple_animal/hostile/scarybat/death() + ..() + if(prob(40)) + visible_message("\The [src] dropped some ore!") + var/location = get_turf(src) + new /obj/item/weapon/ore/silver(location)//CHOMP EDIT: Random chance for bats to carry silver + /mob/living/simple_animal/hostile/scarybat/Process_Spacemove(var/check_drift = 0) return ..()