12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- using CommonAI.Zone;
- using CommonAI.Zone.Helper;
- using CommonAI.Zone.Instance;
- using XmdsCommon.Plugin;
- using XmdsCommonServer.Plugin;
- using XmdsCommonServer.XLS.Data;
- namespace XmdsCommonSkill.Plugin.Skills.Remedy
- {
- /// <summary>
- /// 治疗, 三技能:3-6(舞扇变为类似火影忍者八卦掌回天的罩住周身的花暴,范围变大,伤害大幅提升/编辑器)
- /// </summary>
- public class Remedy_510360 : Remedy_510350
- {
- public static readonly new int ID = 510360;
- //伤害系数
- protected XmdsSkillValue valueSet4;
- private float mDmgPer;
- public override int SkillID { get { return ID; } }
- protected override void OnInit(GameSkill info, XmdsVirtual unit, ref SkillTemplate template)
- {
- base.OnInit(info, unit, ref template);
- this.mDmgPer = valueSet4.GetValue(info.TalentSkillLevel3) * XmdsUnitProp.PER;
- }
- protected override void OnSkillDamagePerEvent(BattleParams param)
- {
- base.OnSkillDamagePerEvent(param);
- //特别要求:乘法
- param.SkillDamageAdd = (int)(param.SkillDamageAdd * this.mDmgPer);
- param.SkillDamagePer = (int)(param.SkillDamagePer * this.mDmgPer);
- }
- protected override void OnInitOver(XmdsVirtual unit, GameSkill info)
- {
- unit.ReInitOverBaseSkill(info);
- }
- protected override void OnSkillDataChange(GameSkill gs, XmdsVirtual unit)
- {
- base.OnSkillDataChange(gs, unit);
- this.mDmgPer = valueSet4.GetValue(gs.TalentSkillLevel3) * XmdsUnitProp.PER;
- }
- 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 valueSet4, XmdsSkillData.XmdsSkillDataKey.ValueSet4);
- // 扩展配置
- InitData(data, out valueSet5, XmdsSkillData.XmdsSkillDataKey.ValueSet5);
- InitData(data, out valueSet6, XmdsSkillData.XmdsSkillDataKey.ValueSet6);
- }
- }
- }
|