Merge pull request #1955 from MaruMaruOO/master

Fixed AoE DD's signature radius for EFS exports.
This commit is contained in:
Anton Vorobyov
2019-04-27 10:28:57 +03:00
committed by GitHub

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.