From 8c9d72bb0c1905d04bdf961b8fd8b0da26704d2f Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 11 十一月 2019 16:42:37 +0800
Subject: [PATCH] 8335 【主干】【后端】洗练功能从第二套开始(增加开放阶条件判断)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/PrintSkill.py | 24 +++++++++++++++++++++---
1 files changed, 21 insertions(+), 3 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/PrintSkill.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/PrintSkill.py
index 548dc4d..7da936f 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/PrintSkill.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/PrintSkill.py
@@ -13,9 +13,10 @@
#
#---------------------------------------------------------------------
import GameWorld
-import ChConfig
import PassiveBuffEffMng
import PlayerPet
+import IpyGameDataPY
+import SkillCommon
## GM命令执行入口
# @param curPlayer 当前玩家
@@ -54,11 +55,28 @@
12 : "神兽技能",
13 : "诛仙技能",
14 : "套装技能",
+ 15 : "可有专精的被动技能",
}
for funcType, skillList in skillDict.items():
- GameWorld.DebugAnswer(curPlayer, "%s : %s"%(showDict[funcType], skillList))
-
+ GameWorld.DebugAnswer(curPlayer, "%s : %s"%(showDict.get(funcType, funcType), skillList))
+
+ ## 打印技能增减伤信息
+ plusSkillTypeIDList = []
+ skillPlusAttrIDDict = IpyGameDataPY.GetFuncEvalCfg("SkillPlusAttrID", 2, {})
+ for skillTypeIDList in skillPlusAttrIDDict.values():
+ for skillTypeID in skillTypeIDList:
+ if skillTypeID in plusSkillTypeIDList:
+ continue
+ skillData = GameWorld.GetGameData().GetSkillBySkillID(skillTypeID)
+ if not SkillCommon.CheckSkillJob(curPlayer, skillData):
+ continue
+ plusSkillTypeIDList.append(skillTypeID)
+ addPer = SkillCommon.GetSkillAddPerByID(curPlayer, skillTypeID)
+ reducePer = SkillCommon.GetSkillReducePerByID(curPlayer, skillTypeID)
+ if addPer or reducePer:
+ GameWorld.DebugAnswer(curPlayer, "%s 增伤+%s 减伤+%s" % (skillData.GetSkillName(), addPer, reducePer))
+
if not cmdList:
return
--
Gitblit v1.8.0