mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-24 09:21:48 +00:00
Re-introduced .008 modifier
This commit is contained in:
parent
dd142e0f1f
commit
317d8ca2c1
1 changed files with 7 additions and 3 deletions
|
@ -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)}
|
||||||
|
|
Loading…
Reference in a new issue