Skip to content

Commit

Permalink
Strip unidentified and badge: null from extracted effects (foundryvtt…
Browse files Browse the repository at this point in the history
  • Loading branch information
simonward committed Apr 16, 2023
1 parent 72fefbd commit f33ed19
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build/lib/extractor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,10 @@ class PackExtractor {
delete (source.system as { deathNote?: boolean }).deathNote;
} else if (source.type === "effect") {
delete (source.system as { context?: unknown }).context;
delete (source.system as { unidentified?: unknown }).unidentified;
if (!source.system.badge) {
delete (source.system as { badge?: unknown }).badge;
}
} else if (source.type === "feat") {
const isFeat = !["ancestryfeature", "classfeature", "pfsboon", "deityboon", "curse"].includes(
source.system.category
Expand Down

0 comments on commit f33ed19

Please sign in to comment.