装备:修复淬火查询品相bug
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user