mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-30 20:01:56 +00:00
Floor reindeer feed amount
This commit is contained in:
parent
b5bc37c36a
commit
a3674ffbc6
2 changed files with 2 additions and 2 deletions
|
@ -237,7 +237,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
||||||
if (!unref(clickable.canClick)) {
|
if (!unref(clickable.canClick)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let amount = Decimal.div(progress.value, computedCooldown.value);
|
let amount = Decimal.div(progress.value, computedCooldown.value).floor();
|
||||||
if (upgrade1.bought.value) {
|
if (upgrade1.bought.value) {
|
||||||
amount = Decimal.times(amount, 2);
|
amount = Decimal.times(amount, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -93,7 +93,7 @@ export default defineComponent({
|
||||||
comp.value = coerceComponent(currDisplay);
|
comp.value = coerceComponent(currDisplay);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const Title = coerceComponent(currDisplay.title || "", "h3");
|
const Title = coerceComponent(currDisplay.title ?? "", "h3");
|
||||||
const Description = coerceComponent(currDisplay.description, "div");
|
const Description = coerceComponent(currDisplay.description, "div");
|
||||||
comp.value = coerceComponent(
|
comp.value = coerceComponent(
|
||||||
jsx(() => (
|
jsx(() => (
|
||||||
|
|
Loading…
Reference in a new issue