fix: exclude automatic hold judgments from special-start timing bonus
Publish GitHub Pages output / publish (push) Successful in 40s
Publish GitHub Pages output / publish (push) Successful in 40s
This commit is contained in:
@@ -125,6 +125,7 @@ function flattenEvents(chartData) {
|
||||
const block = Array.isArray(rawBlock) ? rawBlock : [rawBlock];
|
||||
return block.map((note, index) => ({
|
||||
...note,
|
||||
isHoldEnd: index > 0 && index === block.length - 1,
|
||||
// 롱노트 안쪽 판정은 점 모양이어도 0.1배다. 시작·끝의 일반 판정만 1배다.
|
||||
type: (index === 0 || index === block.length - 1) &&
|
||||
note.note_type !== 'mid' &&
|
||||
@@ -141,13 +142,15 @@ function flattenEvents(chartData) {
|
||||
...pink.map((note) => ({
|
||||
...note,
|
||||
type: note.note_type ?? 'regular',
|
||||
is_flick: !isHoldEndFlick(note)
|
||||
is_flick: !isHoldEndFlick(note),
|
||||
isHoldEnd: isHoldEndFlick(note)
|
||||
}))
|
||||
]
|
||||
.map((note) => ({
|
||||
timeSeconds: note.time_seconds,
|
||||
type: note.type === 'mid' ? 'mid' : 'regular',
|
||||
isFlick: note.is_flick === true
|
||||
isFlick: note.is_flick === true,
|
||||
...(note.isHoldEnd ? { isHoldEnd: true } : {})
|
||||
}))
|
||||
.filter((note) => Number.isFinite(note.timeSeconds))
|
||||
.sort((left, right) => left.timeSeconds - right.timeSeconds || (left.type === 'mid' ? 1 : -1));
|
||||
|
||||
Reference in New Issue
Block a user