From 2de235b7ec4eecb971a71bc6ee4182794eb0942d Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Wed, 15 Jan 2025 12:46:11 +0000 Subject: [PATCH] feat: change sieglinde visual representation it should not look like walkure. Now in the form sgl13.x --- common/src/config/game-support/bms.ts | 6 +----- common/src/config/game-support/pms.ts | 6 +----- seeds/scripts/rerunners/bms-pms/apply-sieglinde.js | 6 +----- sieglinde/src/calc/util/format-sgl.ts | 6 +----- 4 files changed, 4 insertions(+), 20 deletions(-) diff --git a/common/src/config/game-support/bms.ts b/common/src/config/game-support/bms.ts index 28f0966d8..6bddc9a38 100644 --- a/common/src/config/game-support/bms.ts +++ b/common/src/config/game-support/bms.ts @@ -17,11 +17,7 @@ export const BMS_CONF = { } as const satisfies INTERNAL_GAME_CONFIG; export function FormatSieglindeBMS(sgl: number): string { - if (sgl < 13) { - return `☆${sgl.toFixed(2)}`; - } - - return `★${(sgl - 12).toFixed(2)}`; + return `sgl${sgl.toFixed(1)}`; } // works for both 7K and 14K. diff --git a/common/src/config/game-support/pms.ts b/common/src/config/game-support/pms.ts index 616902187..0df925b9f 100644 --- a/common/src/config/game-support/pms.ts +++ b/common/src/config/game-support/pms.ts @@ -33,11 +33,7 @@ const PMSDans = [ ]; function FormatSieglindePMS(sgl: number): string { - if (sgl < 13) { - return `○${sgl.toFixed(2)}`; - } - - return `●${(sgl - 12).toFixed(2)}`; + return `psgl${sgl.toFixed(1)}`; } export const PMS_CONTROLLER_CONF = { diff --git a/seeds/scripts/rerunners/bms-pms/apply-sieglinde.js b/seeds/scripts/rerunners/bms-pms/apply-sieglinde.js index 2de5ed94b..fbc4a3fcb 100644 --- a/seeds/scripts/rerunners/bms-pms/apply-sieglinde.js +++ b/seeds/scripts/rerunners/bms-pms/apply-sieglinde.js @@ -26,11 +26,7 @@ const APPLICATION_ORDER = [ ]; function fmtSgl(sgl) { - if (sgl < 13) { - return `☆${sgl.toFixed(2)}`; - } - - return `★${(sgl - 12).toFixed(2)}`; + return `sgl${(sgl - 12).toFixed(1)}`; } function sl12Fix(x) { diff --git a/sieglinde/src/calc/util/format-sgl.ts b/sieglinde/src/calc/util/format-sgl.ts index c5817a65c..825da609c 100644 --- a/sieglinde/src/calc/util/format-sgl.ts +++ b/sieglinde/src/calc/util/format-sgl.ts @@ -1,7 +1,3 @@ export function fmtSgl(sgl: number): string { - if (sgl < 13) { - return `☆${sgl.toFixed(2)}`; - } - - return `★${(sgl - 12).toFixed(2)}`; + return `sgl${sgl.toFixed(1)}`; }