2015-03-03 16:10:12 -06:00
|
|
|
from direct.task.Task import Task
|
|
|
|
from toontown.safezone import Playground
|
2015-03-29 12:45:32 -05:00
|
|
|
import random
|
2015-03-03 16:10:12 -06:00
|
|
|
|
|
|
|
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')
|
2015-06-15 19:56:12 -05:00
|
|
|
return Task.done
|