Re-introduced .008 modifier

This commit is contained in:
thepaperpilot 2022-12-24 10:32:05 -06:00
parent dd142e0f1f
commit 317d8ca2c1

View file

@ -103,9 +103,11 @@ const layer = createLayer(id, function (this: BaseLayer) {
}); });
const packedPresentsSize = computed(() => const packedPresentsSize = computed(() =>
Decimal.div(packedPresents.value, packingDensity.value) Decimal.times(packedPresents.value, 0.008).dividedBy(packingDensity.value)
);
const currentMaxPresents = computed(() =>
Decimal.times(sledSpace, packingDensity.value).div(0.008)
); );
const currentMaxPresents = computed(() => Decimal.times(sledSpace, packingDensity.value));
const remainingSize = computed(() => Decimal.sub(sledSpace, packedPresentsSize.value)); const remainingSize = computed(() => Decimal.sub(sledSpace, packedPresentsSize.value));
const elfPackingSpeed = createSequentialModifier(() => [ const elfPackingSpeed = createSequentialModifier(() => [
@ -497,7 +499,9 @@ const layer = createLayer(id, function (this: BaseLayer) {
{render(trackerDisplay)} {render(trackerDisplay)}
<SpacerVue /> <SpacerVue />
<MainDisplayVue resource={packedPresents} color={color} /> <MainDisplayVue resource={packedPresents} color={color} />
<p>You can pack {format(remainingSize.value)} more presents</p> <p>
The bag has {format(remainingSize.value)} m<sup>3</sup> empty room
</p>
<SpacerVue /> <SpacerVue />
{render(resetPacking)} {render(resetPacking)}
{render(packPresent)} {render(packPresent)}