Exemple #1
0
 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 }
Exemple #2
0
 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 }
Exemple #3
0
 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)
Exemple #4
0
 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)
Exemple #5
0
 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)
Exemple #6
0
 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)
Exemple #7
0
 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)
Exemple #8
0
 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)
Exemple #9
0
 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)
Exemple #10
0
 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)