This commit is contained in:
boy2mantwicethefam
2019-07-09 19:45:37 +03:00
committed by jknpj
parent a7e80aef54
commit 104d9e2ba7

View File

@@ -14,7 +14,7 @@
percent damage reduction
*/
/mob/living/proc/run_armor_check(var/def_zone = null, var/attack_flag = "melee", var/absorb_text = null, var/soften_text = null, modifier = 1, var/quiet = 0, var/armor_penetration = 0)
var/armor = (getarmor(def_zone, attack_flag)-armor_penetration)*modifier
var/armor = max(0, (getarmor(def_zone, attack_flag)-armor_penetration)*modifier)
if(armor >= 100) //Absolutely no damage
if(!quiet)