From e41c4f1b07d860c0f7e9069e266d6dbb5e6eb5e8 Mon Sep 17 00:00:00 2001 From: Johannes Loher Date: Sat, 8 Jan 2022 18:26:31 +0100 Subject: [PATCH] refactor: address a couple of V9 deprecations --- src/module/actor/actor.ts | 4 ++-- src/system.json | 14 +++++++------- src/templates/sheets/item/tabs/description.hbs | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/module/actor/actor.ts b/src/module/actor/actor.ts index 2192cf8e..9ed12857 100644 --- a/src/module/actor/actor.ts +++ b/src/module/actor/actor.ts @@ -27,7 +27,7 @@ export class DS4Actor extends Actor { prepareData(): void { this.data.reset(); this.prepareBaseData(); - this.prepareEmbeddedEntities(); + this.prepareEmbeddedDocuments(); this.applyActiveEffectsToBaseData(); this.prepareDerivedData(); this.applyActiveEffectsToDerivedData(); @@ -57,7 +57,7 @@ export class DS4Actor extends Actor { /** * @override * We override this with an empty implementation because we have our own custom way of applying - * {@link ActiveEffect}s and {@link Actor#prepareEmbeddedEntities} calls this. + * {@link ActiveEffect}s and {@link Actor#prepareEmbeddedDocuments} calls this. */ applyActiveEffects(): void { return; diff --git a/src/system.json b/src/system.json index fe3dc853..9353231f 100644 --- a/src/system.json +++ b/src/system.json @@ -34,7 +34,7 @@ "changelog": "https://git.f3l.de/dungeonslayers/ds4/-/releases/1.11.1", "version": "1.11.1", "minimumCoreVersion": "9.238", - "compatibleCoreVersion": "9.238", + "compatibleCoreVersion": "9", "esmodules": ["module/ds4.js"], "styles": ["css/ds4.css"], "languages": [ @@ -56,7 +56,7 @@ "system": "ds4", "module": "ds4", "path": "./packs/special-creature-abilities.db", - "entity": "Item" + "type": "Item" }, { "name": "languages-and-scripts", @@ -64,7 +64,7 @@ "system": "ds4", "module": "ds4", "path": "./packs/languages-and-scripts.db", - "entity": "Item" + "type": "Item" }, { "name": "equipment", @@ -72,7 +72,7 @@ "system": "ds4", "module": "ds4", "path": "./packs/items.db", - "entity": "Item" + "type": "Item" }, { "name": "spells", @@ -80,7 +80,7 @@ "system": "ds4", "module": "ds4", "path": "./packs/spells.db", - "entity": "Item" + "type": "Item" }, { "name": "creatures", @@ -88,7 +88,7 @@ "system": "ds4", "module": "ds4", "path": "./packs/creatures.db", - "entity": "Actor" + "type": "Actor" }, { "name": "racial-abilities", @@ -96,7 +96,7 @@ "system": "ds4", "module": "ds4", "path": "./packs/racial-abilities.db", - "entity": "Item" + "type": "Item" } ], "manifest": "https://git.f3l.de/api/v4/projects/dungeonslayers%2Fds4/packages/generic/ds4/latest/system.json", diff --git a/src/templates/sheets/item/tabs/description.hbs b/src/templates/sheets/item/tabs/description.hbs index 39b2107b..85754d52 100644 --- a/src/templates/sheets/item/tabs/description.hbs +++ b/src/templates/sheets/item/tabs/description.hbs @@ -21,7 +21,7 @@ Additional elements of the side-properties div can be handed over via the @parti {{/if}}
- {{actor.name}}
{{#if isPhysical}}