当前位置: 首页>>代码示例>>Python>>正文


Python ToontownBattleGlobals.getBossBattleCreditMultiplier方法代码示例

本文整理汇总了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
开发者ID:AdrianF98,项目名称:Toontown-Rewritten,代码行数:27,代码来源:DistributedBossbotBossAI.py

示例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)
开发者ID:Teku16,项目名称:Toontown-Crystal-Master,代码行数:10,代码来源:DistributedBossCog.py

示例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
开发者ID:nate97,项目名称:src,代码行数:10,代码来源:CogHQBossBattle.py

示例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
开发者ID:Toonerz,项目名称:Toontown-World-Online-Leak,代码行数:23,代码来源:DistributedSellbotBoss.py


注:本文中的toontown.toonbase.ToontownBattleGlobals.getBossBattleCreditMultiplier方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。