本文整理汇总了Python中hearthbreaker.game_objects.Minion.increase_health方法的典型用法代码示例。如果您正苦于以下问题:Python Minion.increase_health方法的具体用法?Python Minion.increase_health怎么用?Python Minion.increase_health使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类hearthbreaker.game_objects.Minion
的用法示例。
在下文中一共展示了Minion.increase_health方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: create_minion
# 需要导入模块: from hearthbreaker.game_objects import Minion [as 别名]
# 或者: from hearthbreaker.game_objects.Minion import increase_health [as 别名]
def create_minion(self, player):
minion = Minion(2, 2)
for combo in range(0, player.cards_played):
minion.increase_health(2)
minion.change_attack(2)
return minion
示例2: create_minion
# 需要导入模块: from hearthbreaker.game_objects import Minion [as 别名]
# 或者: from hearthbreaker.game_objects.Minion import increase_health [as 别名]
def create_minion(self, player):
# These are basically placeholders to give the agent something to
# choose
class Health(Card):
def __init__(self):
super().__init__("+5 Health and Taunt", 0, CHARACTER_CLASS.DRUID, CARD_RARITY.SPECIAL)
class Attack(Card):
def __init__(self):
super().__init__("+5 Attack", 0, CHARACTER_CLASS.DRUID, CARD_RARITY.SPECIAL)
health = Health()
attack = Attack()
option = player.agent.choose_option(health, attack)
minion = Minion(5, 5)
if option is health:
minion.increase_health(5)
minion.add_aura(Aura(Taunt(), SelfSelector()))
else:
minion.change_attack(5)
return minion