mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-10-31 00:37:54 +00:00
yeah
This commit is contained in:
parent
518a9c6e0c
commit
d746a9cd13
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
@ -322,7 +324,7 @@ class DistributedSuitInteriorAI(DistributedObjectAI.DistributedObjectAI):
|
|||
|
||||
for info in self.joinedReserves:
|
||||
self.reserveSuits.remove(info)
|
||||
|
||||
|
||||
if len(self.joinedReserves) > 0:
|
||||
self.fsm.request('ReservesJoining')
|
||||
self.d_setSuits()
|
||||
|
|
Loading…
Reference in a new issue