Skip to content

Commit

Permalink
chore: fix mania pp + types
Browse files Browse the repository at this point in the history
  • Loading branch information
cyperdark committed Jun 30, 2024
1 parent 7eda92a commit 143bf27
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 4 additions & 2 deletions packages/tosu/src/entities/GamePlayData/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ export class GamePlayData extends AbstractEntity {
return;
}

const scoreParams = {
const scoreParams: rosu.PerformanceArgs = {
passedObjects: calculatePassedObjects(
this.Mode,
this.Hit300,
Expand All @@ -592,7 +592,9 @@ export class GamePlayData extends AbstractEntity {
misses: this.HitMiss,
n50: this.Hit50,
n100: this.Hit100,
n300: this.Hit300
n300: this.Hit300,
nKatu: this.HitKatu,
nGeki: this.HitGeki
};

const currentState = `${menuData.MD5}:${menuData.MenuGameMode}:${this.Mods}:${menuData.MP3Length}`;
Expand Down
8 changes: 5 additions & 3 deletions packages/tosu/src/entities/ResultsScreenData/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export class ResultsScreenData extends AbstractEntity {
return;
}

const scoreParams = {
const scoreParams: rosu.PerformanceArgs = {
passedObjects: calculatePassedObjects(
this.Mode,
this.Hit300,
Expand All @@ -171,10 +171,12 @@ export class ResultsScreenData extends AbstractEntity {
),
combo: this.MaxCombo,
mods: this.Mods,
nMisses: this.HitMiss,
misses: this.HitMiss,
n50: this.Hit50,
n100: this.Hit100,
n300: this.Hit300
n300: this.Hit300,
nKatu: this.HitKatu,
nGeki: this.HitGeki
};

const curPerformance = new rosu.Performance(scoreParams).calculate(
Expand Down

0 comments on commit 143bf27

Please sign in to comment.