mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-23 19:52:37 -06:00
NPC Tuple magic word
This commit is contained in:
parent
21c051ce42
commit
e31d7fae8e
2 changed files with 17 additions and 1 deletions
|
@ -4843,7 +4843,7 @@ def dna(part, value):
|
|||
return 'Bottom texture color index set to: ' + str(dna.botTexColor)
|
||||
|
||||
if part == 'show':
|
||||
return dna.asTuple()
|
||||
return dna.asNpcTuple() if value else dna.asTuple()
|
||||
if part == 'showrandom':
|
||||
return NPCToons.getRandomDNA(time.time(), value)
|
||||
return 'Invalid part: ' + part
|
||||
|
|
|
@ -2704,6 +2704,22 @@ class ToonDNA:
|
|||
self.botTex,
|
||||
self.botTexColor)
|
||||
|
||||
def asNpcTuple(self):
|
||||
return (self.head,
|
||||
self.torso,
|
||||
self.legs,
|
||||
self.gender,
|
||||
allColorsList.index(self.armColor),
|
||||
allColorsList.index(self.gloveColor),
|
||||
allColorsList.index(self.legColor),
|
||||
allColorsList.index(self.headColor),
|
||||
self.topTex,
|
||||
self.topTexColor,
|
||||
self.sleeveTex,
|
||||
self.sleeveTexColor,
|
||||
self.botTex,
|
||||
self.botTexColor)
|
||||
|
||||
def getType(self):
|
||||
if self.type == 't':
|
||||
type = self.getAnimal()
|
||||
|
|
Loading…
Reference in a new issue