From ed9c41bbf4376856b71c8393f15829521a95573d Mon Sep 17 00:00:00 2001 From: John Date: Tue, 4 Aug 2015 22:00:20 +0300 Subject: [PATCH] Glove NPC --- toontown/toon/DistributedNPCGloveAI.py | 2 +- toontown/toon/GloveShopGui.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/toontown/toon/DistributedNPCGloveAI.py b/toontown/toon/DistributedNPCGloveAI.py index 0cc61df5..b6c57cd6 100755 --- a/toontown/toon/DistributedNPCGloveAI.py +++ b/toontown/toon/DistributedNPCGloveAI.py @@ -22,6 +22,6 @@ class DistributedNPCGloveAI(DistributedNPCToonBaseAI.DistributedNPCToonBaseAI): av.takeMoney(ToontownGlobals.GloveCost) newDNA = ToonDNA.ToonDNA() newDNA.makeFromNetString(av.getDNAString()) - newDNA.gloveColor = color + newDNA.gloveColor = ToonDNA.allColorsList[color] taskMgr.doMethodLater(1.0, lambda task: av.b_setDNAString(newDNA.makeNetString()), 'transform-%d' % avId) self.sendUpdate('changeGloveResult', [avId, GloveNPCGlobals.CHANGE_SUCCESSFUL]) diff --git a/toontown/toon/GloveShopGui.py b/toontown/toon/GloveShopGui.py index cc2fc582..f08d6a31 100644 --- a/toontown/toon/GloveShopGui.py +++ b/toontown/toon/GloveShopGui.py @@ -80,7 +80,7 @@ class GloveShopGui: def setClientGlove(self, color): dna = base.localAvatar.style - dna.gloveColor = color + dna.gloveColor = ToonDNA.allColorsList[color] base.localAvatar.setDNA(dna) def __exit(self, state):