From 920c68a7da071575e2f6b16e19b2383b6a55ed5f Mon Sep 17 00:00:00 2001 From: Byroks Date: Fri, 23 Oct 2026 17:54:17 +0200 Subject: [PATCH] =?UTF-8?q?Hintergr=C3=BCnde?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lang/de.json | 52 +++- src/data/character-data.mjs | 29 ++- src/data/hintergrund-data.mjs | 12 + src/sheets/character-sheet.mjs | 69 ++++- src/sheets/components/character-prep.mjs | 5 +- src/sheets/hintergrund-sheet.mjs | 60 +++++ src/sheets/item-sheet.mjs | 1 + src/sheets/weapon-sheet.mjs | 5 +- src/sheets/zauber-sheet.mjs | 3 +- src/styles/M6.scss | 5 + src/styles/hintergrund.scss | 33 +++ src/system.mjs | 35 +++ src/templates/actor/biographie.hbs | 31 +++ src/templates/actor/eigenschaften.hbs | 36 ++- src/templates/actor/header.hbs | 10 +- src/templates/actor/hintergrund.hbs | 266 ++++++++++++++++++++ src/templates/hintergrund/description.hbs | 25 ++ src/templates/hintergrund/header.hbs | 46 ++++ src/templates/item/description.hbs | 5 +- src/templates/item/waffen/eigenschaften.hbs | 5 +- src/templates/zauber/header.hbs | 2 +- src/types/data-config.d.mjs | 10 +- system.json | 6 +- 23 files changed, 712 insertions(+), 39 deletions(-) create mode 100644 src/data/hintergrund-data.mjs create mode 100644 src/sheets/hintergrund-sheet.mjs create mode 100644 src/styles/hintergrund.scss create mode 100644 src/templates/actor/biographie.hbs create mode 100644 src/templates/actor/hintergrund.hbs create mode 100644 src/templates/hintergrund/description.hbs create mode 100644 src/templates/hintergrund/header.hbs diff --git a/lang/de.json b/lang/de.json index ee2c633..dfb9527 100644 --- a/lang/de.json +++ b/lang/de.json @@ -5,7 +5,15 @@ "Schaden": "Schaden", "Fertigkeit": "Fertigkeit", "Stufe": "Stufe", - "Biography": { + "Schicksalsmünzen": "Schicksalsmünzen", + "Grad": { + "grad": "Grad", + "frei": "frei", + "eingesetzt": "eingesetzt", + "gesamt": "gesamt", + "erfahrung": "Erfahrung" + }, + "Biographie": { "spezies": "Spezies", "kultur": "Kultur", "abenteuertyp": "Abenteuertyp", @@ -83,7 +91,8 @@ "eigenschaften": "Fertigkeiten", "items": "Gegenstände", "effects": "Effekte", - "zauber": "Zauber" + "zauber": "Zauber", + "description": "Beschreibung" }, "spezialisierung": "Spezialisierung" }, @@ -115,6 +124,39 @@ "zauber": { "singular": "Zauber", "plural": "Zauber" + }, + "gunst": { + "singular": "Gunst", + "plural": "Günste" + }, + "makel": { + "singular": "Makel", + "plural": "Makel" + }, + "schicksalsgabe": { + "singular": "Schicksalsgabe", + "plural": "Schicksalsgaben" + } + } + }, + "Hintergrund": { + "gruppe": "Kategorie", + "type": { + "gunst": { + "singular": "Gunst", + "plural": "Günste" + }, + "makel": { + "singular": "Makel", + "plural": "Makel" + }, + "legende": { + "singular": "Legende", + "plural": "Legenden" + }, + "schicksalsgabe": { + "singular": "Schicksalsgabe", + "plural": "Schicksalsgaben" } } } @@ -127,7 +169,11 @@ "item": "Gegenstand", "weapon": "Waffe", "armor": "Rüstung", - "zauber": "Zauber" + "zauber": "Zauber", + "gunst": "Gunst", + "makel": "Makel", + "schicksalsgabe": "Schicksalsgabe", + "legende": "Legende" } } } diff --git a/src/data/character-data.mjs b/src/data/character-data.mjs index dcbb633..5fc97ce 100644 --- a/src/data/character-data.mjs +++ b/src/data/character-data.mjs @@ -1,12 +1,37 @@ function defineSchema() { const fields = foundry.data.fields; return { - biography: new fields.SchemaField({ + biographie: new fields.SchemaField({ mondgestalt: new fields.StringField({ initial: "" }), abenteuertyp: new fields.StringField({ initial: "" }), glaube: new fields.StringField({ initial: "" }), spezies: new fields.StringField({ initial: "" }), - kultur: new fields.StringField({ initial: "" }) + kultur: new fields.StringField({ initial: "" }), + beschreibung: new fields.HTMLField({ initial: "" }) + }), + legende: new fields.HTMLField({ initial: "" }), + schicksalsmünzen: new fields.NumberField({ initital: 3, min: 0, required: true }), + grad: new fields.SchemaField({ + erfahrungspunkteFrei: new fields.NumberField({ + required: true, + min: 0, + initial: 0 + }), + erfahrungspunkteEingesetzt: new fields.NumberField({ + required: true, + min: 0, + initial: 0 + }), + erfahrungsschatz: new fields.NumberField({ + required: true, + min: 0, + initial: 0 + }), + grad: new fields.NumberField({ + required: true, + min: 1, + initial: 1 + }) }), rüstwert: new fields.SchemaField({ base: new fields.NumberField({ diff --git a/src/data/hintergrund-data.mjs b/src/data/hintergrund-data.mjs new file mode 100644 index 0000000..4c98e13 --- /dev/null +++ b/src/data/hintergrund-data.mjs @@ -0,0 +1,12 @@ +function defineSchema() { + const fields = foundry.data.fields; + return { + beschreibung: new fields.HTMLField({ initial: "" }), + gruppe: new fields.StringField({ initial: "" }), + linkId: new fields.StringField({ initial: "" }) + }; +} + +export class HintergrundData extends foundry.abstract.TypeDataModel { + static defineSchema = defineSchema; +} diff --git a/src/sheets/character-sheet.mjs b/src/sheets/character-sheet.mjs index 98bba8e..5d54578 100644 --- a/src/sheets/character-sheet.mjs +++ b/src/sheets/character-sheet.mjs @@ -55,6 +55,10 @@ export class M6ActorSheet extends api.HandlebarsApplicationMixin(sheets.ActorShe id: "zauber", icon: "fa-hand-sparkles" }, + { + id: "hintergrund", + icon: "fa-feather-pointed" + }, { id: "effects", icon: "fa-bolt" @@ -87,16 +91,40 @@ export class M6ActorSheet extends api.HandlebarsApplicationMixin(sheets.ActorShe template: systemPath("templates/actor/items.hbs"), scrollable: [""] }, - // biographie: { - // template: systemPath("templates/items/description.hbs"), - // scrollable: [""] - // }, + hintergrund: { + template: systemPath("templates/actor/hintergrund.hbs"), + scrollable: [""] + }, effects: { template: systemPath("templates/shared/effects.hbs"), scrollable: [""] } }; + _attachPartListeners(partId, html, bubble) { + super._attachPartListeners(partId, html, bubble); + + switch (partId) { + case "hintergrund": + const collapsible = html.querySelectorAll("div[data-action=collapsible]"); + if (collapsible) { + collapsible.forEach((node) => { + node.addEventListener( + "click", + function () { + node.classList.toggle("active"); + var content = node.nextElementSibling; + content.classList.toggle("active"); + node.getElementsByTagName("i")[0].classList.toggle("fa-compress"); + }, + { capture: true } + ); + }); + } + break; + } + } + /* -------------------------------------------------- */ /** @inheritdoc */ @@ -153,6 +181,21 @@ export class M6ActorSheet extends api.HandlebarsApplicationMixin(sheets.ActorShe context.zauber = await this._getZauber(); context.tab = context.tabs[partId]; break; + case "hintergrund": + context.fields = await this._getFields(); + context.enrichedBeschreibung = + await foundry.applications.ux.TextEditor.implementation.enrichHTML( + this.actor.system.biographie.beschreibung, + { + // Whether to show secret blocks in the finished html + secrets: this.document.isOwner, + // Data to fill in for inline rolls + rollData: this.actor.getRollData(), + // Relative UUID resolution + relativeTo: this.actor + } + ); + context.tab = context.tabs[partId]; } return context; } @@ -701,7 +744,7 @@ export class M6ActorSheet extends api.HandlebarsApplicationMixin(sheets.ActorShe * @returns {Item|ActiveEffect} The embedded Item or ActiveEffect. */ _getEmbeddedDocument(target) { - const docRow = target.closest("li[data-document-class]"); + const docRow = target.closest("[data-document-class]"); if (docRow.dataset.documentClass === "Item") { return this.actor.items.get(docRow.dataset.itemId); } else if (docRow.dataset.documentClass === "ActiveEffect") { @@ -825,7 +868,6 @@ export class M6ActorSheet extends api.HandlebarsApplicationMixin(sheets.ActorShe const allowed = Hooks.call("dropItemSheetData", item, this, data); if (allowed === false) return; - // Handle different data types switch (data.type) { case "ActiveEffect": @@ -912,6 +954,11 @@ export class M6ActorSheet extends api.HandlebarsApplicationMixin(sheets.ActorShe /* -------------------------------------------------- */ + async _onDropItemCreate(actor, itemData) { + itemData = itemData instanceof Array ? itemData : [itemData]; + return actor.createEmbeddedDocuments("Item", itemData); + } + /** * Handle dropping of an item reference or item data onto an Actor Sheet. * @param {DragEvent} event The concluding DragEvent which contains drop data. @@ -922,9 +969,12 @@ export class M6ActorSheet extends api.HandlebarsApplicationMixin(sheets.ActorShe async _onDropItem(event, data) { if (!this.actor.isOwner) return false; - // Prüfen, ob das Item von diesem Actor stammt und Shift NICHT gedrückt ist - // Sortieren, nicht kopieren/verschieben - return this._onSortItem(event, data); + if (this.actor.items.get(data.itemId)) return this._onSortItem(event, data); + + const item = await Item.implementation.fromDropData(data); + const itemData = item.toObject(); + + return this._onDropItemCreate(this.actor, itemData); } /** @@ -948,7 +998,6 @@ export class M6ActorSheet extends api.HandlebarsApplicationMixin(sheets.ActorShe const siblingId = el.dataset.itemId; if (siblingId && siblingId !== source.id) siblings.push(items.get(siblingId)); } - // item = items.get(item.itemId); // Perform the sort const sortUpdates = foundry.utils.performIntegerSort(source, { diff --git a/src/sheets/components/character-prep.mjs b/src/sheets/components/character-prep.mjs index 8a8a5ce..49a8560 100644 --- a/src/sheets/components/character-prep.mjs +++ b/src/sheets/components/character-prep.mjs @@ -75,7 +75,10 @@ export async function prepSpells(actor) { export async function prepWeight(actor) { const items = actor.items.filter((x) => x.system.gewicht && !x.system.equipped); - let gewicht = items.reduce((accumulator, item) => accumulator + item.system.gewicht, 0); + let gewicht = items.reduce( + (accumulator, item) => accumulator + item.system.gewicht * item.system.anzahl, + 0 + ); let traglast = Math.max(actor.system.skills.körper.athletik.value, 10); return { diff --git a/src/sheets/hintergrund-sheet.mjs b/src/sheets/hintergrund-sheet.mjs new file mode 100644 index 0000000..fcb4132 --- /dev/null +++ b/src/sheets/hintergrund-sheet.mjs @@ -0,0 +1,60 @@ +import { prepareActiveEffectCategories } from "../helpers/utils.mjs"; +import { systemPath } from "../constants.mjs"; +import { M6ItemSheet } from "./item-sheet.mjs"; +const { api, sheets } = foundry.applications; + +/** + * Extend the basic ItemSheet with some very simple modifications. + */ +export class M6HintergrundSheet extends M6ItemSheet { + static get DEFAULT_OPTIONS() { + return { + ...super.DEFAULT_OPTIONS, // Kopiert alle bestehenden Actions aus M6ItemSheet + actions: { + ...super.DEFAULT_OPTIONS.actions + } + }; + } + + static TABS = { + primary: { + tabs: [ + { + id: "beschreibung", + icon: "fa-feather-pointed" + }, + { + id: "effects", + icon: "fa-bolt" + } + ], + initial: "beschreibung", + labelPrefix: "Midgard6.Sheets.Tabs" + } + }; + + /** @inheritdoc */ + static PARTS = { + header: { + template: systemPath("templates/hintergrund/header.hbs") + }, + tabs: { + template: systemPath("templates/shared/tabs.hbs") + }, + beschreibung: { + template: systemPath("templates/hintergrund/description.hbs"), + scrollable: [""] + }, + effects: { + template: systemPath("templates/shared/effects.hbs"), + scrollable: [""] + } + }; + + _addSpecifics(context) { + if (context.source.type === "legende") { + const schicksalsgaben = context.actor.items.filter((x) => x.type === "schicksalsgabe"); + context.schicksalsgaben = schicksalsgaben; + } + } +} diff --git a/src/sheets/item-sheet.mjs b/src/sheets/item-sheet.mjs index 3ae9a7c..81ebd72 100644 --- a/src/sheets/item-sheet.mjs +++ b/src/sheets/item-sheet.mjs @@ -120,6 +120,7 @@ export class M6ItemSheet extends api.HandlebarsApplicationMixin(sheets.ItemSheet itemFields: this.item.schema.fields, config: CONFIG }); + return context; } diff --git a/src/sheets/weapon-sheet.mjs b/src/sheets/weapon-sheet.mjs index f972e95..b63b5c0 100644 --- a/src/sheets/weapon-sheet.mjs +++ b/src/sheets/weapon-sheet.mjs @@ -60,8 +60,9 @@ export class M6WeaponSheet extends M6ItemSheet { } }; - _addSpecifics(context) { - context.bonuses = foundry.utils.getProperty(this.actor, this.item.system.fertigkeit).bonuses; + async _addSpecifics(context) { + context.bonuses = + foundry.utils.getProperty(this.actor, this.item.system.fertigkeit)?.bonuses || []; } static #cycleEquip() { diff --git a/src/sheets/zauber-sheet.mjs b/src/sheets/zauber-sheet.mjs index d2e6c4a..24bd9bb 100644 --- a/src/sheets/zauber-sheet.mjs +++ b/src/sheets/zauber-sheet.mjs @@ -54,7 +54,8 @@ export class M6ZauberSheet extends M6ItemSheet { async _addSpecifics(context) { context.zauberFields = await this._getFields(); - context.bonuses = foundry.utils.getProperty(this.actor, "system.skills.magie.zaubern").bonuses; + context.bonuses = + foundry.utils.getProperty(this.actor, "system.skills.magie.zaubern")?.bonuses || []; } static #cycleEquip() { diff --git a/src/styles/M6.scss b/src/styles/M6.scss index 19de550..c904ee4 100644 --- a/src/styles/M6.scss +++ b/src/styles/M6.scss @@ -4,6 +4,7 @@ @import url("./resistenzen.scss"); @import url("./dialog.scss"); @import url("./items-page.scss"); +@import url("./hintergrund.scss"); @import url("./icons.scss"); :root { @@ -38,6 +39,10 @@ i:hover { text-shadow: 0 0 10px var(--M6-background-brown); } + + prose-mirror.active { + background-color: var(--M6-background-white); + } } .application { diff --git a/src/styles/hintergrund.scss b/src/styles/hintergrund.scss new file mode 100644 index 0000000..591e896 --- /dev/null +++ b/src/styles/hintergrund.scss @@ -0,0 +1,33 @@ +.application.sheet.M6 { + .collapsible { + background-color: var(--M6-background-white); + cursor: pointer; + padding: 12px; + font-size: 15px; + margin-bottom: 4px; + display: flex; + justify-content: space-between; + + &.active { + background-color: var(--M6-background-brown); + box-shadow: none; + margin-bottom: 0px; + } + } + + /* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */ + + /* Style the collapsible content. Note: hidden by default */ + .content { + padding: 0 18px; + display: none; + width: 100%; + overflow: hidden; + background-color: var(--M6-background-white); + &.active { + display: block; + width: 100%; + margin-bottom: 4px; + } + } +} diff --git a/src/system.mjs b/src/system.mjs index b517eeb..6a24abf 100644 --- a/src/system.mjs +++ b/src/system.mjs @@ -3,11 +3,13 @@ import { WeaponData } from "./data/weapon-data.mjs"; import { ItemData } from "./data/item-data.mjs"; import { ArmorData } from "./data/armor-data.mjs"; import { ZauberData } from "./data/zauber-data.mjs"; +import { HintergrundData } from "./data/hintergrund-data.mjs"; import { M6ActorSheet } from "./sheets/character-sheet.mjs"; import { M6ItemSheet } from "./sheets/item-sheet.mjs"; import { M6WeaponSheet } from "./sheets/weapon-sheet.mjs"; import { M6ArmorSheet } from "./sheets/armor-sheet.mjs"; import { M6ZauberSheet } from "./sheets/zauber-sheet.mjs"; +import { M6HintergrundSheet } from "./sheets/hintergrund-sheet.mjs"; import { loadHelpers } from "./helpers/handlebar-helpers.mjs"; import "./styles/M6.scss"; @@ -27,6 +29,7 @@ Hooks.once("init", () => { CONFIG.Item.dataModels.weapon = WeaponData; CONFIG.Item.dataModels.armor = ArmorData; CONFIG.Item.dataModels.zauber = ZauberData; + CONFIG.Item.dataModels.hintergrund = HintergrundData; foundry.applications.apps.DocumentSheetConfig.registerSheet(Actor, "midgard6-lvd", M6ActorSheet, { types: ["character"], @@ -45,6 +48,38 @@ Hooks.once("init", () => { foundry.applications.apps.DocumentSheetConfig.registerSheet(Item, "midgard6-lvd", M6ZauberSheet, { types: ["zauber"] }); + foundry.applications.apps.DocumentSheetConfig.registerSheet( + Item, + "midgard6-lvd", + M6HintergrundSheet, + { + types: ["gunst"] + } + ); + foundry.applications.apps.DocumentSheetConfig.registerSheet( + Item, + "midgard6-lvd", + M6HintergrundSheet, + { + types: ["makel"] + } + ); + foundry.applications.apps.DocumentSheetConfig.registerSheet( + Item, + "midgard6-lvd", + M6HintergrundSheet, + { + types: ["schicksalsgabe"] + } + ); + foundry.applications.apps.DocumentSheetConfig.registerSheet( + Item, + "midgard6-lvd", + M6HintergrundSheet, + { + types: ["legende"] + } + ); loadHelpers(); }); diff --git a/src/templates/actor/biographie.hbs b/src/templates/actor/biographie.hbs new file mode 100644 index 0000000..898130a --- /dev/null +++ b/src/templates/actor/biographie.hbs @@ -0,0 +1,31 @@ +{{! Beschreibung Allgemein Tab }} +
+
+
+ {{! Editors must receive enriched text data from getData to properly handle rolls, UUID links, etc. }} +
+
+ {{localize "Midgard6.Item.Description"}} + {{#if editable}} + + {{{enrichedBeschreibung}}} + + {{else}} + {{{enrichedBeschreibung}}} + {{/if}} +
+
+
+
+
\ No newline at end of file diff --git a/src/templates/actor/eigenschaften.hbs b/src/templates/actor/eigenschaften.hbs index 5c7a53d..699da4f 100644 --- a/src/templates/actor/eigenschaften.hbs +++ b/src/templates/actor/eigenschaften.hbs @@ -1,7 +1,7 @@
@@ -147,6 +147,28 @@
+
+
+ {{localize "Midgard6.Schicksalsmünzen"}} +
+ +
+
    +
  • Misserfolg geringer Erfolg
  • +
  • Würfelwurf wiederholen
  • +
  • Geistesblitz
  • +
  • Mitspielende belohnen
  • +
+
+
+
+
{{localize "Midgard6.Item.type.weapon.plural" }} @@ -191,15 +213,17 @@
-
+
- {{armor.rüstwert}} + {{armor.rüstwert}}
{{/each}} -

{{localize "Midgard6.Item.einschränkung"}}

-

{{splitArray armor.einschränkungen}}

+ {{#if armor.einschränkungen}} +

{{localize "Midgard6.Item.einschränkung"}}

+

{{splitArray armor.einschränkungen}}

+ {{/if}} diff --git a/src/templates/actor/header.hbs b/src/templates/actor/header.hbs index e77986d..2c5db0a 100644 --- a/src/templates/actor/header.hbs +++ b/src/templates/actor/header.hbs @@ -3,8 +3,8 @@
- - + +
- - - + + +
diff --git a/src/templates/actor/hintergrund.hbs b/src/templates/actor/hintergrund.hbs new file mode 100644 index 0000000..25f3213 --- /dev/null +++ b/src/templates/actor/hintergrund.hbs @@ -0,0 +1,266 @@ +{{! Beschreibung Allgemein Tab }} +
+
+
+
+
+ {{localize "Midgard6.Grad.grad"}} +
+ +

{{localize + "Midgard6.Grad.erfahrung" + }}

+
+ + +
+

+

+
+ + +
+ +

=

+
+ + +
+ +
+
+
+ +
+
+ {{localize "Midgard6.Hintergrund.type.gunst.singular"}} + & + {{localize "Midgard6.Hintergrund.type.makel.singular"}} +
+
+ {{#with itemTypes.gunst}} + {{#each this.items as |gunst|}} +
{{gunst.name}} +
+ + {{#if @root.editable}} + + + + {{/if}} +
+
+ +
+ {{{gunst.system.beschreibung}}} +
+ {{/each}} + {{/with}} +
+
+ {{#with itemTypes.makel}} + {{#each this.items as |makel|}} +
{{makel.name}} +
+ + {{#if @root.editable}} + + + + {{/if}} +
+
+
+ {{{makel.system.beschreibung}}} +
+ {{/each}} + {{/with}} +
+
+
+
+ +
+
+ {{localize "Midgard6.Hintergrund.type.legende.plural"}} +
+
+ {{#with itemTypes.legende}} +
+
+ {{#if @root.editable}} + + + {{localize "DOCUMENT.Create" type=this.label}} + + {{/if}} +
+
+ {{#each this.items as |legende|}} +
{{legende.name}} +
+ + + + + {{#if @root.editable}} + + + + {{/if}} +
+
+ +
+ {{{legende.system.beschreibung}}} +
+ {{/each}} + {{/with}} +
+
+
+
+ +
+
+ {{localize "Midgard6.Hintergrund.type.schicksalsgabe.plural"}} +
+
+ {{#with itemTypes.schicksalsgabe}} +
+
+ {{#if @root.editable}} + + + {{localize "DOCUMENT.Create" type=this.label}} + + {{/if}} +
+
+ {{#each this.items as |schicksalsgabe|}} +
{{schicksalsgabe.name}} +
+ + {{#if @root.editable}} + + + + {{/if}} +
+
+ +
+ {{{gunst.system.beschreibung}}} +
+ {{/each}} + {{/with}} +
+
+
+
+
+
+
\ No newline at end of file diff --git a/src/templates/hintergrund/description.hbs b/src/templates/hintergrund/description.hbs new file mode 100644 index 0000000..1427d59 --- /dev/null +++ b/src/templates/hintergrund/description.hbs @@ -0,0 +1,25 @@ +{{! Beschreibung Allgemein Tab }} +
+ {{! Editors must receive enriched text data from getData to properly handle rolls, UUID links, etc. }} +
+ {{localize "Midgard6.Item.Description"}} + {{#if editable}} + + {{{enrichedBeschreibung}}} + + {{else}} + {{{enrichedBeschreibung}}} + {{/if}} +
+
\ No newline at end of file diff --git a/src/templates/hintergrund/header.hbs b/src/templates/hintergrund/header.hbs new file mode 100644 index 0000000..1fc36bc --- /dev/null +++ b/src/templates/hintergrund/header.hbs @@ -0,0 +1,46 @@ +
+
+
+ {{item.name}} +
+ +
+
+
+
+
+
+ +
+
+ +
+ +
+
+
\ No newline at end of file diff --git a/src/templates/item/description.hbs b/src/templates/item/description.hbs index a61840e..1427d59 100644 --- a/src/templates/item/description.hbs +++ b/src/templates/item/description.hbs @@ -1,6 +1,6 @@ {{! Beschreibung Allgemein Tab }}
{{{enrichedBeschreibung}}} diff --git a/src/templates/item/waffen/eigenschaften.hbs b/src/templates/item/waffen/eigenschaften.hbs index 6634bc0..6aaf74a 100644 --- a/src/templates/item/waffen/eigenschaften.hbs +++ b/src/templates/item/waffen/eigenschaften.hbs @@ -47,15 +47,16 @@ diff --git a/src/templates/zauber/header.hbs b/src/templates/zauber/header.hbs index 78f0b02..eaaae57 100644 --- a/src/templates/zauber/header.hbs +++ b/src/templates/zauber/header.hbs @@ -20,7 +20,7 @@ placeholder="Kleiner Zauber/ Zaubersalz" /> {{#each bonuses as |bonus|}} - {{/each}} diff --git a/src/types/data-config.d.mjs b/src/types/data-config.d.mjs index a61185a..ac36a35 100644 --- a/src/types/data-config.d.mjs +++ b/src/types/data-config.d.mjs @@ -2,11 +2,17 @@ import { CharacterData } from "../data/character-data"; import { ItemData } from "../data/item-data"; import { WeaponData } from "../data/weapon-data"; import { ArmorData } from "../data/armor-data"; -import {ZauberrData } from "../data/zauber-data"; +import {ZauberData } from "../data/zauber-data"; +import {HintergrundData } from "../data/hintergrund-data"; declare module "fvtt-types/configuration" { interface DataModelConfig { Actor: { character: typeof CharacterData }; - Item: { item: typeof ItemData, weapon: typeof WeaponData, armor: typeof ArmorData, zauber: typeof ZauberData }; + Item: { + item: typeof ItemData, + weapon: typeof WeaponData, + armor: typeof ArmorData, + zauber: typeof ZauberData + hintergrund: typeof HintergrundData }; } } diff --git a/system.json b/system.json index c658f82..e72f494 100644 --- a/system.json +++ b/system.json @@ -36,7 +36,11 @@ "item": {}, "weapon": {}, "armor": {}, - "zauber": {} + "zauber": {}, + "gunst": {}, + "makel": {}, + "schicksalsgabe": {}, + "legende": {} } }, "compatibility": {