def turn_ui_info(self): return { 'advantage': self.turn_advantage, 'effectiveness': int(self.turn_effectiveness), 'probabilities': { 'ice': Ice.get_probability(self.turn_energy, self.turn_energy_speed), 'blood': Blood.get_probability(self.turn_energy, self.turn_energy_speed), 'flame': Flame.get_probability(self.turn_energy, self.turn_energy_speed) }, 'energy': self.turn_energy, 'energy_speed': self.turn_energy_speed }
def test_flame_apply(self): self.enemy.pvp.set_energy_speed(100) ability = Flame(hero=self.hero, enemy=self.enemy) ability.apply() self.assertTrue(self.enemy.pvp.energy_speed < 100)
def test_flame_apply_minimum(self): self.assertEqual(self.enemy.pvp.energy_speed, 1) ability = Flame(hero=self.hero, enemy=self.enemy) ability.apply() self.assertEqual(self.enemy.pvp.energy_speed, 1)
def test_flame_apply(self): self.meta_action_battle.hero_2_pvp.set_energy_speed(100) ability = Flame(hero=self.hero, enemy=self.enemy) ability.apply() self.assertTrue(self.meta_action_battle.hero_2_pvp.energy_speed < 100)
def test_flame_apply_minimum(self): self.assertEqual(self.meta_action_battle.hero_2_pvp.energy_speed, 1) ability = Flame(hero=self.hero, enemy=self.enemy) ability.apply() self.assertEqual(self.meta_action_battle.hero_2_pvp.energy_speed, 1)