Skip to content

Commit

Permalink
Strip empty authors from hazards and vehicles on extract (foundryvtt#…
Browse files Browse the repository at this point in the history
  • Loading branch information
simonward committed Dec 6, 2023
1 parent 4bc75c1 commit 2d0aec1
Show file tree
Hide file tree
Showing 843 changed files with 5 additions and 845 deletions.
8 changes: 5 additions & 3 deletions build/lib/extractor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -460,12 +460,14 @@ class PackExtractor {
}
}

if (docSource.type === "character") {
delete (docSource.system.details.biography as { visibility?: unknown }).visibility;
} else if (docSource.type === "npc") {
if ("publication" in docSource.system.details) {
const publication: Partial<PublicationData> = docSource.system.details.publication;
if (!publication.authors?.trim()) delete publication.authors;
}

if (docSource.type === "character") {
delete (docSource.system.details.biography as { visibility?: unknown }).visibility;
} else if (docSource.type === "npc") {
const speed: Partial<NPCAttributesSource["speed"]> = docSource.system.attributes.speed;
if (!speed.details?.trim()) delete speed.details;

Expand Down
1 change: 0 additions & 1 deletion packs/abomination-vaults-bestiary/befuddling-gas-trap.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@
"value": 11
},
"publication": {
"authors": "",
"license": "OGL",
"remaster": false,
"title": "Pathfinder #165: Eyes of Empty Death"
Expand Down
1 change: 0 additions & 1 deletion packs/abomination-vaults-bestiary/blast-tumbler.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@
"value": 10
},
"publication": {
"authors": "",
"license": "OGL",
"remaster": false,
"title": "Pathfinder #165: Eyes of Empty Death"
Expand Down
1 change: 0 additions & 1 deletion packs/abomination-vaults-bestiary/blood-of-belcorra.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@
"value": 3
},
"publication": {
"authors": "",
"license": "OGL",
"remaster": false,
"title": "Pathfinder #163: Ruins of Gauntlight"
Expand Down
1 change: 0 additions & 1 deletion packs/abomination-vaults-bestiary/daemonic-fog.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
"value": 9
},
"publication": {
"authors": "",
"license": "OGL",
"remaster": false,
"title": "Pathfinder #165: Eyes of Empty Death"
Expand Down
1 change: 0 additions & 1 deletion packs/abomination-vaults-bestiary/doom-of-tomorrow.json
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,6 @@
"value": 3
},
"publication": {
"authors": "",
"license": "OGL",
"remaster": false,
"title": "Pathfinder #163: Ruins of Gauntlight"
Expand Down
1 change: 0 additions & 1 deletion packs/abomination-vaults-bestiary/images-of-failure.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
"value": 12
},
"publication": {
"authors": "",
"license": "OGL",
"remaster": false,
"title": "Pathfinder #165: Eyes of Empty Death"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
"value": 12
},
"publication": {
"authors": "",
"license": "OGL",
"remaster": false,
"title": "Pathfinder #165: Eyes of Empty Death"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@
"value": 8
},
"publication": {
"authors": "",
"license": "OGL",
"remaster": false,
"title": "Pathfinder #164: Hands of the Devil"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@
"value": 8
},
"publication": {
"authors": "",
"license": "OGL",
"remaster": false,
"title": "Pathfinder #164: Hands of the Devil"
Expand Down
1 change: 0 additions & 1 deletion packs/abomination-vaults-bestiary/rusty-grate-pit.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@
"value": 6
},
"publication": {
"authors": "",
"license": "OGL",
"remaster": false,
"title": "Pathfinder #164: Hands of the Devil"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@
"value": 8
},
"publication": {
"authors": "",
"license": "OGL",
"remaster": false,
"title": "Pathfinder #164: Hands of the Devil"
Expand Down
1 change: 0 additions & 1 deletion packs/abomination-vaults-bestiary/spike-launcher.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@
"value": 0
},
"publication": {
"authors": "",
"license": "OGL",
"remaster": false,
"title": "Pathfinder #163: Ruins of Gauntlight"
Expand Down
1 change: 0 additions & 1 deletion packs/abomination-vaults-bestiary/stonescale-spirits.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@
"value": 2
},
"publication": {
"authors": "",
"license": "OGL",
"remaster": false,
"title": "Pathfinder #163: Ruins of Gauntlight"
Expand Down
1 change: 0 additions & 1 deletion packs/abomination-vaults-bestiary/vengeful-furnace.json
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@
"value": 4
},
"publication": {
"authors": "",
"license": "OGL",
"remaster": false,
"title": "Pathfinder #163: Ruins of Gauntlight"
Expand Down
1 change: 0 additions & 1 deletion packs/abomination-vaults-bestiary/watching-wall.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@
"value": 4
},
"publication": {
"authors": "",
"license": "OGL",
"remaster": false,
"title": "Pathfinder #163: Ruins of Gauntlight"
Expand Down
1 change: 0 additions & 1 deletion packs/age-of-ashes-bestiary/acidic-needle-launcher.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@
"value": 16
},
"publication": {
"authors": "",
"license": "OGL",
"remaster": false,
"title": "Pathfinder #149: Against the Scarlet Triad"
Expand Down
1 change: 0 additions & 1 deletion packs/age-of-ashes-bestiary/ash-web.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@
"value": 10
},
"publication": {
"authors": "",
"license": "OGL",
"remaster": false,
"title": "Pathfinder #148: Fires of the Haunted City"
Expand Down
1 change: 0 additions & 1 deletion packs/age-of-ashes-bestiary/barzillais-hounds.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@
"value": 6
},
"publication": {
"authors": "",
"license": "OGL",
"remaster": false,
"title": "Pathfinder #147: Tomorrow Must Burn"
Expand Down
1 change: 0 additions & 1 deletion packs/age-of-ashes-bestiary/black-powder-bomb.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@
"value": 6
},
"publication": {
"authors": "",
"license": "OGL",
"remaster": false,
"title": "Pathfinder #146: Cult of Cinders"
Expand Down
1 change: 0 additions & 1 deletion packs/age-of-ashes-bestiary/caustic-vapor.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@
"value": 17
},
"publication": {
"authors": "",
"license": "OGL",
"remaster": false,
"title": "Pathfinder #149: Against the Scarlet Triad"
Expand Down
1 change: 0 additions & 1 deletion packs/age-of-ashes-bestiary/dahaks-shell.json
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,6 @@
"value": 12
},
"publication": {
"authors": "",
"license": "OGL",
"remaster": false,
"title": "Pathfinder #146: Cult of Cinders"
Expand Down
1 change: 0 additions & 1 deletion packs/age-of-ashes-bestiary/dahaks-skull.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@
"value": 6
},
"publication": {
"authors": "",
"license": "OGL",
"remaster": false,
"title": "Pathfinder #146: Cult of Cinders"
Expand Down
1 change: 0 additions & 1 deletion packs/age-of-ashes-bestiary/damurdiels-vengeance.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@
"value": 19
},
"publication": {
"authors": "",
"license": "OGL",
"remaster": false,
"title": "Pathfinder #150: Broken Promises"
Expand Down
1 change: 0 additions & 1 deletion packs/age-of-ashes-bestiary/dragon-pillar.json
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,6 @@
"value": 6
},
"publication": {
"authors": "",
"license": "OGL",
"remaster": false,
"title": "Pathfinder #146: Cult of Cinders"
Expand Down
1 change: 0 additions & 1 deletion packs/age-of-ashes-bestiary/dragonstorm.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,6 @@
"value": 18
},
"publication": {
"authors": "",
"license": "OGL",
"remaster": false,
"title": "Pathfinder #150: Broken Promises"
Expand Down
1 change: 0 additions & 1 deletion packs/age-of-ashes-bestiary/echoes-of-betrayal.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@
"value": 16
},
"publication": {
"authors": "",
"license": "OGL",
"remaster": false,
"title": "Pathfinder #148: Fires of the Haunted City"
Expand Down
1 change: 0 additions & 1 deletion packs/age-of-ashes-bestiary/endless-elven-aging.json
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@
"value": 17
},
"publication": {
"authors": "",
"license": "OGL",
"remaster": false,
"title": "Pathfinder #149: Against the Scarlet Triad"
Expand Down
1 change: 0 additions & 1 deletion packs/age-of-ashes-bestiary/gloomglow-mushrooms.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@
"value": 5
},
"publication": {
"authors": "",
"license": "OGL",
"remaster": false,
"title": "Pathfinder #145: Hellknight Hill"
Expand Down
1 change: 0 additions & 1 deletion packs/age-of-ashes-bestiary/lesser-dragonstorm.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
"value": 20
},
"publication": {
"authors": "",
"license": "OGL",
"remaster": false,
"title": "Pathfinder #150: Broken Promises"
Expand Down
1 change: 0 additions & 1 deletion packs/age-of-ashes-bestiary/lifeleech-crystal-patches.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@
"value": 11
},
"publication": {
"authors": "",
"license": "OGL",
"remaster": false,
"title": "Pathfinder #148: Fires of the Haunted City"
Expand Down
1 change: 0 additions & 1 deletion packs/age-of-ashes-bestiary/luminous-ward.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
"value": 18
},
"publication": {
"authors": "",
"license": "OGL",
"remaster": false,
"title": "Pathfinder #149: Against the Scarlet Triad"
Expand Down
1 change: 0 additions & 1 deletion packs/age-of-ashes-bestiary/mental-scream-trap.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@
"value": 19
},
"publication": {
"authors": "",
"license": "OGL",
"remaster": false,
"title": "Pathfinder #149: Against the Scarlet Triad"
Expand Down
1 change: 0 additions & 1 deletion packs/age-of-ashes-bestiary/phantom-bells.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@
"value": 6
},
"publication": {
"authors": "",
"license": "OGL",
"remaster": false,
"title": "Pathfinder #147: Tomorrow Must Burn"
Expand Down
1 change: 0 additions & 1 deletion packs/age-of-ashes-bestiary/quarry-sluiceway.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@
"value": 9
},
"publication": {
"authors": "",
"license": "OGL",
"remaster": false,
"title": "Pathfinder #147: Tomorrow Must Burn"
Expand Down
1 change: 0 additions & 1 deletion packs/age-of-ashes-bestiary/seismic-spears-trap.json
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@
"value": 19
},
"publication": {
"authors": "",
"license": "OGL",
"remaster": false,
"title": "Pathfinder #149: Against the Scarlet Triad"
Expand Down
1 change: 0 additions & 1 deletion packs/age-of-ashes-bestiary/spiked-doorframe.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@
"value": 4
},
"publication": {
"authors": "",
"license": "OGL",
"remaster": false,
"title": "Pathfinder #145: Hellknight Hill"
Expand Down
1 change: 0 additions & 1 deletion packs/age-of-ashes-bestiary/town-hall-fire.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"value": 1
},
"publication": {
"authors": "",
"license": "OGL",
"remaster": false,
"title": "Pathfinder #145: Hellknight Hill"
Expand Down
1 change: 0 additions & 1 deletion packs/age-of-ashes-bestiary/trapped-lathe.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@
"value": 10
},
"publication": {
"authors": "",
"license": "OGL",
"remaster": false,
"title": "Pathfinder #147: Tomorrow Must Burn"
Expand Down
1 change: 0 additions & 1 deletion packs/age-of-ashes-bestiary/tree-of-dreadful-dreams.json
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,6 @@
"value": 10
},
"publication": {
"authors": "",
"license": "OGL",
"remaster": false,
"title": "Pathfinder #147: Tomorrow Must Burn"
Expand Down
1 change: 0 additions & 1 deletion packs/age-of-ashes-bestiary/vision-of-dahak.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@
"value": 8
},
"publication": {
"authors": "",
"license": "OGL",
"remaster": false,
"title": "Pathfinder #146: Cult of Cinders"
Expand Down
1 change: 0 additions & 1 deletion packs/age-of-ashes-bestiary/wailing-crystals.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@
"value": 13
},
"publication": {
"authors": "",
"license": "OGL",
"remaster": false,
"title": "Pathfinder #148: Fires of the Haunted City"
Expand Down
1 change: 0 additions & 1 deletion packs/age-of-ashes-bestiary/wrath-of-the-destroyer.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@
"value": 10
},
"publication": {
"authors": "",
"license": "OGL",
"remaster": false,
"title": "Pathfinder #146: Cult of Cinders"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@
"value": 13
},
"publication": {
"authors": "",
"license": "OGL",
"remaster": false,
"title": "Pathfinder #159: All or Nothing"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@
"value": 13
},
"publication": {
"authors": "",
"license": "OGL",
"remaster": false,
"title": "Pathfinder #160: Assault on Hunting Lodge Seven"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@
"value": 19
},
"publication": {
"authors": "",
"license": "OGL",
"remaster": false,
"title": "Pathfinder #162: Ruins of the Radiant Siege"
Expand Down
1 change: 0 additions & 1 deletion packs/agents-of-edgewatch-bestiary/boiling-fountains.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@
"value": 2
},
"publication": {
"authors": "",
"license": "OGL",
"remaster": false,
"title": "Pathfinder #157: Devil at the Dreaming Palace"
Expand Down
1 change: 0 additions & 1 deletion packs/agents-of-edgewatch-bestiary/boiling-tub-trap.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@
"value": 13
},
"publication": {
"authors": "",
"license": "OGL",
"remaster": false,
"title": "Pathfinder #159: All or Nothing"
Expand Down
Loading

0 comments on commit 2d0aec1

Please sign in to comment.