More day fixing and a bit of balancing

This commit is contained in:
Seth Posner 2022-12-24 01:11:57 -08:00
parent 0c5f45548d
commit af37ca1ff9
3 changed files with 7 additions and 3 deletions

View file

@ -98,7 +98,7 @@ const isPaused = computed({
});
const canAutoSave = computed(
() => (layers as any).main?.days[(layers as any).main?.day.value - 1].opened.value
() => (layers as any).main?.day.value >= 25 || (layers as any).main?.days[(layers as any).main?.day.value - 1].opened.value
);
const autosaveTitle = jsx(() => (

View file

@ -93,6 +93,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
});
const packedPresentsSize = computed(() => Decimal.times(packedPresents.value, 0.008).dividedBy(packingDensity.value));
const currentMaxPresents = computed(() => Decimal.times(sledSpace, packingDensity.value).div(0.008));
const remainingSize = computed(() => Decimal.sub(sledSpace, packedPresentsSize.value));
const elfPackingSpeed = createSequentialModifier(() => [
@ -462,7 +463,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
packedPresents.value = Decimal.add(
Decimal.times(helpers.elf.amount.value, computedElfPackingSpeed.value),
Decimal.times(helpers.loader.amount.value, computedLoaderPackingSpeed.value)
).times(diff).plus(packedPresents.value).min(8e9);
).times(diff).plus(packedPresents.value).min(currentMaxPresents.value);
});
return {

View file

@ -133,7 +133,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
cost = cost.mul(1e31);
}
if (["Jingle"].includes(options.elfName)) {
cost = cost.mul(1e120);
cost = cost.mul(1e126);
}
if (management.elfTraining.paperElfTraining.milestones[0].earned.value) {
cost = Decimal.div(cost, sumBooks.value.max(1));
@ -160,6 +160,9 @@ const layer = createLayer(id, function (this: BaseLayer) {
if (["Peppermint", "Twinkle", "Cocoa", "Frosty"].includes(options.elfName)) {
v = v.div(1e31);
}
if (["Jingle"].includes(options.elfName)) {
v = v.div(1e126);
}
v = v.log(scaling);
v = v.div(Decimal.pow(0.95, paperBook.totalAmount.value));