The CFO can now jump to revive all goons

This commit is contained in:
John 2015-07-31 20:18:56 +03:00
parent 90b98ad3ef
commit 30b7ff3b20
3 changed files with 21 additions and 5 deletions

View file

@ -143,10 +143,18 @@ class DistributedCashbotBossAI(DistributedBossCogAI.DistributedBossCogAI, FSM.FS
return return
def doNextAttack(self, task): def doNextAttack(self, task):
self.__doDirectedAttack() if random.random() <= 0.2:
if self.heldObject == None and not self.waitingForHelmet: self.b_setAttackCode(ToontownGlobals.BossCogAreaAttack)
self.waitForNextHelmet() taskMgr.doMethodLater(4.36, self.__reviveGoons, self.uniqueName('reviveGoons'))
return else:
self.__doDirectedAttack()
if self.heldObject == None and not self.waitingForHelmet:
self.waitForNextHelmet()
def __reviveGoons(self, task):
for goon in self.goons:
if goon.state == 'Stunned':
goon.request('Recovery')
def __doDirectedAttack(self): def __doDirectedAttack(self):
if self.toonsToAttack: if self.toonsToAttack:
@ -285,6 +293,7 @@ class DistributedCashbotBossAI(DistributedBossCogAI.DistributedBossCogAI, FSM.FS
def stopGoons(self): def stopGoons(self):
taskName = self.uniqueName('NextGoon') taskName = self.uniqueName('NextGoon')
taskMgr.remove(taskName) taskMgr.remove(taskName)
taskMgr.remove(self.uniqueName('reviveGoons'))
def doNextGoon(self, task): def doNextGoon(self, task):
if self.attackCode != ToontownGlobals.BossCogDizzy: if self.attackCode != ToontownGlobals.BossCogDizzy:

View file

@ -8590,6 +8590,13 @@ JumpBossTaunts = {
], ],
'l': [ 'l': [
"You're all in contempt of court!" "You're all in contempt of court!"
],
'm': [
'STOP!',
'What are you doing? Wake up!',
"I can't believe it!",
"You're all asleep on the job!",
'Wake up!'
] ]
} }
CEOSpeech = [ CEOSpeech = [

View file

@ -577,7 +577,7 @@ BossCogOvertimeAttack = 20
BossCogAttackTimes = {BossCogElectricFence: 0, BossCogAttackTimes = {BossCogElectricFence: 0,
BossCogSwatLeft: 5.5, BossCogSwatLeft: 5.5,
BossCogSwatRight: 5.5, BossCogSwatRight: 5.5,
BossCogAreaAttack: 4.21, BossCogAreaAttack: 4.5,
BossCogFrontAttack: 2.65, BossCogFrontAttack: 2.65,
BossCogRecoverDizzyAttack: 5.1, BossCogRecoverDizzyAttack: 5.1,
BossCogDirectedAttack: 4.84, BossCogDirectedAttack: 4.84,