Fix trophy score

This commit is contained in:
John 2015-07-03 18:11:03 +03:00
parent 14658250e3
commit 1c84579924

View file

@ -1410,7 +1410,7 @@ class DistributedToon(DistributedPlayer.DistributedPlayer, Toon.Toon, Distribute
self.trophyStarSpeed = 0 self.trophyStarSpeed = 0
if self.trophyScore >= ToontownGlobals.TrophyStarLevels[4]: if self.trophyScore >= ToontownGlobals.TrophyStarLevels[4]:
self.trophyStar = loader.loadModel('phase_3.5/models/gui/name_star') self.trophyStar = loader.loadModel('phase_3.5/models/gui/name_star')
np = NodePath(self.nametag.getIcon()) np = NodePath(self.nametag.getNameIcon())
self.trophyStar.reparentTo(np) self.trophyStar.reparentTo(np)
self.trophyStar.setScale(2) self.trophyStar.setScale(2)
self.trophyStar.setColor(ToontownGlobals.TrophyStarColors[4]) self.trophyStar.setColor(ToontownGlobals.TrophyStarColors[4])
@ -1419,7 +1419,7 @@ class DistributedToon(DistributedPlayer.DistributedPlayer, Toon.Toon, Distribute
taskMgr.add(self.__starSpin, self.uniqueName('starSpin')) taskMgr.add(self.__starSpin, self.uniqueName('starSpin'))
elif self.trophyScore >= ToontownGlobals.TrophyStarLevels[2]: elif self.trophyScore >= ToontownGlobals.TrophyStarLevels[2]:
self.trophyStar = loader.loadModel('phase_3.5/models/gui/name_star') self.trophyStar = loader.loadModel('phase_3.5/models/gui/name_star')
np = NodePath(self.nametag.getIcon()) np = NodePath(self.nametag.getNameIcon())
self.trophyStar.reparentTo(np) self.trophyStar.reparentTo(np)
self.trophyStar.setScale(1.5) self.trophyStar.setScale(1.5)
self.trophyStar.setColor(ToontownGlobals.TrophyStarColors[2]) self.trophyStar.setColor(ToontownGlobals.TrophyStarColors[2])
@ -1428,7 +1428,7 @@ class DistributedToon(DistributedPlayer.DistributedPlayer, Toon.Toon, Distribute
taskMgr.add(self.__starSpin, self.uniqueName('starSpin')) taskMgr.add(self.__starSpin, self.uniqueName('starSpin'))
elif self.trophyScore >= ToontownGlobals.TrophyStarLevels[0]: elif self.trophyScore >= ToontownGlobals.TrophyStarLevels[0]:
self.trophyStar = loader.loadModel('phase_3.5/models/gui/name_star') self.trophyStar = loader.loadModel('phase_3.5/models/gui/name_star')
np = NodePath(self.nametag.getIcon()) np = NodePath(self.nametag.getNameIcon())
self.trophyStar.reparentTo(np) self.trophyStar.reparentTo(np)
self.trophyStar.setScale(1.5) self.trophyStar.setScale(1.5)
self.trophyStar.setColor(ToontownGlobals.TrophyStarColors[0]) self.trophyStar.setColor(ToontownGlobals.TrophyStarColors[0])