Skip to content

Commit

Permalink
Merge pull request #2227 from SkyCryptWebsite/development
Browse files Browse the repository at this point in the history
merge development into production
  • Loading branch information
Shiiyu authored Apr 10, 2024
2 parents 46761c8 + cb020ff commit bdc30b1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/constants/hotm.js
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ class PeakOfTheMountain extends Node {
const baseTier = level > this.level ? level : 1;

for (let tier = baseTier; tier <= level; tier++) {
for (const [reward, qty] of Object.entries(rewards.potm[tier])) {
for (const [reward, qty] of Object.entries(rewards.potm[tier] ?? {})) {
const qtyColor = rewards.rewards[reward].qtyColor;
const formatted = rewards.rewards[reward].formatted;
output.push(`§8+ §${qtyColor}${qty} ${formatted}`);
Expand Down
3 changes: 2 additions & 1 deletion src/constants/pet-stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ function getValue(rarity, data) {
case MYTHIC:
return mythic;
default:
throw new Error("Unknown rarity");
console.log(`Unknown rarity: ${rarity}`);
// throw new Error("Unknown rarity");
}
}

Expand Down
3 changes: 2 additions & 1 deletion src/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,8 @@ export function parseItemGems(gems, rarity) {
gem_tier: value?.quality || value,
});
} else {
throw new Error(`Error! Unknown gemstone slot key: ${key}`);
console.log(key);
// throw new Error(`Error! Unknown gemstone slot key: ${key}`);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/stats/items/mining.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function getHotmItems(userProfile, packs) {
// Check for missing node classes
for (const nodeId in nodes) {
if (constants.HOTM.nodes[nodeId] == undefined) {
throw new Error(`Missing Heart of the Mountain node: ${nodeId}`);
// throw new Error(`Missing Heart of the Mountain node: ${nodeId}`);
}
}

Expand Down

0 comments on commit bdc30b1

Please sign in to comment.