Merge pull request #3075 from Anewbe/armor_soak

Implements Armor Soak
This commit is contained in:
MagmaRam
2017-03-28 20:02:00 -05:00
committed by GitHub
16 changed files with 1037 additions and 926 deletions
+5 -1
View File
@@ -77,11 +77,15 @@
//armour
var/blocked = L.run_armor_check(target_zone, "melee")
var/soaked = L.get_armor_soak(target_zone, "melee")
if(blocked >= 100)
return
if(!L.apply_damage(30, BRUTE, target_zone, blocked, used_weapon=src))
if(soaked >= 30)
return
if(!L.apply_damage(30, BRUTE, target_zone, blocked, soaked, used_weapon=src))
return 0
//trap the victim in place