From e326cb341ae3562edd549b13bd654102cad29aba Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 31 十二月 2025 16:05:49 +0800
Subject: [PATCH] 129 【战斗】战斗系统-服务端(等级参考值支持多个模版,原等级表参考值去除改为配置在等级参考值表;阵容表增加对应的等级参考值模版ID字段;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFamilyZhenbaoge.py |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFamilyZhenbaoge.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFamilyZhenbaoge.py
index d1704ce..b06784e 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFamilyZhenbaoge.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFamilyZhenbaoge.py
@@ -165,7 +165,11 @@
             updPrice = int(lowestPrice - random.randint(0, 2)) # 之前还未到达最低价,固定最低价+随机0~2
             cutPrice = nowPrice - updPrice
         else:
-            cutPrice = random.randint(1, 2) # 低于最低价格后砍价只能随机1或2
+            randPriceRange = IpyGameDataPY.GetFuncEvalCfg("ZhenbaogeCut", 3)
+            if len(randPriceRange) == 2:
+                cutPrice = random.randint(randPriceRange[0], randPriceRange[1])
+            else:
+                cutPrice = random.randint(1, 2) # 低于最低价格后砍价只能随机1或2
             updPrice = nowPrice - cutPrice
         GameWorld.DebugLog("珍宝阁砍价计算地板价保护: cutPrice=%s,nowPrice=%s,updPrice=%s" % (cutPrice, nowPrice, updPrice), playerID)
     else:

--
Gitblit v1.8.0