From 317d8ca2c1197300e65c7322490e0133b94d7ec2 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Sat, 24 Dec 2022 10:32:05 -0600 Subject: [PATCH] Re-introduced .008 modifier --- src/data/layers/packing.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/data/layers/packing.tsx b/src/data/layers/packing.tsx index 4f8478b..edf9a7c 100644 --- a/src/data/layers/packing.tsx +++ b/src/data/layers/packing.tsx @@ -103,9 +103,11 @@ const layer = createLayer(id, function (this: BaseLayer) { }); 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 elfPackingSpeed = createSequentialModifier(() => [ @@ -497,7 +499,9 @@ const layer = createLayer(id, function (this: BaseLayer) { {render(trackerDisplay)} -

You can pack {format(remainingSize.value)} more presents

+

+ The bag has {format(remainingSize.value)} m3 empty room +

{render(resetPacking)} {render(packPresent)}