Ejemplo n.º 1
0
    def execute(self, m1: Remnant, m2: Remnant):

        print('%s formed a pact with %s' % (m1.name, m2.name))
        m2.take_heal(m2.base_hp)

        print('%s rests in piece' % m1.name)
        m1.take_damage(m1.hp)
Ejemplo n.º 2
0
    def execute(self, m1: Remnant, m2: Remnant):

        print('%s formed a pact with %s' % (m1.name, m2.name))
        m2.take_heal(m2.base_hp)

        print('%s rests in piece' % m1.name)
        m1.take_damage(m1.hp)
Ejemplo n.º 3
0
    def execute(self, m1: Remnant, m2: Remnant):
        attack_power = 1
        if not m2.attack_hit():
            print("%s missed %s" % (m1.name, m2.name))
        crit = 1
        if m1.critical_strike(m2):
            crit = m1.critical_modifier

        dmg = (m1.calculate_power() + attack_power) * crit

        print("%s did %d damage to %s" % (m1.name, dmg, m2.name))

        m2.take_damage(dmg)
Ejemplo n.º 4
0
    def execute(self, m1: Remnant, m2: Remnant):
        attack_power = 1
        if not m2.attack_hit():
            print("%s missed %s" % (m1.name, m2.name))
        crit = 1
        if m1.critical_strike(m2):
            crit = m1.critical_modifier

        dmg = (m1.calculate_power() + attack_power) * crit

        print("%s did %d damage to %s" % (m1.name, dmg, m2.name))

        m2.take_damage(dmg)