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