mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-17 21:57:44 +00:00
fix: 评级没有的不显示
This commit is contained in:
parent
b7600d3f76
commit
40670fc172
1 changed files with 16 additions and 14 deletions
|
|
@ -225,6 +225,7 @@ export class Equip {
|
||||||
* @returns {number}
|
* @returns {number}
|
||||||
*/
|
*/
|
||||||
get_score(charID) {
|
get_score(charID) {
|
||||||
|
if (hasScoreData(charID)) {
|
||||||
this.score = this.properties.reduce(
|
this.score = this.properties.reduce(
|
||||||
(acc, item) => acc + item.get_score(charID),
|
(acc, item) => acc + item.get_score(charID),
|
||||||
0
|
0
|
||||||
|
|
@ -240,6 +241,7 @@ export class Equip {
|
||||||
} else if (this.equipment_type === 6) {
|
} else if (this.equipment_type === 6) {
|
||||||
this.score += 4.8 * additional;
|
this.score += 4.8 * additional;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return this.score;
|
return this.score;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue