From 950be2d9a3e3f87f1bb247f6b904de9669ba9126 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 31 八月 2021 18:51:45 +0800
Subject: [PATCH] 8921 【主干】【gt_1.101.1】【BT3】【bt3_1.100.1】【后端】H.活动-节日活动-垃圾分类(优化仙匣秘境初始化首层失败后的处理,重登后可尝试重新初始化)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/PrintSkill.py |   29 +++++++++++++++++++++++++----
 1 files changed, 25 insertions(+), 4 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..64990b4 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 当前玩家
@@ -45,7 +46,7 @@
                 3 : "法宝专精",
                 4 : "天赋",
                 5 : "坐骑技能",
-                6 : "神兵技能",
+                6 : "灵宠技能",
                 7 : "人族法宝",
                 8 : "普攻",
                 9 : "无",
@@ -54,11 +55,31 @@
                 12 : "神兽技能",
                 13 : "诛仙技能",
                 14 : "套装技能",
+                15 : "可有专精的被动技能",
+                16 : "灵宠主人技能",
+                17 : "称号技能",
+                18 : "装备被动技能",
                 }
     
     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