From 84ede803777ff10b5cbe93b1ec0168af08f55d5e Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 13 一月 2021 18:11:26 +0800
Subject: [PATCH] 8677 【BT】【后端】跨服冲榜活动; 新增跨服活动时间管理模块、跨服榜单;跨服邮件;跨服广播优化;相关GM命令、后台工具;

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/AddLegendAttr.py |   22 +++++++++-------------
 1 files changed, 9 insertions(+), 13 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/AddLegendAttr.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/AddLegendAttr.py
index d7bf97d..8d7d709 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/AddLegendAttr.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/AddLegendAttr.py
@@ -19,7 +19,6 @@
 import ItemCommon
 import ItemControler
 import IPY_GameWorld
-import ShareDefine
 
 #---------------------------------------------------------------------
 #逻辑实现
@@ -46,19 +45,16 @@
     if not legendAttrInfo:
         GameWorld.DebugAnswer(curPlayer, "获取该装备传奇属性失败或没有传奇属性!")
         return
-    attrIDList, attrValueList = legendAttrInfo
+    ItemControler.SetEquipLegendAttr(curItem, legendAttrInfo)
     
-    # 传奇属性
-    if attrIDList and attrValueList and len(attrIDList) == len(attrValueList):
-        curItem.ClearUserAttr(ShareDefine.Def_IudetLegendAttrID)
-        curItem.ClearUserAttr(ShareDefine.Def_IudetLegendAttrValue)
-        attrDict = {}
-        for i, attrID in enumerate(attrIDList):
-            value = attrValueList[i]
-            curItem.AddUserAttr(ShareDefine.Def_IudetLegendAttrID, attrID)
-            curItem.AddUserAttr(ShareDefine.Def_IudetLegendAttrValue, value)
-            attrDict[attrID] = value
-        GameWorld.DebugAnswer(curPlayer, "传奇属性:%s" % (attrDict))
+    if legendAttrInfo[2]:
+        GameWorld.DebugAnswer(curPlayer, "神传奇属性:%s %s" % (legendAttrInfo[2], legendAttrInfo[3]))
+    if legendAttrInfo[4]:
+        GameWorld.DebugAnswer(curPlayer, "仙传奇属性:%s %s" % (legendAttrInfo[4], legendAttrInfo[5]))
+    if legendAttrInfo[6]:
+        GameWorld.DebugAnswer(curPlayer, "极传奇属性:%s %s" % (legendAttrInfo[6], legendAttrInfo[7]))
+    if legendAttrInfo[0]:
+        GameWorld.DebugAnswer(curPlayer, "传奇属性:%s %s" % (legendAttrInfo[0], legendAttrInfo[1]))
         
     return
 

--
Gitblit v1.8.0