mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-23 19:52:37 -06:00
Glove NPC
This commit is contained in:
parent
8acb336dae
commit
ed9c41bbf4
2 changed files with 2 additions and 2 deletions
|
@ -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])
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue