1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- using CommonAI.Zone;
- using CommonAI.Zone.Helper;
- using CommonAI.Zone.Instance;
- using XmdsCommon.Plugin;
- using XmdsCommonServer.Plugin;
- using XmdsCommonServer.XLS.Data;
- using XmdsCommonSkill.Plugin.Buffs;
- namespace XmdsCommonSkill.Plugin.Skills.Remedy
- {
- /// <summary>
- /// 治疗, 四技能4-5(伤害增加,蔓延速度变快)
- /// </summary>
- public class Remedy_510450 : Remedy_510440
- {
- private static readonly int ID = 510450;
- //毒爆伤害提升,满层伤害额外提升
- public XmdsSkillValue valueSet3;
- public override int SkillID { get { return ID; } }
- protected override void OnInit(GameSkill info, XmdsVirtual unit, ref SkillTemplate template)
- {
- base.OnInit(info, unit, ref template);
- var playerTalent = unit.GetPlayerCache() as PlayerCache_Remedy;
- playerTalent.SetStrong4_4(valueSet3.GetValue(info.TalentSkillLevel2, 1), valueSet3.GetValue(info.TalentSkillLevel2, 2));
- }
- protected override void OnSkillDataChange(GameSkill gs, XmdsVirtual unit)
- {
- base.OnSkillDataChange(gs, unit);
- var playerTalent = unit.GetPlayerCache() as PlayerCache_Remedy;
- playerTalent.SetStrong4_4(valueSet3.GetValue(gs.TalentSkillLevel2, 1), valueSet3.GetValue(gs.TalentSkillLevel2, 2));
- }
- protected override void OnSkillDamagePerEvent(BattleParams param)
- {
- base.OnSkillDamagePerEvent(param);
- param.SkillDamagePer += valueSet3.GetValue(param.GameSkill.TalentSkillLevel2);
- }
- protected override void OnInitConfig()
- {
- XmdsSkillData data = XmdsDataMgr.GetInstance().GetXmdsSkillData(ID);
- base.InitBaseConfig(data);
- InitData(data, out valueSet, XmdsSkillData.XmdsSkillDataKey.ValueSet);
- InitData(data, out valueSet2, XmdsSkillData.XmdsSkillDataKey.ValueSet2);
- InitData(data, out valueSet3, XmdsSkillData.XmdsSkillDataKey.ValueSet3);
- //扩展配置
- InitData(data, out valueSet5, XmdsSkillData.XmdsSkillDataKey.ValueSet5);
- InitData(data, out valueSet8, XmdsSkillData.XmdsSkillDataKey.ValueSet8);
- }
- }
- }
|