Files
zkldi_Tachi/common/js/utils/util.js
T
2021-07-12 16:20:06 +01:00

13 lines
490 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FormatDifficulty = void 0;
const config_1 = require("../config/config");
function FormatDifficulty(chart, game) {
const gameConfig = config_1.GetGameConfig(game);
if (gameConfig.validPlaytypes.length > 1) {
return `${chart.playtype} ${chart.difficulty} ${chart.level}`;
}
return `${chart.difficulty}`;
}
exports.FormatDifficulty = FormatDifficulty;
//# sourceMappingURL=util.js.map