From 75dac27b4e1d2cc22f7ca6356d258eb47f7e9e38 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 07 一月 2026 17:56:09 +0800
Subject: [PATCH] 412 【挑战】定军阁-服务端(定军阁功能专享属性支持;优化主阵容属性支持专有功能属性,不影响通用主阵容属性、战力,专享阵容与主阵容相同,只是属性、战力可能不一样;)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFamilyZhenbaoge.py | 17 +++++++++++------
1 files changed, 11 insertions(+), 6 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 690a7cc..b06784e 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFamilyZhenbaoge.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFamilyZhenbaoge.py
@@ -130,11 +130,12 @@
fmLVIpyData = IpyGameDataPY.GetIpyGameData("Family", familyLV)
if not fmLVIpyData:
return
- maxMemberCnt = fmLVIpyData.GetMemberMax()
- if hadCutCount >= maxMemberCnt:
- GameWorld.ErrLog("已达到仙盟砍价人次上限! hadCutCount=%s >= %s,familyID=%s,familyLV=%s"
- % (hadCutCount, maxMemberCnt, familyID, familyLV), playerID)
- return
+ #去除限制,由砍价人次表决定
+ #maxMemberCnt = fmLVIpyData.GetMemberMax()
+ #if hadCutCount >= maxMemberCnt:
+ # GameWorld.ErrLog("已达到仙盟砍价人次上限! hadCutCount=%s >= %s,familyID=%s,familyLV=%s"
+ # % (hadCutCount, maxMemberCnt, familyID, familyLV), playerID)
+ # return
actionData = GetZhenbaogeActionData(familyID, playerID)
if actionData and GetFACutPrice(actionData):
@@ -164,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