Skip to content

Commit

Permalink
Merge pull request #73 from farling42/master
Browse files Browse the repository at this point in the history
Cyphersystem should only show 'pc' type
  • Loading branch information
mclemente authored Aug 23, 2023
2 parents 272bd19 + 15c6079 commit 031e187
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions module/SystemProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -1297,6 +1297,7 @@ export class cyphersystemProvider extends SystemProvider {

getActorDetails(actor) {
const data = actor.system;
if (actor.type!=='pc') return;
return {
id: actor.id,
name: actor.name,
Expand All @@ -1316,14 +1317,14 @@ export class cyphersystemProvider extends SystemProvider {
armorValueTotal: data.combat.armor.ratingTotal,
speedCostTotal: data.combat.armor.costTotal,
damageTrack: data.combat.damageTrack.state,
};
}
}

getUpdate(actors) {
return [
actors,
{
showAdditional: actors.some((actor) => actor.additionalPool.active),
showAdditional: actors.some((actor) => actor.type === 'pc' && actor.additionalPool.active),
},
];
}
Expand Down

0 comments on commit 031e187

Please sign in to comment.