1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- using CommonAI.Zone;
- using CommonAI.Zone.Helper;
- using CommonAI.Zone.Instance;
- using CommonLang;
- using XmdsCommon.Plugin;
- using XmdsCommonServer.Plugin;
- using XmdsCommonServer.XLS.Data;
- using XmdsCommonSkill.Plugin.Buffs;
- using XmdsCommonSkill.Plugin.PassiveSkills.Magic;
- using static CommonAI.Zone.Instance.InstanceUnit;
- namespace XmdsCommonSkill.Plugin.Skills.Boss
- {
- /// <summary>
- /// boss通用技能 - 毒圈
- /// </summary>
- public class Boss_90003 : XmdsSkillBase
- {
- /// 技能ID.
- private static readonly int ID = 90003;
- public static readonly int Buff_ID = (int)XmdsBuffBase.XmdsBuffList.TAG_POISON;
- public static XmdsSkillValue DP_1;
- public override int SkillID {get { return ID; }}
- protected override void OnSkillDamagePerEvent(BattleParams param)
- {
- var buff = param.Hitter.mUnit.AddBuff(Buff_ID);
- float damageDeep = 1.0f;
- //if(buff != null)
- //{
- // if(buff.OverlayLevel > 4)
- // {
- // damageDeep = 3.0f;
- // }
- // else if(buff.OverlayLevel > 3)
- // {
- // damageDeep = 2.0f;
- // }
- // else if(buff.OverlayLevel > 2)
- // {
- // damageDeep = 1.5f;
- // }
- // else
- // {
- // damageDeep = 1.0f;
- // }
- //}
- param.SkillDamagePer = CUtils.CastInt(CalDamagePer(DP_1, param.GameSkill.SkillLevel) * damageDeep);
- }
- protected override void OnInitSkillParam()
- {
- XmdsSkillData data = XmdsDataMgr.GetInstance().GetXmdsSkillData(ID);
- InitData(data, out DP_1, XmdsSkillData.XmdsSkillDataKey.DmgRate);
- }
- }
- }
|