Remedy_510550.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. using CommonAI.Zone;
  2. using CommonAI.Zone.Helper;
  3. using CommonAI.Zone.Instance;
  4. using System.Diagnostics;
  5. using XmdsCommon.Plugin;
  6. using XmdsCommonServer.Plugin;
  7. using XmdsCommonServer.Plugin.XmdsSkillTemplate.Skills;
  8. using XmdsCommonServer.XLS.Data;
  9. using XmdsCommonSkill.Plugin.Buffs;
  10. namespace XmdsCommonSkill.Plugin.Skills.Remedy
  11. {
  12. /// <summary>
  13. /// 治疗, 五技能 5-5(普攻伤害提高)
  14. /// </summary>
  15. public class Remedy_510550 : Remedy_510540
  16. {
  17. public static readonly int ID = 510550;
  18. public override int SkillID { get { return ID; } }
  19. //伤害倍数.
  20. public XmdsSkillValue valueSet3;
  21. // 数值
  22. public int normalAtkDmgAddition;
  23. protected override void OnInitOver(XmdsVirtual unit, GameSkill info)
  24. {
  25. this.normalAtkDmgAddition = valueSet3.GetValue(info.TalentSkillLevel2);
  26. unit.ReInitOverBaseSkill(info);
  27. }
  28. protected override void OnSkillDataChange(GameSkill gs, XmdsVirtual unit)
  29. {
  30. base.OnSkillDataChange(gs, unit);
  31. this.normalAtkDmgAddition = valueSet3.GetValue(gs.TalentSkillLevel2);
  32. }
  33. public override int GetSkillValue(AbstractSkillType type)
  34. {
  35. return this.normalAtkDmgAddition;
  36. }
  37. protected override void OnInitConfig()
  38. {
  39. XmdsSkillData data = XmdsDataMgr.GetInstance().GetXmdsSkillData(ID);
  40. base.InitBaseConfig(data);
  41. InitData(data, out valueSet, XmdsSkillData.XmdsSkillDataKey.ValueSet);
  42. InitData(data, out valueSet2, XmdsSkillData.XmdsSkillDataKey.ValueSet2);
  43. InitData(data, out valueSet3, XmdsSkillData.XmdsSkillDataKey.ValueSet3);
  44. // 扩展配置
  45. InitData(data, out valueSet5, XmdsSkillData.XmdsSkillDataKey.ValueSet5);
  46. InitData(data, out valueSet7, XmdsSkillData.XmdsSkillDataKey.ValueSet7);
  47. }
  48. }
  49. }