Fixed AoE DD's signature radius for EFS exports.

This commit is contained in:
MaruMaruOO
2019-04-27 00:45:17 -04:00
parent c8ff644b63
commit bd86d3289f

View File

@@ -339,6 +339,10 @@ class EfsPort:
explosionRadius = stats.getModifiedChargeAttr("aoeCloudSize")
explosionVelocity = stats.getModifiedChargeAttr("aoeVelocity")
typeing = "Missile"
# AoE DDs can be treated like missiles with a damageReductionFactor of 0
elif stats.item.group.name == 'Super Weapon' and stats.maxRange:
explosionRadius = stats.getModifiedItemAttr("signatureRadius")
typeing = "Missile"
elif stats.hardpoint == FittingHardpoint.NONE:
aoeFieldRange = stats.getModifiedItemAttr("empFieldRange")
# This also covers non-bomb weapons with dps values and no hardpoints, most notably targeted doomsdays.