Warrior_110560.cs 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using CommonAI.Data;
  2. using CommonAI.Zone;
  3. using CommonAI.Zone.Formula;
  4. using CommonAI.Zone.Helper;
  5. using CommonAI.Zone.Instance;
  6. using CommonLang;
  7. using XmdsCommon.Plugin;
  8. using XmdsCommonServer.Plugin;
  9. using XmdsCommonServer.Plugin.XmdsSkillTemplate.DamageCalculator;
  10. using XmdsCommonServer.XLS.Data;
  11. namespace XmdsCommonSkill.Plugin.Skills.Warrior
  12. {
  13. /// <summary>
  14. /// 五技能 5-5(聚气期间受到伤害会累积血怒,在火焰风暴时根据血怒提高每次造成的伤害(巨剑风暴提高的伤害是随时间递进的,递进的量与血怒值挂钩))
  15. /// </summary>
  16. public class Warrior_110560 : Warrior_110550
  17. {
  18. private static readonly int ID = 110560;
  19. public override int SkillID { get { return ID; } }
  20. //防御系数伤害加成
  21. protected XmdsSkillValue mValueSet4;
  22. protected override void OnSkillDamagePerEvent(BattleParams param)
  23. {
  24. base.OnSkillDamagePerEvent(param);
  25. int defenceValue = (int)(param.Attacker.MirrorProp.Defence / XmdsDamageCalculator.PERER * mValueSet4.GetValue(param.GameSkill.TalentSkillLevel3));
  26. param.SkillDamageAdd += XmdsDamageCalculator.GetDamage(defenceValue, param.Attacker, param.Hitter, param.Source);
  27. }
  28. protected override void OnInitConfig()
  29. {
  30. XmdsSkillData data = XmdsDataMgr.GetInstance().GetXmdsSkillData(ID);
  31. InitData(data, out mJuQiValue, XmdsSkillData.XmdsSkillDataKey.DmgRate);
  32. InitData(data, out mValueSet1, XmdsSkillData.XmdsSkillDataKey.ValueSet);
  33. InitData(data, out mValueSet3, XmdsSkillData.XmdsSkillDataKey.ValueSet3);
  34. InitData(data, out mValueSet4, XmdsSkillData.XmdsSkillDataKey.ValueSet4);
  35. //扩展配置
  36. InitData(data, out mValueSet5, XmdsSkillData.XmdsSkillDataKey.ValueSet5);
  37. InitData(data, out mValueSet6, XmdsSkillData.XmdsSkillDataKey.ValueSet6);
  38. InitData(data, out mValueSet8, XmdsSkillData.XmdsSkillDataKey.ValueSet8);
  39. }
  40. }
  41. }