mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-25 18:00:25 +00:00
Fix synergy I and II not taking effect until refresh
This commit is contained in:
parent
fb3788ea4b
commit
7fbeaa8212
1 changed files with 6 additions and 4 deletions
|
@ -92,23 +92,25 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
|||
description: `${options.name} Chambers`
|
||||
}))
|
||||
];
|
||||
if (options.color === "yellow" && oil.row3Upgrades[0].bought.value) {
|
||||
if (options.color === "yellow") {
|
||||
modifiers.push(
|
||||
createMultiplicativeModifier(() => ({
|
||||
multiplier() {
|
||||
return Decimal.add(dyes.red.amount.value, 1).log10().add(1).pow(0.75);
|
||||
},
|
||||
description: "Dye Synergy I"
|
||||
description: "Dye Synergy I",
|
||||
enabled: oil.row3Upgrades[0].bought
|
||||
}))
|
||||
);
|
||||
}
|
||||
if (options.color === "red" && oil.row3Upgrades[3].bought.value) {
|
||||
if (options.color === "red") {
|
||||
modifiers.push(
|
||||
createMultiplicativeModifier(() => ({
|
||||
multiplier() {
|
||||
return Decimal.add(dyes.blue.amount.value, 1).log10();
|
||||
},
|
||||
description: "Dye Synergy II"
|
||||
description: "Dye Synergy II",
|
||||
enabled: oil.row3Upgrades[3].bought
|
||||
}))
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue