Fixes many dense objects from stopping penetrating bullets

This commit is contained in:
HarpyEagle
2016-05-04 15:54:18 -04:00
committed by Yoshax
parent 09d7cd7d18
commit 4cf0d2bad1
@@ -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)