10033 【后端】仙树升级系统及砍树产出规则(修复装备基础属性随机值下限出现负值问题:最低值为品质部位对应配置的范围最低值;)
1个文件已修改
2 ■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/ItemCommon.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/ItemCommon.py
@@ -584,7 +584,7 @@
    reValue = valueMin + int(diffValue * reRatio) # 参考值
    
    downRate, upRate = upDownRateList
    randValueMin = int(reValue - math.ceil(diffValue * downRate / 10000.0)) # 至少-1
    randValueMin = max(valueMin, int(reValue - math.ceil(diffValue * downRate / 10000.0))) # 至少-1
    randValueMax = int(reValue + math.ceil(diffValue * upRate / 10000.0)) # 至少+1
    randValue = random.randint(randValueMin, randValueMax)
    GameWorld.DebugLog("        attrID=%s,valueList=%s,reRatio=%s,upDownRateList=%s,diffValue=%s,reValue=%s,%s~%s,%s"