Merge pull request #6800 from Cerebulon/spiderstomp

Allows Spiderlings to be Stomped
This commit is contained in:
Atermonera
2020-03-10 00:46:12 -07:00
committed by VirgoBot
parent fb0ebd5627
commit 942cc04433
+12
View File
@@ -40,6 +40,18 @@
health -= damage
healthcheck()
/obj/effect/spider/spiderling/attack_hand(mob/living/user)
user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN)
user.do_attack_animation(src)
if(prob(20))
visible_message("<span class='warning'>\The [user] tries to stomp on \the [src], but misses!</span>")
var/list/nearby = oview(2, src)
if(length(nearby))
walk_to(src, pick(nearby), 2)
return
visible_message("<span class='warning'>\The [user] stomps \the [src] dead!</span>")
die()
/obj/effect/spider/bullet_act(var/obj/item/projectile/Proj)
..()
health -= Proj.get_structure_damage()