mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-23 11:42:39 -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
|
||||
|
||||
def doNextAttack(self, task):
|
||||
self.__doDirectedAttack()
|
||||
if self.heldObject == None and not self.waitingForHelmet:
|
||||
self.waitForNextHelmet()
|
||||
return
|
||||
if random.random() <= 0.2:
|
||||
self.b_setAttackCode(ToontownGlobals.BossCogAreaAttack)
|
||||
taskMgr.doMethodLater(4.36, self.__reviveGoons, self.uniqueName('reviveGoons'))
|
||||
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):
|
||||
if self.toonsToAttack:
|
||||
|
@ -285,6 +293,7 @@ class DistributedCashbotBossAI(DistributedBossCogAI.DistributedBossCogAI, FSM.FS
|
|||
def stopGoons(self):
|
||||
taskName = self.uniqueName('NextGoon')
|
||||
taskMgr.remove(taskName)
|
||||
taskMgr.remove(self.uniqueName('reviveGoons'))
|
||||
|
||||
def doNextGoon(self, task):
|
||||
if self.attackCode != ToontownGlobals.BossCogDizzy:
|
||||
|
|
|
@ -8590,6 +8590,13 @@ JumpBossTaunts = {
|
|||
],
|
||||
'l': [
|
||||
"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 = [
|
||||
|
|
|
@ -577,7 +577,7 @@ BossCogOvertimeAttack = 20
|
|||
BossCogAttackTimes = {BossCogElectricFence: 0,
|
||||
BossCogSwatLeft: 5.5,
|
||||
BossCogSwatRight: 5.5,
|
||||
BossCogAreaAttack: 4.21,
|
||||
BossCogAreaAttack: 4.5,
|
||||
BossCogFrontAttack: 2.65,
|
||||
BossCogRecoverDizzyAttack: 5.1,
|
||||
BossCogDirectedAttack: 4.84,
|
||||
|
|
Loading…
Reference in a new issue