mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-21 16:13:57 +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,
|
||||
description: "Energy Consumption",
|
||||
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 factorySize = createSequentialModifier(() => [
|
||||
|
@ -395,12 +401,12 @@ const factory = createLayer(id, () => {
|
|||
tick: 1,
|
||||
inputs: {
|
||||
wood: {
|
||||
amount: 1
|
||||
amount: computed(() => (upgrades[0][0].bought.value ? 2 : 1))
|
||||
}
|
||||
},
|
||||
outputs: {
|
||||
plank: {
|
||||
amount: 1
|
||||
amount: computed(() => (upgrades[0][0].bought.value ? 2 : 1))
|
||||
}
|
||||
}
|
||||
} as FactoryComponentDeclaration,
|
||||
|
@ -1038,7 +1044,7 @@ const factory = createLayer(id, () => {
|
|||
cost: () =>Decimal.pow(10, upgradeAmount.value).mul(1e80),
|
||||
display: {
|
||||
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)
|
||||
})),
|
||||
|
@ -1047,7 +1053,7 @@ const factory = createLayer(id, () => {
|
|||
cost: () =>Decimal.pow(10, upgradeAmount.value).mul(1e94),
|
||||
display: {
|
||||
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)
|
||||
})),
|
||||
|
|
|
@ -25,6 +25,7 @@ import {
|
|||
createSequentialModifier,
|
||||
createAdditiveModifier,
|
||||
createMultiplicativeModifier,
|
||||
createExponentialModifier,
|
||||
Modifier
|
||||
} from "game/modifiers";
|
||||
import { main } from "data/projEntry";
|
||||
|
@ -41,6 +42,7 @@ import workshop from "./workshop";
|
|||
import { WithRequired } from "util/common";
|
||||
import { ElfBuyable } from "./elves";
|
||||
import toys from "./toys";
|
||||
import factory from "./factory";
|
||||
|
||||
const id = "oil";
|
||||
const day = 9;
|
||||
|
@ -889,6 +891,11 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
|||
multiplier: dyes.boosts.red2,
|
||||
description: "Red Dye",
|
||||
enabled: dyes.masteryEffectActive
|
||||
})),
|
||||
createExponentialModifier(() => ({
|
||||
exponent: 1.2,
|
||||
description: "Diamond-tipped drills",
|
||||
enabled: factory.upgrades[0][3].bought.value
|
||||
}))
|
||||
]);
|
||||
const computedDrillPower = computed(() => drillPower.apply(0));
|
||||
|
|
|
@ -39,6 +39,7 @@ import paper from "./paper";
|
|||
import workshop from "./workshop";
|
||||
import wrappingPaper from "./wrapping-paper";
|
||||
import toys from "./toys";
|
||||
import factory from "./factory";
|
||||
const id = "trees";
|
||||
const day = 1;
|
||||
|
||||
|
@ -551,6 +552,11 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
|||
description: "3000 Toys",
|
||||
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(() => ({
|
||||
exponent: 1.2,
|
||||
description: "100% Foundation Completed",
|
||||
|
|
Loading…
Reference in a new issue