From 9b026aee7db0db3e7c0f5efa354be73372a12a2a Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 21 一月 2026 14:07:26 +0800
Subject: [PATCH] 129 【战斗】战斗系统-服务端(PK攻击顺序规则调整: PVE固定玩家先手,PVP先手排序优先级: 总先攻值 > 战力 > 挑战方先手; )
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldInvest.py | 17 +++++++++++++++--
1 files changed, 15 insertions(+), 2 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 370e38a..734a00a 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldInvest.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldInvest.py
@@ -226,6 +226,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
@@ -265,13 +275,16 @@
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 # 标记古宝额外奖励
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)
--
Gitblit v1.8.0