Fix as per CSV sheet tracking + creature explanation
Release Creation / build (release) Successful in 46s

This commit is contained in:
2026-05-17 18:01:35 +02:00
parent 374854cc8b
commit 1b10a77748
4 changed files with 140 additions and 14 deletions
+10 -2
View File
@@ -18,8 +18,8 @@ export default class MGNECompanion extends foundry.abstract.TypeDataModel {
valueText: stringField(""),
traitText: stringField(""),
specialtyText: stringField(""),
adventuringBehavior: htmlField(""),
combatBehavior: htmlField(""),
adventuringBehaviorUuid: stringField(""),
combatBehaviorUuid: stringField(""),
upkeep: stringField("3d10c per full rest"),
description: htmlField(""),
notes: htmlField(""),
@@ -28,4 +28,12 @@ export default class MGNECompanion extends foundry.abstract.TypeDataModel {
/** @override */
static LOCALIZATION_PREFIXES = ["MGNE.Companion"]
/** @override */
static migrateData(source) {
// Remove old html behavior fields if present
if ("adventuringBehavior" in source) delete source.adventuringBehavior
if ("combatBehavior" in source) delete source.combatBehavior
return super.migrateData(source)
}
}