Add some invalidation logic to module for Abyysal modules without base or mutaplasmid

This commit is contained in:
blitzmann
2018-06-17 12:23:05 -04:00
parent 8f5060cc3e
commit 8bf9a9881f

View File

@@ -208,7 +208,8 @@ class Module(HandledItem, HandledCharge, ItemAttrShortcut, ChargeAttrShortcut):
return False
return self.__item is None or \
(self.__item.category.name not in ("Module", "Subsystem", "Structure Module") and
self.__item.group.name not in self.SYSTEM_GROUPS)
self.__item.group.name not in self.SYSTEM_GROUPS) or \
(self.item.isAbyssal and (not self.baseItemID or not self.mutaplasmidID) )
@property
def isMutated(self):