From d746a9cd135c96efb55907a41a6fc1a29c893332 Mon Sep 17 00:00:00 2001 From: John Cote Date: Tue, 28 Apr 2015 14:39:08 -0400 Subject: [PATCH] yeah --- toontown/building/DistributedSuitInteriorAI.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/toontown/building/DistributedSuitInteriorAI.py b/toontown/building/DistributedSuitInteriorAI.py index e36cb91e..e9f1dc9e 100644 --- a/toontown/building/DistributedSuitInteriorAI.py +++ b/toontown/building/DistributedSuitInteriorAI.py @@ -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()