From 355e6dd0fe0995e901413204b343f793b4b947f9 Mon Sep 17 00:00:00 2001 From: Sajuukthanatoskhar Date: Sun, 19 Jun 2022 12:43:36 +0200 Subject: [PATCH] MOD: version upped to 0.06 FIX: Added check to correct add the burst jammer's burst radius --- service/port/efs.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/service/port/efs.py b/service/port/efs.py index 4d79ce0c6..ba763174f 100755 --- a/service/port/efs.py +++ b/service/port/efs.py @@ -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)