mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-24 04:02:40 -06:00
The CFO can now jump to revive all goons
This commit is contained in:
parent
90b98ad3ef
commit
30b7ff3b20
3 changed files with 21 additions and 5 deletions
|
@ -143,10 +143,18 @@ class DistributedCashbotBossAI(DistributedBossCogAI.DistributedBossCogAI, FSM.FS
|
||||||
return
|
return
|
||||||
|
|
||||||
def doNextAttack(self, task):
|
def doNextAttack(self, task):
|
||||||
|
if random.random() <= 0.2:
|
||||||
|
self.b_setAttackCode(ToontownGlobals.BossCogAreaAttack)
|
||||||
|
taskMgr.doMethodLater(4.36, self.__reviveGoons, self.uniqueName('reviveGoons'))
|
||||||
|
else:
|
||||||
self.__doDirectedAttack()
|
self.__doDirectedAttack()
|
||||||
if self.heldObject == None and not self.waitingForHelmet:
|
if self.heldObject == None and not self.waitingForHelmet:
|
||||||
self.waitForNextHelmet()
|
self.waitForNextHelmet()
|
||||||
return
|
|
||||||
|
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:
|
||||||
|
|
|
@ -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 = [
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue