PetSkill_81004.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  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 XmdsCommon.Plugin;
  7. using XmdsCommonServer.Plugin;
  8. using XmdsCommonServer.XLS.Data;
  9. using XmdsCommonSkill.Plugin.Buffs;
  10. using static CommonAI.Zone.Instance.InstanceUnit;
  11. namespace XmdsCommonSkill.Plugin.Skills.Remedy
  12. {
  13. /// <summary>
  14. /// 神通5
  15. /// </summary>
  16. public class PetSkill_81004 : XmdsSkillBase
  17. {
  18. private static readonly int ID = 81004;
  19. // 攻击伤害,固定值 + 百分比
  20. public static XmdsSkillValue valueSet1;
  21. public override int SkillID { get { return ID; } }
  22. protected override void OnSkillDamagePerEvent(BattleParams param)
  23. {
  24. param.SkillDamageAdd = valueSet1.GetValue(param.GameSkill.SkillLevel);
  25. param.SkillDamagePer = valueSet1.GetValueExt(param.GameSkill.SkillLevel);
  26. }
  27. protected override void OnInitSkillParam()
  28. {
  29. XmdsSkillData data = XmdsDataMgr.GetInstance().GetXmdsSkillData(ID);
  30. InitData(data, out valueSet1, XmdsSkillData.XmdsSkillDataKey.ValueSet);
  31. }
  32. }
  33. }