fix property judge negative number bug

This commit is contained in:
Vick Scarlet
2021-11-12 19:54:31 +08:00
parent 660739530b
commit 54c04f65c2
2 changed files with 2 additions and 1 deletions

View File

@ -344,7 +344,7 @@ class Property {
while(length--) {
const [min, grade, judge] = d[length];
if(min==void 0 || value >= min) return {prop, value, judge, grade, progress: progress()};
if(!length || min==void 0 || value >= min) return {prop, value, judge, grade, progress: progress()};
}
}

View File

@ -16,6 +16,7 @@ export default class CyberTalent extends CyberTalentUI {
this.pageDrawCard.visible = true;
this.pageResult.visible = false;
this.btnNext.label = 'UI_Talent_Select_Uncomplete';
this.#selected.clear();
}
close() {}