mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-24 09:21:48 +00:00
first row upg effects
This commit is contained in:
parent
97ece7bb07
commit
e462a2ae61
3 changed files with 23 additions and 4 deletions
|
@ -189,7 +189,13 @@ const factory = createLayer(id, () => {
|
||||||
multiplier: energyEfficiency,
|
multiplier: energyEfficiency,
|
||||||
description: "Energy Consumption",
|
description: "Energy Consumption",
|
||||||
enabled: () => Decimal.gt(energyConsumption.value, computedEnergy.value)
|
enabled: () => Decimal.gt(energyConsumption.value, computedEnergy.value)
|
||||||
|
})),
|
||||||
|
createMultiplicativeModifier(() => ({
|
||||||
|
multiplier: Decimal.add(paper.paper.value, 1).log10().div(100).add(1),
|
||||||
|
description: "News Ticker",
|
||||||
|
enabled: () => upgrades[0][1].bought.value
|
||||||
}))
|
}))
|
||||||
|
|
||||||
]);
|
]);
|
||||||
const computedTickRate = computed(() => tickRate.apply(1));
|
const computedTickRate = computed(() => tickRate.apply(1));
|
||||||
const factorySize = createSequentialModifier(() => [
|
const factorySize = createSequentialModifier(() => [
|
||||||
|
@ -395,12 +401,12 @@ const factory = createLayer(id, () => {
|
||||||
tick: 1,
|
tick: 1,
|
||||||
inputs: {
|
inputs: {
|
||||||
wood: {
|
wood: {
|
||||||
amount: 1
|
amount: computed(() => (upgrades[0][0].bought.value ? 2 : 1))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
outputs: {
|
outputs: {
|
||||||
plank: {
|
plank: {
|
||||||
amount: 1
|
amount: computed(() => (upgrades[0][0].bought.value ? 2 : 1))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} as FactoryComponentDeclaration,
|
} as FactoryComponentDeclaration,
|
||||||
|
@ -1038,7 +1044,7 @@ const factory = createLayer(id, () => {
|
||||||
cost: () =>Decimal.pow(10, upgradeAmount.value).mul(1e80),
|
cost: () =>Decimal.pow(10, upgradeAmount.value).mul(1e80),
|
||||||
display: {
|
display: {
|
||||||
title: "Sawmill Efficiency",
|
title: "Sawmill Efficiency",
|
||||||
description: "Metal increases sawmill consumption and production by *log(metal)/10"
|
description: "Double sawmill consumption and production and metal supplier efficiency"
|
||||||
},
|
},
|
||||||
visible: () => showIf(main.days[advancedDay - 1].opened.value)
|
visible: () => showIf(main.days[advancedDay - 1].opened.value)
|
||||||
})),
|
})),
|
||||||
|
@ -1047,7 +1053,7 @@ const factory = createLayer(id, () => {
|
||||||
cost: () =>Decimal.pow(10, upgradeAmount.value).mul(1e94),
|
cost: () =>Decimal.pow(10, upgradeAmount.value).mul(1e94),
|
||||||
display: {
|
display: {
|
||||||
title: "News Ticker",
|
title: "News Ticker",
|
||||||
description: "Paper boosts tick speed" // formula: *1+log(x)/100
|
description: "Paper boosts tick speed"
|
||||||
},
|
},
|
||||||
visible: () => showIf(main.days[advancedDay - 1].opened.value)
|
visible: () => showIf(main.days[advancedDay - 1].opened.value)
|
||||||
})),
|
})),
|
||||||
|
|
|
@ -25,6 +25,7 @@ import {
|
||||||
createSequentialModifier,
|
createSequentialModifier,
|
||||||
createAdditiveModifier,
|
createAdditiveModifier,
|
||||||
createMultiplicativeModifier,
|
createMultiplicativeModifier,
|
||||||
|
createExponentialModifier,
|
||||||
Modifier
|
Modifier
|
||||||
} from "game/modifiers";
|
} from "game/modifiers";
|
||||||
import { main } from "data/projEntry";
|
import { main } from "data/projEntry";
|
||||||
|
@ -41,6 +42,7 @@ import workshop from "./workshop";
|
||||||
import { WithRequired } from "util/common";
|
import { WithRequired } from "util/common";
|
||||||
import { ElfBuyable } from "./elves";
|
import { ElfBuyable } from "./elves";
|
||||||
import toys from "./toys";
|
import toys from "./toys";
|
||||||
|
import factory from "./factory";
|
||||||
|
|
||||||
const id = "oil";
|
const id = "oil";
|
||||||
const day = 9;
|
const day = 9;
|
||||||
|
@ -889,6 +891,11 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
||||||
multiplier: dyes.boosts.red2,
|
multiplier: dyes.boosts.red2,
|
||||||
description: "Red Dye",
|
description: "Red Dye",
|
||||||
enabled: dyes.masteryEffectActive
|
enabled: dyes.masteryEffectActive
|
||||||
|
})),
|
||||||
|
createExponentialModifier(() => ({
|
||||||
|
exponent: 1.2,
|
||||||
|
description: "Diamond-tipped drills",
|
||||||
|
enabled: factory.upgrades[0][3].bought.value
|
||||||
}))
|
}))
|
||||||
]);
|
]);
|
||||||
const computedDrillPower = computed(() => drillPower.apply(0));
|
const computedDrillPower = computed(() => drillPower.apply(0));
|
||||||
|
|
|
@ -39,6 +39,7 @@ import paper from "./paper";
|
||||||
import workshop from "./workshop";
|
import workshop from "./workshop";
|
||||||
import wrappingPaper from "./wrapping-paper";
|
import wrappingPaper from "./wrapping-paper";
|
||||||
import toys from "./toys";
|
import toys from "./toys";
|
||||||
|
import factory from "./factory";
|
||||||
const id = "trees";
|
const id = "trees";
|
||||||
const day = 1;
|
const day = 1;
|
||||||
|
|
||||||
|
@ -551,6 +552,11 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
||||||
description: "3000 Toys",
|
description: "3000 Toys",
|
||||||
enabled: toys.milestones.milestone7.earned
|
enabled: toys.milestones.milestone7.earned
|
||||||
})),
|
})),
|
||||||
|
createMultiplicativeModifier(() => ({
|
||||||
|
multiplier: () => Decimal.add(toys.trucks.value, 1),
|
||||||
|
description: "Haul wood in trucks",
|
||||||
|
enabled: factory.upgrades[0][2].bought
|
||||||
|
})),
|
||||||
createExponentialModifier(() => ({
|
createExponentialModifier(() => ({
|
||||||
exponent: 1.2,
|
exponent: 1.2,
|
||||||
description: "100% Foundation Completed",
|
description: "100% Foundation Completed",
|
||||||
|
|
Loading…
Reference in a new issue