CardSkill_1020010.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using XmdsCommonServer.XLS.Data;
  7. using XmdsCommonServer.Plugin;
  8. using CommonAI.Data;
  9. using XmdsCommonSkill.Plugin.Skills;
  10. using CommonAI.Zone.Formula;
  11. namespace XmdsCommonSkill.Plugin.CardSkill
  12. {
  13. public class CardSkill_1020010 : CardSkill_LiangYiBase
  14. {
  15. private static readonly int ID = 1020010;
  16. public override int SkillID { get { return ID; } }
  17. /// 伤害倍数: 百分比
  18. protected static XmdsSkillValue s_ValueSet1;
  19. // N1秒青龙权重增加N2
  20. protected static XmdsSkillValue s_ValueSet2;
  21. protected override void OnGetCardSkillDamage(BattleParams param)
  22. {
  23. param.SkillDamagePer = s_ValueSet1.GetValue(param.GameSkill.SkillLevel);
  24. }
  25. //触发卡牌技能
  26. public override void OnTriggerCardSkill(XmdsVirtual player, XmdsVirtual hitter, AttackSource source, CardSkillData skillData, int sameNums)
  27. {
  28. base.unitLaunchSpell(player, hitter, this.GetEffectID(skillData.skilLv, sameNums));
  29. // 卡牌权重变更
  30. player.CardModule.ChangeCardWeight(CardType.ZhuQue, CardRateChgType.Add, s_ValueSet2.GetValue(skillData.skilLv, 2), s_ValueSet2.GetValue(skillData.skilLv, 1));
  31. }
  32. protected override void OnInitSkillParam()
  33. {
  34. XmdsSkillData data = XmdsDataMgr.GetInstance().GetXmdsSkillData(this.SkillID);
  35. InitData(data, out s_ValueSet1, XmdsSkillData.XmdsSkillDataKey.ValueSet);
  36. InitData(data, out s_ValueSet2, XmdsSkillData.XmdsSkillDataKey.ValueSet2);
  37. }
  38. }
  39. }