public void TestEffectsDef() { Character toon = new Character(); toon.SetBaseStat(Stat.Dexterity, 25); // regular conc pot: toon.AddEffect(Effects.Get("Blessing of Dexterity", 35)); toon.AddEffect(Effects.Get("Blessed Protection", 35)); toon.AddEffect(Effects.Get("Prayer of Protection", 35)); toon.AddEffect(Effects.Get("Charm of Illumination (Spirit)", 35)); toon.AddEffect(Effects.Get("Charm of Illumination (Intelligence)", 35)); toon.Stance = Stances.Get("HealerOffense", 25); Assert.That(toon.Defense, Is.EqualTo(239)); toon.Stance = Stances.Get("HealerDefense", 20); Assert.That(toon.Defense, Is.EqualTo(345)); // perfect conc pot: toon.AddEffect(Effects.Get("Blessing of Dexterity", 40)); toon.AddEffect(Effects.Get("Blessed Protection", 40)); toon.AddEffect(Effects.Get("Prayer of Protection", 40)); toon.AddEffect(Effects.Get("Charm of Illumination (Spirit)", 40)); toon.AddEffect(Effects.Get("Charm of Illumination (Intelligence)", 40)); toon.Stance = Stances.Get("HealerOffense", 25); Assert.That(toon.Defense, Is.EqualTo(259)); toon.Stance = Stances.Get("HealerDefense", 20); Assert.That(toon.Defense, Is.EqualTo(374)); }
public void TestStanceDef() { Character toon = new Character(); toon.SetBaseStat(Stat.Dexterity, 25); toon.SetBaseStat(Stat.Intelligence, 145); toon.Stance = Stances.Get("HealerDefense", 20); // defense +17% tt Assert.That(toon.Defense, Is.EqualTo(59)); toon.Stance = Stances.Get("HealerOffense", 25); // defense -19% tt Assert.That(toon.Defense, Is.EqualTo(41)); }
public void TestArmorDef() { Character toon = new Character(); toon.SetBaseStat(Stat.Dexterity, 25); toon.SetBaseStat(Stat.Intelligence, 145); // perfect conc pot: toon.AddEffect(Effects.Get("Blessing of Dexterity", 40)); toon.AddEffect(Effects.Get("Blessed Protection", 40)); toon.AddEffect(Effects.Get("Prayer of Protection", 40)); toon.AddEffect(Effects.Get("Charm of Illumination (Spirit)", 40)); toon.AddEffect(Effects.Get("Charm of Illumination (Intelligence)", 40)); toon.Stance = Stances.Get("HealerDefense", 20); toon.TrainSkill("Wear Armor, Light", 61); Assert.That(toon.GetSkill("Wear Armor, Light").UnbuffedSkill, Is.EqualTo(100m)); Assert.That(toon.GetSkillValue("Wear Armor, Light"), Is.EqualTo(118m)); toon.EquipItem(Equipments.Get("Hunting Leather Hood", "Aegis", null)); Assert.That(toon.Dexterity, Is.EqualTo(85)); Assert.That(toon.Defense, Is.EqualTo(484)); toon.EquipItem(Equipments.Get("Hunting Leather Vest", "Aegis", null)); Assert.That(toon.Defense, Is.EqualTo(677)); toon.EquipItem(Equipments.Get("Hunting Leather Sleeves", "Aegis", null)); Assert.That(toon.Defense, Is.EqualTo(768)); toon.EquipItem(Equipments.Get("Hunting Leather Leggings", "Aegis", null)); Assert.That(toon.Defense, Is.EqualTo(899)); toon.EquipItem(Equipments.Get("Hunting Leather Boots", "Aegis", null)); Assert.That(toon.Defense, Is.EqualTo(980)); toon.EquipItem(Equipments.Get("Hunting Leather Gloves", "Aegis", null)); //Todo: armor dex penalty is throwing this off Warn.Unless(toon.Dexterity, Is.EqualTo(88)); Warn.Unless(toon.Defense, Is.EqualTo(1061)); }