From c69a35c87860659271cbb58d0b0f13a9c65cdb35 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期日, 04 一月 2026 14:44:17 +0800
Subject: [PATCH] 389 流向记录(增加主线装备分解流向支持:根据当前祝福等级取倒数x个品质记录;)

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

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py
index b7fb12e..61490aa 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py
@@ -53,6 +53,7 @@
 import PlayerActivity
 import ChNetSendPack
 import PlayerState
+import PlayerBeauty
 import PlayerOnline
 import PlayerTask
 import PlayerMail
@@ -2812,6 +2813,7 @@
             for itemID, upperCnt in DailyBootyUpperList:
                 if upperCnt <= 0:
                     continue
+                upperCnt = GetBootyUpper(curPlayer, itemID, upperCnt)
                 if curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_BootyDropToday % itemID) >= upperCnt:
                     continue
                 unXiantaoCntBooty = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_UnXiantaoCntBooty % itemID)
@@ -2857,6 +2859,20 @@
     DataRecordPack.DR_UseMoney(curPlayer, eventName, type_Price, price, infoDict) # 流向
     return
 
+def GetBootyUpper(curPlayer, itemID, baseUpper):
+    ## 战利品掉落上限
+    dropUpper = baseUpper
+    addPer = 0
+    addPer += PlayerBeauty.GetBeautyEffInfo(curPlayer, PlayerBeauty.EffType_BootyPer)[0] # 战利品上限提高百分比
+    
+    # 其他功能增加上限,可扩展
+    
+    if addPer:
+        dropUpper = int(baseUpper * (100 + addPer) / 100.0)
+        GameWorld.DebugLogEx("提高战利品掉落上限: itemID=%s,baseUpper=%s,addPer=%s,dropUpper=%s", itemID, baseUpper, addPer, dropUpper)
+        
+    return dropUpper
+
 ## 付款以后后续操作(金子)
 #  @param curPlayer 玩家实例
 #  @param price ,货币价格

--
Gitblit v1.8.0