本文整理汇总了Python中pirates.battle.WeaponGlobals.getIsCannonSkill方法的典型用法代码示例。如果您正苦于以下问题:Python WeaponGlobals.getIsCannonSkill方法的具体用法?Python WeaponGlobals.getIsCannonSkill怎么用?Python WeaponGlobals.getIsCannonSkill使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pirates.battle.WeaponGlobals
的用法示例。
在下文中一共展示了WeaponGlobals.getIsCannonSkill方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: continuePowerRechargeEffect
# 需要导入模块: from pirates.battle import WeaponGlobals [as 别名]
# 或者: from pirates.battle.WeaponGlobals import getIsCannonSkill [as 别名]
def continuePowerRechargeEffect(self):
for button in self.tray:
if isinstance(self.tray[button], SkillButton) and not self.tray[button].isEmpty():
if (WeaponGlobals.getIsShipSkill(self.tray[button].skillId) or WeaponGlobals.getIsCannonSkill(self.tray[button].skillId)) and self.tray[button].skillId != InventoryType.SailPowerRecharge:
self.tray[button].startPowerImpulse()
self.tray[button].skillId != InventoryType.SailPowerRecharge
示例2: updateCharmSkills
# 需要导入模块: from pirates.battle import WeaponGlobals [as 别名]
# 或者: from pirates.battle.WeaponGlobals import getIsCannonSkill [as 别名]
def updateCharmSkills(self):
self.rebuildSkillTray()
for button in self.tray:
if isinstance(self.tray[button], SkillButton) and not self.tray[button].isEmpty():
if (WeaponGlobals.getIsShipSkill(self.tray[button].skillId) or WeaponGlobals.getIsCannonSkill(self.tray[button].skillId)) and self.tray[button].skillId != InventoryType.SailPowerRecharge:
self.tray[button].updateSkillRingIval()
self.tray[button].skillId != InventoryType.SailPowerRecharge
示例3: removePowerRechargeEffect
# 需要导入模块: from pirates.battle import WeaponGlobals [as 别名]
# 或者: from pirates.battle.WeaponGlobals import getIsCannonSkill [as 别名]
def removePowerRechargeEffect(self):
self.isPowerRecharged = False
for button in self.tray:
if isinstance(self.tray[button], SkillButton) and not self.tray[button].isEmpty():
if (WeaponGlobals.getIsShipSkill(self.tray[button].skillId) or WeaponGlobals.getIsCannonSkill(self.tray[button].skillId)) and self.tray[button].skillId != InventoryType.SailPowerRecharge:
self.tray[button].stopPowerImpulse()
self.tray[button].updateSkillRingIval()
self.tray[button].skillId != InventoryType.SailPowerRecharge