123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- using CommonAI.Data;
- using CommonAI.Zone;
- using CommonAI.Zone.Formula;
- using CommonAI.Zone.Helper;
- using CommonAI.Zone.Instance;
- using CommonLang;
- using XmdsCommon.Plugin;
- using XmdsCommonServer.Plugin;
- using XmdsCommonServer.Plugin.XmdsSkillTemplate.DamageCalculator;
- using XmdsCommonServer.XLS.Data;
- namespace XmdsCommonSkill.Plugin.Skills.Warrior
- {
- /// <summary>
- /// 五技能 5-5(聚气期间受到伤害会累积血怒,在火焰风暴时根据血怒提高每次造成的伤害(巨剑风暴提高的伤害是随时间递进的,递进的量与血怒值挂钩))
- /// </summary>
- public class Warrior_110560 : Warrior_110550
- {
- private static readonly int ID = 110560;
- public override int SkillID { get { return ID; } }
- //防御系数伤害加成
- protected XmdsSkillValue mValueSet4;
- protected override void OnSkillDamagePerEvent(BattleParams param)
- {
- base.OnSkillDamagePerEvent(param);
- int defenceValue = (int)(param.Attacker.MirrorProp.Defence / XmdsDamageCalculator.PERER * mValueSet4.GetValue(param.GameSkill.TalentSkillLevel3));
- param.SkillDamageAdd += XmdsDamageCalculator.GetDamage(defenceValue, param.Attacker, param.Hitter, param.Source);
- }
- protected override void OnInitConfig()
- {
- XmdsSkillData data = XmdsDataMgr.GetInstance().GetXmdsSkillData(ID);
- InitData(data, out mJuQiValue, XmdsSkillData.XmdsSkillDataKey.DmgRate);
- InitData(data, out mValueSet1, XmdsSkillData.XmdsSkillDataKey.ValueSet);
- InitData(data, out mValueSet3, XmdsSkillData.XmdsSkillDataKey.ValueSet3);
- InitData(data, out mValueSet4, XmdsSkillData.XmdsSkillDataKey.ValueSet4);
- //扩展配置
- InitData(data, out mValueSet5, XmdsSkillData.XmdsSkillDataKey.ValueSet5);
- InitData(data, out mValueSet6, XmdsSkillData.XmdsSkillDataKey.ValueSet6);
- InitData(data, out mValueSet8, XmdsSkillData.XmdsSkillDataKey.ValueSet8);
- }
- }
- }
|