From 8df2bbe894731fb3691dfde36fa8e583bc8f5576 Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期六, 02 三月 2019 14:39:49 +0800
Subject: [PATCH] 6307 【后端】【2.0】多套装备开发单(套装)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerSignDay.py |   11 ++++-------
 1 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerSignDay.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerSignDay.py
index 20e9987..0a1127d 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerSignDay.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerSignDay.py
@@ -54,7 +54,7 @@
 #  @return: None
 def OnSignDay(index, clientData, tick):
     # 跨服服务器功能限制
-    if GameWorld.IsMergeServer():
+    if GameWorld.IsCrossServer():
         return
     curPlayer = GameWorld.GetPlayerManager().GetPlayerByIndex(index)   
     #功能开启判断
@@ -167,12 +167,9 @@
     PlayerPet.CalcPetItemAddPlayerAttr(curPlayer)
     PlayerControl.PlayerControl(curPlayer).RefreshPlayerAttrState()
     
-    
-    ipyData = IpyGameDataPY.GetIpyGameDataByCondition('TreasureUp', {'PrivilegeID':ChConfig.MWPrivilege_SignDayAddAttr}, False, False)
-    privilegeIpyData = IpyGameDataPY.GetIpyGameDataNotLog('TreasurePrivilege', ChConfig.MWPrivilege_SignDayAddAttr)
-    if ipyData and privilegeIpyData:
-        mwID = ipyData.GetMWID()
-        effDict = privilegeIpyData.GetEffectValue()
+    mwID = IpyGameDataPY.GetFuncCfg('MWSignDayAttr', 2)
+    if mwID:
+        effDict = IpyGameDataPY.GetFuncEvalCfg('MWSignDayAttr', 1, {})
         if PlayerMagicWeapon.GetIsActiveMagicWeapon(curPlayer, mwID) and effDict:
             PlayerControl.NotifyCode(curPlayer, "SignInText1", [mwID, effDict.keys()[0], effDict.values()[0]])
             

--
Gitblit v1.8.0