Skip to content

Commit

Permalink
Record ancestry slug in heritages' ancestry data, add support for fea…
Browse files Browse the repository at this point in the history
…t-granting heritages

Compendium data migrated separately due to Foundry API usage in migration
  • Loading branch information
stwlam committed Feb 15, 2023
1 parent 531d734 commit fd9ab55
Show file tree
Hide file tree
Showing 311 changed files with 411 additions and 38 deletions.
20 changes: 19 additions & 1 deletion packs/data/feats.db/elf-atavism.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,25 @@
"prerequisites": {
"value": []
},
"rules": [],
"rules": [
{
"allowedDrops": {
"label": "PF2E.SpecificRule.ElfAtavism.AllowedDrops",
"predicate": [
"item:type:heritage",
"item:ancestry:elf"
]
},
"choices": {
"itemType": "heritage",
"pack": "pf2e.heritages",
"query": "{\"system.ancestry.slug\":\"elf\"}"
},
"flag": "heritage",
"key": "ChoiceSet",
"prompt": "PF2E.SpecificRule.ElfAtavism.Prompt"
}
],
"source": {
"value": "Pathfinder Core Rulebook"
},
Expand Down
2 changes: 1 addition & 1 deletion packs/data/feats.db/reset-the-past.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"value": "Chronoskimmer Dedication"
}
]
},
},
"rules": [],
"source": {
"value": "Pathfinder Dark Archive"
Expand Down
46 changes: 23 additions & 23 deletions packs/data/feats.db/shared-stratagem.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,30 +22,30 @@
"value": []
},
"rules": [
{
"key": "Note",
"selector": "strike-damage",
"text": "The creature you hit is @UUID[Compendium.pf2e.conditionitems.Flat-Footed] to a designated ally on the next attack the ally makes against the creature before the start of your next turn.",
"title": "{item|name}",
"predicate": [
"devise-a-stratagem",
{
"or": [
"item:trait:agile",
"item:trait:finesse",
{
"and": [
"item:ranged",
{
"key": "Note",
"predicate": [
"devise-a-stratagem",
{
"or": [
"item:trait:agile",
"item:trait:finesse",
{
"not": "item:thrown-melee"
}
]
},
"item:base:sap"
]
}
]
}
"and": [
"item:ranged",
{
"not": "item:thrown-melee"
}
]
},
"item:base:sap"
]
}
],
"selector": "strike-damage",
"text": "The creature you hit is @UUID[Compendium.pf2e.conditionitems.Flat-Footed] to a designated ally on the next attack the ally makes against the creature before the start of your next turn.",
"title": "{item|name}"
}
],
"source": {
"value": "Pathfinder Advanced Player's Guide"
Expand Down
1 change: 1 addition & 0 deletions packs/data/heritages.db/adaptive-anadi.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"system": {
"ancestry": {
"name": "Anadi",
"slug": "anadi",
"uuid": "Compendium.pf2e.ancestries.TQEqWqc7BYiadUdY"
},
"description": {
Expand Down
1 change: 1 addition & 0 deletions packs/data/heritages.db/ancient-ash.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"system": {
"ancestry": {
"name": "Ghoran",
"slug": "ghoran",
"uuid": "Compendium.pf2e.ancestries.tSurOqRcfumadTfr"
},
"description": {
Expand Down
1 change: 1 addition & 0 deletions packs/data/heritages.db/ancient-blooded-dwarf.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"system": {
"ancestry": {
"name": "Dwarf",
"slug": "dwarf",
"uuid": "Compendium.pf2e.ancestries.BYj5ZvlXZdpaEgA6"
},
"description": {
Expand Down
1 change: 1 addition & 0 deletions packs/data/heritages.db/ancient-elf.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"system": {
"ancestry": {
"name": "Elf",
"slug": "elf",
"uuid": "Compendium.pf2e.ancestries.PgKmsA2aKdbLU6O0"
},
"description": {
Expand Down
1 change: 1 addition & 0 deletions packs/data/heritages.db/ancient-scale-azarketi.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"system": {
"ancestry": {
"name": "Azarketi",
"slug": "azarketi",
"uuid": "Compendium.pf2e.ancestries.yFoojz6q3ZjvceFw"
},
"description": {
Expand Down
1 change: 1 addition & 0 deletions packs/data/heritages.db/ant-gnoll.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"system": {
"ancestry": {
"name": "Gnoll",
"slug": "gnoll",
"uuid": "Compendium.pf2e.ancestries.vxbQ1Yw4qwgjTzqo"
},
"description": {
Expand Down
1 change: 1 addition & 0 deletions packs/data/heritages.db/anvil-dwarf.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"system": {
"ancestry": {
"name": "Dwarf",
"slug": "dwarf",
"uuid": "Compendium.pf2e.ancestries.BYj5ZvlXZdpaEgA6"
},
"description": {
Expand Down
1 change: 1 addition & 0 deletions packs/data/heritages.db/arctic-elf.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"system": {
"ancestry": {
"name": "Elf",
"slug": "elf",
"uuid": "Compendium.pf2e.ancestries.PgKmsA2aKdbLU6O0"
},
"description": {
Expand Down
1 change: 1 addition & 0 deletions packs/data/heritages.db/artisan-android.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"system": {
"ancestry": {
"name": "Android",
"slug": "android",
"uuid": "Compendium.pf2e.ancestries.GfLwE884NoRC7cRi"
},
"description": {
Expand Down
1 change: 1 addition & 0 deletions packs/data/heritages.db/athamasi.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"system": {
"ancestry": {
"name": "Kashrishi",
"slug": "kashrishi",
"uuid": "Compendium.pf2e.ancestries.dw2K1AJR9mQ25nDP"
},
"description": {
Expand Down
1 change: 1 addition & 0 deletions packs/data/heritages.db/badlands-orc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"system": {
"ancestry": {
"name": "Orc",
"slug": "orc",
"uuid": "Compendium.pf2e.ancestries.lSGWXjcbOa6O5fTx"
},
"description": {
Expand Down
1 change: 1 addition & 0 deletions packs/data/heritages.db/bandaagee-vanara.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"system": {
"ancestry": {
"name": "Vanara",
"slug": "vanara",
"uuid": "Compendium.pf2e.ancestries.cLtOGIkuSSa4UDHY"
},
"description": {
Expand Down
1 change: 1 addition & 0 deletions packs/data/heritages.db/battle-ready-orc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"system": {
"ancestry": {
"name": "Orc",
"slug": "orc",
"uuid": "Compendium.pf2e.ancestries.lSGWXjcbOa6O5fTx"
},
"description": {
Expand Down
1 change: 1 addition & 0 deletions packs/data/heritages.db/battle-trained-human-bb.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"system": {
"ancestry": {
"name": "Human",
"slug": "human",
"uuid": "Compendium.pf2e.ancestries.IiG7DgeLWYrSNXuX"
},
"description": {
Expand Down
1 change: 1 addition & 0 deletions packs/data/heritages.db/benthic-azarketi.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"system": {
"ancestry": {
"name": "Azarketi",
"slug": "azarketi",
"uuid": "Compendium.pf2e.ancestries.yFoojz6q3ZjvceFw"
},
"description": {
Expand Down
1 change: 1 addition & 0 deletions packs/data/heritages.db/bloodhound-shoony.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"system": {
"ancestry": {
"name": "Shoony",
"slug": "shoony",
"uuid": "Compendium.pf2e.ancestries.q6rsqYARyOGXZA8F"
},
"description": {
Expand Down
1 change: 1 addition & 0 deletions packs/data/heritages.db/bright-fetchling.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"system": {
"ancestry": {
"name": "Fetchling",
"slug": "fetchling",
"uuid": "Compendium.pf2e.ancestries.hIA3qiUsxvLZXrFP"
},
"description": {
Expand Down
1 change: 1 addition & 0 deletions packs/data/heritages.db/cactus-leshy.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"system": {
"ancestry": {
"name": "Leshy",
"slug": "leshy",
"uuid": "Compendium.pf2e.ancestries.cdhgByGG1WtuaK73"
},
"description": {
Expand Down
1 change: 1 addition & 0 deletions packs/data/heritages.db/cataphract-fleshwarp.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"system": {
"ancestry": {
"name": "Fleshwarp",
"slug": "fleshwarp",
"uuid": "Compendium.pf2e.ancestries.FXlXmNBFiiz9oasi"
},
"description": {
Expand Down
1 change: 1 addition & 0 deletions packs/data/heritages.db/caveclimber-kobold.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"system": {
"ancestry": {
"name": "Kobold",
"slug": "kobold",
"uuid": "Compendium.pf2e.ancestries.7oQxL6wgsokD3QXG"
},
"description": {
Expand Down
1 change: 1 addition & 0 deletions packs/data/heritages.db/cavern-elf.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"system": {
"ancestry": {
"name": "Elf",
"slug": "elf",
"uuid": "Compendium.pf2e.ancestries.PgKmsA2aKdbLU6O0"
},
"description": {
Expand Down
1 change: 1 addition & 0 deletions packs/data/heritages.db/cavern-kobold.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"system": {
"ancestry": {
"name": "Kobold",
"slug": "kobold",
"uuid": "Compendium.pf2e.ancestries.7oQxL6wgsokD3QXG"
},
"description": {
Expand Down
1 change: 1 addition & 0 deletions packs/data/heritages.db/celestial-envoy-kitsune.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"system": {
"ancestry": {
"name": "Kitsune",
"slug": "kitsune",
"uuid": "Compendium.pf2e.ancestries.4BL5wf1VF9feC2rY"
},
"description": {
Expand Down
1 change: 1 addition & 0 deletions packs/data/heritages.db/chameleon-gnome.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"system": {
"ancestry": {
"name": "Gnome",
"slug": "gnome",
"uuid": "Compendium.pf2e.ancestries.CYlfsYLJcBOgqKtD"
},
"description": {
Expand Down
1 change: 1 addition & 0 deletions packs/data/heritages.db/charhide-goblin.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"system": {
"ancestry": {
"name": "Goblin",
"slug": "goblin",
"uuid": "Compendium.pf2e.ancestries.sQfjTMDaZbT9DThq"
},
"description": {
Expand Down
1 change: 1 addition & 0 deletions packs/data/heritages.db/clawed-catfolk.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"system": {
"ancestry": {
"name": "Catfolk",
"slug": "catfolk",
"uuid": "Compendium.pf2e.ancestries.972EkpJOPv9KkQIW"
},
"description": {
Expand Down
1 change: 1 addition & 0 deletions packs/data/heritages.db/cliffscale-lizardfolk.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"system": {
"ancestry": {
"name": "Lizardfolk",
"slug": "lizardfolk",
"uuid": "Compendium.pf2e.ancestries.HWEgF7Gmoq55VhTL"
},
"description": {
Expand Down
1 change: 1 addition & 0 deletions packs/data/heritages.db/cloudleaper-lizardfolk.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"system": {
"ancestry": {
"name": "Lizardfolk",
"slug": "lizardfolk",
"uuid": "Compendium.pf2e.ancestries.HWEgF7Gmoq55VhTL"
},
"description": {
Expand Down
1 change: 1 addition & 0 deletions packs/data/heritages.db/compact-skeleton.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"system": {
"ancestry": {
"name": "Skeleton",
"slug": "skeleton",
"uuid": "Compendium.pf2e.ancestries.58rL5sg2y4arW1i5"
},
"description": {
Expand Down
1 change: 1 addition & 0 deletions packs/data/heritages.db/created-fleshwarp.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"system": {
"ancestry": {
"name": "Fleshwarp",
"slug": "fleshwarp",
"uuid": "Compendium.pf2e.ancestries.FXlXmNBFiiz9oasi"
},
"description": {
Expand Down
1 change: 1 addition & 0 deletions packs/data/heritages.db/dark-fields-kitsune.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"system": {
"ancestry": {
"name": "Kitsune",
"slug": "kitsune",
"uuid": "Compendium.pf2e.ancestries.4BL5wf1VF9feC2rY"
},
"description": {
Expand Down
1 change: 1 addition & 0 deletions packs/data/heritages.db/death-warden-dwarf.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"system": {
"ancestry": {
"name": "Dwarf",
"slug": "dwarf",
"uuid": "Compendium.pf2e.ancestries.BYj5ZvlXZdpaEgA6"
},
"description": {
Expand Down
1 change: 1 addition & 0 deletions packs/data/heritages.db/deep-fetchling.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"system": {
"ancestry": {
"name": "Fetchling",
"slug": "fetchling",
"uuid": "Compendium.pf2e.ancestries.hIA3qiUsxvLZXrFP"
},
"description": {
Expand Down
1 change: 1 addition & 0 deletions packs/data/heritages.db/deep-orc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"system": {
"ancestry": {
"name": "Orc",
"slug": "orc",
"uuid": "Compendium.pf2e.ancestries.lSGWXjcbOa6O5fTx"
},
"description": {
Expand Down
1 change: 1 addition & 0 deletions packs/data/heritages.db/deep-rat.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"system": {
"ancestry": {
"name": "Ratfolk",
"slug": "ratfolk",
"uuid": "Compendium.pf2e.ancestries.P6PcVnCkh4XMdefw"
},
"description": {
Expand Down
1 change: 1 addition & 0 deletions packs/data/heritages.db/desert-elf.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"system": {
"ancestry": {
"name": "Elf",
"slug": "elf",
"uuid": "Compendium.pf2e.ancestries.PgKmsA2aKdbLU6O0"
},
"description": {
Expand Down
1 change: 1 addition & 0 deletions packs/data/heritages.db/desert-rat.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"system": {
"ancestry": {
"name": "Ratfolk",
"slug": "ratfolk",
"uuid": "Compendium.pf2e.ancestries.P6PcVnCkh4XMdefw"
},
"description": {
Expand Down
1 change: 1 addition & 0 deletions packs/data/heritages.db/discarded-fleshwarp.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"system": {
"ancestry": {
"name": "Fleshwarp",
"slug": "fleshwarp",
"uuid": "Compendium.pf2e.ancestries.FXlXmNBFiiz9oasi"
},
"description": {
Expand Down
Loading

0 comments on commit fd9ab55

Please sign in to comment.