From 7cf1869b1e6ee737eebb37c6e6d8721100229daf Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期二, 13 十一月 2018 17:16:15 +0800
Subject: [PATCH] 4710 【1.3】【后端】魔族法宝副本修改(新增多个小关卡)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerMagicWeapon.py |   21 ++++++++++++++++++---
 1 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerMagicWeapon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerMagicWeapon.py
index 9451718..90e1ef6 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerMagicWeapon.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerMagicWeapon.py
@@ -534,8 +534,13 @@
             for attid, attnum in IpyGameDataPY.GetFuncEvalCfg('MWSignDayAttr', 1, {}).items():
                 addAttr[int(attid)] = attnum * totalSignNum
             GameWorld.AddDictValue(allAttrDict, addAttr)
-        
-        
+        fbpasslv = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_MWFBPassLevel % magicWeaponID)
+        if fbpasslv: #副本关卡属性
+            fbipyData = IpyGameDataPY.GetIpyGameData('MagicWeaponFB', magicWeaponID, fbpasslv)
+            if fbipyData:
+                attrDict = fbipyData.AttrDict()
+                GameWorld.AddDictValue(allAttrDict, attrDict)
+                
         for effID, value in allAttrDict.items():
             if treasureType == 1:
                 PlayerControl.CalcAttrDict_Type(effID, value, allAttrList1)
@@ -899,13 +904,15 @@
         mwLv = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_MagicWeaponLV % mwID)
         curUpExp = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_MagicWeaponUpExp % mwID)
         state = GetIsClickMagicWeapon(curPlayer, mwID)
-        if not mwLv and not curUpExp and not state:
+        FBPassLV = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_MWFBPassLevel % mwID)
+        if not mwLv and not curUpExp and not state and not FBPassLV:
             continue
         pack = ChPyNetSendPack.tagMCMagicWeaponInfo()
         pack.MWID = mwID
         pack.LV = mwLv
         pack.Exp = curUpExp
         pack.State = state
+        pack.FBPassLV = FBPassLV
         sendPack.InfoList.append(pack)
     sendPack.Count = len(sendPack.InfoList)
     if sendPack.Count:
@@ -1122,4 +1129,12 @@
     for attrID, attrValue in allAttrDict.items():
         PlayerControl.CalcAttrDict_Type(attrID, attrValue, allAttrList)
     PlayerControl.SetCalcAttrListValue(curPlayer, ChConfig.Def_CalcAttrFunc_MagicWeaponSoul, allAttrList)
+    return
+
+def UptateMWFBPasslv(curPlayer, mwID, passLV):
+    GameWorld.Log('更新关卡 mwID=%s,level=%s'%(mwID, passLV))
+    PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_MWFBPassLevel % mwID, passLV)
+    CalcMagicWeaponAttr(curPlayer)
+    PlayerControl.PlayerControl(curPlayer).RefreshPlayerAttrState()
+    Sycn_MagicWeaponLV(curPlayer, mwID)
     return
\ No newline at end of file

--
Gitblit v1.8.0