本文整理汇总了Python中toontown.toonbase.ToontownBattleGlobals.getBossBattleCreditMultiplier方法的典型用法代码示例。如果您正苦于以下问题:Python ToontownBattleGlobals.getBossBattleCreditMultiplier方法的具体用法?Python ToontownBattleGlobals.getBossBattleCreditMultiplier怎么用?Python ToontownBattleGlobals.getBossBattleCreditMultiplier使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类toontown.toonbase.ToontownBattleGlobals
的用法示例。
在下文中一共展示了ToontownBattleGlobals.getBossBattleCreditMultiplier方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: makeBattle
# 需要导入模块: from toontown.toonbase import ToontownBattleGlobals [as 别名]
# 或者: from toontown.toonbase.ToontownBattleGlobals import getBossBattleCreditMultiplier [as 别名]
def makeBattle(self, bossCogPosHpr, battlePosHpr, roundCallback, finishCallback, battleNumber, battleSide):
if battleNumber == 1:
battle = DistributedBattleWaitersAI.DistributedBattleWaitersAI(self.air, self, roundCallback, finishCallback, battleSide)
else:
battle = DistributedBattleDinersAI.DistributedBattleDinersAI(self.air, self, roundCallback, finishCallback, battleSide)
self.setBattlePos(battle, bossCogPosHpr, battlePosHpr)
battle.suitsKilled = self.suitsKilled
battle.battleCalc.toonSkillPtsGained = self.toonSkillPtsGained
battle.toonExp = self.toonExp
battle.toonOrigQuests = self.toonOrigQuests
battle.toonItems = self.toonItems
battle.toonOrigMerits = self.toonOrigMerits
battle.toonMerits = self.toonMerits
battle.toonParts = self.toonParts
battle.helpfulToons = self.helpfulToons
mult = ToontownBattleGlobals.getBossBattleCreditMultiplier(battleNumber)
battle.battleCalc.setSkillCreditMultiplier(mult)
activeSuits = self.activeSuitsA
if battleSide:
activeSuits = self.activeSuitsB
for suit in activeSuits:
battle.addSuit(suit)
battle.generateWithRequired(self.zoneId)
return battle
示例2: enterBattleOne
# 需要导入模块: from toontown.toonbase import ToontownBattleGlobals [as 别名]
# 或者: from toontown.toonbase.ToontownBattleGlobals import getBossBattleCreditMultiplier [as 别名]
def enterBattleOne(self):
self.cleanupIntervals()
mult = ToontownBattleGlobals.getBossBattleCreditMultiplier(1)
localAvatar.inventory.setBattleCreditMultiplier(mult)
self.toonsToBattlePosition(self.toonsA, self.battleANode)
self.toonsToBattlePosition(self.toonsB, self.battleBNode)
self.releaseToons()
base.playMusic(self.battleOneMusic, looping=1, volume=0.9)
示例3: enterBattle
# 需要导入模块: from toontown.toonbase import ToontownBattleGlobals [as 别名]
# 或者: from toontown.toonbase.ToontownBattleGlobals import getBossBattleCreditMultiplier [as 别名]
def enterBattle(self, event):
mult = 1
if self.bossCog:
mult = ToontownBattleGlobals.getBossBattleCreditMultiplier(self.bossCog.battleNumber)
self.townBattle.enter(event, self.fsm.getStateNamed('battle'), bldg=1, creditMultiplier=mult)
base.localAvatar.b_setAnimState('off', 1)
base.localAvatar.setTeleportAvailable(0)
base.localAvatar.cantLeaveGame = 1
示例4: enterBattleTwo
# 需要导入模块: from toontown.toonbase import ToontownBattleGlobals [as 别名]
# 或者: from toontown.toonbase.ToontownBattleGlobals import getBossBattleCreditMultiplier [as 别名]
def enterBattleTwo(self):
self.cleanupIntervals()
mult = ToontownBattleGlobals.getBossBattleCreditMultiplier(2)
localAvatar.inventory.setBattleCreditMultiplier(mult)
self.reparentTo(render)
self.setPosHpr(*ToontownGlobals.SellbotBossBattleTwoPosHpr)
self.clearChat()
self.cagedToon.clearChat()
self.rampA.request('retract')
self.rampB.request('retract')
self.rampC.request('retract')
self.releaseToons()
self.toonsToBattlePosition(self.toonsA, self.battleANode)
self.toonsToBattlePosition(self.toonsB, self.battleBNode)
if self.battleA is None or self.battleB is None:
cageIndex = 3
else:
cageIndex = 2
self.setCageIndex(cageIndex)
base.playMusic(self.battleTwoMusic, looping=1, volume=0.9)
return