hxp
16 小时以前 a99b65c9ca7569dcaa24fef933e913e400fa9fef
66 【公会】基础主体-服务端(行商地板价后砍价随机范围开配置;)
1个文件已修改
6 ■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFamilyZhenbaoge.py 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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: