Skip to content

Commit

Permalink
Merge pull request #207 from tosuapp/fix/grades
Browse files Browse the repository at this point in the history
fix: Pass geki and katu to calculateGrade
  • Loading branch information
KotRikD authored Oct 16, 2024
2 parents ce05b42 + c27fdd9 commit 406301b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions packages/tosu/src/entities/GamePlayData/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ export class GamePlayData extends AbstractEntity {
mode: this.Mode,
hits: {
300: this.Hit300,
geki: 0,
geki: this.HitGeki,
100: this.Hit100,
katu: 0,
katu: this.HitKatu,
50: this.Hit50,
0: this.HitMiss
}
Expand Down Expand Up @@ -512,9 +512,9 @@ export class GamePlayData extends AbstractEntity {
mode: this.Mode,
hits: {
300: this.Hit300,
geki: 0,
geki: this.HitGeki,
100: this.Hit100,
katu: 0,
katu: this.HitKatu,
50: this.Hit50,
0: this.HitMiss
}
Expand All @@ -525,9 +525,9 @@ export class GamePlayData extends AbstractEntity {
mode: this.Mode,
hits: {
300: this.Hit300 + remaining,
geki: 0,
geki: this.HitGeki,
100: this.Hit100,
katu: 0,
katu: this.HitKatu,
50: this.Hit50,
0: this.HitMiss
}
Expand Down
4 changes: 2 additions & 2 deletions packages/tosu/src/entities/ResultsScreenData/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ export class ResultsScreenData extends AbstractEntity {

const hits = {
300: this.Hit300,
geki: 0,
geki: this.HitGeki,
100: this.Hit100,
katu: 0,
katu: this.HitKatu,
50: this.Hit50,
0: this.HitMiss
};
Expand Down

0 comments on commit 406301b

Please sign in to comment.