Migrations are now not horrible =D

This commit is contained in:
WBHarry 2026-03-22 01:55:47 +01:00
parent cd4a8069fc
commit eefd35eb60
2 changed files with 9 additions and 57 deletions

View file

@ -154,7 +154,7 @@ export default class DHArmor extends AttachableItem {
/** @inheritDoc */
static migrateDocumentData(source) {
if (!source.system.armor) {
source.system.armor = { current: source.system.marks ?? 0, max: source.system.baseScore ?? 0 };
source.system.armor = { current: source.system.marks?.value ?? 0, max: source.system.baseScore ?? 0 };
}
}