From 4cf0d2bad1c4ff00245196a4ebe7aed82880feef Mon Sep 17 00:00:00 2001 From: HarpyEagle Date: Wed, 4 May 2016 15:54:18 -0400 Subject: [PATCH] Fixes many dense objects from stopping penetrating bullets --- code/modules/projectiles/projectile/bullets.dm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/code/modules/projectiles/projectile/bullets.dm b/code/modules/projectiles/projectile/bullets.dm index fef93692ec..8bbd31aed0 100644 --- a/code/modules/projectiles/projectile/bullets.dm +++ b/code/modules/projectiles/projectile/bullets.dm @@ -42,7 +42,7 @@ damage *= 0.7 //squishy mobs absorb KE return 1 - var/chance = 0 + var/chance = damage if(istype(A, /turf/simulated/wall)) var/turf/simulated/wall/W = A chance = round(damage/W.material.integrity*180) @@ -52,8 +52,6 @@ if(D.glass) chance *= 2 else if(istype(A, /obj/structure/girder)) chance = 100 - else if(istype(A, /obj/machinery) || istype(A, /obj/structure)) - chance = damage if(prob(chance)) if(A.opacity)