Ejemplo n.º 1
0
        public void TestExplosiveMasteringBurning()
        {
            var game     = CreateGame();
            var champion = ChampionEnemies.First();

            PrepareEnemyToBeBeaten(champion);
            var chempBeginHealth = champion.Stats.Health;
            var hero             = game.GameManager.Hero;

            var explosiveCocktail = new ProjectileFightItem(FightItemKind.ExplosiveCocktail, hero);

            explosiveCocktail.Count = 10;
            hero.Inventory.Add(explosiveCocktail);
            hero.ActiveFightItem = explosiveCocktail;

            for (int i = 0; i < 10; i++)
            {
                //champion.OnHitBy(explosiveCocktail);
                UseFightItem(hero, champion, hero.ActiveProjectileFightItem);
                if (champion.HasLastingEffect(Roguelike.Effects.EffectType.Firing))
                {
                    break;
                }
                GotoNextHeroTurn();
            }

            Assert.True(champion.HasLastingEffect(Roguelike.Effects.EffectType.Firing));
        }
Ejemplo n.º 2
0
        public void TestExplosiveMasteringBurning()
        {
            var game             = CreateGame();
            var champion         = ChampionEnemies.First();
            var chempBeginHealth = champion.Stats.Health;
            var hero             = game.GameManager.Hero;

            var explosiveCocktail = new ProjectileFightItem(FightItemKind.ExplosiveCocktail, hero);

            for (int i = 0; i < 10; i++)
            {
                champion.OnHitBy(explosiveCocktail);
                if (champion.HasLastingEffect(Roguelike.Effects.EffectType.Firing))
                {
                    break;
                }
            }

            Assert.True(champion.HasLastingEffect(Roguelike.Effects.EffectType.Firing));
        }