9731 【越南】【主干】【BT7】转职业(翅膀转换逻辑调整为职业限制支持)
1个文件已修改
23 ■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerChangeJob.py 23 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerChangeJob.py
@@ -156,18 +156,6 @@
                    
            itemJobLimit = curItem.GetJobLimit()
            if not itemJobLimit:
                # 无职业限制的需要处理翅膀
                if itemPlace == ShareDefine.retWing:
                    curJobWingIDList = jobWingIDListInfo.get(curJob, [])
                    tagJobWingIDList = jobWingIDListInfo.get(tagJob, [])
                    if len(curJobWingIDList) != len(tagJobWingIDList):
                        GameWorld.ErrLog("功能配置表转职业对应翅膀ID长度配置不一致! curJob=%s,tagJob=%s" % (curJob, tagJob), playerID)
                        return
                    if itemID in curJobWingIDList:
                        tagJobItemID = tagJobWingIDList[curJobWingIDList.index(itemID)]
                        replaceItemList.append([packType, curItem, tagJobItemID])
                continue
            
            if itemJobLimit != curJob:
@@ -192,6 +180,17 @@
                    break
                replaceItemList.append([packType, curItem, tagJobItemID])
                
            # 翅膀
            elif itemPlace == ShareDefine.retWing:
                curJobWingIDList = jobWingIDListInfo.get(curJob, [])
                tagJobWingIDList = jobWingIDListInfo.get(tagJob, [])
                if len(curJobWingIDList) != len(tagJobWingIDList):
                    GameWorld.ErrLog("功能配置表转职业对应翅膀ID长度配置不一致! curJob=%s,tagJob=%s" % (curJob, tagJob), playerID)
                    return
                if itemID in curJobWingIDList:
                    tagJobItemID = tagJobWingIDList[curJobWingIDList.index(itemID)]
                    replaceItemList.append([packType, curItem, tagJobItemID])
            else:
                GameWorld.ErrLog("转职业未知转换逻辑的物品ID! itemID=%s,tagJob=%s" % (itemID, tagJob), playerID)