Skip to content

Commit

Permalink
Run migration for NPC skills (foundryvtt#15226)
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosFdez authored Jun 24, 2024
1 parent 9225d14 commit 34a043c
Show file tree
Hide file tree
Showing 5,080 changed files with 78,336 additions and 526,072 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 2 additions & 0 deletions build/run-migration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import { Migration928CharacterSkillsLongform } from "@module/migration/migration
import { Migration929RemoveSkillAbbreviations } from "@module/migration/migrations/929-remove-skill-abbreviations.ts";
import { Migration930ChoiceSetMedium } from "@module/migration/migrations/930-choice-set-medium.ts";
import { Migration931ExpandREPermissions } from "@module/migration/migrations/931-expand-re-permissions.ts";
import { Migration932NPCSystemSkills } from "@module/migration/migrations/932-npc-system-skills.ts";
// ^^^ don't let your IDE use the index in these imports. you need to specify the full path ^^^

const { window } = new JSDOM();
Expand Down Expand Up @@ -60,6 +61,7 @@ const migrations: MigrationBase[] = [
new Migration929RemoveSkillAbbreviations(),
new Migration930ChoiceSetMedium(),
new Migration931ExpandREPermissions(),
new Migration932NPCSystemSkills(),
];

const packsDataPath = path.resolve(process.cwd(), "packs");
Expand Down
86 changes: 11 additions & 75 deletions packs/abomination-vaults-bestiary/afflicted-irnakurse.json
Original file line number Diff line number Diff line change
Expand Up @@ -310,81 +310,6 @@
}
},
"type": "action"
},
{
"_id": "SVAyaWNQdLEB8T8O",
"img": "systems/pf2e/icons/default-icons/lore.svg",
"name": "Acrobatics",
"sort": 900000,
"system": {
"description": {
"value": ""
},
"mod": {
"value": 20
},
"proficient": {
"value": 0
},
"publication": {
"license": "OGL",
"remaster": false,
"title": ""
},
"rules": [],
"slug": null
},
"type": "lore"
},
{
"_id": "SKVDodNz8cPMHoc8",
"img": "systems/pf2e/icons/default-icons/lore.svg",
"name": "Athletics",
"sort": 1000000,
"system": {
"description": {
"value": ""
},
"mod": {
"value": 20
},
"proficient": {
"value": 0
},
"publication": {
"license": "OGL",
"remaster": false,
"title": ""
},
"rules": [],
"slug": null
},
"type": "lore"
},
{
"_id": "5pLdy4qjWpi4yWh8",
"img": "systems/pf2e/icons/default-icons/lore.svg",
"name": "Stealth",
"sort": 1100000,
"system": {
"description": {
"value": ""
},
"mod": {
"value": 20
},
"proficient": {
"value": 0
},
"publication": {
"license": "OGL",
"remaster": false,
"title": ""
},
"rules": [],
"slug": null
},
"type": "lore"
}
],
"name": "Afflicted Irnakurse",
Expand Down Expand Up @@ -476,6 +401,17 @@
"value": 16
}
},
"skills": {
"acrobatics": {
"base": 20
},
"athletics": {
"base": 20
},
"stealth": {
"base": 20
}
},
"traits": {
"rarity": "common",
"size": {
Expand Down
142 changes: 17 additions & 125 deletions packs/abomination-vaults-bestiary/aller-rosk.json
Original file line number Diff line number Diff line change
Expand Up @@ -283,131 +283,6 @@
}
},
"type": "action"
},
{
"_id": "QP88EpwusHUSsloI",
"img": "systems/pf2e/icons/default-icons/lore.svg",
"name": "Acrobatics",
"sort": 800000,
"system": {
"description": {
"value": ""
},
"mod": {
"value": 13
},
"proficient": {
"value": 0
},
"publication": {
"license": "OGL",
"remaster": false,
"title": ""
},
"rules": [],
"slug": null
},
"type": "lore"
},
{
"_id": "20v2wc79bD2XCDOY",
"img": "systems/pf2e/icons/default-icons/lore.svg",
"name": "Athletics",
"sort": 900000,
"system": {
"description": {
"value": ""
},
"mod": {
"value": 14
},
"proficient": {
"value": 0
},
"publication": {
"license": "OGL",
"remaster": false,
"title": ""
},
"rules": [],
"slug": null
},
"type": "lore"
},
{
"_id": "yet3RdvmGWHHMfzP",
"img": "systems/pf2e/icons/default-icons/lore.svg",
"name": "Crafting",
"sort": 1000000,
"system": {
"description": {
"value": ""
},
"mod": {
"value": 13
},
"proficient": {
"value": 0
},
"publication": {
"license": "OGL",
"remaster": false,
"title": ""
},
"rules": [],
"slug": null
},
"type": "lore"
},
{
"_id": "ugdYVtu7lJgcYpDi",
"img": "systems/pf2e/icons/default-icons/lore.svg",
"name": "Occultism",
"sort": 1100000,
"system": {
"description": {
"value": ""
},
"mod": {
"value": 11
},
"proficient": {
"value": 0
},
"publication": {
"license": "OGL",
"remaster": false,
"title": ""
},
"rules": [],
"slug": null
},
"type": "lore"
},
{
"_id": "HCK4qAZ9B06kprA8",
"img": "systems/pf2e/icons/default-icons/lore.svg",
"name": "Stealth",
"sort": 1200000,
"system": {
"description": {
"value": ""
},
"mod": {
"value": 11
},
"proficient": {
"value": 0
},
"publication": {
"license": "OGL",
"remaster": false,
"title": ""
},
"rules": [],
"slug": null
},
"type": "lore"
}
],
"name": "Aller Rosk",
Expand Down Expand Up @@ -505,6 +380,23 @@
"value": 10
}
},
"skills": {
"acrobatics": {
"base": 13
},
"athletics": {
"base": 14
},
"crafting": {
"base": 13
},
"occultism": {
"base": 11
},
"stealth": {
"base": 11
}
},
"traits": {
"rarity": "unique",
"size": {
Expand Down
Loading

0 comments on commit 34a043c

Please sign in to comment.