Goldgrubs can not block projectiles with 100% armor penetration (#20148)

* get your grubby hands off the cheese

* Update code/modules/mob/living/simple_animal/hostile/mining/goldgrub.dm

Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com>

Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com>
This commit is contained in:
Qwertytoforty
2023-01-19 15:38:09 -05:00
committed by GitHub
co-authored by Ryan
parent c16481c076
commit 74a206d8b0
@@ -73,6 +73,8 @@
qdel(src)
/mob/living/simple_animal/hostile/asteroid/goldgrub/bullet_act(obj/item/projectile/P)
if(P.armour_penetration_flat + P.armour_penetration_percentage >= 100)
return ..()
visible_message("<span class='danger'>[P.name] was repelled by [name]'s girth!</span>")
/mob/living/simple_animal/hostile/asteroid/goldgrub/adjustHealth(amount, updating_health = TRUE)