Skip to content

Commit

Permalink
refactor: add changes from SkyCryptWebsite#2000
Browse files Browse the repository at this point in the history
  • Loading branch information
DuckySoLucky committed Nov 21, 2023
1 parent 5b8bd52 commit 7b94fda
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 17 deletions.
10 changes: 0 additions & 10 deletions common/constants/stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,16 +227,6 @@ export const STATS_DATA = {
suffix: "",
color: "a",
},
// todo: remove this once #1639 is merged and update wisdom values
wisdom: {
name: "Wisdom",
nameLore: "Wisdom",
nameShort: "Wisdom",
nameTiny: "W",
symbol: "☯",
suffix: "",
color: "3",
},
mana_regen: {
name: "Mana Regen",
nameLore: "Mana Regen",
Expand Down
14 changes: 7 additions & 7 deletions src/constants/pet-stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ class Rabbit extends Pet {
const mult = getValue(this.rarity, { rare: 0.25, epic: 0.3 });
return {
name: "§6Farming Wisdom Boost ",
desc: [`§7Grants §3+${round(this.level * mult, 1)} ${SYMBOLS.wisdom} Farming Wisdom§7.`],
desc: [`§7Grants §3+${round(this.level * mult, 1)} ${SYMBOLS.farming_wisdom} Farming Wisdom§7.`],
};
}

Expand Down Expand Up @@ -859,7 +859,7 @@ class Silverfish extends Pet {
const mult = getValue(this.rarity, { rare: 0.25, epic: 0.3 });
return {
name: "§6Mining Wisdom Boost",
desc: [`§7Grants §3+${round(this.level * mult, 1)} ${SYMBOLS.wisdom} Mining Wisdom§7.`],
desc: [`§7Grants §3+${round(this.level * mult, 1)} ${SYMBOLS.mining_wisdom} Mining Wisdom§7.`],
};
}

Expand Down Expand Up @@ -1459,7 +1459,7 @@ class Guardian extends Pet {
const mult = getValue(this.rarity, { rare: 0.25, epic: 0.3 });
return {
name: "§6Enchanting Wisdom Boost",
desc: [`§7Grants §3+${round(this.level * mult, 1)} ${SYMBOLS.wisdom} Enchanting Wisdom§7.`],
desc: [`§7Grants §3+${round(this.level * mult, 1)} ${SYMBOLS.enchanting_wisdom} Enchanting Wisdom§7.`],
};
}

Expand Down Expand Up @@ -2214,7 +2214,7 @@ class Wolf extends Pet {
const mult = getValue(this.rarity, { legendary: 0.3 });
return {
name: "§6Combat Wisdom Boost",
desc: [`§7Grants §3+${round(this.level * mult, 1)} ${SYMBOLS.wisdom} Combat Wisdom§7.`],
desc: [`§7Grants §3+${round(this.level * mult, 1)} ${SYMBOLS.combat_wisdom} Combat Wisdom§7.`],
};
}
}
Expand Down Expand Up @@ -2247,7 +2247,7 @@ class GrandmaWolf extends Pet {
`§a15 Combo §8(lasts §a${Math.floor((4 + this.level * 0.02) * 10) / 10}s§8)`,
`§8+ §b3% §b${SYMBOLS.magic_find} Magic Find`,
`§a20 Combo §8(lasts §a${Math.floor((3 + this.level * 0.02) * 10) / 10}s§8)`,
`§8+ §315 ${SYMBOLS.wisdom} Combat Wisdom`,
`§8+ §315 ${SYMBOLS.combat_wisdom} Combat Wisdom`,
`§a25 Combo §8(lasts §a${Math.floor((3 + this.level * 0.01) * 10) / 10}s§8)`,
`§8+ §b3% §b${SYMBOLS.magic_find} Magic Find`,
`§a30 Combo §8(lasts §a${Math.floor((2 + this.level * 0.01) * 10) / 10}s§8)`,
Expand Down Expand Up @@ -2509,7 +2509,7 @@ class Ocelot extends Pet {
const mult = getValue(this.rarity, { common: 0.2, uncommon: 0.25, epic: 0.3 });
return {
name: "§6Foraging Wisdom Boost",
desc: [`§7Grants §3+${round(this.level * mult, 1)} ${SYMBOLS.wisdom} Foraging Wisdom§7.`],
desc: [`§7Grants §3+${round(this.level * mult, 1)} ${SYMBOLS.foraging_wisdom} Foraging Wisdom§7.`],
};
}

Expand Down Expand Up @@ -2879,7 +2879,7 @@ class Squid extends Pet {
const mult = getValue(this.rarity, { legendary: 0.3 });
return {
name: "§6Fishing Wisdom Boost",
desc: [`§7Grants §3+${round(this.level * mult, 1)} ${SYMBOLS.wisdom} Fishing Wisdom§7.`],
desc: [`§7Grants §3+${round(this.level * mult, 1)} ${SYMBOLS.fishing_wisdom} Fishing Wisdom§7.`],
};
}
}
Expand Down

0 comments on commit 7b94fda

Please sign in to comment.