add coal drill elf milestones, also changed mining drill to coal drill

This commit is contained in:
unsoftcapped3 2022-12-14 00:39:48 +00:00
parent f87df61ebe
commit 219a0d7cb0
3 changed files with 53 additions and 9 deletions

View file

@ -278,7 +278,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
}, },
display: jsx(() => ( display: jsx(() => (
<> <>
<h3>Mining Drill</h3> <h3>Coal Drill</h3>
<br /> <br />
Dig through the ground to find 50,000,000 coal Dig through the ground to find 50,000,000 coal
<br /> <br />
@ -575,7 +575,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
addend() { addend() {
return drillCoal.value; return drillCoal.value;
}, },
description: "Mining Drills", description: "Coal Drills",
enabled() { enabled() {
return Decimal.gt(activeDrills.value, 0); return Decimal.gt(activeDrills.value, 0);
} }

View file

@ -759,7 +759,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
visibility: () => showIf(plastic.elfUpgrades.clothElf.bought.value) visibility: () => showIf(plastic.elfUpgrades.clothElf.bought.value)
}); });
const plasticElves = [paperElf, boxElf, clothElf]; const plasticElves = [paperElf, boxElf, clothElf];
const miningDrillElf = createElf({ const coalDrillElf = createElf({
name: "Peppermint", name: "Peppermint",
description: description:
"Peppermint will automatically purchase all mining drills you can afford, without actually spending any resources.", "Peppermint will automatically purchase all mining drills you can afford, without actually spending any resources.",
@ -819,7 +819,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
} }
} }
}); });
const managementElves = [miningDrillElf, heavyDrillElf, oilElf]; const managementElves = [coalDrillElf, heavyDrillElf, oilElf];
const metalElf = createElf({ const metalElf = createElf({
name: "Twinkle", name: "Twinkle",
description: description:

View file

@ -822,7 +822,47 @@ const layer = createLayer(id, () => {
shouldEarn: () => clothElfTraining.level.value >= 5 shouldEarn: () => clothElfTraining.level.value >= 5
})) }))
] as Array<GenericMilestone>; ] as Array<GenericMilestone>;
const coalDrillElfMilestones = [
createMilestone(() => ({
display: {
requirement: "Peppermint Level 1",
effectDisplay: "The mining drill exponent is increased from 2 to 2.5"
},
shouldEarn: () => coalDrillElfTraining.level.value >= 1
})),
createMilestone(() => ({
display: {
requirement: "Peppermint Level 2",
effectDisplay: "Coal boosts its own gain"
},
visibility: () => showIf(coalDrillElfMilestones[0].earned.value),
shouldEarn: () => coalDrillElfTraining.level.value >= 2
})),
createMilestone(() => ({
display: {
requirement: "Peppermint Level 3",
effectDisplay: "The coal drill cost is decreased"
},
visibility: () => showIf(coalDrillElfMilestones[1].earned.value),
shouldEarn: () => coalDrillElfTraining.level.value >= 3
})),
createMilestone(() => ({
display: {
requirement: "Peppermint Level 4",
effectDisplay: "Unlock another row of coal upgrades"
},
visibility: () => showIf(coalDrillElfMilestones[2].earned.value && main.day.value >= 13),
shouldEarn: () => coalDrillElfTraining.level.value >= 4
})),
createMilestone(() => ({
display: {
requirement: "Peppermint Level 5",
effectDisplay: "Well depth boosts coal gain more"
},
visibility: () => showIf(coalDrillElfMilestones[3].earned.value && main.day.value >= 13),
shouldEarn: () => coalDrillElfTraining.level.value >= 5
}))
] as Array<GenericMilestone>;
// ------------------------------------------------------------------------------- Milestone display // ------------------------------------------------------------------------------- Milestone display
const currentShown = persistent<string>("Holly"); const currentShown = persistent<string>("Holly");
@ -875,7 +915,8 @@ const layer = createLayer(id, () => {
const boxElfTraining = createElfTraining(elves.elves.boxElf, boxElfMilestones); const boxElfTraining = createElfTraining(elves.elves.boxElf, boxElfMilestones);
const clothElfTraining = createElfTraining(elves.elves.clothElf, clothElfMilestones); const clothElfTraining = createElfTraining(elves.elves.clothElf, clothElfMilestones);
const plasticElfTraining = [paperElfTraining, boxElfTraining, clothElfTraining]; const plasticElfTraining = [paperElfTraining, boxElfTraining, clothElfTraining];
const coalDrillElfTraining = createElfTraining(elves.elves.coalDrillElf, coalDrillElfMilestones);
const row5Elves = [coalDrillElfTraining]
const elfTraining = { const elfTraining = {
cutterElfTraining, cutterElfTraining,
planterElfTraining, planterElfTraining,
@ -888,7 +929,8 @@ const layer = createLayer(id, () => {
kilnElfTraining, kilnElfTraining,
paperElfTraining, paperElfTraining,
boxElfTraining, boxElfTraining,
clothElfTraining clothElfTraining,
coalDrillElfTraining
}; };
const day12Elves = [ const day12Elves = [
cutterElfTraining, cutterElfTraining,
@ -916,7 +958,8 @@ const layer = createLayer(id, () => {
kilnElfTraining, kilnElfTraining,
paperElfTraining, paperElfTraining,
boxElfTraining, boxElfTraining,
clothElfTraining clothElfTraining,
coalDrillElfTraining
]; ];
// ------------------------------------------------------------------------------- Update // ------------------------------------------------------------------------------- Update
@ -1380,7 +1423,8 @@ const layer = createLayer(id, () => {
treeElfTraining, treeElfTraining,
coalElfTraining, coalElfTraining,
fireElfTraining, fireElfTraining,
plasticElfTraining plasticElfTraining,
row5Elves
)} )}
<Spacer /> <Spacer />
{currentElfDisplay()} {currentElfDisplay()}