Boss_90101.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using CommonAI.Zone.Helper;
  2. using CommonAI.Zone.Instance;
  3. using XmdsCommonServer.Plugin;
  4. using XmdsCommonServer.XLS.Data;
  5. using XmdsCommonSkill.Plugin.Buffs;
  6. using System;
  7. using static CommonAI.Zone.Instance.InstanceUnit;
  8. using XmdsCommon.Plugin;
  9. using CommonAI.Zone;
  10. using XmdsCommonServer.Plugin.Units;
  11. using CommonAI.Zone.Formula;
  12. using XmdsCommonSkill.Plugin.Skills;
  13. using XmdsCommonServer.Plugin.XmdsSkillTemplate.DamageCalculator;
  14. using CommonLang;
  15. namespace XmdsCommonSkill.Plugin.PassiveSkills.Remedy
  16. {
  17. /// <summary>
  18. /// boss通用被动 - 勇猛(攻击增加N%)
  19. /// </summary>
  20. class Boss_90101 : XmdsPassiveSkillBase
  21. {
  22. public static int ID = 90101;
  23. private static XmdsSkillValue damageValue;
  24. public override int SkillID {get{return ID;}}
  25. protected override void OnInit(GameSkill skillInfo, XmdsVirtual owner)
  26. {
  27. int AddAtk = CUtils.CastInt(owner.MirrorProp.MaxAttack * XmdsUnitProp.PER * damageValue.GetValue());
  28. owner.ChangeAttack(AddAtk);
  29. }
  30. protected override void OnInitSkillParam()
  31. {
  32. XmdsSkillData data = XmdsDataMgr.GetInstance().GetXmdsSkillData(ID);
  33. InitData(data, out damageValue, XmdsSkillData.XmdsSkillDataKey.DmgRate);
  34. }
  35. protected override void OnDispose(XmdsVirtual owner)
  36. {
  37. }
  38. }
  39. }