aboutsummaryrefslogtreecommitdiff
path: root/build/constants.js
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2021-06-02 16:04:59 -0500
committerGitHub <noreply@github.com>2021-06-02 16:04:59 -0500
commit709d428b4cb94e8eca53b6f32e0f8b1be5a323b9 (patch)
treee1581056d7d7ea9fa254184627c9cb71362cdc0f /build/constants.js
parent732dfb76766533687982d7232078411af76bd2a9 (diff)
downloadskyblock-api-709d428b4cb94e8eca53b6f32e0f8b1be5a323b9.tar.gz
skyblock-api-709d428b4cb94e8eca53b6f32e0f8b1be5a323b9.tar.bz2
skyblock-api-709d428b4cb94e8eca53b6f32e0f8b1be5a323b9.zip
include more data about skills (#51)
Diffstat (limited to 'build/constants.js')
-rw-r--r--build/constants.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/build/constants.js b/build/constants.js
index c620a32..22327c5 100644
--- a/build/constants.js
+++ b/build/constants.js
@@ -25,7 +25,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
-exports.setConstantValues = exports.fetchConstantValues = exports.addMinions = exports.fetchMinions = exports.addSlayers = exports.fetchSlayers = exports.addZones = exports.fetchZones = exports.addSkills = exports.fetchSkills = exports.addCollections = exports.fetchCollections = exports.addStats = exports.fetchStats = exports.addJSONConstants = exports.fetchJSONConstant = void 0;
+exports.setConstantValues = exports.fetchConstantValues = exports.addMinions = exports.fetchSkillXpEasier = exports.fetchSkillXp = exports.fetchMinions = exports.addSlayers = exports.fetchSlayers = exports.addZones = exports.fetchZones = exports.addSkills = exports.fetchSkills = exports.addCollections = exports.fetchCollections = exports.addStats = exports.fetchStats = exports.addJSONConstants = exports.fetchJSONConstant = void 0;
// we have to do this so we can mock the function from the tests properly
const constants = __importStar(require("./constants"));
const node_cache_1 = __importDefault(require("node-cache"));
@@ -223,6 +223,14 @@ async function fetchMinions() {
return await constants.fetchJSONConstant('minions.json');
}
exports.fetchMinions = fetchMinions;
+async function fetchSkillXp() {
+ return await constants.fetchJSONConstant('manual/skill_xp.json');
+}
+exports.fetchSkillXp = fetchSkillXp;
+async function fetchSkillXpEasier() {
+ return await constants.fetchJSONConstant('manual/skill_xp_easier.json');
+}
+exports.fetchSkillXpEasier = fetchSkillXpEasier;
/** Add skills to skyblock-constants. This has caching so it's fine to call many times */
async function addMinions(addingMinions) {
await constants.addJSONConstants('minions.json', addingMinions, 'minion');