mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2025-05-15 14:21:06 +00:00
Hardcap letters at 8e9
This commit is contained in:
parent
eede682a69
commit
c20f6282a8
2 changed files with 4 additions and 27 deletions
src/data
|
@ -79,7 +79,9 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
||||||
processingProgress.value,
|
processingProgress.value,
|
||||||
computedProcessingCooldown.value
|
computedProcessingCooldown.value
|
||||||
).floor();
|
).floor();
|
||||||
letters.value = Decimal.times(amount, computedLettersGain.value).add(letters.value);
|
letters.value = Decimal.times(amount, computedLettersGain.value)
|
||||||
|
.add(letters.value)
|
||||||
|
.min(8e9);
|
||||||
processingProgress.value = 0;
|
processingProgress.value = 0;
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
@ -216,7 +218,6 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
||||||
multiplier: () => Decimal.div(paperBuyable.amount.value, 2).add(1),
|
multiplier: () => Decimal.div(paperBuyable.amount.value, 2).add(1),
|
||||||
description: "Printed Labels"
|
description: "Printed Labels"
|
||||||
}))
|
}))
|
||||||
|
|
||||||
]);
|
]);
|
||||||
const computedLettersGain = computed(() => lettersGain.apply(1));
|
const computedLettersGain = computed(() => lettersGain.apply(1));
|
||||||
const processingCooldown = createSequentialModifier(() => [
|
const processingCooldown = createSequentialModifier(() => [
|
||||||
|
|
|
@ -615,29 +615,5 @@ export function fixOldSave(
|
||||||
oldVersion: string | undefined,
|
oldVersion: string | undefined,
|
||||||
player: Partial<PlayerData>
|
player: Partial<PlayerData>
|
||||||
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
||||||
): void {
|
): void {}
|
||||||
if (!["0.0", "0.1", "0.2", "0.3", "0.4"].includes(oldVersion ?? "")) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if ((player.layers?.workshop as LayerData<typeof workshop> | undefined)?.foundationProgress) {
|
|
||||||
(player.layers?.workshop as LayerData<typeof workshop> | undefined)!.foundationProgress =
|
|
||||||
Decimal.min(
|
|
||||||
(player.layers!.workshop as LayerData<typeof workshop> | undefined)!
|
|
||||||
.foundationProgress!,
|
|
||||||
1000
|
|
||||||
);
|
|
||||||
}
|
|
||||||
/*player.offlineProd = false;
|
|
||||||
delete player.layers?.management;
|
|
||||||
if ((player.layers?.main as LayerData<typeof main> | undefined)?.days?.[11]) {
|
|
||||||
(player.layers!.main as LayerData<typeof main>).days![11].opened = false;
|
|
||||||
}
|
|
||||||
if ((player.layers?.main as LayerData<typeof main> | undefined)?.day === 12) {
|
|
||||||
(player.layers!.main as LayerData<typeof main>).day === 11;
|
|
||||||
player.devSpeed = 0;
|
|
||||||
}
|
|
||||||
if (player.tabs) {
|
|
||||||
player.tabs = player.tabs.filter(l => l !== "management");
|
|
||||||
}*/
|
|
||||||
}
|
|
||||||
/* eslint-enable @typescript-eslint/no-unused-vars */
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue