This commit is contained in:
John Cote 2015-04-28 14:39:08 -04:00
parent 518a9c6e0c
commit d746a9cd13

View file

@ -309,8 +309,10 @@ class DistributedSuitInteriorAI(DistributedObjectAI.DistributedObjectAI):
totalMaxHp = 0
for suit in self.suits:
totalMaxHp += suit.maxHP
for suit in deadSuits:
self.activeSuits.remove(suit)
if len(self.reserveSuits) > 0 and len(self.activeSuits) < 4:
self.joinedReserves = []
hpPercent = 100 - (totalHp / totalMaxHp) * 100.0