From 74a206d8b038c8b1467092e4845f357c941947f5 Mon Sep 17 00:00:00 2001 From: Qwertytoforty <52090703+Qwertytoforty@users.noreply.github.com> Date: Thu, 19 Jan 2023 15:38:09 -0500 Subject: [PATCH] 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> --- .../modules/mob/living/simple_animal/hostile/mining/goldgrub.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/mob/living/simple_animal/hostile/mining/goldgrub.dm b/code/modules/mob/living/simple_animal/hostile/mining/goldgrub.dm index 1485d8bd593..d28b936adeb 100644 --- a/code/modules/mob/living/simple_animal/hostile/mining/goldgrub.dm +++ b/code/modules/mob/living/simple_animal/hostile/mining/goldgrub.dm @@ -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("[P.name] was repelled by [name]'s girth!") /mob/living/simple_animal/hostile/asteroid/goldgrub/adjustHealth(amount, updating_health = TRUE)