mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-04-21 23:13:39 +02:00
Migrations are now not horrible =D
This commit is contained in:
parent
cd4a8069fc
commit
eefd35eb60
2 changed files with 9 additions and 57 deletions
|
|
@ -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 };
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue