diff --git a/lootsheetnpc5e.js b/lootsheetnpc5e.js index 9dc122df..9fd8e7c0 100644 --- a/lootsheetnpc5e.js +++ b/lootsheetnpc5e.js @@ -968,7 +968,7 @@ Hooks.once("init", () => { buyerFundsAsGold += buyerFunds[currency] * conversionRate[currency]; } - if (itemCost >= buyerFundsAsGold) { + if (itemCost > buyerFundsAsGold) { errorMessageToActor(buyer, `Not enough funds to purchase item.`); return; } diff --git a/template/npc-sheet.html b/template/npc-sheet.html index fbe373c3..c35a30e1 100644 --- a/template/npc-sheet.html +++ b/template/npc-sheet.html @@ -16,15 +16,6 @@