Skip to content

Commit

Permalink
fix: Pass geki and katu to calculateGrade
Browse files Browse the repository at this point in the history
  • Loading branch information
cyperdark committed Oct 16, 2024
1 parent ce05b42 commit c27fdd9
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 c27fdd9

Please sign in to comment.