From ccaf2f02905ec635332e2d22cb7bd5b77b6a7bbb Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期一, 22 十月 2018 21:10:34 +0800
Subject: [PATCH] 4282 【主干】【1.1.0】【后端】新增物品效果:获得X法宝X经验 4280 【主干】【1.1.0】【后端】开服触发成就类型

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

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerDogz.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerDogz.py
index 9a12a1d..a4adcd0 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerDogz.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerDogz.py
@@ -586,6 +586,27 @@
         PlayerSuccess.DoAddSuccessProgress(curPlayer, ShareDefine.SuccType_DogzEquipPlus, totalPlusLv)
     return
 
+def GetFightDogzTotalPlusLv(curPlayer):
+    #出战的神兽装备总强化等级
+    totalPlusLv = 0
+    dogzEquipPack = curPlayer.GetItemManager().GetPack(ShareDefine.rptDogzEquip)
+    equipPackCount = dogzEquipPack.GetCount()
+    ipyDataMgr = IpyGameDataPY.IPY_Data()
+    for dogzIndex in xrange(ipyDataMgr.GetDogzCount()):
+        if not GameWorld.GetDictValueByBit(curPlayer, ChConfig.Def_PDict_DogzFightState, dogzIndex):
+            continue
+        ipyData = ipyDataMgr.GetDogzByIndex(dogzIndex)
+        dogzID = ipyData.GetDogzID()
+        startIndex = (dogzID - 1) * DogzEquipCount
+        for equipIndex in range(startIndex, startIndex + DogzEquipCount):
+            if equipIndex < 0 or equipIndex >= equipPackCount:
+                break
+            curEquip = dogzEquipPack.GetAt(equipIndex)            
+            if curEquip.IsEmpty():
+                continue
+            curPlusLV = curEquip.GetUserAttrByIndex(ShareDefine.Def_IudetDogzEquipPlus, 0)
+            totalPlusLv += curPlusLV
+    return totalPlusLv
 
 # 助战神兽技能属性,必须在 SetDogzIsHelpFight后调用
 def CalcDogzBattleSkillAttr(curPlayer):

--
Gitblit v1.8.0