From ee23480a49debf8542eb1e6328f7e31be06005fd Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 16 三月 2026 09:58:16 +0800
Subject: [PATCH] 541 【幻境阁】新增称号加成效果-服务端(修复称号无属性时特殊效果也会无效的bug;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldInvest.py |   27 ++++++++++++++++++++++-----
 1 files changed, 22 insertions(+), 5 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldInvest.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldInvest.py
index 0baf95c..6d35443 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldInvest.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldInvest.py
@@ -175,6 +175,10 @@
     PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_InvestEndTime % investType, updEndTime)
     GameWorld.DebugLog("投资理财成功: investType=%s" % (investType))
     Sync_InvestInfo(curPlayer, investType)
+    
+    if investType == ChConfig.InvestType_Life:
+        import PlayerTreasure
+        PlayerTreasure.ResetLifeCardLucky(curPlayer)
     return
 
 def GetAddFBCnt(curPlayer, mapID):
@@ -226,6 +230,16 @@
         addMax += addCnt
     return addMax
 
+def GetTravelEnergyAdd(curPlayer):
+    ## 游历体力增加上限
+    addMax = 0
+    addDict = IpyGameDataPY.GetFuncEvalCfg("InvestPower", 5, {})
+    for investType, addValue in addDict.items():
+        if not GetInvestState(curPlayer, int(investType)):
+            continue
+        addMax += addValue
+    return addMax
+
 #// A5 41 领取投资理财回报 #tagCMGetInvestReward
 #
 #struct    tagCMGetInvestReward
@@ -260,24 +274,27 @@
             
         dayAwardDict = IpyGameDataPY.GetFuncEvalCfg("InvestDay", 3, {})
         if str(investType) in dayAwardDict:
-            rewardItemList = dayAwardDict[str(investType)]
+            rewardItemList += dayAwardDict[str(investType)]
             
     if not rewardItemList:
         return
     
-    if investType == ChConfig.InvestType_Month:
+    exItemGubaoPowerDict = {ChConfig.InvestType_Month:PlayerGubao.GubaoPowerType_InvestMonthAwardPer,
+                            ChConfig.InvestType_Life:PlayerGubao.GubaoPowerType_InvestLifeAwardPer}
+    if investType in exItemGubaoPowerDict:
+        gubaoPowerType = exItemGubaoPowerDict[investType]
         # 古宝月卡奖励双倍特权
         exItemList = []
-        gubaoExSign = 10 # 标记古宝额外奖励
+        isBind = ItemControler.GetIsBindValue(srcSign=ChConfig.ItemSrcSign_GubaoEff)
         for itemInfo in rewardItemList:
             itemID, itemCount = itemInfo[:2]
-            addPer = PlayerGubao.GetGubaoPowerValue(curPlayer, PlayerGubao.GubaoPowerType_InvestMonthAwardPer, itemID)
+            addPer = PlayerGubao.GetGubaoPowerValue(curPlayer, gubaoPowerType, itemID)
             if not addPer:
                 continue
             countEx = int(itemCount * addPer / 100.0)
             if not countEx:
                 continue
-            exItemList.append([itemID, countEx, gubaoExSign])
+            exItemList.append([itemID, countEx, isBind])
         if exItemList:
             rewardItemList += exItemList
             

--
Gitblit v1.8.0