public void TestPreciseShotTalentAddedMechanism() { var preciseShot = new PreciseShotTalent(); this.playerThing.Behaviors.FindFirst<TalentsBehavior>().AddTalent(preciseShot); var behavior = this.playerThing.Behaviors.FindFirst<TalentsBehavior>(); Verify.IsTrue(behavior.ManagedTalents.Contains(preciseShot)); Verify.IsNotNull(behavior.FindFirst<PreciseShotTalent>().PlayerThing); behavior.RemoveTalent(preciseShot); }
public void TestPreciseShotTalentAutosetRule() { var preciseShot = new PreciseShotTalent(); var behavior = this.playerThing.Behaviors.FindFirst <TalentsBehavior>(); var damageStat = this.playerThing.FindGameStat("Damage"); int oldDamaveValue = damageStat.Value; behavior.AddTalent(preciseShot); Verify.AreNotEqual(oldDamaveValue, damageStat.Value); behavior.RemoveTalent(preciseShot); Verify.AreEqual(oldDamaveValue, damageStat.Value); }
public void TestPreciseShotTalentAutosetRule() { var preciseShot = new PreciseShotTalent(); var behavior = this.playerThing.Behaviors.FindFirst<TalentsBehavior>(); var damageStat = this.playerThing.FindGameStat("Damage"); int oldDamaveValue = damageStat.Value; behavior.AddTalent(preciseShot); Verify.AreNotEqual(oldDamaveValue, damageStat.Value); behavior.RemoveTalent(preciseShot); Verify.AreEqual(oldDamaveValue, damageStat.Value); }