fix(stargalaxy): correct LV frame mapping in ScatteredRanks (rank 4→LV4, not LV1)

This commit is contained in:
zheng020 2026-06-10 16:51:01 +08:00
parent f66be49384
commit 1542147291

View File

@ -90,8 +90,9 @@ function formatLabel(rank) {
}
function ringFrameSrc(rank) {
const lvNumber = rank - 3 // rank 4 LV1, ..., rank 12 LV9
return `/static/square/galaxy/LV${lvNumber}.png`
// rank 4 LV4 (TOP 4), rank 5 LV5 (TOP 5), ..., rank 12 LV12 (TOP 12)
// ScatteredRanks rank == display rank (no offset, unlike PodiumCard which uses rank - 3)
return `/static/square/galaxy/LV${rank}.png`
}
function handleClick(item) {