| | |
| | |
|
| | | 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:
|
| | |
| | | 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)
|
| | |
|