Removed last traces of ArmorEffect

This commit is contained in:
WBHarry 2026-03-19 16:02:23 +01:00
parent 6d964ddd43
commit bfcbb9f290
8 changed files with 41 additions and 273 deletions

View file

@ -374,15 +374,18 @@ export async function runMigrations() {
if (migrationArmorScore !== undefined && !hasArmorEffect) {
await item.createEmbeddedDocuments('ActiveEffect', [
{
...game.system.api.data.activeEffects.ArmorEffect.getDefaultObject(),
...game.system.api.data.activeEffects.changeTypes.armor.getDefaultArmorEffect(),
changes: [
{
key: 'system.armorScore',
type: CONFIG.DH.GENERAL.activeEffectModes.armor.id,
key: 'Armor',
type: CONFIG.DH.GENERAL.activeEffectModes.armor,
phase: 'initial',
priority: 20,
value: 0,
max: migrationArmorScore.toString()
typeData: {
type: 'armor',
max: migrationArmorScore.toString()
}
}
]
}