2015-03-03 16:10:12 -06:00
|
|
|
from direct.directnotify.DirectNotifyGlobal import *
|
|
|
|
from toontown.battle.DistributedBattleAI import DistributedBattleAI
|
|
|
|
|
|
|
|
|
|
|
|
class DistributedBattleTutorialAI(DistributedBattleAI):
|
|
|
|
notify = directNotify.newCategory('DistributedBattleTutorialAI')
|
|
|
|
|
|
|
|
def __init__(self, air, battleMgr, pos, suit, toonId, zoneId,
|
|
|
|
finishCallback=None, maxSuits=4, tutorialFlag=1, levelFlag=0,
|
|
|
|
interactivePropTrackBonus=-1):
|
|
|
|
DistributedBattleAI.__init__(self, air, battleMgr, pos, suit, toonId,
|
|
|
|
zoneId, finishCallback=finishCallback, maxSuits=1,
|
|
|
|
tutorialFlag=1, levelFlag=0, interactivePropTrackBonus=-1)
|
|
|
|
|
|
|
|
def startRewardTimer(self):
|
|
|
|
pass # We don't want a reward timer in the tutorial.
|
2015-03-23 07:16:25 -05:00
|
|
|
|
|
|
|
def exitReward(self):
|
|
|
|
av = simbase.air.doId2do.get(self.air.getAvatarIdFromSender())
|
2015-06-16 12:26:44 -05:00
|
|
|
|
2015-03-23 07:16:25 -05:00
|
|
|
if av:
|
2015-06-16 12:26:44 -05:00
|
|
|
av.b_setQuests([[101, 1, 1000, 100, 1]])
|