diff --git a/toontown/toonbase/TTLocalizerEnglish.py b/toontown/toonbase/TTLocalizerEnglish.py index 8e495eea..739bb308 100755 --- a/toontown/toonbase/TTLocalizerEnglish.py +++ b/toontown/toonbase/TTLocalizerEnglish.py @@ -8456,3 +8456,8 @@ RestockAskMessage = "Would you like to\nrestock %s laff for %s jellybeans?" RestockCheaterMessage = "No cheaters allowed! Your transaction has been declined." InVP = ' in a V.P. Battle' InFieldOffice = ' in a Sellbot Field Office' +CogPanelLevel = 'Level %s' +CogPanelSkeleton = 'Skeleton' +CogPanelVirtual = 'Virtual' +CogPanelRevives = 'v%s.0' +CogPanelWaiter = 'Waiter' diff --git a/toontown/town/TownBattleCogPanel.py b/toontown/town/TownBattleCogPanel.py index a4677c14..e1a46dab 100755 --- a/toontown/town/TownBattleCogPanel.py +++ b/toontown/town/TownBattleCogPanel.py @@ -72,22 +72,22 @@ class TownBattleCogPanel(DirectFrame): self.accept(self.hpChangeEvent, self.updateHealthBar) self.updateHealthBar() self.healthBar.show() - if self.suit.isSkelecog == 1: - self.type = 'Skel' - self.setTypeText(self.type) - self.suitRevives = self.suit.getSkeleRevives() - if self.suitRevives == 1: - self.type = 'v2.0' - self.setTypeText(self.type) - if self.suitRevives < 1 and self.suit.isSkelecog == 0: - self.type = '' - self.setTypeText(self.type) + if self.suit.virtual: + self.setTypeText(TTLocalizer.CogPanelVirtual) + elif self.suit.isWaiter: + self.setTypeText(TTLocalizer.CogPanelWaiter) + elif self.suit.skeleRevives: + self.setTypeText(TTLocalizer.CogPanelRevives % (self.suit.skeleRevives + 1)) + elif self.suit.isSkelecog: + self.setTypeText(TTLocalizer.CogPanelSkeleton) + else: + self.setTypeText('') def getSuit(self, suit): return self.suit def setLevelText(self, level): - self.levelText['text'] = 'Level '+ str(level) + self.levelText['text'] = TTLocalizer.CogPanelLevel % level def setTypeText(self, suitType): self.suitType['text'] = suitType @@ -226,4 +226,4 @@ class TownBattleCogPanel(DirectFrame): del self.suit del self.maxHP del self.currHP - DirectFrame.destroy(self) + DirectFrame.destroy(self) \ No newline at end of file