Fix merit bars

This commit is contained in:
John 2015-06-09 18:25:03 +03:00 committed by Loudrob
parent 5b7770abee
commit 519a4fd111

View file

@ -62,8 +62,13 @@ class InventoryPage(ShtikerPage.ShtikerPage):
if not self.meritBars: if not self.meritBars:
return return
for meritBar in self.meritBars: for i in xrange(len(self.meritBars)):
meritBar.hide() if hide else meritBar.show() meritBar = self.meritBars[i]
if CogDisguiseGlobals.isSuitComplete(base.localAvatar.cogParts, i):
meritBar.hide() if hide else meritBar.show()
else:
meritBar.hide()
def updateMeritBars(self): def updateMeritBars(self):
if not self.meritBars: if not self.meritBars: