From 0670fd0e12f80b02098f0a9eafbb5a60db014e78 Mon Sep 17 00:00:00 2001 From: hch <305670599@qq.com> Date: 星期一, 27 八月 2018 21:07:43 +0800 Subject: [PATCH] fix:模板16类暴风雪技能,通过召唤兽来实现攻击方式,在计算时完全以主人属性计算伤害,召唤技能效果1013只影响攻击百分比 --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameSkills/SkillModule_16.py | 30 +++++++++++++++++------------- 1 files changed, 17 insertions(+), 13 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameSkills/SkillModule_16.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameSkills/SkillModule_16.py index 1d4c505..b486d54 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameSkills/SkillModule_16.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameSkills/SkillModule_16.py @@ -94,19 +94,21 @@ summonNPC.SetBornTime(tick) summonNPC.SetLastTime(curSkill.GetLastTime()) - atkper = 1 + atkper = 10000 # 默认百分百继承属性 findEffect = SkillCommon.GetSkillEffectByEffectID(curSkill, ChConfig.Def_Skill_Effect_SummonAttr) - if findEffect: - atkper = float(findEffect.GetEffectValue(0))/ChConfig.Def_MaxRateValue + atkper = findEffect.GetEffectValue(0) if findEffect.GetEffectValue(1) == 0: # 跟随人物攻击 summonNPC.SetDict(ChConfig.Def_PlayerKey_AttackFollowMaster, 1) + # 召唤兽继承主人所有属性标识,计算时直接取主人属性 + summonNPC.SetDict(ChConfig.Def_GameObjKey_InheritOwner, atkper) + #---设置基础值--- - summonNPC.SetBaseMinAtk(int(curPlayer.GetMinAtk()*atkper)) - summonNPC.SetBaseMaxAtk(int(curPlayer.GetMaxAtk()*atkper)) + #summonNPC.SetBaseMinAtk(int(curPlayer.GetMinAtk()*atkper)) + #summonNPC.SetBaseMaxAtk(int(curPlayer.GetMaxAtk()*atkper)) summonNPC.SetBaseHit(curPlayer.GetHit()) #取人的攻击间隔 @@ -118,7 +120,7 @@ summonNPC.SetCanAttack(False) #SkillDataBoost.SetSummonNPCSkillBoost(curPlayer, summonNPC, curSkill) - + return True def DoLogic_NPC_UseSkill_SummonNPC(curNPC, curSkill, summonNPCID, tagRoundPosX, tagRoundPosY, tick): @@ -169,20 +171,22 @@ summonNPC.SetBornTime(tick) summonNPC.SetLastTime(curSkill.GetLastTime()) - atkper = 1 + atkper = 10000 findEffect = SkillCommon.GetSkillEffectByEffectID(curSkill, ChConfig.Def_Skill_Effect_SummonAttr) if findEffect: - atkper = float(findEffect.GetEffectValue(0))/ChConfig.Def_MaxRateValue + atkper = findEffect.GetEffectValue(0) - + # 召唤兽继承主人所有属性标识,计算时直接取主人属性 + summonNPC.SetDict(ChConfig.Def_GameObjKey_InheritOwner, atkper) + #---设置基础值--- - summonNPC.SetBaseMinAtk(int(curNPC.GetMinAtk()*atkper)) - summonNPC.SetBaseMaxAtk(int(curNPC.GetMaxAtk()*atkper)) + #summonNPC.SetBaseMinAtk(int(curNPC.GetMinAtk()*atkper)) + #summonNPC.SetBaseMaxAtk(int(curNPC.GetMaxAtk()*atkper)) summonNPC.SetBaseHit(curNPC.GetHit()) - NPCCommon.SetRealmLV(summonNPC, NPCCommon.GetRealmLV(curNPC)) # 继承境界 - NPCCommon.SetFinalHurt(summonNPC, NPCCommon.GetFinalHurt(curNPC)) # 最终伤害 + #NPCCommon.SetRealmLV(summonNPC, NPCCommon.GetRealmLV(curNPC)) # 继承境界 + #NPCCommon.SetFinalHurt(summonNPC, NPCCommon.GetFinalHurt(curNPC)) # 最终伤害 #summonNPC.SetBaseAtkInterval(500) summonNPC.SetBaseMissRate(curNPC.GetMiss()) -- Gitblit v1.8.0