Fighters for export and import functions

This commit is contained in:
Indiction
2016-11-10 23:28:21 +01:00
parent 6849478226
commit 04c30e70af
2 changed files with 47 additions and 11 deletions

View File

@@ -119,6 +119,10 @@ class Fighter(HandledItem, HandledCharge, ItemAttrShortcut, ChargeAttrShortcut):
def amountActive(self, i):
self.amount = int(max(min(i, self.getModifiedItemAttr("fighterSquadronMaxSize")), 0))
@property
def fighterSquadronMaxSize(self):
return int(self.getModifiedItemAttr("fighterSquadronMaxSize"))
@property
def abilities(self):
return self.__abilities or []