mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-04 21:08:09 +03:00
checkpoint: insanity ascends (35)
127 errors to go
This commit is contained in:
+13
-1
@@ -13,7 +13,19 @@ import {
|
||||
import { GoalsOnChartReturn, GoalsOnFolderReturn } from "types/api-returns";
|
||||
|
||||
export function GetPBs(scoreInfo: SessionScoreInfo[]) {
|
||||
return scoreInfo.filter((e) => e.isNewScore === true || e.lampDelta > 0 || e.scoreDelta > 0);
|
||||
return scoreInfo.filter((e) => {
|
||||
if (e.isNewScore) {
|
||||
return true;
|
||||
}
|
||||
|
||||
for (const v of Object.values(e.deltas)) {
|
||||
if (v >= 0) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
});
|
||||
}
|
||||
|
||||
export function CreateSongMap<G extends Game = Game>(songs: SongDocument<G>[]) {
|
||||
|
||||
Reference in New Issue
Block a user