装备:修复淬火查询品相bug

This commit is contained in:
luying
2021-07-30 18:00:28 +08:00
parent 36cdba3a7b
commit fab4a97486
3 changed files with 4 additions and 3 deletions

View File

@@ -730,10 +730,11 @@ export function getDicSuitByTypeAndLv(suitType: number, starLevel: number) {
}
export function getQuenchGradeByValue(quality: number, value: number) {
let dicQuench = gameData.quenchByQuality.get(quality)||[];
let grade = 0;
for(let [_grade, { singleRatioMin, singleRatioMax }] of dicQuench) {
if(value >= singleRatioMin && value < singleRatioMax ) {
if((value >= singleRatioMin && value < singleRatioMax) || (value == singleRatioMin && value == singleRatioMax) ) {
grade = _grade;
}
}