public void IncrementFirstAbilityLevel() { if (UnspentPoints > LevelingSystem.AbilityPointsCostPerLevel && Ability1Level < LevelingSystem.AbilityMaxLevel) { Ability1Level++; Ability1.IncrementLevel(); UnspentPoints -= LevelingSystem.AbilityPointsCostPerLevel; } }
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); }
public object AnsweredBy(IActor actor, Ability1 ability) => Result;
public object ExecuteGivenAs(IActor actor, Ability1 ability) => Result;
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); }
private void RefreshCooldowns() { Ability1?.RefreshCooldown(); Ability2?.RefreshCooldown(); }
public void DisableAllSkills() { Ability1?.Disable(); Ability2?.Disable(); }