From 6eb8ce81a683bf5a3024877fdcd4d8c95a8c87b5 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 29 六月 2023 17:15:43 +0800
Subject: [PATCH] 9818 【BT10】新增古宝特效效果

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

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerDienstgrad.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerDienstgrad.py
index 03faaa6..8348670 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerDienstgrad.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerDienstgrad.py
@@ -463,6 +463,21 @@
         titleActiveList.append(curGradID)
     return titleActiveList
 
+def GetDienstgradActiveTypeCountInfo(curPlayer):
+    activeTypeCountDict = {}
+    dienstgradManager = curPlayer.GetDienstgradManager()
+    gradCnt = dienstgradManager.GetCount()
+    for i in xrange(gradCnt):
+        curGradID = dienstgradManager.AtGradID(i)
+        if curGradID == 0:
+            continue
+        curDienstgradData = GetDienstgradData(curGradID)
+        if curDienstgradData == None:
+            continue
+        curType = curDienstgradData.GetType()
+        activeTypeCountDict[curType] = activeTypeCountDict.get(curType, 0) + 1
+    return activeTypeCountDict
+
 def CalcAllDienstgradAttr(curPlayer):
     # 计算全部称号属性
     allAttrList = [{} for i in range(4)]

--
Gitblit v1.8.0