Mech Armor bugfix (#7514)

GetArmor() wasn't running properly, tested and works now.
This commit is contained in:
SueTheCake
2019-11-27 15:14:38 -06:00
committed by Erki
parent 481ce2632f
commit 173822fad7

View File

@@ -22,6 +22,11 @@
return def_zone
/mob/living/heavy_vehicle/getarmor(var/def_zone, var/type)
if(body.armour)
return isnull(body.armour.armor[type]) ? 0 : body.armour.armor[type]
return 0
/mob/living/heavy_vehicle/hitby(atom/movable/AM, speed)
if(LAZYLEN(pilots) && (!hatch_closed || !prob(body.pilot_coverage)))
var/mob/living/pilot = pick(pilots)