123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using XmdsCommonServer.XLS.Data;
- using XmdsCommonServer.Plugin;
- using CommonAI.Data;
- using XmdsCommonSkill.Plugin.Skills;
- using CommonAI.Zone.Formula;
- namespace XmdsCommonSkill.Plugin.CardSkill
- {
- public class CardSkill_1020010 : CardSkill_LiangYiBase
- {
- private static readonly int ID = 1020010;
- public override int SkillID { get { return ID; } }
- /// 伤害倍数: 百分比
- protected static XmdsSkillValue s_ValueSet1;
- // N1秒青龙权重增加N2
- protected static XmdsSkillValue s_ValueSet2;
- protected override void OnGetCardSkillDamage(BattleParams param)
- {
- param.SkillDamagePer = s_ValueSet1.GetValue(param.GameSkill.SkillLevel);
- }
- //触发卡牌技能
- public override void OnTriggerCardSkill(XmdsVirtual player, XmdsVirtual hitter, AttackSource source, CardSkillData skillData, int sameNums)
- {
- base.unitLaunchSpell(player, hitter, this.GetEffectID(skillData.skilLv, sameNums));
- // 卡牌权重变更
- player.CardModule.ChangeCardWeight(CardType.ZhuQue, CardRateChgType.Add, s_ValueSet2.GetValue(skillData.skilLv, 2), s_ValueSet2.GetValue(skillData.skilLv, 1));
- }
- protected override void OnInitSkillParam()
- {
- XmdsSkillData data = XmdsDataMgr.GetInstance().GetXmdsSkillData(this.SkillID);
- InitData(data, out s_ValueSet1, XmdsSkillData.XmdsSkillDataKey.ValueSet);
- InitData(data, out s_ValueSet2, XmdsSkillData.XmdsSkillDataKey.ValueSet2);
- }
- }
- }
|