Skip to content

Commit

Permalink
12.400.8
Browse files Browse the repository at this point in the history
fix minor bug with checking if buyer has enough funds
  • Loading branch information
jopeek committed Nov 29, 2024
1 parent fedd50b commit 20102ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions lootsheet-simple.js
Original file line number Diff line number Diff line change
Expand Up @@ -1548,9 +1548,7 @@ Hooks.once('init', () => {
let itemCostInBronze = itemCostRaw * conversionRates[itemCostDenomination]
// console.log(`itemCostInPlatinum : ${itemCostInPlatinum}`);

// console.log(`buyerFundsAsPlatinum : ${buyerFundsAsPlatinum}`);

if (itemCostInBronze >= buyerFundsAsBronze) {
if (itemCostInBronze > buyerFundsAsBronze) {
errorMessageToActor(buyer, `Not enough funds to purchase item.`)
return
}
Expand Down
2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"title": "Loot Sheet NPC 5e (Simple Version)",
"description": "This module adds an additional NPC sheet which can be used for loot containers such as chests or shopkeepers.",
"version": "12.400.7",
"version": "12.400.8",
"esmodules": [
"/lootsheet-simple.js"
],
Expand Down

0 comments on commit 20102ec

Please sign in to comment.