From a5b182817a2865bd9b4c78e19065f580d0efc4b2 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 20 十二月 2023 16:04:35 +0800
Subject: [PATCH] 10024 【主干】【港台】【砍树】新增三种战令(增加战令类型4:古宝总星级)

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

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGubao.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGubao.py
index 66493cf..1fcf0e1 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGubao.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGubao.py
@@ -274,6 +274,18 @@
     Sync_GubaoInfo(curPlayer, [gubaoID])
     return
 
+def GetGubaoTotalLVStar(curPlayer):
+    ## 获取古宝总等级,星数
+    totalLV, totalStar =  0, 0
+    ipyDataMgr = IpyGameDataPY.IPY_Data()
+    for index in xrange(ipyDataMgr.GetGubaoCount()):
+        ipyData = ipyDataMgr.GetGubaoByIndex(index)
+        gubaoID = ipyData.GetGubaoID()
+        lv, star = GetGubaoLVInfo(curPlayer, gubaoID)
+        totalLV += lv
+        totalStar += star
+    return totalLV, totalStar
+
 def RefreshGubaoAttr(curPlayer):
     #CalcGubaoAttr(curPlayer)
     PlayerControl.PlayerControl(curPlayer).RefreshPlayerAttrState()

--
Gitblit v1.8.0