mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-23 11:42:39 -06:00
Proper resistance toon DNAs + scarecrow fix in CFO battle
This commit is contained in:
parent
fc0a24904c
commit
a3822b5099
5 changed files with 9 additions and 29 deletions
|
@ -18,8 +18,7 @@ from toontown.effects import DustCloud
|
||||||
from toontown.suit import DistributedBossCog
|
from toontown.suit import DistributedBossCog
|
||||||
from toontown.suit import Suit
|
from toontown.suit import Suit
|
||||||
from toontown.suit import SuitDNA
|
from toontown.suit import SuitDNA
|
||||||
from toontown.toon import Toon
|
from toontown.toon import Toon, NPCToons
|
||||||
from toontown.toon import ToonDNA
|
|
||||||
from toontown.toonbase import TTLocalizer
|
from toontown.toonbase import TTLocalizer
|
||||||
from toontown.toonbase import ToontownGlobals
|
from toontown.toonbase import ToontownGlobals
|
||||||
from toontown.toonbase import ToontownTimer
|
from toontown.toonbase import ToontownTimer
|
||||||
|
@ -197,17 +196,7 @@ class DistributedBossbotBoss(DistributedBossCog.DistributedBossCog, FSM.FSM):
|
||||||
def __makeResistanceToon(self):
|
def __makeResistanceToon(self):
|
||||||
if self.resistanceToon:
|
if self.resistanceToon:
|
||||||
return
|
return
|
||||||
npc = Toon.Toon()
|
self.resistanceToon = NPCToons.createLocalNPC(10002)
|
||||||
npc.setName(TTLocalizer.BossbotResistanceToonName)
|
|
||||||
npc.setPickable(0)
|
|
||||||
npc.setPlayerType(NametagGroup.CCNonPlayer)
|
|
||||||
dna = ToonDNA.ToonDNA()
|
|
||||||
dna.newToonRandom(11237, 'm', 1)
|
|
||||||
dna.head = 'sls'
|
|
||||||
npc.setDNAString(dna.makeNetString())
|
|
||||||
npc.animFSM.request('neutral')
|
|
||||||
npc.loop('neutral')
|
|
||||||
self.resistanceToon = npc
|
|
||||||
self.resistanceToon.setPosHpr(*ToontownGlobals.BossbotRTIntroStartPosHpr)
|
self.resistanceToon.setPosHpr(*ToontownGlobals.BossbotRTIntroStartPosHpr)
|
||||||
state = random.getstate()
|
state = random.getstate()
|
||||||
random.seed(self.doId)
|
random.seed(self.doId)
|
||||||
|
|
|
@ -19,8 +19,7 @@ from toontown.building import ElevatorUtils
|
||||||
from toontown.chat import ResistanceChat
|
from toontown.chat import ResistanceChat
|
||||||
from toontown.coghq import CogDisguiseGlobals
|
from toontown.coghq import CogDisguiseGlobals
|
||||||
from toontown.distributed import DelayDelete
|
from toontown.distributed import DelayDelete
|
||||||
from toontown.toon import Toon
|
from toontown.toon import Toon, NPCToons
|
||||||
from toontown.toon import ToonDNA
|
|
||||||
from toontown.toonbase import TTLocalizer
|
from toontown.toonbase import TTLocalizer
|
||||||
from toontown.toonbase import ToontownGlobals
|
from toontown.toonbase import ToontownGlobals
|
||||||
from otp.nametag import NametagGroup
|
from otp.nametag import NametagGroup
|
||||||
|
@ -104,16 +103,7 @@ class DistributedCashbotBoss(DistributedBossCog.DistributedBossCog, FSM.FSM):
|
||||||
def __makeResistanceToon(self):
|
def __makeResistanceToon(self):
|
||||||
if self.resistanceToon:
|
if self.resistanceToon:
|
||||||
return
|
return
|
||||||
npc = Toon.Toon()
|
self.resistanceToon = NPCToons.createLocalNPC(12002)
|
||||||
npc.setName(TTLocalizer.ResistanceToonName)
|
|
||||||
npc.setPickable(0)
|
|
||||||
npc.setPlayerType(NametagGroup.CCNonPlayer)
|
|
||||||
dna = ToonDNA.ToonDNA()
|
|
||||||
dna.newToonRandom(11237, 'f', 1)
|
|
||||||
dna.head = 'pls'
|
|
||||||
npc.setDNAString(dna.makeNetString())
|
|
||||||
npc.animFSM.request('neutral')
|
|
||||||
self.resistanceToon = npc
|
|
||||||
self.resistanceToon.setPosHpr(*ToontownGlobals.CashbotRTBattleOneStartPosHpr)
|
self.resistanceToon.setPosHpr(*ToontownGlobals.CashbotRTBattleOneStartPosHpr)
|
||||||
state = random.getstate()
|
state = random.getstate()
|
||||||
random.seed(self.doId)
|
random.seed(self.doId)
|
||||||
|
@ -700,7 +690,6 @@ class DistributedCashbotBoss(DistributedBossCog.DistributedBossCog, FSM.FSM):
|
||||||
self.endVault.unstash()
|
self.endVault.unstash()
|
||||||
self.evWalls.stash()
|
self.evWalls.stash()
|
||||||
self.midVault.unstash()
|
self.midVault.unstash()
|
||||||
self.__showResistanceToon(True)
|
|
||||||
base.playMusic(self.stingMusic, looping=1, volume=0.9)
|
base.playMusic(self.stingMusic, looping=1, volume=0.9)
|
||||||
DistributedBossCog.DistributedBossCog.enterIntroduction(self)
|
DistributedBossCog.DistributedBossCog.enterIntroduction(self)
|
||||||
|
|
||||||
|
|
|
@ -860,8 +860,10 @@ NPCToonDict = {
|
||||||
7022: (-1, lnames[7022], ('mss', 'sd', 's', 'f', 24, 0, 24, 24, 3, 1, 0, 0, 0, 13), 'f', 0, NPC_REGULAR),
|
7022: (-1, lnames[7022], ('mss', 'sd', 's', 'f', 24, 0, 24, 24, 3, 1, 0, 0, 0, 13), 'f', 0, NPC_REGULAR),
|
||||||
7023: (-1, lnames[7023], ('pss', 'sd', 'l', 'f', 9, 0, 9, 9, 0, 8, 0, 0, 11, 0), 'f', 0, NPC_REGULAR),
|
7023: (-1, lnames[7023], ('pss', 'sd', 'l', 'f', 9, 0, 9, 9, 0, 8, 0, 0, 11, 0), 'f', 0, NPC_REGULAR),
|
||||||
10001: (10000, lnames[10001], 'r', 'f', 0, NPC_LAFF_RESTOCK),
|
10001: (10000, lnames[10001], 'r', 'f', 0, NPC_LAFF_RESTOCK),
|
||||||
|
10002: (-1, lnames[10002], ('sls', 'ss', 'm', 'm', 15, 0, 15, 15, 111, 27, 97, 27, 41, 27), 'm', 0, NPC_REGULAR),
|
||||||
11001: (11000, lnames[11001], 'r', 'm', 0, NPC_LAFF_RESTOCK),
|
11001: (11000, lnames[11001], 'r', 'm', 0, NPC_LAFF_RESTOCK),
|
||||||
12001: (12000, lnames[12001], 'r', 'm', 0, NPC_LAFF_RESTOCK),
|
12001: (12000, lnames[12001], 'r', 'm', 0, NPC_LAFF_RESTOCK),
|
||||||
|
12002: (-1, lnames[12002], ('pls', 'ls', 'l', 'f', 3, 0, 3, 3, 111, 27, 97, 27, 45, 27), 'f', 0, NPC_REGULAR),
|
||||||
13001: (13000, lnames[13001], 'r', 'f', 0, NPC_LAFF_RESTOCK)
|
13001: (13000, lnames[13001], 'r', 'f', 0, NPC_LAFF_RESTOCK)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4741,7 +4741,6 @@ CagedToonBattleThreeMaxTouchCage = 21
|
||||||
CagedToonBattleThreeMaxAdvice = 106
|
CagedToonBattleThreeMaxAdvice = 106
|
||||||
CashbotBossHadEnough = "That's it. I've had enough of these pesky Toons!"
|
CashbotBossHadEnough = "That's it. I've had enough of these pesky Toons!"
|
||||||
CashbotBossOuttaHere = "I've got a train to catch!"
|
CashbotBossOuttaHere = "I've got a train to catch!"
|
||||||
ResistanceToonName = 'Mata Hairy'
|
|
||||||
ResistanceToonCongratulations = "You did it! Congratulations!\x07You're an asset to the Resistance!\x07Here's a special phrase you can use in a tight spot:\x07%s\x07When you say it, %s.\x07But you can only use it once, so choose that time well!"
|
ResistanceToonCongratulations = "You did it! Congratulations!\x07You're an asset to the Resistance!\x07Here's a special phrase you can use in a tight spot:\x07%s\x07When you say it, %s.\x07But you can only use it once, so choose that time well!"
|
||||||
ResistanceToonToonupInstructions = 'all the Toons near you will gain %s Laff points'
|
ResistanceToonToonupInstructions = 'all the Toons near you will gain %s Laff points'
|
||||||
ResistanceToonToonupAllInstructions = 'all the Toons near you will gain full Laff points'
|
ResistanceToonToonupAllInstructions = 'all the Toons near you will gain full Laff points'
|
||||||
|
@ -6268,8 +6267,10 @@ NPCToonNames = {20000: 'Tutorial Tom',
|
||||||
7022: 'Dee Version',
|
7022: 'Dee Version',
|
||||||
7023: 'Bo Nanapeel',
|
7023: 'Bo Nanapeel',
|
||||||
10001: 'Healer Sara',
|
10001: 'Healer Sara',
|
||||||
|
10002: "Good ol' Gil Giggles",
|
||||||
11001: 'Healer Gabriel',
|
11001: 'Healer Gabriel',
|
||||||
12001: 'Healer Bill',
|
12001: 'Healer Bill',
|
||||||
|
12002: 'Mata Hairy',
|
||||||
13001: 'Healer Clover'}
|
13001: 'Healer Clover'}
|
||||||
zone2TitleDict = {2513: ('Toon Hall', ''),
|
zone2TitleDict = {2513: ('Toon Hall', ''),
|
||||||
2514: ('Toontown Bank', ''),
|
2514: ('Toontown Bank', ''),
|
||||||
|
@ -8130,7 +8131,6 @@ BossbotBossPreTwo1 = "What's taking so long?"
|
||||||
BossbotBossPreTwo2 = 'Get cracking and serve my banquet!'
|
BossbotBossPreTwo2 = 'Get cracking and serve my banquet!'
|
||||||
BossbotRTServeFood1 = 'Hehe, serve the food I place on these conveyor belts.'
|
BossbotRTServeFood1 = 'Hehe, serve the food I place on these conveyor belts.'
|
||||||
BossbotRTServeFood2 = 'If you serve a cog three times in a row it will explode.'
|
BossbotRTServeFood2 = 'If you serve a cog three times in a row it will explode.'
|
||||||
BossbotResistanceToonName = "Good ol' Gil Giggles"
|
|
||||||
BossbotPhase3Speech1 = "What's happening here?!"
|
BossbotPhase3Speech1 = "What's happening here?!"
|
||||||
BossbotPhase3Speech2 = 'These waiters are toons!'
|
BossbotPhase3Speech2 = 'These waiters are toons!'
|
||||||
BossbotPhase3Speech3 = 'Get them!!!'
|
BossbotPhase3Speech3 = 'Get them!!!'
|
||||||
|
|
|
@ -192,7 +192,7 @@ CarryLimits = (((10,
|
||||||
15,
|
15,
|
||||||
15,
|
15,
|
||||||
10,
|
10,
|
||||||
5,
|
7,
|
||||||
3,
|
3,
|
||||||
1)),
|
1)),
|
||||||
((10,
|
((10,
|
||||||
|
|
Loading…
Reference in a new issue