Merge pull request #807 from IndictionEve/ImportExportFighters

Fighters for export and import functions
This commit is contained in:
Ryan Holmes
2016-12-10 02:09:45 -05:00
committed by GitHub
2 changed files with 60 additions and 11 deletions

View File

@@ -120,6 +120,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 []