mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-25 20:52:26 -06: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
|
totalMaxHp = 0
|
||||||
for suit in self.suits:
|
for suit in self.suits:
|
||||||
totalMaxHp += suit.maxHP
|
totalMaxHp += suit.maxHP
|
||||||
|
|
||||||
for suit in deadSuits:
|
for suit in deadSuits:
|
||||||
self.activeSuits.remove(suit)
|
self.activeSuits.remove(suit)
|
||||||
|
|
||||||
if len(self.reserveSuits) > 0 and len(self.activeSuits) < 4:
|
if len(self.reserveSuits) > 0 and len(self.activeSuits) < 4:
|
||||||
self.joinedReserves = []
|
self.joinedReserves = []
|
||||||
hpPercent = 100 - (totalHp / totalMaxHp) * 100.0
|
hpPercent = 100 - (totalHp / totalMaxHp) * 100.0
|
||||||
|
|
Loading…
Reference in a new issue