Skip to content

Commit

Permalink
Update SystemProvider.js
Browse files Browse the repository at this point in the history
Fix #48
  • Loading branch information
mclemente committed Jul 20, 2022
1 parent 02f5b30 commit 530a70a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions module/SystemProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,9 @@ export class pf2eProvider extends SystemProvider {
getItemsValue(data) {
const coins = ["Platinum Pieces", "Gold Pieces", "Silver Pieces", "Copper Pieces"];
const currency = { pp: 0, gp: 0, sp: 0, cp: 0 };
const items = data.items.filter((a) => a.data.data.price && !(coins.includes(a.data?.flags?.babele?.originalName) || coins.includes(a.name)));
const items = data.items.filter(
(a) => a.data.data.price && a.data.data.identification.status == "identified" && !(coins.includes(a.data?.flags?.babele?.originalName) || coins.includes(a.name))
);
for (const item of items) {
let value = item.data.data.price.value;
for (let coin in value) {
Expand Down Expand Up @@ -1304,7 +1306,7 @@ export class cyphersystemProvider extends SystemProvider {
get width() {
return 700;
}

getActorDetails(actor) {
const data = actor.data.data;
return {
Expand Down

0 comments on commit 530a70a

Please sign in to comment.