Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add ore fortune stat and update Goblin pet abilities #2324

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions src/constants/pet-stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ class Pet {
case "mining_fortune":
list.push(`§7Mining Fortune: ${formatStat(newStats[stat])}`);
break;
case "ore_fortune":
list.push(`§7Ore Fortune: ${formatStat(newStats[stat])}`);
break;
case "farming_fortune":
list.push(`§7Farming Fortune: ${formatStat(newStats[stat])}`);
break;
Expand Down Expand Up @@ -3773,8 +3776,8 @@ class Spinosaurus extends Pet {
class Goblin extends Pet {
get stats() {
return {
speed: 0.2 * this.level,
crit_chance: 0.1 * this.level,
magic_find: 0.07 * this.level,
ore_fortune: 1 * this.level,
};
}

Expand All @@ -3785,20 +3788,22 @@ class Goblin extends Pet {
}

get first() {
const mult = getValue(this.rarity, { legendary: 0.5 });
const mult = getValue(this.rarity, { legendary: 2.5 });

return {
name: "§6Pickpocket",
desc: [`§7Increases the coins obtained from goblin coin bags by §a${round(this.level * mult, 1)}%§7.`],
name: "§6Grunt Work",
desc: [`§7Gain §6+${round(this.level * mult, 1)} ${SYMBOLS.mining_speed} Mining Speed§7 when mining §6Ores§7.`],
};
}

get second() {
const mult = getValue(this.rarity, { legendary: 1 });

return {
name: "§6Offensive Odor",
desc: [`§7The Kings scent potion effect lasts §a${round(this.level * mult, 1)}% §7longer on you.`],
name: "§6Fetid Thief",
desc: [
`§7Gain §e+${round(this.level * mult, 1)} ${SYMBOLS.mining_spread} Mining Spread §7while in the §aMines of Divan§7.`,
],
};
}

Expand Down
Loading