mirror of
https://github.com/asphyxia-core/plugins.git
synced 2026-09-22 22:27:56 +03:00
Fix
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user