Пример #1
0
 public void IncrementFirstAbilityLevel()
 {
     if (UnspentPoints > LevelingSystem.AbilityPointsCostPerLevel && Ability1Level < LevelingSystem.AbilityMaxLevel)
     {
         Ability1Level++;
         Ability1.IncrementLevel();
         UnspentPoints -= LevelingSystem.AbilityPointsCostPerLevel;
     }
 }
Пример #2
0
        public void AnswerByWithAbility_ShouldReturnCorrectValue(
            QuestionBase <Ability1, object> sut,
            IActor actor,
            Ability1 ability,
            object expected)
        {
            //arrange
            Mock.Get(sut).Protected()
            .Setup <object>("Answer", ItExpr.Is <IActor>(a => a == actor), ability)
            .Returns(expected);
            //act
            var actual = sut.AnsweredBy(actor, ability);

            //assert
            actual.Should().Be(expected);
        }
Пример #3
0
 public object AnsweredBy(IActor actor, Ability1 ability) => Result;
 public object ExecuteGivenAs(IActor actor, Ability1 ability) => Result;
Пример #5
0
        public override string ToString()
        {
            String Moves  = "";
            String Levels = "";

            for (int i = 0; i < MoveLevels.Length; i++)
            {
                Moves  = Moves + MoveList[i].ToString() + "¶";
                Levels = Levels + MoveLevels[i].ToString() + "¶";
            }
            Moves  = Moves + "65535";
            Levels = Levels + "65535" + "¶";
            return(ID + "¶" + Name + "¶" + BaseHP.ToString() + "¶" + BaseAttack.ToString() + "¶" + BaseDefense.ToString() + "¶" + BaseSpecialAttack.ToString() + "¶" + BaseSpecialDefense.ToString() + "¶" + BaseSpeed.ToString() + "¶" + ((int)LevelingType).ToString() + "¶" + FormID.ToString() + "¶" + GenderValue.ToString() + "¶" + ((int)Type1).ToString() + "¶" + ((int)Type2).ToString() + "¶" + CatchRate.ToString() + "¶" + ExpYield.ToString() + "¶" + EffortYield.ToString() + "¶" + Item1.ToString() + "¶" + Item2.ToString() + "¶" + Ability1.ToString() + "¶" + Ability2.ToString() + "¶" + Ability3.ToString() + "¶" + DexEntry + "¶" + Levels + Moves);
        }
Пример #6
0
 private void RefreshCooldowns()
 {
     Ability1?.RefreshCooldown();
     Ability2?.RefreshCooldown();
 }
Пример #7
0
 public void DisableAllSkills()
 {
     Ability1?.Disable();
     Ability2?.Disable();
 }