Boss_90003.cs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. using CommonAI.Zone;
  2. using CommonAI.Zone.Helper;
  3. using CommonAI.Zone.Instance;
  4. using CommonLang;
  5. using XmdsCommon.Plugin;
  6. using XmdsCommonServer.Plugin;
  7. using XmdsCommonServer.XLS.Data;
  8. using XmdsCommonSkill.Plugin.Buffs;
  9. using XmdsCommonSkill.Plugin.PassiveSkills.Magic;
  10. using static CommonAI.Zone.Instance.InstanceUnit;
  11. namespace XmdsCommonSkill.Plugin.Skills.Boss
  12. {
  13. /// <summary>
  14. /// boss通用技能 - 毒圈
  15. /// </summary>
  16. public class Boss_90003 : XmdsSkillBase
  17. {
  18. /// 技能ID.
  19. private static readonly int ID = 90003;
  20. public static readonly int Buff_ID = (int)XmdsBuffBase.XmdsBuffList.TAG_POISON;
  21. public static XmdsSkillValue DP_1;
  22. public override int SkillID {get { return ID; }}
  23. protected override void OnSkillDamagePerEvent(BattleParams param)
  24. {
  25. var buff = param.Hitter.mUnit.AddBuff(Buff_ID);
  26. float damageDeep = 1.0f;
  27. //if(buff != null)
  28. //{
  29. // if(buff.OverlayLevel > 4)
  30. // {
  31. // damageDeep = 3.0f;
  32. // }
  33. // else if(buff.OverlayLevel > 3)
  34. // {
  35. // damageDeep = 2.0f;
  36. // }
  37. // else if(buff.OverlayLevel > 2)
  38. // {
  39. // damageDeep = 1.5f;
  40. // }
  41. // else
  42. // {
  43. // damageDeep = 1.0f;
  44. // }
  45. //}
  46. param.SkillDamagePer = CUtils.CastInt(CalDamagePer(DP_1, param.GameSkill.SkillLevel) * damageDeep);
  47. }
  48. protected override void OnInitSkillParam()
  49. {
  50. XmdsSkillData data = XmdsDataMgr.GetInstance().GetXmdsSkillData(ID);
  51. InitData(data, out DP_1, XmdsSkillData.XmdsSkillDataKey.DmgRate);
  52. }
  53. }
  54. }