From 2eec704540684c4de0c98bd6833e9a5a3a24f7e3 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期三, 23 十月 2019 00:04:46 +0800 Subject: [PATCH] 8311 【恺英】【后端】新增装备评分参数(装备传奇技能增减属性效果支持) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/PrintSkill.py | 21 +++++++++++++++++++-- 1 files changed, 19 insertions(+), 2 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 e0c2c5a..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 当前玩家 @@ -59,7 +60,23 @@ for funcType, skillList in skillDict.items(): 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