mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-10-31 00:37:54 +00:00
32 lines
1.1 KiB
Python
Executable file
32 lines
1.1 KiB
Python
Executable file
from toontown.suit import DistributedFactorySuit
|
|
from toontown.suit.Suit import *
|
|
from direct.directnotify import DirectNotifyGlobal
|
|
from direct.actor import Actor
|
|
from otp.avatar import Avatar
|
|
import SuitDNA
|
|
from toontown.toonbase import ToontownGlobals
|
|
from panda3d.core import *
|
|
from toontown.battle import SuitBattleGlobals
|
|
from direct.task import Task
|
|
from toontown.battle import BattleProps
|
|
from toontown.toonbase import TTLocalizer
|
|
import string
|
|
|
|
class DistributedStageSuit(DistributedFactorySuit.DistributedFactorySuit):
|
|
notify = DirectNotifyGlobal.directNotify.newCategory('DistributedStageSuit')
|
|
|
|
def setCogSpec(self, spec):
|
|
self.spec = spec
|
|
self.setPos(spec['pos'])
|
|
self.setH(spec['h'])
|
|
self.originalPos = spec['pos']
|
|
self.escapePos = spec['pos']
|
|
self.pathEntId = spec['path']
|
|
self.behavior = spec['behavior']
|
|
self.skeleton = spec['skeleton']
|
|
self.boss = spec['boss']
|
|
self.revives = spec.get('revives')
|
|
if self.reserve:
|
|
self.reparentTo(hidden)
|
|
else:
|
|
self.doReparent()
|