fixes import
parent
957ce31eb1
commit
b42bb8caca
|
|
@ -264,7 +264,7 @@ class CharacterSheet extends HandlebarsApplicationMixin(ActorSheetV2) {
|
|||
context.spezies = ""
|
||||
if (actorData.itemTypes["Species"]?.[0]) {
|
||||
const speciesData = actorData.itemTypes["Species"][0]
|
||||
if (actorData.system.geschlecht === "männlich") {
|
||||
if (actorData.system.meta.geschlecht === "männlich") {
|
||||
context.spezies = speciesData.system.masculineDemonym
|
||||
} else {
|
||||
context.spezies = speciesData.system.feminineDemonym
|
||||
|
|
|
|||
|
|
@ -599,8 +599,8 @@ export class XmlImport {
|
|||
actor.items.get(s._id).delete()
|
||||
})
|
||||
}
|
||||
const compendiumOfSpecies = game.packs.get('DSA_4-1.spezien');
|
||||
const speciesId = compendiumOfSpecies?.index.find(species => species.name === spezies.name)
|
||||
const compendiumOfSpecies = game.packs.get('DSA_4-1.Species');
|
||||
const speciesId = compendiumOfSpecies?.index.find(species => species.name === spezies.name)?._id
|
||||
|
||||
if (speciesId) {
|
||||
const species =
|
||||
|
|
@ -631,8 +631,8 @@ export class XmlImport {
|
|||
actor.items.get(c._id).delete()
|
||||
})
|
||||
}
|
||||
const compendiumOfCultures = game.packs.get('DSA_4-1.kulturen');
|
||||
const cultureId = compendiumOfCultures?.index.find(culture => culture.name === kultur.name)
|
||||
const compendiumOfCultures = game.packs.get('DSA_4-1.Cultures');
|
||||
const cultureId = compendiumOfCultures?.index.find(culture => culture.name === kultur.name)?._id
|
||||
|
||||
if (cultureId) {
|
||||
const culture =
|
||||
|
|
|
|||
Loading…
Reference in New Issue