Skip to content

Commit

Permalink
Fixed buying
Browse files Browse the repository at this point in the history
  • Loading branch information
Haxxer committed Jul 24, 2023
1 parent 1d209cf commit ddda86a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/API/private-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import CustomDialog from "../applications/components/CustomDialog.svelte";
import GiveItemsShell from "../applications/dialogs/give-items-dialog/give-items-shell.svelte";
import BankVaultApp from "../applications/vault-app/vault-app.js";
import { hotkeyActionState } from "../hotkeys.js";
import * as CompendiumUtilities from "../helpers/compendium-utilities.js";

const preloadedFiles = new Set();

Expand Down
3 changes: 3 additions & 0 deletions src/helpers/pile-utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -974,6 +974,9 @@ export function getPriceData({
const cost = Math.round(price.quantity * itemModifier * quantity);
const baseCost = Math.round(price.quantity * itemModifier);
price.name = game.i18n.localize(price.name);
if (!price.data?.item) {
price.data.item = CompendiumUtilities.getItemFromCache(price.data.uuid);
}
return {
...price,
cost,
Expand Down

0 comments on commit ddda86a

Please sign in to comment.