Fix update issues
This commit is contained in:
parent
4f39dbc7f9
commit
35a64a1eb8
1 changed files with 5 additions and 4 deletions
|
@ -10,7 +10,7 @@ import Modal from "components/Modal.vue";
|
||||||
import { createLayerTreeNode, createResetButton } from "data/common";
|
import { createLayerTreeNode, createResetButton } from "data/common";
|
||||||
import { main } from "data/projEntry";
|
import { main } from "data/projEntry";
|
||||||
import themes from "data/themes";
|
import themes from "data/themes";
|
||||||
import { createBar, Direction } from "features/bars/bar";
|
import { createBar } from "features/bars/bar";
|
||||||
import { createBuyable } from "features/buyable";
|
import { createBuyable } from "features/buyable";
|
||||||
import { createChallenge } from "features/challenges/challenge";
|
import { createChallenge } from "features/challenges/challenge";
|
||||||
import { createClickable } from "features/clickables/clickable";
|
import { createClickable } from "features/clickables/clickable";
|
||||||
|
@ -30,7 +30,7 @@ import { createResource, displayResource, trackBest } from "features/resources/r
|
||||||
import Resource from "features/resources/Resource.vue";
|
import Resource from "features/resources/Resource.vue";
|
||||||
import { createTab } from "features/tabs/tab";
|
import { createTab } from "features/tabs/tab";
|
||||||
import { createTabFamily } from "features/tabs/tabFamily";
|
import { createTabFamily } from "features/tabs/tabFamily";
|
||||||
import { addTooltip, TooltipDirection } from "features/tooltips/tooltip";
|
import { addTooltip } from "features/tooltips/tooltip";
|
||||||
import {
|
import {
|
||||||
createResourceTooltip,
|
createResourceTooltip,
|
||||||
createTree,
|
createTree,
|
||||||
|
@ -50,6 +50,7 @@ import { persistent } from "game/persistence";
|
||||||
import settings from "game/settings";
|
import settings from "game/settings";
|
||||||
import { DecimalSource } from "lib/break_eternity";
|
import { DecimalSource } from "lib/break_eternity";
|
||||||
import Decimal, { format, formatWhole } from "util/bignum";
|
import Decimal, { format, formatWhole } from "util/bignum";
|
||||||
|
import { Direction } from "util/common";
|
||||||
import { render, renderCol, renderRow } from "util/vue";
|
import { render, renderCol, renderRow } from "util/vue";
|
||||||
import { computed, ComputedRef, ref } from "vue";
|
import { computed, ComputedRef, ref } from "vue";
|
||||||
import f from "./f";
|
import f from "./f";
|
||||||
|
@ -228,7 +229,7 @@ const layer = createLayer(id, () => {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onPurchase(cost) {
|
onPurchase(cost) {
|
||||||
spentOnBuyables.value = Decimal.add(spentOnBuyables.value, cost);
|
spentOnBuyables.value = Decimal.add(spentOnBuyables.value, cost ?? 0);
|
||||||
},
|
},
|
||||||
style: { height: "222px" },
|
style: { height: "222px" },
|
||||||
purchaseLimit: 4
|
purchaseLimit: 4
|
||||||
|
@ -436,7 +437,7 @@ const layer = createLayer(id, () => {
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
pinnable: true,
|
pinnable: true,
|
||||||
direction: TooltipDirection.DOWN,
|
direction: Direction.Down,
|
||||||
style: "width: 400px; text-align: left"
|
style: "width: 400px; text-align: left"
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue