Skip to content

Commit

Permalink
Fix pf1e usage calculation, fixes #40
Browse files Browse the repository at this point in the history
  • Loading branch information
illandril committed Oct 4, 2023
1 parent ff04a0f commit d8c57e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion module/scripts/item-systems/item-system.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ export default class ItemSystem {
};
for (let item of items) {
let thisItemUses = await this.calculateUsesForItem(item);
if (thisItemUses === null) {
if (!thisItemUses) {
uses = null;
break;
}
Expand Down
1 change: 1 addition & 0 deletions module/scripts/item-systems/pf1.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ async function calculateActionUses(item, action) {
isAmmunition: true,
};
}
return null
}

async function calculateChargeUses(item) {
Expand Down

0 comments on commit d8c57e4

Please sign in to comment.