Skip to content

函数: buildSongDxMaxMap()

ts
function buildSongDxMaxMap(songs): Map<string, number>;

定义于: song-maps.ts:128

构建 songId:type:difficulty → DX 满分 映射。

满分 = notes.total × 3(见 dxMaxFromNoteTotal)。 无物量或 total ≤ 0 的谱面不写入。

参数

参数类型描述
songsreadonly SongMeta[]曲目列表(通常来自 getSongList({ notes: true })

返回

Map<string, number>

key 与 chartMapKey / scoreMapKey 一致

示例

ts
const { songs } = await database.getSongList({ notes: true });
const dxMaxByChart = buildSongDxMaxMap(songs);
dxMaxByChart.get("114:dx:3");