Poodletooth-iLand/toontown/safezone/BRPlayground.py
Master Jumblespeed d882959bfa switch to remote
2015-05-18 22:11:33 -04:00

18 lines
No EOL
604 B
Python
Executable file

from direct.task.Task import Task
from toontown.safezone import Playground
import random
class BRPlayground(Playground.Playground):
def enter(self, requestStatus):
Playground.Playground.enter(self, requestStatus)
taskMgr.doMethodLater(1, self.__windTask, 'BR-wind')
def exit(self):
Playground.Playground.exit(self)
taskMgr.remove('BR-wind')
def __windTask(self, task):
base.playSfx(random.choice(self.loader.windSound))
time = random.random() * 8.0 + 1
taskMgr.doMethodLater(time, self.__windTask, 'BR-wind')
return Task.done