mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-27 13:42:28 -06:00
20 lines
570 B
Python
20 lines
570 B
Python
|
from direct.task.Task import Task
|
||
|
import random
|
||
|
|
||
|
from toontown.town import Street
|
||
|
|
||
|
|
||
|
class BRStreet(Street.Street):
|
||
|
def enter(self, requestStatus):
|
||
|
Street.Street.enter(self, requestStatus)
|
||
|
taskMgr.doMethodLater(1, self.__windTask, 'BR-wind')
|
||
|
|
||
|
def exit(self):
|
||
|
Street.Street.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
|