本文整理汇总了Python中toontown.toonbase.ToontownBattleGlobals.getCreditMultiplier方法的典型用法代码示例。如果您正苦于以下问题:Python ToontownBattleGlobals.getCreditMultiplier方法的具体用法?Python ToontownBattleGlobals.getCreditMultiplier怎么用?Python ToontownBattleGlobals.getCreditMultiplier使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类toontown.toonbase.ToontownBattleGlobals
的用法示例。
在下文中一共展示了ToontownBattleGlobals.getCreditMultiplier方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: enterBattle
# 需要导入模块: from toontown.toonbase import ToontownBattleGlobals [as 别名]
# 或者: from toontown.toonbase.ToontownBattleGlobals import getCreditMultiplier [as 别名]
def enterBattle(self, event):
mult = ToontownBattleGlobals.getCreditMultiplier(self.currentFloor)
self.townBattle.enter(
event, self.fsm.getStateNamed('battle'),
bldg=1, creditMultiplier=mult)
base.localAvatar.b_setAnimState('off', 1)
base.localAvatar.cantLeaveGame = 1
示例2: enterElevator
# 需要导入模块: from toontown.toonbase import ToontownBattleGlobals [as 别名]
# 或者: from toontown.toonbase.ToontownBattleGlobals import getCreditMultiplier [as 别名]
def enterElevator(self, ts = 0):
self.currentFloor += 1
self.cr.playGame.getPlace().currentFloor = self.currentFloor
self.setElevatorLights(self.elevatorModelIn)
self.setElevatorLights(self.elevatorModelOut)
self.__playElevator(ts, self.elevatorName, self.__handleElevatorDone)
mult = ToontownBattleGlobals.getCreditMultiplier(self.currentFloor)
base.localAvatar.inventory.setBattleCreditMultiplier(mult)
示例3: enterElevator
# 需要导入模块: from toontown.toonbase import ToontownBattleGlobals [as 别名]
# 或者: from toontown.toonbase.ToontownBattleGlobals import getCreditMultiplier [as 别名]
def enterElevator(self, ts = 0):
if not self._CogdoGameRepeat:
self.currentFloor += 1
self.cr.playGame.getPlace().currentFloor = self.currentFloor
self.setElevatorLights(self.elevatorModelIn)
self.setElevatorLights(self.elevatorModelOut)
if not self.isBossFloor(self.currentFloor):
self.elevatorModelOut.detachNode()
messenger.send('sellbotFieldOfficeChanged', [True])
else:
self._movie = CogdoElevatorMovie()
self._movie.load()
self._movie.play()
self.__playElevator(ts, self.elevatorName, self.__handleElevatorDone)
mult = ToontownBattleGlobals.getCreditMultiplier(self.currentFloor)
base.localAvatar.inventory.setBattleCreditMultiplier(mult)