MOD: version upped to 0.06

FIX: Added check to correct add the burst jammer's burst radius
This commit is contained in:
Sajuukthanatoskhar
2022-06-19 12:43:36 +02:00
parent cceaed8d61
commit 355e6dd0fe

View File

@@ -28,7 +28,7 @@ pyfaVersion = getVersion()
class EfsPort:
wepTestSet = {}
version = 0.05
version = 0.06
@staticmethod
def attrDirectMap(values, target, source):
@@ -243,7 +243,10 @@ class EfsPort:
pyfalog.error("Projected module {0} lacks efs export implementation".format(mod.item.typeName))
if mod.getModifiedItemAttr("maxRange", None) is None:
pyfalog.error("Projected module {0} has no maxRange".format(mod.item.typeName))
stats["optimal"] = mod.getModifiedItemAttr("maxRange", maxRangeDefault)
# Burst jammer maxRange is 0 if the value is retrieved using mod.getModifiedItemAttr("maxRange")
# Despite it is correct, it still pulls 0.0.
stats["optimal"] = mod.getModifiedItemAttr("maxRange", maxRangeDefault) if mod.item.group.name != "Burst Jammer" else mod.maxRange
stats["falloff"] = mod.getModifiedItemAttr("falloffEffectiveness", falloffDefault)
EfsPort.attrDirectMap(["duration", "capacitorNeed"], stats, mod)
projections.append(stats)