diff --git a/config.py b/config.py index c951eb44f..c42e6b658 100644 --- a/config.py +++ b/config.py @@ -23,7 +23,7 @@ saveInRoot = False version = "2.0.x" tag = "git" expansionName = "YC120.2" -expansionVersion = "1.1" +expansionVersion = "1.2" evemonMinVersion = "4081" pyfaPath = None diff --git a/eos/effects/scriptstandupwarpscram.py b/eos/effects/scriptstandupwarpscram.py new file mode 100644 index 000000000..6f03786d6 --- /dev/null +++ b/eos/effects/scriptstandupwarpscram.py @@ -0,0 +1,11 @@ +# scriptStandupWarpScram +# +# Used by: +# Charge: Standup Focused Warp Scrambling Script + +type = "passive" +runTime = "early" + + +def handler(fit, src, context, *args, **kwargs): + src.boostItemAttr("maxRange", src.getModifiedChargeAttr("warpScrambleRangeBonus")) diff --git a/eos/saveddata/fighter.py b/eos/saveddata/fighter.py index a58cb80ed..180838e31 100644 --- a/eos/saveddata/fighter.py +++ b/eos/saveddata/fighter.py @@ -89,8 +89,8 @@ class Fighter(HandledItem, HandledCharge, ItemAttrShortcut, ChargeAttrShortcut): self.__itemModifiedAttributes.overrides = self.__item.overrides self.__slot = self.__calculateSlot(self.__item) - chargeID = self.getModifiedItemAttr("fighterAbilityLaunchBombType", None) - if chargeID is not None: + chargeID = self.getModifiedItemAttr("fighterAbilityLaunchBombType") + if chargeID: charge = eos.db.getItem(int(chargeID)) self.__charge = charge self.__chargeModifiedAttributes.original = charge.attributes diff --git a/eve.db b/eve.db index 4b5816334..90d9e3b6a 100644 Binary files a/eve.db and b/eve.db differ diff --git a/gui/builtinItemStatsViews/itemAttributes.py b/gui/builtinItemStatsViews/itemAttributes.py index c9850a6e5..9e18ce0ff 100644 --- a/gui/builtinItemStatsViews/itemAttributes.py +++ b/gui/builtinItemStatsViews/itemAttributes.py @@ -243,6 +243,8 @@ class ItemParams(wx.Panel): return "%s (%d)" % (group.name, value) if group is not None else str(value) def attributeIDCallback(): + if not value: # some attributes come through with a value of 0? See #1387 + return "%d" % (value) attribute = Attribute.getInstance().getAttributeInfo(value) return "%s (%d)" % (attribute.name.capitalize(), value)