diff options
author | mat <27899617+mat-1@users.noreply.github.com> | 2021-06-02 16:04:59 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-02 16:04:59 -0500 |
commit | 709d428b4cb94e8eca53b6f32e0f8b1be5a323b9 (patch) | |
tree | e1581056d7d7ea9fa254184627c9cb71362cdc0f /src/constants.ts | |
parent | 732dfb76766533687982d7232078411af76bd2a9 (diff) | |
download | skyblock-api-709d428b4cb94e8eca53b6f32e0f8b1be5a323b9.tar.gz skyblock-api-709d428b4cb94e8eca53b6f32e0f8b1be5a323b9.tar.bz2 skyblock-api-709d428b4cb94e8eca53b6f32e0f8b1be5a323b9.zip |
include more data about skills (#51)
Diffstat (limited to 'src/constants.ts')
-rw-r--r-- | src/constants.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/constants.ts b/src/constants.ts index 48f9619..9699e57 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -227,6 +227,14 @@ export async function fetchMinions(): Promise<string[]> { return await constants.fetchJSONConstant('minions.json') } +export async function fetchSkillXp(): Promise<number[]> { + return await constants.fetchJSONConstant('manual/skill_xp.json') +} + +export async function fetchSkillXpEasier(): Promise<number[]> { + return await constants.fetchJSONConstant('manual/skill_xp_easier.json') +} + /** Add skills to skyblock-constants. This has caching so it's fine to call many times */ export async function addMinions(addingMinions: string[]): Promise<void> { await constants.addJSONConstants('minions.json', addingMinions, 'minion') |