From b100e60651bd69472519d964f2e225148cfe7774 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 20 一月 2026 18:27:05 +0800
Subject: [PATCH] 129 【战斗】战斗系统-服务端(命格青龙、白虎调整为光环技能;优化光环技能支持层级;增加出发方式60-冰冻目标时;优化触发方式受控时、敌方受控时触发时机,解决受控触发被动导致的技能标签嵌套顺序问题;)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldInvest.py | 32 +++++++++++++++++++++++++++++++-
1 files changed, 31 insertions(+), 1 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 afa61f1..734a00a 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
@@ -225,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
@@ -259,11 +270,30 @@
dayAwardDict = IpyGameDataPY.GetFuncEvalCfg("InvestDay", 3, {})
if str(investType) in dayAwardDict:
- rewardItemList = dayAwardDict[str(investType)]
+ rewardItemList += dayAwardDict[str(investType)]
if not rewardItemList:
return
+ 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, gubaoPowerType, 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