Esempio n. 1
0
        public void RequirementCasterTest()
        {
            Mogwai2.Evolve();

            Assert.Equal(0, Mogwai2.GetRequirementValue(RequirementType.FighterLevel));
            Assert.Equal(1, Mogwai2.GetRequirementValue(RequirementType.CasterLevel));
        }
Esempio n. 2
0
        public void Evolve(bool fast = false)
        {
            if (!fast)
            {
                if (_mogwai.Evolve())
                {
                    if (_mogwai.Adventure != null)
                    {
                        if (!(_custom is CustomAdventure))
                        {
                            SetCustomWindowState(PlayScreenState.Adventure);
                        }

                        _adventure.Start(_mogwai.Adventure);
                    }
                    else
                    {
                        SetCustomWindowState(PlayScreenState.Welcome);
                    }
                    UpdateLog();
                }
            }
            else if (_mogwai.PeekNextShift != null)
            {
                SetCustomWindowState(PlayScreenState.Welcome);

                _log.Reset();
                while (_mogwai.PeekNextShift != null && _mogwai.PeekNextShift.IsSmallShift && _mogwai.Evolve())
                {
                    UpdateLog();
                }
            }
        }
Esempio n. 3
0
 public void BasicSpellTest()
 {
     if (Mogwai.Evolve())
     {
         Assert.Single(Mogwai.Classes.First(p => p.ClassType == ClassType.Cleric).Learnables);
         //Assert.True(mogwai.Learn(Spells.CureLightWounds()));
         Assert.True(Mogwai.CombatActions.Exists(p => p is SpellCast));
     }
     else
     {
         Assert.True(false);
     }
 }
        public async Task EvolveMogwai()
        {
            await Task.Run(() =>
            {
                if (CurrentMogwai == null)
                {
                    return;
                }

                CurrentMogwaiKeys.IsLocked = true;

                Mogwai mogwai = CurrentMogwai;
                while (mogwai.Evolve())
                {
                    while (mogwai.CanEvolveAdventure)
                    {
                        mogwai.EvolveAdventure();
                    }
                }

                CurrentMogwaiKeys.IsLocked = false;
            });
        }