本文整理汇总了Python中toontown.battle.SuitBattleGlobals.getAttackTaunt方法的典型用法代码示例。如果您正苦于以下问题:Python SuitBattleGlobals.getAttackTaunt方法的具体用法?Python SuitBattleGlobals.getAttackTaunt怎么用?Python SuitBattleGlobals.getAttackTaunt使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类toontown.battle.SuitBattleGlobals
的用法示例。
在下文中一共展示了SuitBattleGlobals.getAttackTaunt方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: sayFaceoffTaunt
# 需要导入模块: from toontown.battle import SuitBattleGlobals [as 别名]
# 或者: from toontown.battle.SuitBattleGlobals import getAttackTaunt [as 别名]
def sayFaceoffTaunt(self, custom=False, phrase="", dialogue=None):
if custom:
self.virtualSuit.setChatAbsolute(phrase, CFSpeech | CFTimeout, dialogue)
else:
if self.attackProp == 'teeth':
taunt = SuitBattleGlobals.getAttackTaunt(random.choice(['Bite', 'Chomp']))
elif self.attackProp == 'synergy':
taunt = SuitBattleGlobals.getAttackTaunt('Synergy')
elif self.attackProp == 'golf-ball':
taunt = SuitBattleGlobals.getAttackTaunt('TeeOff')
elif self.attackProp == 'baseball':
taunt = SuitBattleGlobals.getAttackTaunt('PlayHardball')
elif self.attackProp == 'write-off':
taunt = SuitBattleGlobals.getAttackTaunt('WriteOff')
elif self.attackProp == 'crunch':
taunt = SuitBattleGlobals.getAttackTaunt('Crunch')
else:
taunt = SuitBattleGlobals.getFaceoffTaunt(self.virtualSuit.style.name, self.doId)
self.virtualSuit.setChatAbsolute(taunt, CFSpeech | CFTimeout)