Fix 演奏情報表示 not working
Fix 判定ライン位置、判定エフェクト位置、SHUTTER(IN/OUT)'s value wrong
Known issue: Card name and title still not showing in game while playing
This commit is contained in:
James Liu
2026-06-05 13:02:41 +08:00
parent 42f7451850
commit b0236bd1f6
2 changed files with 42 additions and 1 deletions
@@ -93,6 +93,7 @@ export const getPlayer: EPR = async (info, data, send) => {
const profile = dm ? dmProfile : gfProfile;
const extra = dm ? dmExtra : gfExtra;
applyPlayHudPreset(extra.playstyle);
await applySharedFavoriteMusicToExtra(refid, extra)
@@ -771,6 +772,19 @@ async function updatePlayerScoreCollection(refid, playedStages, version, game) {
return scores
}
function applyPlayHudPreset(playstyle: number[]): void {
if (!Array.isArray(playstyle)) return;
// Only pad array to required length for version upgrades (50→70).
// Do NOT overwrite any existing values — let the user's saved settings persist.
if (playstyle.length < 70) {
for (let i = playstyle.length; i < 70; i++) {
playstyle[i] = 0;
}
}
}
async function getPlayerRanking(refid: string, version: string, game: 'gf' | 'dm') : Promise<PlayerRanking> {
let profiles = await getAllProfiles(version, game)
let playerCount = profiles.length