metal drill elf + rename mining drill to metal drill

This commit is contained in:
unsoftcapped3 2022-12-14 00:53:36 +00:00
parent bdd0307e7d
commit 305f18d2f3
3 changed files with 54 additions and 10 deletions

View file

@ -863,6 +863,47 @@ const layer = createLayer(id, () => {
shouldEarn: () => coalDrillElfTraining.level.value >= 5 shouldEarn: () => coalDrillElfTraining.level.value >= 5
})) }))
] as Array<GenericMilestone>; ] as Array<GenericMilestone>;
const metalDrillElfMilestones = [
createMilestone(() => ({
display: {
requirement: "Twinkle Level 1",
effectDisplay: "Schools multiply metal gain per ore"
},
shouldEarn: () => metalDrillElfTraining.level.value >= 1
})),
createMilestone(() => ({
display: {
requirement: "Twinkle Level 2",
effectDisplay: "Each Twinkle level multiplies auto smelting speed by 1.25"
},
visibility: () => showIf(metalDrillElfMilestones[0].earned.value),
shouldEarn: () => metalDrillElfTraining.level.value >= 2
})),
createMilestone(() => ({
display: {
requirement: "Twinkle Level 3",
effectDisplay: "Auto smelting purity is tripled."
},
visibility: () => showIf(metalDrillElfMilestones[1].earned.value),
shouldEarn: () => metalDrillElfTraining.level.value >= 3
})),
createMilestone(() => ({
display: {
requirement: "Twinkle Level 4",
effectDisplay: "All metal buyables are cheaper"
},
visibility: () => showIf(metalDrillElfMilestones[2].earned.value && main.day.value >= 13),
shouldEarn: () => metalDrillElfTraining.level.value >= 4
})),
createMilestone(() => ({
display: {
requirement: "Twinkle Level 5",
effectDisplay: "Unlock another row of metal upgrades"
},
visibility: () => showIf(metalDrillElfMilestones[3].earned.value && main.day.value >= 13),
shouldEarn: () => metalDrillElfTraining.level.value >= 5
}))
] as Array<GenericMilestone>;
// ------------------------------------------------------------------------------- Milestone display // ------------------------------------------------------------------------------- Milestone display
const currentShown = persistent<string>("Holly"); const currentShown = persistent<string>("Holly");
@ -916,7 +957,8 @@ const layer = createLayer(id, () => {
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 coalDrillElfTraining = createElfTraining(elves.elves.coalDrillElf, coalDrillElfMilestones);
const row5Elves = [coalDrillElfTraining] const metalDrillElfTraining = createElfTraining(elves.elves.metalDrillElf, metalDrillElfMilestones);
const row5Elves = [coalDrillElfTraining, metalDrillElfTraining]
const elfTraining = { const elfTraining = {
cutterElfTraining, cutterElfTraining,
planterElfTraining, planterElfTraining,
@ -930,7 +972,8 @@ const layer = createLayer(id, () => {
paperElfTraining, paperElfTraining,
boxElfTraining, boxElfTraining,
clothElfTraining, clothElfTraining,
coalDrillElfTraining coalDrillElfTraining,
metalDrillElfTraining
}; };
const day12Elves = [ const day12Elves = [
cutterElfTraining, cutterElfTraining,
@ -959,7 +1002,8 @@ const layer = createLayer(id, () => {
paperElfTraining, paperElfTraining,
boxElfTraining, boxElfTraining,
clothElfTraining, clothElfTraining,
coalDrillElfTraining coalDrillElfTraining,
metalDrillElfTraining
]; ];
// ------------------------------------------------------------------------------- Update // ------------------------------------------------------------------------------- Update

View file

@ -214,7 +214,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
const oreAmount = createSequentialModifier(() => [ const oreAmount = createSequentialModifier(() => [
createAdditiveModifier(() => ({ createAdditiveModifier(() => ({
addend: () => oreDrill.amount.value, addend: () => oreDrill.amount.value,
description: "Mining Drills", description: "Metal Drills",
enabled: () => Decimal.gte(oreDrill.amount.value, 1) enabled: () => Decimal.gte(oreDrill.amount.value, 1)
})), })),
createMultiplicativeModifier(() => ({ createMultiplicativeModifier(() => ({
@ -247,7 +247,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
})), })),
createMultiplicativeModifier(() => ({ createMultiplicativeModifier(() => ({
multiplier: 2.5, multiplier: 2.5,
description: "Mining Drills", description: "Metal Drills",
enabled: () => Decimal.gte(oreDrill.amount.value, 1) enabled: () => Decimal.gte(oreDrill.amount.value, 1)
})), })),
createMultiplicativeModifier(() => ({ createMultiplicativeModifier(() => ({
@ -257,7 +257,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
})), })),
createMultiplicativeModifier(() => ({ createMultiplicativeModifier(() => ({
multiplier: 2, multiplier: 2,
description: "Oil the Mining Drills", description: "Oil the Metal Drills",
enabled: oil.row2Upgrades[1].bought enabled: oil.row2Upgrades[1].bought
})) }))
]); ]);
@ -331,7 +331,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
display: { display: {
title: "Coal Drilling", title: "Coal Drilling",
description: description:
"These mining drills are pretty powerful, mining more ore than you can actually smelt. Could be worth making some to mine coal instead" "These metal drills are pretty powerful, mining more ore than you can actually smelt. Could be worth making some to mine coal instead"
}, },
visibility: () => visibility: () =>
showIf( showIf(
@ -381,7 +381,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
return Decimal.pow(1.15, this.amount.value).times(10); return Decimal.pow(1.15, this.amount.value).times(10);
}, },
display: { display: {
title: "Mining Drill", title: "Metal Drill",
description: "An automated machine to help you mine more ore, faster", description: "An automated machine to help you mine more ore, faster",
effectDisplay: jsx(() => ( effectDisplay: jsx(() => (
<> <>

View file

@ -504,7 +504,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
cost: 150000, cost: 150000,
display: { display: {
title: "Metal Drill Synergy", title: "Metal Drill Synergy",
description: "Increase drill power by +4% per ore Mining Drill owned.", description: "Increase drill power by +4% per Metal Drill owned.",
effectDisplay: jsx(() => <>x{format(row1UpgradeEffects[1].value)}</>) effectDisplay: jsx(() => <>x{format(row1UpgradeEffects[1].value)}</>)
}, },
style: { color: colorText } style: { color: colorText }
@ -584,7 +584,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
resource: noPersist(oil), resource: noPersist(oil),
cost: 500, cost: 500,
display: { display: {
title: "Oil the Mining Drills", title: "Oil the Metal Drills",
description: description:
"Double ore mining speed and square the coal drill amount in its effect." "Double ore mining speed and square the coal drill amount in its effect."
}, },