From 804dac69f575205666695ca95f8778d4b122f3e6 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Mon, 26 Dec 2022 16:51:32 -0600 Subject: [PATCH] Floor reindeer feed amount --- src/data/layers/reindeer.tsx | 2 +- src/features/clickables/Clickable.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data/layers/reindeer.tsx b/src/data/layers/reindeer.tsx index 9956f43..1914215 100644 --- a/src/data/layers/reindeer.tsx +++ b/src/data/layers/reindeer.tsx @@ -237,7 +237,7 @@ const layer = createLayer(id, function (this: BaseLayer) { if (!unref(clickable.canClick)) { return; } - let amount = Decimal.div(progress.value, computedCooldown.value); + let amount = Decimal.div(progress.value, computedCooldown.value).floor(); if (upgrade1.bought.value) { amount = Decimal.times(amount, 2); } diff --git a/src/features/clickables/Clickable.vue b/src/features/clickables/Clickable.vue index c51c510..b5fbbcf 100644 --- a/src/features/clickables/Clickable.vue +++ b/src/features/clickables/Clickable.vue @@ -93,7 +93,7 @@ export default defineComponent({ comp.value = coerceComponent(currDisplay); return; } - const Title = coerceComponent(currDisplay.title || "", "h3"); + const Title = coerceComponent(currDisplay.title ?? "", "h3"); const Description = coerceComponent(currDisplay.description, "div"); comp.value = coerceComponent( jsx(() => (