From ce5803dd9cedc9b22f8028b60e7c97f184e6767a Mon Sep 17 00:00:00 2001 From: blitzmann Date: Fri, 22 Sep 2017 02:33:46 -0400 Subject: [PATCH 1/3] Disable an odd bit of code from a long time ago that fitting max group fitting restrictions to be bypassed (#1278) --- eos/saveddata/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eos/saveddata/module.py b/eos/saveddata/module.py index 2b1d2665c..1e2999249 100644 --- a/eos/saveddata/module.py +++ b/eos/saveddata/module.py @@ -457,7 +457,7 @@ class Module(HandledItem, HandledCharge, ItemAttrShortcut, ChargeAttrShortcut): # Check max group fitted max = self.getModifiedItemAttr("maxGroupFitted") if max is not None: - current = 0 if self.owner != fit else -1 + # current = 0 if self.owner != fit else -1 # Disabled, see #1278 for mod in fit.modules: if mod.item and mod.item.groupID == self.item.groupID: current += 1 From 7729bd9210910c1669c1ef99ec34d6fb3700b314 Mon Sep 17 00:00:00 2001 From: blitzmann Date: Fri, 22 Sep 2017 02:35:01 -0400 Subject: [PATCH 2/3] Opps commented wrong thing --- eos/saveddata/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eos/saveddata/module.py b/eos/saveddata/module.py index 1e2999249..2bca09ea6 100644 --- a/eos/saveddata/module.py +++ b/eos/saveddata/module.py @@ -457,7 +457,7 @@ class Module(HandledItem, HandledCharge, ItemAttrShortcut, ChargeAttrShortcut): # Check max group fitted max = self.getModifiedItemAttr("maxGroupFitted") if max is not None: - # current = 0 if self.owner != fit else -1 # Disabled, see #1278 + current = 0 # if self.owner != fit else -1 # Disabled, see #1278 for mod in fit.modules: if mod.item and mod.item.groupID == self.item.groupID: current += 1 From 0134c3b9a173ed3b818acfff9f72ed65430c49d4 Mon Sep 17 00:00:00 2001 From: blitzmann Date: Sat, 23 Sep 2017 12:33:51 -0400 Subject: [PATCH 3/3] Fix formatting --- eos/saveddata/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eos/saveddata/module.py b/eos/saveddata/module.py index 2bca09ea6..40c875a18 100644 --- a/eos/saveddata/module.py +++ b/eos/saveddata/module.py @@ -457,7 +457,7 @@ class Module(HandledItem, HandledCharge, ItemAttrShortcut, ChargeAttrShortcut): # Check max group fitted max = self.getModifiedItemAttr("maxGroupFitted") if max is not None: - current = 0 # if self.owner != fit else -1 # Disabled, see #1278 + current = 0 # if self.owner != fit else -1 # Disabled, see #1278 for mod in fit.modules: if mod.item and mod.item.groupID == self.item.groupID: current += 1