From e58a11b68c724d3c05daad923fbac4c1cba77d0f Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期二, 18 九月 2018 11:29:44 +0800
Subject: [PATCH] fix:3604 【后端】潜力0级时增加战力 3609 【后端】法宝之魂改为由各个法宝单独觉醒,取消激活条件
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameSkills/SkillModule_16.py | 30 ++++++++++++++++--------------
1 files changed, 16 insertions(+), 14 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 72df93c..3c5acc9 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
@@ -21,7 +21,6 @@
import BaseAttack
import IPY_GameWorld
import ItemControler
-import SkillDataBoost
import GameObj
import SkillCommon
@@ -94,19 +93,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())
#取人的攻击间隔
@@ -116,8 +117,6 @@
summonNPC.SetVisible(True)
summonNPC.SetCanAttack(False)
-
- #SkillDataBoost.SetSummonNPCSkillBoost(curPlayer, summonNPC, curSkill)
return True
@@ -169,19 +168,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.SetRealmLV(summonNPC, NPCCommon.GetRealmLV(curNPC)) # 继承境界
+ #NPCCommon.SetFinalHurt(summonNPC, NPCCommon.GetFinalHurt(curNPC)) # 最终伤害
#summonNPC.SetBaseAtkInterval(500)
summonNPC.SetBaseMissRate(curNPC.GetMiss())
--
Gitblit v1.8.0