Remedy_510360.cs 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. using CommonAI.Zone;
  2. using CommonAI.Zone.Helper;
  3. using CommonAI.Zone.Instance;
  4. using XmdsCommon.Plugin;
  5. using XmdsCommonServer.Plugin;
  6. using XmdsCommonServer.XLS.Data;
  7. namespace XmdsCommonSkill.Plugin.Skills.Remedy
  8. {
  9. /// <summary>
  10. /// 治疗, 三技能:3-6(舞扇变为类似火影忍者八卦掌回天的罩住周身的花暴,范围变大,伤害大幅提升/编辑器)
  11. /// </summary>
  12. public class Remedy_510360 : Remedy_510350
  13. {
  14. public static readonly new int ID = 510360;
  15. //伤害系数
  16. protected XmdsSkillValue valueSet4;
  17. private float mDmgPer;
  18. public override int SkillID { get { return ID; } }
  19. protected override void OnInit(GameSkill info, XmdsVirtual unit, ref SkillTemplate template)
  20. {
  21. base.OnInit(info, unit, ref template);
  22. this.mDmgPer = valueSet4.GetValue(info.TalentSkillLevel3) * XmdsUnitProp.PER;
  23. }
  24. protected override void OnSkillDamagePerEvent(BattleParams param)
  25. {
  26. base.OnSkillDamagePerEvent(param);
  27. //特别要求:乘法
  28. param.SkillDamageAdd = (int)(param.SkillDamageAdd * this.mDmgPer);
  29. param.SkillDamagePer = (int)(param.SkillDamagePer * this.mDmgPer);
  30. }
  31. protected override void OnInitOver(XmdsVirtual unit, GameSkill info)
  32. {
  33. unit.ReInitOverBaseSkill(info);
  34. }
  35. protected override void OnSkillDataChange(GameSkill gs, XmdsVirtual unit)
  36. {
  37. base.OnSkillDataChange(gs, unit);
  38. this.mDmgPer = valueSet4.GetValue(gs.TalentSkillLevel3) * XmdsUnitProp.PER;
  39. }
  40. protected override void OnInitConfig()
  41. {
  42. XmdsSkillData data = XmdsDataMgr.GetInstance().GetXmdsSkillData(ID);
  43. base.InitBaseConfig(data);
  44. InitData(data, out valueSet, XmdsSkillData.XmdsSkillDataKey.ValueSet);
  45. InitData(data, out valueSet2, XmdsSkillData.XmdsSkillDataKey.ValueSet2);
  46. InitData(data, out valueSet3, XmdsSkillData.XmdsSkillDataKey.ValueSet3);
  47. InitData(data, out valueSet4, XmdsSkillData.XmdsSkillDataKey.ValueSet4);
  48. // 扩展配置
  49. InitData(data, out valueSet5, XmdsSkillData.XmdsSkillDataKey.ValueSet5);
  50. InitData(data, out valueSet6, XmdsSkillData.XmdsSkillDataKey.ValueSet6);
  51. }
  52. }
  53. }