From 3d55f333b1e03b2d4c0dad798d6e4944e472181c Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 01 二月 2021 15:51:49 +0800
Subject: [PATCH] 8605 【港台】【BT2】【后端】新增限时集字活动(boss支持按boss分类配置不同的掉落饼图)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActCollectWords.py |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActCollectWords.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActCollectWords.py
index 45f9831..5cad453 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActCollectWords.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActCollectWords.py
@@ -158,7 +158,14 @@
             #GameWorld.DebugLog("    集字活动最后一天不掉落! actName=%s,cfgID=%s, %s" % (actName, cfgID, curDateStr))
             return
         
-    return ipyData.GetDropItemRateListBoss() if isBoss else ipyData.GetDropItemRateList()
+    if not isBoss:
+        return ipyData.GetDropItemRateList()
+    
+    bossDropRateListInfo = ipyData.GetDropItemRateListBoss()
+    npcID = npcData.GetNPCID()
+    killBossCntLimitDict = IpyGameDataPY.GetFuncCfg('KillBossCntLimit', 1)
+    limitIndex = GameWorld.GetDictValueByKey(killBossCntLimitDict, npcID)
+    return bossDropRateListInfo.get(limitIndex, [])
 
 def OnGetDropWordsItemDict(curPlayer, npcData, killCount):
     ## 获取脱机掉落物品

--
Gitblit v1.8.0