Monster_603061.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using XmdsCommonServer.Plugin;
  6. using XmdsCommonServer.XLS.Data;
  7. namespace XmdsCommonSkill.Plugin.Skills.Monster
  8. {
  9. /// <summary>
  10. /// 飞刃 影将军对周围的单位造成物理伤害 一个百分比物理伤害和固定物理伤害加成
  11. /// </summary>
  12. class Monster_603061 : XmdsSkillBase
  13. {
  14. public static int ID = 603061;
  15. /// <summary>
  16. /// 伤害倍数.
  17. /// </summary>
  18. public static XmdsSkillValue DP_1;
  19. /// <summary>
  20. /// 获取技能ID.
  21. /// </summary>
  22. public override int SkillID
  23. {
  24. get
  25. {
  26. return ID;
  27. }
  28. }
  29. protected override void OnSkillDamagePerEvent(BattleParams param)
  30. {
  31. int ret = CalDamagePer(DP_1, param.GameSkill.SkillLevel);
  32. param.SkillDamagePer = ret;
  33. }
  34. protected override void OnInitSkillParam()
  35. {
  36. XmdsSkillData data = XmdsDataMgr.GetInstance().GetXmdsSkillData(ID);
  37. InitData(data, out DP_1, XmdsSkillData.XmdsSkillDataKey.DmgRate);
  38. }
  39. }
  40. }