mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-24 00:51:26 +00:00
Mech Armor bugfix (#7514)
GetArmor() wasn't running properly, tested and works now.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user