Beispiel #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 }
Beispiel #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 }
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)