mirror of
https://github.com/CHOMPstation/CHOMPstation.git
synced 2026-08-26 21:46:51 +01:00
Random lootdrops for scary bats
but this time they work
This commit is contained in:
@@ -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("<span class='notice'>\The [src] dropped some ore!</span>")
|
||||
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 ..()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user