Poodletooth-iLand/toontown/minigame/TagTreasurePlannerAI.py

17 lines
721 B
Python
Raw Normal View History

2015-03-03 16:10:12 -06:00
from direct.directnotify import DirectNotifyGlobal
from toontown.safezone import RegenTreasurePlannerAI
class TagTreasurePlannerAI(RegenTreasurePlannerAI.RegenTreasurePlannerAI):
notify = DirectNotifyGlobal.directNotify.newCategory('TagTreasurePlannerAI')
2015-05-25 04:31:46 -05:00
def __init__(self, zoneId, game, callback, treasureType, spawnPoints):
2015-03-03 16:10:12 -06:00
self.numPlayers = 0
self.game = game
2015-05-25 04:31:46 -05:00
self.spawnPoints = spawnPoints
RegenTreasurePlannerAI.RegenTreasurePlannerAI.__init__(self, zoneId, treasureType, 'TagTreasurePlanner-' + str(zoneId), 3, 6, callback)
2015-03-03 16:10:12 -06:00
def initSpawnPoints(self):
return self.spawnPoints
def validAvatar(self, treasure, av):
2015-05-25 04:31:46 -05:00
return av.doId != self.game.itAvId