From 612f3073bac5ae286ddf5e5b9c76502bd54b0e57 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 08 一月 2026 20:55:13 +0800
Subject: [PATCH] 129 【战斗】战斗系统-服务端(主线装备掉落增加当前树等级最后一档品质必掉保底支持;)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldInvest.py | 27 +++++++++++++++++++++++++++
1 files changed, 27 insertions(+), 0 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 500140b..0baf95c 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldInvest.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldInvest.py
@@ -21,6 +21,7 @@
import ChPyNetSendPack
import ItemControler
import PlayerControl
+import PlayerGubao
import PlayerMail
import ChConfig
@@ -215,6 +216,16 @@
addMax += addCnt
return addMax
+def GetTreeEnergyAdd(curPlayer):
+ ## 祝福树能量额外上限
+ addMax = 0
+ arenaCntDict = IpyGameDataPY.GetFuncEvalCfg("InvestPower", 4, {})
+ for investType, addCnt in arenaCntDict.items():
+ if not GetInvestState(curPlayer, int(investType)):
+ continue
+ addMax += addCnt
+ return addMax
+
#// A5 41 领取投资理财回报 #tagCMGetInvestReward
#
#struct tagCMGetInvestReward
@@ -254,6 +265,22 @@
if not rewardItemList:
return
+ if investType == ChConfig.InvestType_Month:
+ # 古宝月卡奖励双倍特权
+ exItemList = []
+ gubaoExSign = 10 # 标记古宝额外奖励
+ for itemInfo in rewardItemList:
+ itemID, itemCount = itemInfo[:2]
+ addPer = PlayerGubao.GetGubaoPowerValue(curPlayer, PlayerGubao.GubaoPowerType_InvestMonthAwardPer, itemID)
+ if not addPer:
+ continue
+ countEx = int(itemCount * addPer / 100.0)
+ if not countEx:
+ continue
+ exItemList.append([itemID, countEx, gubaoExSign])
+ if exItemList:
+ rewardItemList += exItemList
+
if rewardIndex == 0:
PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_InvestRewardTime % (investType), int(time.time()))
GameWorld.DebugLog("更新领奖:investType=%s,rewardItemList=%s" % (investType, rewardItemList))
--
Gitblit v1.8.0