mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Oops (#23466)
This commit is contained in:
committed by
jknpj
parent
a7e80aef54
commit
104d9e2ba7
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user