From b2719c5c15d36526e6a727781267f035b6cbeb48 Mon Sep 17 00:00:00 2001 From: macniel Date: Wed, 29 Jul 2026 11:28:43 +0200 Subject: [PATCH] fix: fixes #89 by merging modificator with value of derived attributes --- src/module/xml-import/xml-import.mjs | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/module/xml-import/xml-import.mjs b/src/module/xml-import/xml-import.mjs index 1e4b512c..c17f95e8 100644 --- a/src/module/xml-import/xml-import.mjs +++ b/src/module/xml-import/xml-import.mjs @@ -240,19 +240,24 @@ export class XmlImport { json.attribute.ko = this.#getAttributeJson(attributes, "Konstitution") json.attribute.kk = this.#getAttributeJson(attributes, "Körperkraft") json.mr = { - mod: this.#filterAttribute(attributes, "Magieresistenz").mod + mod: Number(this.#filterAttribute(attributes, "Magieresistenz").mod) + + Number(this.#filterAttribute(attributes, "Magieresistenz").value) // bought points } json.lep = { - mod: this.#filterAttribute(attributes, "Lebensenergie").mod + mod: Number(this.#filterAttribute(attributes, "Lebensenergie").mod) + + Number(this.#filterAttribute(attributes, "Lebensenergie").value) // bought points } json.aup = { - mod: this.#filterAttribute(attributes, "Ausdauer").mod + mod: Number(this.#filterAttribute(attributes, "Ausdauer").mod) + + Number(this.#filterAttribute(attributes, "Ausdauer").value) // bought points } json.asp = { - mod: this.#filterAttribute(attributes, "Astralenergie").mod + mod: Number(this.#filterAttribute(attributes, "Astralenergie").mod) + + Number(this.#filterAttribute(attributes, "Astralenergie").value) // bought points } json.kap = { - mod: this.#filterAttribute(attributes, "Karmaenergie").mod + mod: Number(this.#filterAttribute(attributes, "Karmaenergie").mod) + + Number(this.#filterAttribute(attributes, "Karmaenergie").value) // bought points } let attribute = this.#filterAttribute(attributes, "ini") json.ini = {