Skip to content

Commit

Permalink
Merge pull request #2084 from DuckySoLucky/refactorRewriteToV2Endpoint
Browse files Browse the repository at this point in the history
refactor: rewrite to v2 endpoint
  • Loading branch information
metalcupcake5 authored Nov 21, 2023
2 parents c11dfea + 6a3d636 commit 6e42dae
Show file tree
Hide file tree
Showing 138 changed files with 10,743 additions and 9,403 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Before contributing to SkyCrypt, make sure you install the development environme
3. Go to `developer.hypixel.net/dashboard`. Click `Create API Key` and copy the result.
4. Open `credentials.json` and input your Hypixel API key into the `hypixel_api_key` field.
5. In the `dbUrl` field, input your MongoDB url. In the `dbName` field, input the name of the database you would like to use.
6. (optional) If you are not using the default Redis port or you are using Redis remotely, you can configure the Redis URL with the `redisUrl` field in `credentials.json`
6. (optional) If you are not using the default Redis port or you are using Redis remotely, you can configure the Redis URL with the `redisUrl` field in `credentials.json`. Also `discord_webhook` if you want to send error remotely, useful in production to detect bugs.
7. Making sure your Mongo and Redis instances are running, run `pnpm start` for production or `pnpm dev` for development in the project directory. You should now be able to access the site at http://localhost:32464/

### VS-Code
Expand Down
1 change: 1 addition & 0 deletions common/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ export * from "./constants/items.js";
export * from "./constants/potions.js";
export * from "./constants/rewards.js";
export * from "./constants/stats.js";
export * from "./constants/misc.js";
24 changes: 22 additions & 2 deletions common/constants/bonuses.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ export const STATS_BONUS = {
51: { health: 0 },
},
skill_social: {},
skill_carpentry: {},
skill_carpentry: {
1: { health: 1 },
},
skill_runecrafting: {},
// Slayers
slayer_zombie: {
Expand Down Expand Up @@ -83,9 +85,27 @@ export const STATS_BONUS = {
3: { health: 4 },
4: { true_defense: 1 },
5: { health: 5 },
6: {},
6: { strength: 2 },
7: { health: 6 },
8: { true_defense: 2 },
9: { health: 7 },
},
HOTM_perk_mining_speed: {
1: { mining_speed: 20 },
},
HOTM_perk_mining_speed_2: {
1: { mining_speed: 40 },
},
HOTM_perk_mining_fortune: {
1: { mining_fortune: 5 },
},
HOTM_perk_mining_fortune_2: {
1: { mining_fortune: 5 },
},
HOTM_perk_mining_madness: {
1: { mining_speed: 50, mining_fortune: 50 },
},
HOTM_perk_mining_experience: {
1: { mining_wisdom: 0.1 },
},
};
3 changes: 2 additions & 1 deletion common/constants/enchantments.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export const MAX_ENCHANTS = new Set([
"Mana Steel III",
"Mana Vampire X",
"Overload V",
"Pesterminator V",
"Piercing I",
"Piscary VI",
"Power VII",
Expand All @@ -84,7 +85,7 @@ export const MAX_ENCHANTS = new Set([
"Spiked Hook VI",
"Strong Mana X",
"Sugar Rush III",
"Sunder V",
"Sunder VI",
"Syphon V",
"Tabasco III",
"Thorns III",
Expand Down
23 changes: 23 additions & 0 deletions common/constants/misc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
export const HARP_QUEST = {
song_hymn_joy_best_completion: 1,
song_frere_jacques_best_completion: 1,
song_amazing_grace_best_completion: 1,
song_brahms_best_completion: 2,
song_happy_birthday_best_completion: 2,
song_greensleeves_best_completion: 2,
song_jeopardy_best_completion: 3,
song_minuet_best_completion: 3,
song_joy_world_best_completion: 3,
song_pure_imagination_best_completion: 4,
song_vie_en_rose_best_completion: 4,
song_fire_and_flames_best_completion: 1,
song_pachelbel_best_completion: 1,
};

export const FORBIDDEN_STATS = {
permanent_speed: 1,
permanent_intelligence: 2,
permanent_health: 2,
permanent_defense: 1,
permanent_strength: 1,
};
Loading

0 comments on commit 6e42dae

Please sign in to comment.