Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Commit 2b6371e

Browse files
authored
Merge pull request #2314 from gylfirst/development
Fix: new forgeable pets able to display forge timing
2 parents 49176db + 621554d commit 2b6371e

3 files changed

Lines changed: 38 additions & 33 deletions

File tree

src/constants/forge.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,14 @@ export const FORGE_TIMES = {
104104
PERFECT_PERIDOT_GEM: 20 * 60,
105105
// Pets
106106
BEJEWELED_COLLAR: 2 * 60,
107-
LVL_1_LEGENDARY_MOLE: 3 * 24 * 60,
108-
LVL_1_LEGENDARY_AMMONITE: 3 * 24 * 60,
109-
LVL_1_LEGENDARY_PENGUIN: 7 * 24 * 60,
110-
LVL_1_LEGENDARY_TYRANNOSAURUS: 7 * 24 * 60,
111-
LVL_1_LEGENDARY_SPINOSAURUS: 7 * 24 * 60,
112-
LVL_1_LEGENDARY_GOBLIN: 7 * 24 * 60,
113-
LVL_1_LEGENDARY_ANKYLOSAURUS: 7 * 24 * 60,
114-
LVL_1_LEGENDARY_MAMMOTH: 7 * 24 * 60,
107+
MOLE: 3 * 24 * 60,
108+
AMMONITE: 3 * 24 * 60,
109+
PENGUIN: 7 * 24 * 60,
110+
TYRANNOSAURUS: 7 * 24 * 60,
111+
SPINOSAURUS: 7 * 24 * 60,
112+
GOBLIN: 7 * 24 * 60,
113+
ANKYLOSAURUS: 7 * 24 * 60,
114+
MAMMOTH: 7 * 24 * 60,
115115
// Other
116116
BEACON_2: 20 * 60,
117117
BEACON_3: 1 * 24 * 60 + 6 * 60,

src/constants/pet-stats.js

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,9 @@ class Rabbit extends Pet {
457457
if (this.rarity >= LEGENDARY) {
458458
list.push(this.third);
459459
}
460+
if (this.rarity >= MYTHIC) {
461+
list.push(this.fourth);
462+
}
460463
return list;
461464
}
462465

@@ -483,6 +486,15 @@ class Rabbit extends Pet {
483486
desc: [`§7Farming minions work §a${round(this.level * mult, 1)}% §7faster while on your island.`],
484487
};
485488
}
489+
490+
get fourth() {
491+
return {
492+
name: "§6Chocolate Injections",
493+
desc: [
494+
`§7Increases §6Chocolate Factory§7 production by §a+${round(0.01 + (this.level - 1) * 0.0004, 3)}x§7. Duplicate §aChocolate Rabbits§7 that you find grant §6${round(1.3 + (this.level - 1) * 0.32, 1)}% Chocolate§7.`,
495+
],
496+
};
497+
}
486498
}
487499

488500
class Armadillo extends Pet {
@@ -493,56 +505,44 @@ class Armadillo extends Pet {
493505
}
494506

495507
get abilities() {
496-
const list = [this.first, this.second, this.third];
508+
const list = [this.first, this.second];
497509
if (this.rarity >= RARE) {
498-
list.push(this.fourth);
510+
list.push(this.third);
499511
}
500512
if (this.rarity >= LEGENDARY) {
501-
list.push(this.fifth);
513+
list.push(this.fourth);
502514
}
503515
return list;
504516
}
505517

506518
get first() {
507519
return {
508520
name: "§6Rideable",
509-
desc: [`§7Right-click on your summoned pet to ride it!`],
521+
desc: [`§7Right-click on your summoned pet to ride it! Moves faster based on your §f${SYMBOLS.speed} Speed§7.`],
510522
};
511523
}
512524

513525
get second() {
514526
return {
515527
name: "§6Tunneler",
516-
desc: [
517-
`§7The Armadillo breaks all stone or ore in its path while you are riding it in the §3Crystal Hollows §7using your held item.`,
518-
],
528+
desc: [`§7While riding in the §5Crystal Hollows§7, this Pet breaks all blocks in its path using your held item.`],
519529
};
520530
}
521531

522532
get third() {
523-
return {
524-
name: "§6Earth Surfer",
525-
desc: [`§7The Armadillo moves faster based on your §f${SYMBOLS.speed} Speed§7.`],
526-
};
527-
}
528-
529-
get fourth() {
530-
const mult = getValue(this.rarity, { rare: 0.2, epic: 0.3 });
533+
const mult = getValue(this.rarity, { rare: 0.2, epic: 0.3, legendary: 0.4 });
531534
return {
532535
name: "§6Rolling Miner",
533-
desc: [`§7Every §a${round(60 - this.level * mult, 1)} §7seconds, the next gemstone you mine gives §a2x §7drops.`],
536+
desc: [
537+
`§7Every §a${round(60 - this.level * mult, 1)} §7seconds, the next §5Gemstone§7 you mine gives §a2x §7drops.`,
538+
],
534539
};
535540
}
536541

537-
get fifth() {
538-
const mult = getValue(this.rarity, { legendary: 0.5 });
542+
get fourth() {
539543
return {
540-
name: "§6Mobile Tank",
541-
desc: [
542-
`§7For every §a${round(100 - this.level * mult, 1)} ${SYMBOLS.defense} Defense§7, gain §f+1 ${
543-
SYMBOLS.speed
544-
} Speed §7and §6+1 ${SYMBOLS.mining_speed} Mining Speed§7.`,
545-
],
544+
name: "§6Long Claws",
545+
desc: [`§7Grants §e+${round(this.level * 3)} ${SYMBOLS.mining_spread} Mining Spread§7 while mining Hard Stone.`],
546546
};
547547
}
548548
}

src/stats/mining.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,12 @@ async function getForge(userProfile) {
104104
forgeTime *= constants.QUICK_FORGE_MULTIPLIER[quickForge];
105105
}
106106

107-
forgeItem.name = item.id == "PET" ? "[Lvl 1] Ammonite" : dbObject ? dbObject.name : item.id;
107+
if (item.id == "BEJEWELED_COLLAR") {
108+
forgeItem.name = helper.titleCase(item.id.replace("_", " "));
109+
} else {
110+
forgeItem.name =
111+
item.type == "PETS" ? "[Lvl 1] " + helper.titleCase(item.id) : dbObject ? dbObject.name : item.id;
112+
}
108113

109114
const timeFinished = item.startTime + forgeTime;
110115
forgeItem.timeFinished = timeFinished;

0 commit comments

Comments
 (0)