Memories of War only does 15% currently should be 20% per live.
Gives 2ndary Resist identical to Avoidance of Magic. - currently does a modified change in spell handler and doesn't actually give the 2ndary resist. Not showing up in stats like /bonuses
http://camelotherald.wikia.com/wiki/Pat ... rsion_1.81
updated my ability database to text for Memories of War to say 2% per level 20% at 50 vs the 2-3% and 15% total it says now.
Updated MemeoriesOfWar.cs
- Code: Select all
/* * DAWN OF LIGHT - The first free open source DAoC server emulator * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ using DOL.GS; using DOL.Database; namespace DOL.GS.SkillHandler { //Memories of War: Upon reaching level 41, the Hero, Warrior and Armsman will begin to gain more magic resistance //(spell damage reduction only) as they progress towards level 50. At each level beyond 41 they gain 2% extra //resistance per level. At level 50, they will have the full 20% benefit. [SkillHandlerAttribute(Abilities.MemoriesOfWar)] public class MemoriesOfWar : StatChangingAbility { /// <summary> /// The list of properties this ability affects /// </summary> public static eProperty[] properties = new eProperty[] { eProperty.Resist_Body, eProperty.Resist_Cold, eProperty.Resist_Energy, eProperty.Resist_Heat, eProperty.Resist_Matter, eProperty.Resist_Spirit, }; public MemoriesOfWar(DBAbility dba, int level) : base(dba, level, properties) { } public override int GetAmountForLevel(int level) { switch (level) { case 1: return 2; case 2: return 4; case 3: return 6; case 4: return 8; case 5: return 10; case 6: return 12; case 7: return 14; case 8: return 16; case 9: return 18; default: return 20; } } } }
- Code: Select all
if (player.Level >= 41) { player.AddAbility(SkillBase.GetAbility(Abilities.MemoriesOfWar, 1)); player.AddAbility(SkillBase.GetAbility(Abilities.ScarsOfBattle)); } if (player.Level >= 42) { player.AddAbility(SkillBase.GetAbility(Abilities.MemoriesOfWar, 2)); } if (player.Level >= 43) { player.AddAbility(SkillBase.GetAbility(Abilities.MemoriesOfWar, 3)); } if (player.Level >= 44) { player.AddAbility(SkillBase.GetAbility(Abilities.MemoriesOfWar, 4)); } if (player.Level >= 45) { player.AddAbility(SkillBase.GetAbility(Abilities.MemoriesOfWar, 5)); } if (player.Level >= 46) { player.AddAbility(SkillBase.GetAbility(Abilities.MemoriesOfWar, 6)); } if (player.Level >= 47) { player.AddAbility(SkillBase.GetAbility(Abilities.MemoriesOfWar, 7)); } if (player.Level >= 48) { player.AddAbility(SkillBase.GetAbility(Abilities.MemoriesOfWar, 8)); } if (player.Level >= 49) { player.AddAbility(SkillBase.GetAbility(Abilities.MemoriesOfWar, 9)); } if (player.Level >= 50) { player.AddAbility(SkillBase.GetAbility(Abilities.Fury)); player.AddAbility(SkillBase.GetAbility(Abilities.MemoriesOfWar, 10)); }
- Code: Select all
if (player.Level >= 41) { player.AddAbility(SkillBase.GetAbility(Abilities.MemoriesOfWar, 1)); player.AddAbility(SkillBase.GetAbility(Abilities.ScarsOfBattle)); } if (player.Level >= 42) { player.AddAbility(SkillBase.GetAbility(Abilities.MemoriesOfWar, 2)); } if (player.Level >= 43) { player.AddAbility(SkillBase.GetAbility(Abilities.MemoriesOfWar, 3)); } if (player.Level >= 44) { player.AddAbility(SkillBase.GetAbility(Abilities.MemoriesOfWar, 4)); } if (player.Level >= 45) { player.AddAbility(SkillBase.GetAbility(Abilities.Stag, 4)); player.AddAbility(SkillBase.GetAbility(Abilities.MemoriesOfWar, 5)); } if (player.Level >= 46) { player.AddAbility(SkillBase.GetAbility(Abilities.MemoriesOfWar, 6)); } if (player.Level >= 47) { player.AddAbility(SkillBase.GetAbility(Abilities.MemoriesOfWar, 7)); } if (player.Level >= 48) { player.AddAbility(SkillBase.GetAbility(Abilities.MemoriesOfWar, 8)); } if (player.Level >= 49) { player.AddAbility(SkillBase.GetAbility(Abilities.MemoriesOfWar, 9)); } if (player.Level >= 50) { player.AddAbility(SkillBase.GetAbility(Abilities.Fury)); player.AddAbility(SkillBase.GetAbility(Abilities.MemoriesOfWar, 10)); }
LINE TO REMOVE
3670-3685
- Code: Select all
/*Variance by Memories of War * - Memories of War: Upon reaching level 41, the Hero, Warrior and Armsman * will begin to gain more magic resistance (spell damage reduction only) * as they progress towards level 50. At each level beyond 41 they gain * 2%-3% extra resistance per level. At level 50, they will have the full 15% benefit. * from http://www.camelotherald.com/article.php?id=208 * * - assume that "spell damage reduction only" indicates resistcategory 2 */ if (ad.Target is GamePlayer && (ad.Target as GamePlayer).HasAbility(Abilities.MemoriesOfWar) && ad.Target.Level >= 40) { int levelbonus = Math.Min(target.Level - 40, 10); secondaryResistModifier += (int)((levelbonus * 0.1 * 15)); }