From 367fd9c77f82b2c7960dc9281c270e550d3ecbb0 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 30 一月 2026 15:23:37 +0800
Subject: [PATCH] 438 【方案】方案预设-服务端(修复当前流派子方案切换时如切武将方案,定军阁进攻武将不会刷新的bug;)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldInvest.py | 7 +++++--
1 files changed, 5 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 6097a97..734a00a 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldInvest.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldInvest.py
@@ -275,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