From 09e416b2e9e97f4ac902bba159d9670ad066a8d5 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 09 一月 2026 20:51:01 +0800
Subject: [PATCH] 247 【付费内容】特权卡-服务端(增加游历体力上限特权)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTravel.py | 2 ++
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldInvest.py | 10 ++++++++++
2 files changed, 12 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 370e38a..6097a97 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
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTravel.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTravel.py
index 6275bc3..a3732ef 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTravel.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTravel.py
@@ -19,6 +19,7 @@
import PlayerControl
import IpyGameDataPY
import ChPyNetSendPack
+import PlayerGoldInvest
import NetPackCommon
import ItemControler
import PlayerBeauty
@@ -169,6 +170,7 @@
def GetTravelEnergyMax(curPlayer):
initEnergy = IpyGameDataPY.GetFuncCfg("TravelSet", 1)
addEnergy = PlayerBeauty.GetBeautyEffInfo(curPlayer, PlayerBeauty.EffType_TravelEnergy)[0]
+ addEnergy += PlayerGoldInvest.GetTravelEnergyAdd(curPlayer)
return initEnergy + addEnergy
def CheckTravelEnergyRecover(curPlayer, isNotify=True):
--
Gitblit v1.8.0