fix: fixes #89 by merging modificator with value of derived attributes

main
macniel 2026-07-29 11:28:43 +02:00
parent 3e4d623352
commit b2719c5c15
1 changed files with 10 additions and 5 deletions

View File

@ -240,19 +240,24 @@ export class XmlImport {
json.attribute.ko = this.#getAttributeJson(attributes, "Konstitution") json.attribute.ko = this.#getAttributeJson(attributes, "Konstitution")
json.attribute.kk = this.#getAttributeJson(attributes, "Körperkraft") json.attribute.kk = this.#getAttributeJson(attributes, "Körperkraft")
json.mr = { 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 = { 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 = { 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 = { 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 = { 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") let attribute = this.#filterAttribute(attributes, "ini")
json.ini = { json.ini = {