Allow Subsystems as modules.

This commit is contained in:
blitzmann
2015-07-04 00:32:28 -04:00
parent 84b1e0ac41
commit 5991d19b3e

View File

@@ -84,7 +84,7 @@ class Module(HandledItem, HandledCharge, ItemAttrShortcut, ChargeAttrShortcut):
def build(self):
"""Builds internal module variables from both init's"""
if self.__item and self.__item.category.name != "Module" and self.__item.group.name != "Effect Beacon":
if self.__item and self.__item.category.name not in ("Module", "Subsystem") and self.__item.group.name != "Effect Beacon":
self.__invalid = True
if self.__charge and self.__charge.category.name != "Charge":
self.__charge = None