mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-09 15:19:50 +03:00
Resolves #138
This commit is contained in:
@@ -104,6 +104,12 @@ export const ConverterIRBeatoraja: ConverterFunction<BeatorajaScore, BeatorajaCo
|
||||
};
|
||||
}
|
||||
|
||||
let random = null;
|
||||
|
||||
if (chart.playtype === "7K") {
|
||||
random = RANDOM_LOOKUP[data.option];
|
||||
}
|
||||
|
||||
const lamp = LAMP_LOOKUP[data.clear];
|
||||
|
||||
const dryScore: DryScore<"bms:7K" | "bms:14K"> = {
|
||||
@@ -121,7 +127,7 @@ export const ConverterIRBeatoraja: ConverterFunction<BeatorajaScore, BeatorajaCo
|
||||
scoreMeta: {
|
||||
client: context.client,
|
||||
inputDevice: data.deviceType,
|
||||
random: RANDOM_LOOKUP[data.option] ?? null,
|
||||
random,
|
||||
},
|
||||
timeAchieved: Date.now(),
|
||||
service: "Beatoraja IR",
|
||||
|
||||
@@ -102,7 +102,8 @@ function TachiScoreDataToBeatorajaFormat(
|
||||
|
||||
let rajaRandom = 0 as const;
|
||||
|
||||
// @todo #138 Investigate how beatoraja handles DP randoms - for now, we just skip them.
|
||||
// Beatoraja does not support DP randoms - it only stores them in replay files,
|
||||
// and only sends the left hand random here.
|
||||
if (pbScore.playtype === "7K") {
|
||||
if (random) {
|
||||
// @ts-expect-error Invalid indexing because playtype removes the random tuple.
|
||||
|
||||
Reference in New Issue
Block a user