Remedy_510450.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. using XmdsCommonSkill.Plugin.Buffs;
  8. namespace XmdsCommonSkill.Plugin.Skills.Remedy
  9. {
  10. /// <summary>
  11. /// 治疗, 四技能4-5(伤害增加,蔓延速度变快)
  12. /// </summary>
  13. public class Remedy_510450 : Remedy_510440
  14. {
  15. private static readonly int ID = 510450;
  16. //毒爆伤害提升,满层伤害额外提升
  17. public XmdsSkillValue valueSet3;
  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. var playerTalent = unit.GetPlayerCache() as PlayerCache_Remedy;
  23. playerTalent.SetStrong4_4(valueSet3.GetValue(info.TalentSkillLevel2, 1), valueSet3.GetValue(info.TalentSkillLevel2, 2));
  24. }
  25. protected override void OnSkillDataChange(GameSkill gs, XmdsVirtual unit)
  26. {
  27. base.OnSkillDataChange(gs, unit);
  28. var playerTalent = unit.GetPlayerCache() as PlayerCache_Remedy;
  29. playerTalent.SetStrong4_4(valueSet3.GetValue(gs.TalentSkillLevel2, 1), valueSet3.GetValue(gs.TalentSkillLevel2, 2));
  30. }
  31. protected override void OnSkillDamagePerEvent(BattleParams param)
  32. {
  33. base.OnSkillDamagePerEvent(param);
  34. param.SkillDamagePer += valueSet3.GetValue(param.GameSkill.TalentSkillLevel2);
  35. }
  36. protected override void OnInitConfig()
  37. {
  38. XmdsSkillData data = XmdsDataMgr.GetInstance().GetXmdsSkillData(ID);
  39. base.InitBaseConfig(data);
  40. InitData(data, out valueSet, XmdsSkillData.XmdsSkillDataKey.ValueSet);
  41. InitData(data, out valueSet2, XmdsSkillData.XmdsSkillDataKey.ValueSet2);
  42. InitData(data, out valueSet3, XmdsSkillData.XmdsSkillDataKey.ValueSet3);
  43. //扩展配置
  44. InitData(data, out valueSet5, XmdsSkillData.XmdsSkillDataKey.ValueSet5);
  45. InitData(data, out valueSet8, XmdsSkillData.XmdsSkillDataKey.ValueSet8);
  46. }
  47. }
  48. }