hxp
2026-01-09 09e416b2e9e97f4ac902bba159d9670ad066a8d5
247 【付费内容】特权卡-服务端(增加游历体力上限特权)
2个文件已修改
12 ■■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldInvest.py 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTravel.py 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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
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):