This commit is contained in:
WBHarry 2026-02-10 22:04:13 +01:00
parent b9e3eec34c
commit aef3d3cd04
2 changed files with 2 additions and 26 deletions

View file

@ -300,20 +300,6 @@ export async function runMigrations() {
progress.advance();
}
// const lockedPacks = [];
// const compendiumArmors = [];
// const compendiumCharacters = [];
// for (let pack of game.packs.filter(x => x.metadata.type === 'Item')) {
// if (pack.locked) {
// lockedPacks.push(pack.collection);
// await pack.configure({ locked: false });
// }
// const documents = await pack.getDocuments({ type: 'armor' });
// compendiumArmors.push(...documents.filter(x => x instanceof game.system.api.documents.DHItem && x.type === 'armor'));
// compendiumCharacters.push(...documents.filter(x => x.type === 'character'));
// }
for (const armor of [...compendiumArmors, ...worldArmors]) {
const hasArmorEffect = armor.effects.some(x => x.type === 'armor');
const migrationArmorScore = armor.flags.daggerheart?.baseScoreMigrationValue;