コード例 #1
0
    def test_blood_apply(self):
        self.assertEqual(self.hero.pvp.effectiveness, 0)
        ability = Blood(hero=self.hero, enemy=self.enemy)
        ability.apply()
        self.assertEqual(self.hero.pvp.effectiveness, 0)

        self.hero.pvp.set_energy(1)
        ability.apply()
        self.assertTrue(self.hero.pvp.effectiveness > 0)
コード例 #2
0
ファイル: test_abilities.py プロジェクト: Jazzis18/the-tale
    def test_blood_apply(self):
        self.assertEqual(self.hero.pvp.effectiveness, 0)
        ability = Blood(hero=self.hero, enemy=self.enemy)
        ability.apply()
        self.assertEqual(self.hero.pvp.effectiveness,  0)

        self.hero.pvp.set_energy(1)
        ability.apply()
        self.assertTrue(self.hero.pvp.effectiveness > 0)
コード例 #3
0
    def test_blood_apply(self):
        self.meta_action_battle.hero_1_pvp.set_effectiveness(0)
        ability = Blood(hero=self.hero, enemy=self.enemy)
        ability.apply()
        self.assertEqual(self.meta_action_battle.hero_1_pvp.effectiveness,  0)

        self.meta_action_battle.hero_1_pvp.set_energy(1)
        ability.apply()
        self.assertTrue(self.meta_action_battle.hero_1_pvp.effectiveness > 0)
コード例 #4
0
    def test_blood_apply(self):
        self.meta_action_battle.hero_1_pvp.set_effectiveness(0)
        ability = Blood(hero=self.hero, enemy=self.enemy)
        ability.apply()
        self.assertEqual(self.meta_action_battle.hero_1_pvp.effectiveness, 0)

        self.meta_action_battle.hero_1_pvp.set_energy(1)
        ability.apply()
        self.assertTrue(self.meta_action_battle.hero_1_pvp.effectiveness > 0)
コード例 #5
0
    def test_blood_apply__with_might(self):
        self.hero.pvp.set_energy(1000)
        self.assertEqual(self.hero.pvp.effectiveness, 0)
        ability = Blood(hero=self.hero, enemy=self.enemy)
        ability.apply()

        clean_effectiveness = self.hero.pvp.effectiveness

        self.hero.pvp.set_energy(1000)
        self.hero.might = 10000
        self.hero.pvp.set_effectiveness(0)
        ability = Blood(hero=self.hero, enemy=self.enemy)
        ability.apply()

        self.assertTrue(clean_effectiveness < self.hero.pvp.effectiveness)
コード例 #6
0
ファイル: test_abilities.py プロジェクト: Jazzis18/the-tale
    def test_blood_apply__with_might(self):
        self.hero.pvp.set_energy(1000)
        self.assertEqual(self.hero.pvp.effectiveness, 0)
        ability = Blood(hero=self.hero, enemy=self.enemy)
        ability.apply()

        clean_effectiveness = self.hero.pvp.effectiveness

        self.hero.pvp.set_energy(1000)
        self.hero.might = 10000
        self.hero.pvp.set_effectiveness(0)
        ability = Blood(hero=self.hero, enemy=self.enemy)
        ability.apply()

        self.assertTrue(clean_effectiveness < self.hero.pvp.effectiveness)