mirror of
https://github.com/zkldi/Tachi.git
synced 2026-09-30 02:48:01 +03:00
Merge tag 'release/v2.0.25' into develop
Fix faulty beatoraja EX Score returns
This commit is contained in:
+1
-1
@@ -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,
|
||||
|
||||
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user