From d1aa37504456311fe9d7ddc2f23f537c2408b90c Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 09 一月 2024 11:06:44 +0800
Subject: [PATCH] 10019 【砍树】回合战斗(灵宠通用;技能通用;玩家镜像支持) 1. 灵宠修改为通用模式,玩家及NPC均可召唤灵宠,NPC对应召唤的灵宠NPC与玩家的灵宠NPCID区分; 2. 技能全部为通用技能,玩家、玩家镜像、NPC均通用;支持玩家镜像赋予玩家技能进行攻击; 3. 技能释放方式8(单体恢复:增加方式6-按目标攻击力恢复血量) 4. 修改玩家技能缓存格式 5. 修复玩家灵宠技能升级bug

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/SkillShell.py |   15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/SkillShell.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/SkillShell.py
index 16e4852..6bad0d9 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/SkillShell.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/SkillShell.py
@@ -3895,10 +3895,8 @@
         
     return allSkillCnt
 
-## 获取技能总等级
-#  @param curPlayer
-#  @return allSkillLV:总技能等级
-def GetAllSkillInfo(curPlayer, funcTypeList):
+def GetAllSkillCacheInfo(curPlayer, funcTypeList):
+    ## 获取技能缓存信息
     # @return: {funcType:{skillID:skillLV, ...}, ...}
     skillDict = {}
     skillManager = curPlayer.GetSkillManager()
@@ -3909,8 +3907,9 @@
         funcType = curPlayerSkill.GetFuncType()
         if funcType not in funcTypeList:
             continue
-        if funcType not in skillDict:
-            skillDict[funcType] = {}
-        skillLVDict = skillDict[funcType]
-        skillLVDict[curPlayerSkill.GetSkillID()] = curPlayerSkill.GetSkillLV()
+        funcTypeKey = str(funcType)
+        if funcTypeKey not in skillDict:
+            skillDict[funcTypeKey] = {}
+        skillLVDict = skillDict[funcTypeKey]
+        skillLVDict["%s" % curPlayerSkill.GetSkillID()] = curPlayerSkill.GetSkillLV()
     return skillDict

--
Gitblit v1.8.0