Merge tag 'release/v2.0.25' into develop

Fix faulty beatoraja EX Score returns
This commit is contained in:
zkldi
2021-12-25 13:39:19 +00:00
3 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "tachi-server",
"version": "2.0.24",
"version": "2.0.25",
"description": "A score tracking server.",
"main": "js/index.js",
"private": true,
+1 -1
View File
@@ -4,7 +4,7 @@
const MAJOR = 2;
const MINOR = 0;
const PATCH = 24;
const PATCH = 25;
// As is with all front-facing zkldi projects, the version names for tachi-server
// are from an album I like. In this case, the album is Portishead - Dummy.
@@ -73,10 +73,6 @@ export function TachiScoreDataToBeatorajaFormat(
// // Not everything exports these properties. If they're not there, they should default to 0.
// // For cases like LR2/manual - this will just result in a set of 0s.
for (const key of [
"epg",
"lpg",
"egr",
"lgr",
"egd",
"lgd",
"ebd",
@@ -99,6 +95,8 @@ export function TachiScoreDataToBeatorajaFormat(
// truly fun.
judgements.epg = Math.floor(pbScore.scoreData.score / 2);
judgements.egr = pbScore.scoreData.score % 2;
judgements.lpg = 0;
judgements.lgr = 0;
// }
return { ...beatorajaScore, ...judgements };