From b36bf8fb219669a1960009b062c2b0332fce155d Mon Sep 17 00:00:00 2001 From: blitzmann Date: Thu, 15 Feb 2018 21:03:25 -0500 Subject: [PATCH] Fix issue restricting structure modules from fitting onto a structure --- eos/saveddata/module.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eos/saveddata/module.py b/eos/saveddata/module.py index 40c875a18..c032c23e8 100644 --- a/eos/saveddata/module.py +++ b/eos/saveddata/module.py @@ -432,9 +432,9 @@ class Module(HandledItem, HandledCharge, ItemAttrShortcut, ChargeAttrShortcut): and fit.ship.item.ID not in fitsOnType: return False - # AFAIK Citadel modules will always be restricted based on canFitShipType/Group. If we are fitting to a Citadel - # and the module does not have these properties, return false to prevent regular ship modules from being used - if isinstance(fit.ship, Citadel) and len(fitsOnGroup) == 0 and len(fitsOnType) == 0: + # Citadel modules are now under a new category, so we can check this to ensure only structure modules can fit on a citadel + if isinstance(fit.ship, Citadel) and self.item.category.name != "Structure Module" or \ + not isinstance(fit.ship, Citadel) and self.item.category.name == "Structure Module": return False # EVE doesn't let capital modules be fit onto subcapital hulls. Confirmed by CCP Larrikin that this is dictated