Skip to content

Commit

Permalink
准确度动画修改逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
MisaLiu committed Nov 13, 2022
1 parent 8f55b8e commit 16f631b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/judgement/score.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,11 @@ export default class Score
)
);

if (this.sprites.acc.currentValue >= (this.sprites.acc.oldValue + this.sprites.acc.addedValue))
{
if (
this.sprites.acc.currentValue === (this.sprites.acc.oldValue + this.sprites.acc.addedValue) ||
(this.sprites.acc.addedValue > 0 && this.sprites.acc.currentValue > (this.sprites.acc.oldValue + this.sprites.acc.addedValue)) ||
(this.sprites.acc.addedValue < 0 && this.sprites.acc.currentValue < (this.sprites.acc.oldValue + this.sprites.acc.addedValue))
) {
this.sprites.acc.currentValue = this.sprites.acc.oldValue + this.sprites.acc.addedValue;
this.sprites.acc.valueChangedTime = NaN;
}
Expand Down

0 comments on commit 16f631b

Please sign in to comment.