Skip to content

Commit

Permalink
Fix: taiko mod calculate error
Browse files Browse the repository at this point in the history
  • Loading branch information
ohmykreee committed Feb 13, 2024
1 parent 38b512a commit 57020cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/render/score.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const getHTML = async (content: any[]): Promise<string> => {
info.score.detailed = `
<table>
<tr> <td>Great: ${recent.statistics.count_300}</td> <td>Good: ${recent.statistics.count_100}</td> </tr>
<tr> <td>Bad: ${recent.statistics.count_50}</td> <td>Miss: ${recent.statistics.count_100}</td> </tr>
<tr> <td>Miss: ${recent.statistics.count_miss}</td> </tr>
</table>
`
break
Expand Down Expand Up @@ -160,11 +160,11 @@ const getHTML = async (content: any[]): Promise<string> => {
mode: recent.mode_int,
mods: mod,
acc: recent.accuracy,
nGeki: recent.statistics.count_geki,
nKatu: recent.statistics.count_katu,
nGeki: recent.statistics.count_geki? recent.statistics.count_geki:undefined,
nKatu: recent.statistics.count_katu? recent.statistics.count_katu:undefined,
n300: recent.statistics.count_300,
n100: recent.statistics.count_100,
n50: recent.statistics.count_50,
n50: recent.statistics.count_50? recent.statistics.count_50:undefined,
nMisses: recent.statistics.count_miss,
combo: recent.max_combo,
// passedObjects: recent.statistics.count_geki + recent.statistics.count_katu + recent.statistics.count_300 + recent.statistics.count_100 + recent.statistics.count_50 + recent.statistics.count_miss,
Expand Down

0 comments on commit 57020cf

Please sign in to comment.