mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-21 16:13:57 +00:00
Hardcap letters at 8e9
This commit is contained in:
parent
eede682a69
commit
c20f6282a8
2 changed files with 4 additions and 27 deletions
|
@ -79,7 +79,9 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
|||
processingProgress.value,
|
||||
computedProcessingCooldown.value
|
||||
).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;
|
||||
}
|
||||
}));
|
||||
|
@ -216,7 +218,6 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
|||
multiplier: () => Decimal.div(paperBuyable.amount.value, 2).add(1),
|
||||
description: "Printed Labels"
|
||||
}))
|
||||
|
||||
]);
|
||||
const computedLettersGain = computed(() => lettersGain.apply(1));
|
||||
const processingCooldown = createSequentialModifier(() => [
|
||||
|
|
|
@ -615,29 +615,5 @@ export function fixOldSave(
|
|||
oldVersion: string | undefined,
|
||||
player: Partial<PlayerData>
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
||||
): 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");
|
||||
}*/
|
||||
}
|
||||
): void {}
|
||||
/* eslint-enable @typescript-eslint/no-unused-vars */
|
||||
|
|
Loading…
Reference in a new issue