123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- using CommonAI.Zone;
- using CommonAI.Zone.Helper;
- using CommonAI.Zone.Instance;
- using XmdsCommon.Plugin;
- using XmdsCommonServer.Plugin;
- using XmdsCommonServer.XLS.Data;
- using XmdsCommonSkill.Plugin.Buffs;
- namespace XmdsCommonSkill.Plugin.Skills.Remedy
- {
- /// <summary>
- /// 治疗, 五技能 5-4(自己造成的伤害提高10%,新增:叠毒几率上升n%)
- /// </summary>
- public class Remedy_510540 : Remedy_510500
- {
- private static readonly int ID = 510540;
- public override int SkillID { get { return ID; } }
- //伤害倍数, 叠毒几率提高
- public XmdsSkillValue valueSet2;
- protected override int OnLaunchSkillOver(GameSkill info, XmdsCommonServer.Plugin.XmdsVirtual launcher, CommonAI.Zone.Instance.InstanceUnit.SkillState skill)
- {
- base.OnLaunchSkillOver(info, launcher, skill);
- var playerTalent = launcher.GetPlayerCache() as PlayerCache_Remedy;
- if(playerTalent != null)
- {
- playerTalent.SetStrong5_4(valueSet5.GetValue(info.SkillLevel, 4), valueSet2.GetValue(info.TalentSkillLevel1, 2));
- }
-
- return 0;
- }
- protected override void OnSkillDamagePerEvent(BattleParams param)
- {
- base.OnSkillDamagePerEvent(param);
- param.SkillDamagePer += valueSet2.GetValue(param.GameSkill.TalentSkillLevel1);
- }
- 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 valueSet5, XmdsSkillData.XmdsSkillDataKey.ValueSet5);
- InitData(data, out valueSet7, XmdsSkillData.XmdsSkillDataKey.ValueSet7);
- }
- }
- }
|