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

fix: Reindeer pet perks changes & GDrag lore #1804

Merged
merged 2 commits into from
Dec 30, 2022
Merged
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
30 changes: 19 additions & 11 deletions src/constants/pet-stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ class Pet {
case "health_regen":
list.push(`§7Health Regen: ${formatStat(newStats[stat])}`);
break;
case "fishing_speed":
list.push(`§7Fishing Speed: ${formatStat(newStats[stat])}`);
break;
default:
list.push(`§cUNKNOWN: ${stat}`);
break;
Expand Down Expand Up @@ -644,15 +647,15 @@ class Rock extends Pet {
const mult = getValue(this.rarity, { rare: 0.2, epic: 0.25 });
return {
name: "§6Fortify",
desc: [`§7While sitting on your rock, gain +§a${round(this.level * mult, 1)}% §7defense`],
desc: [`§7While sitting on your rock, gain §a+${round(this.level * mult, 1)}% §7defense`],
};
}

get fourth() {
const mult = getValue(this.rarity, { legendary: 0.3 });
return {
name: "§6Steady Ground",
desc: [`§7While sitting on your rock, gain +§a${round(this.level * mult, 1)}§7% damage`],
desc: [`§7While sitting on your rock, gain §c+${round(this.level * mult, 1)}% §7damage`],
};
}
}
Expand Down Expand Up @@ -1058,7 +1061,7 @@ class GoldenDragon extends Pet {
const value = this.level * 0.00125;
return {
name: "§6Legendary Treasure",
desc: [`Gain §c${round(value, 4)}% damage §7for every million coins in your bank.`],
desc: [`§7Gain §c${round(value, 4)}% damage §7for every million coins in your bank.`],
};
}
}
Expand Down Expand Up @@ -3223,11 +3226,12 @@ class Kuudra extends Pet {
}
}

class Raindeer extends Pet {
class Reindeer extends Pet {
get stats() {
return {
health: this.level * 1,
sea_creature_chance: this.level * 0.05,
fishing_speed: this.level * 0.25,
};
}

Expand All @@ -3245,29 +3249,33 @@ class Raindeer extends Pet {
}

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

return {
name: "§6Infused",
desc: [
`§7Gives +§b${round(this.level * mult, 1)}${
SYMBOLS.fishing_speed
} Fishing Speed §7while on §cJerry's Workshop.`,
`§7Gives +§b${round(this.level * mult, 1)}${SYMBOLS.fishing_speed} Fishing Speed §7and §3+10 ${
SYMBOLS.sea_creature_chance
} Sea Creature Chance §7while on §cJerry's Workshop.`,
],
};
}

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

return {
name: "§6Snow Power",
desc: [`§7Grants §a+5% §7bonus gift chance during the §cGift Attack §7event.`],
desc: [`§7Grants §a+${round(this.level * mult, 1)}% §7bonus gift chance during the §cGift Attack §7event.`],
};
}

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

return {
name: "§6Icy Wind",
desc: [`§7Grants a §a+20% §7chance of getting double §bIce Essence§7.`],
desc: [`§7Grants a §a+${round(this.level * mult, 1)}% §7chance of getting double §bIce Essence§7.`],
};
}
}
Expand Down Expand Up @@ -3358,7 +3366,7 @@ export const PET_STATS = {
PIGMAN: Pigman,
RABBIT: Rabbit,
RAT: Rat,
REINDEER: Raindeer,
REINDEER: Reindeer,
ROCK: Rock,
SCATHA: Scatha,
SHEEP: Sheep,
Expand Down