Fix issues with unexpected module positions (see #932)

This commit is contained in:
blitzman
2017-01-04 23:48:22 -05:00
parent 43f1ac78a6
commit ebc7173c50
2 changed files with 11 additions and 5 deletions

View File

@@ -201,6 +201,11 @@ class Module(HandledItem, HandledCharge, ItemAttrShortcut, ChargeAttrShortcut):
else:
return self.__chargeCycles
@property
def modPosition(self):
if self.owner:
return self.owner.modules.index(self)
@property
def hpBeforeReload(self):
"""