We have a variable for reflectable, use it (#17867)

This commit is contained in:
Qwertytoforty
2022-05-25 19:54:42 +01:00
committed by GitHub
parent 75058a9744
commit 0829f0595e
@@ -140,7 +140,7 @@
environment_smash = 1 //only token destruction, don't smash the cult wall NO STOP
/mob/living/simple_animal/hostile/construct/armoured/bullet_act(obj/item/projectile/P)
if(istype(P, /obj/item/projectile/energy) || istype(P, /obj/item/projectile/beam))
if(P.is_reflectable)
var/reflectchance = 80 - round(P.damage/3)
if(prob(reflectchance))
if((P.damage_type == BRUTE || P.damage_type == BURN))