mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-06 05:48:00 +03:00
Change some config code up
This commit is contained in:
Vendored
+1
-4
@@ -1,7 +1,5 @@
|
||||
import { Game, Playtypes, ChartDocument } from "./types";
|
||||
declare const supportedGames: Game[];
|
||||
declare const serviceSupportedGames: Record<string, Game[]>;
|
||||
declare const internalServiceGames: Record<string, Game[]>;
|
||||
declare const gameSpecificCalc: Partial<Record<Game, Partial<Record<Playtypes[Game], string[]>>>>;
|
||||
declare const gameSpecificCalcDescriptions: {
|
||||
iidx: {
|
||||
@@ -61,7 +59,6 @@ declare const defaultPlaytype: Record<Game, Playtypes[Game]>;
|
||||
declare const defaultDifficulty: Record<Game, string>;
|
||||
declare function humaniseGame<T extends Game>(game: T, pt?: Playtypes[T]): string;
|
||||
declare const validPlaytypes: Record<Game, Playtypes[Game][]>;
|
||||
declare const validTierlistTiers: Record<Game, string[]>;
|
||||
declare const grades: Record<Game, string[]>;
|
||||
declare const gradeBoundaries: Record<Game, number[]>;
|
||||
declare const boundaryHCF: Record<Game, number>;
|
||||
@@ -399,4 +396,4 @@ declare const gamePercentMax: {
|
||||
maimaidx: number;
|
||||
usc: number;
|
||||
};
|
||||
export { supportedGames, gameOrders, internalServiceGames, versionHuman, grades, lamps, lampColours, gradeColours, serviceSupportedGames, defaultPlaytype, gameChartIndicators, GetGrade, gradeBoundaries, gameHuman, ratingParameters, validPlaytypes, ScoreGradeDelta, judgeColours, gameColours, validTierlistTiers, clearLamp, gameRelevantScoreBucket, judgementWindows, PercentToScore, ChangeAlpha, validDifficulties, validHitData, validHitMeta, boundaryHCF, gameSpecificCalc, expChartScale, FormatDifficulty, DirectScoreGradeDelta, gameSpecificCalcDescriptions, defaultDifficulty, gamePercentMax, AbsoluteScoreGradeDelta, validScoreMeta, clearGrade, defaultTable, folderTables, supportsESD, humaniseGame, };
|
||||
export { supportedGames, gameOrders, versionHuman, grades, lamps, lampColours, gradeColours, defaultPlaytype, gameChartIndicators, GetGrade, gradeBoundaries, gameHuman, ratingParameters, validPlaytypes, ScoreGradeDelta, judgeColours, gameColours, clearLamp, gameRelevantScoreBucket, judgementWindows, PercentToScore, ChangeAlpha, validDifficulties, validHitData, validHitMeta, boundaryHCF, gameSpecificCalc, expChartScale, FormatDifficulty, DirectScoreGradeDelta, gameSpecificCalcDescriptions, defaultDifficulty, gamePercentMax, AbsoluteScoreGradeDelta, validScoreMeta, clearGrade, defaultTable, folderTables, supportsESD, humaniseGame, };
|
||||
|
||||
+1
-39
@@ -4,7 +4,7 @@
|
||||
// of some of my first javascript code.
|
||||
// It's,, alright, but I like the versatility it brings.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.humaniseGame = exports.supportsESD = exports.folderTables = exports.defaultTable = exports.clearGrade = exports.validScoreMeta = exports.AbsoluteScoreGradeDelta = exports.gamePercentMax = exports.defaultDifficulty = exports.gameSpecificCalcDescriptions = exports.DirectScoreGradeDelta = exports.FormatDifficulty = exports.expChartScale = exports.gameSpecificCalc = exports.boundaryHCF = exports.validHitMeta = exports.validHitData = exports.validDifficulties = exports.ChangeAlpha = exports.PercentToScore = exports.judgementWindows = exports.gameRelevantScoreBucket = exports.clearLamp = exports.validTierlistTiers = exports.gameColours = exports.judgeColours = exports.ScoreGradeDelta = exports.validPlaytypes = exports.ratingParameters = exports.gameHuman = exports.gradeBoundaries = exports.GetGrade = exports.gameChartIndicators = exports.defaultPlaytype = exports.serviceSupportedGames = exports.gradeColours = exports.lampColours = exports.lamps = exports.grades = exports.versionHuman = exports.internalServiceGames = exports.gameOrders = exports.supportedGames = void 0;
|
||||
exports.humaniseGame = exports.supportsESD = exports.folderTables = exports.defaultTable = exports.clearGrade = exports.validScoreMeta = exports.AbsoluteScoreGradeDelta = exports.gamePercentMax = exports.defaultDifficulty = exports.gameSpecificCalcDescriptions = exports.DirectScoreGradeDelta = exports.FormatDifficulty = exports.expChartScale = exports.gameSpecificCalc = exports.boundaryHCF = exports.validHitMeta = exports.validHitData = exports.validDifficulties = exports.ChangeAlpha = exports.PercentToScore = exports.judgementWindows = exports.gameRelevantScoreBucket = exports.clearLamp = exports.gameColours = exports.judgeColours = exports.ScoreGradeDelta = exports.validPlaytypes = exports.ratingParameters = exports.gameHuman = exports.gradeBoundaries = exports.GetGrade = exports.gameChartIndicators = exports.defaultPlaytype = exports.gradeColours = exports.lampColours = exports.lamps = exports.grades = exports.versionHuman = exports.gameOrders = exports.supportedGames = void 0;
|
||||
const supportedGames = [
|
||||
"iidx",
|
||||
"museca",
|
||||
@@ -19,30 +19,6 @@ const supportedGames = [
|
||||
"usc",
|
||||
];
|
||||
exports.supportedGames = supportedGames;
|
||||
const serviceSupportedGames = {
|
||||
PLI: ["iidx"],
|
||||
ARC: ["iidx", "jubeat", "sdvx", "ddr"],
|
||||
FLO: ["iidx"],
|
||||
EAG: ["iidx"],
|
||||
"e-amusement": ["iidx"],
|
||||
LR2: ["bms"],
|
||||
beatoraja: ["bms"],
|
||||
MER: ["iidx"],
|
||||
SSS: ["iidx"],
|
||||
MaimaiNet: ["maimai"],
|
||||
"BATCH-MANUAL": supportedGames,
|
||||
"DIRECT-MANUAL": supportedGames,
|
||||
MANUAL: supportedGames,
|
||||
};
|
||||
exports.serviceSupportedGames = serviceSupportedGames;
|
||||
// internal services are services that aren't exposed to the public
|
||||
// but still leverage ImportMain.
|
||||
const internalServiceGames = {
|
||||
"ktchi-beatoraja-IR": ["bms"],
|
||||
FER: ["iidx"],
|
||||
"ktchi-usc-IR": ["usc"],
|
||||
};
|
||||
exports.internalServiceGames = internalServiceGames;
|
||||
const gameSpecificCalc = {
|
||||
iidx: {
|
||||
SP: ["BPI", "K%"],
|
||||
@@ -662,20 +638,6 @@ const validPlaytypes = {
|
||||
usc: ["Single"],
|
||||
};
|
||||
exports.validPlaytypes = validPlaytypes;
|
||||
const validTierlistTiers = {
|
||||
iidx: ["clear", "hardclear", "exhardclear"],
|
||||
museca: ["clear"],
|
||||
maimai: [],
|
||||
jubeat: [],
|
||||
popn: [],
|
||||
sdvx: ["clear", "excessiveclear"],
|
||||
ddr: ["clear", "perfectfullcombo"],
|
||||
bms: ["easyclear", "clear", "hardclear", "fullcombo"],
|
||||
chunithm: [],
|
||||
gitadora: [],
|
||||
usc: ["clear", "excessiveclear"],
|
||||
};
|
||||
exports.validTierlistTiers = validTierlistTiers;
|
||||
// correct order for grades
|
||||
const grades = {
|
||||
iidx: ["F", "E", "D", "C", "B", "A", "AA", "AAA", "MAX-", "MAX"],
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -19,30 +19,6 @@ const supportedGames: Game[] = [
|
||||
"usc",
|
||||
];
|
||||
|
||||
const serviceSupportedGames: Record<string, Game[]> = {
|
||||
PLI: ["iidx"],
|
||||
ARC: ["iidx", "jubeat", "sdvx", "ddr"], // PERFECT!
|
||||
FLO: ["iidx"],
|
||||
EAG: ["iidx"],
|
||||
"e-amusement": ["iidx"],
|
||||
LR2: ["bms"],
|
||||
beatoraja: ["bms"],
|
||||
MER: ["iidx"],
|
||||
SSS: ["iidx"],
|
||||
MaimaiNet: ["maimai"],
|
||||
"BATCH-MANUAL": supportedGames,
|
||||
"DIRECT-MANUAL": supportedGames,
|
||||
MANUAL: supportedGames,
|
||||
};
|
||||
|
||||
// internal services are services that aren't exposed to the public
|
||||
// but still leverage ImportMain.
|
||||
const internalServiceGames: Record<string, Game[]> = {
|
||||
"ktchi-beatoraja-IR": ["bms"],
|
||||
FER: ["iidx"],
|
||||
"ktchi-usc-IR": ["usc"],
|
||||
};
|
||||
|
||||
const gameSpecificCalc: Partial<Record<Game, Partial<Record<Playtypes[Game], string[]>>>> = {
|
||||
iidx: {
|
||||
SP: ["BPI", "K%"],
|
||||
@@ -667,20 +643,6 @@ const validPlaytypes: Record<Game, Playtypes[Game][]> = {
|
||||
usc: ["Single"],
|
||||
};
|
||||
|
||||
const validTierlistTiers: Record<Game, string[]> = {
|
||||
iidx: ["clear", "hardclear", "exhardclear"],
|
||||
museca: ["clear"],
|
||||
maimai: [],
|
||||
jubeat: [],
|
||||
popn: [],
|
||||
sdvx: ["clear", "excessiveclear"],
|
||||
ddr: ["clear", "perfectfullcombo"],
|
||||
bms: ["easyclear", "clear", "hardclear", "fullcombo"],
|
||||
chunithm: [],
|
||||
gitadora: [],
|
||||
usc: ["clear", "excessiveclear"],
|
||||
};
|
||||
|
||||
// correct order for grades
|
||||
const grades: Record<Game, string[]> = {
|
||||
iidx: ["F", "E", "D", "C", "B", "A", "AA", "AAA", "MAX-", "MAX"],
|
||||
@@ -1655,13 +1617,11 @@ const gamePercentMax = {
|
||||
export {
|
||||
supportedGames,
|
||||
gameOrders,
|
||||
internalServiceGames,
|
||||
versionHuman,
|
||||
grades,
|
||||
lamps,
|
||||
lampColours,
|
||||
gradeColours,
|
||||
serviceSupportedGames,
|
||||
defaultPlaytype,
|
||||
gameChartIndicators,
|
||||
GetGrade,
|
||||
@@ -1672,7 +1632,6 @@ export {
|
||||
ScoreGradeDelta,
|
||||
judgeColours,
|
||||
gameColours,
|
||||
validTierlistTiers,
|
||||
clearLamp,
|
||||
gameRelevantScoreBucket,
|
||||
judgementWindows,
|
||||
|
||||
Reference in New Issue
Block a user