10033 【后端】仙树升级系统及砍树产出规则(修复装备基础属性随机值下限出现负值问题:最低值为品质部位对应配置的范围最低值;)
| | |
| | | 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"
|