removes strange loca key

pull/64/head
macniel 2025-10-31 14:07:04 +01:00
parent 6dec43c1b2
commit 517bd2f50b
15 changed files with 142 additions and 16 deletions

View File

@ -18,15 +18,15 @@ import {LiturgyDataModel} from "./module/data/liturgy.mjs";
import {BlessingDataModel} from "./module/data/blessing.mjs"; import {BlessingDataModel} from "./module/data/blessing.mjs";
import {SpecialAbilityDataModel} from "./module/data/specialAbility.mjs"; import {SpecialAbilityDataModel} from "./module/data/specialAbility.mjs";
import {SpecialAbilitySheet} from "./module/sheets/specialAbilitySheet.mjs"; import {SpecialAbilitySheet} from "./module/sheets/specialAbilitySheet.mjs";
import {ActiveEffectSheet} from "./module/sheets/ActiveEffectSheet.mjs"; import {ActiveEffectSheet} from "./module/sheets/activeEffectSheet.mjs";
import {ActiveEffectDataModel} from "./module/data/activeeffect.mjs"; import {ActiveEffectDataModel} from "./module/data/activeeffect.mjs";
import {Trefferzone, Wunde, Zonenruestung, Zonenwunde} from "./module/data/Trefferzone.js"; import {Trefferzone, Wunde, Zonenruestung, Zonenwunde} from "./module/data/Trefferzone.js";
import {ProfessionDataModel} from "./module/data/profession.mjs"; import {ProfessionDataModel} from "./module/data/profession.mjs";
import {SpeciesDataModel} from "./module/data/species.mjs"; import {SpeciesDataModel} from "./module/data/species.mjs";
import {CultureDataModel} from "./module/data/culture.mjs"; import {CultureDataModel} from "./module/data/culture.mjs";
import {CultureSheet} from "./module/sheets/CultureSheet.mjs"; import {CultureSheet} from "./module/sheets/cultureSheet.mjs";
import {SpeciesSheet} from "./module/sheets/SpeciesSheet.mjs"; import {SpeciesSheet} from "./module/sheets/SpeciesSheet.mjs";
import {ProfessionSheet} from "./module/sheets/ProfessionSheet.mjs"; import {ProfessionSheet} from "./module/sheets/professionSheet.mjs";
import {XmlImportDialog} from "./module/dialog/xmlImportDialog.mjs"; import {XmlImportDialog} from "./module/dialog/xmlImportDialog.mjs";
import {MerchantDataModel} from "./module/data/merchant.mjs"; import {MerchantDataModel} from "./module/data/merchant.mjs";
import {MerchantSheet} from "./module/sheets/merchantSheet.mjs"; import {MerchantSheet} from "./module/sheets/merchantSheet.mjs";
@ -167,52 +167,42 @@ Hooks.once("init", () => {
foundry.documents.collections.Actors.registerSheet('dsa41.character', CharacterSheet, { foundry.documents.collections.Actors.registerSheet('dsa41.character', CharacterSheet, {
types: ["character"], types: ["character"],
makeDefault: true, makeDefault: true,
label: 'DSA41.CharacterLabels.Item'
}) })
foundry.documents.collections.Actors.registerSheet('dsa41.creature', CreatureSheet, { foundry.documents.collections.Actors.registerSheet('dsa41.creature', CreatureSheet, {
types: ["creature"], types: ["creature"],
makeDefault: true, makeDefault: true,
label: 'DSA41.CreatureLabel.Item'
}) })
foundry.documents.collections.Actors.registerSheet('dsa41.group', GroupSheet, { foundry.documents.collections.Actors.registerSheet('dsa41.group', GroupSheet, {
types: ["group"], types: ["group"],
makeDefault: true, makeDefault: true,
label: 'DSA41.GroupLabel.Item'
}) })
foundry.documents.collections.Items.registerSheet('dsa41.skill', SkillSheet, { foundry.documents.collections.Items.registerSheet('dsa41.skill', SkillSheet, {
types: ["Skill"], types: ["Skill"],
makeDefault: true, makeDefault: true,
label: 'DSA41.SkillLabels.Item',
}); });
foundry.documents.collections.Items.registerSheet('dsa41.spell', SpellSheet, { foundry.documents.collections.Items.registerSheet('dsa41.spell', SpellSheet, {
types: ["Spell"], types: ["Spell"],
makeDefault: true, makeDefault: true,
label: 'DSA41.SpellLabels.Item',
}); });
foundry.documents.collections.Items.registerSheet('dsa41.advantage', AdvantageSheet, { foundry.documents.collections.Items.registerSheet('dsa41.advantage', AdvantageSheet, {
types: ["Advantage"], types: ["Advantage"],
makeDefault: true, makeDefault: true,
label: 'DSA41.VornachteilLabels.Item'
}) })
foundry.documents.collections.Items.registerSheet('dsa41.equipment', EquipmentSheet, { foundry.documents.collections.Items.registerSheet('dsa41.equipment', EquipmentSheet, {
types: ["Equipment"], types: ["Equipment"],
makeDefault: false, makeDefault: false,
label: 'DSA41.AusruestungLabels.Item'
}) })
foundry.documents.collections.Items.registerSheet('dsa41.liturgy', LiturgySheet, { foundry.documents.collections.Items.registerSheet('dsa41.liturgy', LiturgySheet, {
types: ["Liturgy"], types: ["Liturgy"],
makeDefault: true, makeDefault: true,
label: 'DSA41.LiturgyLabels.Item'
}) })
foundry.documents.collections.Items.registerSheet('dsa41.specialAbility', SpecialAbilitySheet, { foundry.documents.collections.Items.registerSheet('dsa41.specialAbility', SpecialAbilitySheet, {
types: ["SpecialAbility"], types: ["SpecialAbility"],
makeDefault: true, makeDefault: true,
label: 'DSA41.SpecialAbilityLabels.Item'
}) })
foundry.documents.collections.Items.registerSheet('dsa41.activeEffect', ActiveEffectSheet, { foundry.documents.collections.Items.registerSheet('dsa41.activeEffect', ActiveEffectSheet, {
types: ['ActiveEffect'], types: ['ActiveEffect'],
makeDefault: true, makeDefault: true,
label: 'DSA41.ActiveEffectLabels.ActiveEffect'
}) })
foundry.documents.collections.Items.registerSheet('dsa41.culture', CultureSheet, { foundry.documents.collections.Items.registerSheet('dsa41.culture', CultureSheet, {
types: ['Culture'], types: ['Culture'],
@ -222,17 +212,14 @@ Hooks.once("init", () => {
foundry.documents.collections.Items.registerSheet('dsa41.spezien', SpeciesSheet, { foundry.documents.collections.Items.registerSheet('dsa41.spezien', SpeciesSheet, {
types: ['Species'], types: ['Species'],
makeDefault: true, makeDefault: true,
label: 'DSA41.SpeciesLabels.Species'
}) })
foundry.documents.collections.Items.registerSheet('dsa41.profession', ProfessionSheet, { foundry.documents.collections.Items.registerSheet('dsa41.profession', ProfessionSheet, {
types: ['Profession'], types: ['Profession'],
makeDefault: true, makeDefault: true,
label: 'DSA41.ProfessionLabels.Profession'
}) })
foundry.documents.collections.Actors.registerSheet('dsa41.merchant', MerchantSheet, { foundry.documents.collections.Actors.registerSheet('dsa41.merchant', MerchantSheet, {
types: ['Merchant'], types: ['Merchant'],
makeDefault: true, makeDefault: true,
label: 'DSA41.MerchantLabels.MerchantLabel'
}) })
game.settings.register('DSA_4-1', 'optional_colorfuldice', { game.settings.register('DSA_4-1', 'optional_colorfuldice', {

View File

@ -24,6 +24,16 @@ export class SpeciesSheet extends HandlebarsApplicationMixin(DocumentSheetV2) {
}, },
} }
_configureRenderOptions(options) {
super._configureRenderOptions(options)
if (options.window) {
options.window.title = this.document.name
}
return options
}
/** /**
* Handle form submission * Handle form submission
* @this {SpeciesSheet} * @this {SpeciesSheet}

View File

@ -32,6 +32,16 @@ export class ActiveEffectSheet extends HandlebarsApplicationMixin(DocumentSheetV
effect.sheet.render(true) effect.sheet.render(true)
} }
_configureRenderOptions(options) {
super._configureRenderOptions(options)
if (options.window) {
options.window.title = this.document.name
}
return options
}
/** /**
* Handle form submission * Handle form submission
* @this {AdvantageSheet} * @this {AdvantageSheet}

View File

@ -33,6 +33,16 @@ export class AdvantageSheet extends HandlebarsApplicationMixin(DocumentSheetV2)
} }
} }
_configureRenderOptions(options) {
super._configureRenderOptions(options)
if (options.window) {
options.window.title = this.document.name
}
return options
}
/** /**
* Handle form submission * Handle form submission
* @this {AdvantageSheet} * @this {AdvantageSheet}

View File

@ -239,6 +239,15 @@ class CharacterSheet extends HandlebarsApplicationMixin(ActorSheetV2) {
} }
_configureRenderOptions(options) {
super._configureRenderOptions(options)
if (options.window) {
options.window.title = this.document.name
}
return options
}
/** /**
* Handle form submission * Handle form submission

View File

@ -69,6 +69,16 @@ export class CreatureSheet extends HandlebarsApplicationMixin(ActorSheetV2) {
return tabs return tabs
} }
_configureRenderOptions(options) {
super._configureRenderOptions(options)
if (options.window) {
options.window.title = this.document.name
}
return options
}
/** /**
* Handle form submission * Handle form submission
* @this {AdvantageSheet} * @this {AdvantageSheet}

View File

@ -24,6 +24,16 @@ export class CultureSheet extends HandlebarsApplicationMixin(DocumentSheetV2) {
}, },
} }
_configureRenderOptions(options) {
super._configureRenderOptions(options)
if (options.window) {
options.window.title = this.document.name
}
return options
}
/** /**
* Handle form submission * Handle form submission
* @this {CultureSheet} * @this {CultureSheet}

View File

@ -73,6 +73,16 @@ export class EquipmentSheet extends HandlebarsApplicationMixin(DocumentSheetV2)
} }
_configureRenderOptions(options) {
super._configureRenderOptions(options)
if (options.window) {
options.window.title = this.document.name
}
return options
}
/** /**
* Handle form submission * Handle form submission
* @this {EquipmentSheet} * @this {EquipmentSheet}

View File

@ -57,6 +57,16 @@ export class GroupSheet extends HandlebarsApplicationMixin(ActorSheetV2) {
super(options); super(options);
} }
_configureRenderOptions(options) {
super._configureRenderOptions(options)
if (options.window) {
options.window.title = this.document.name
}
return options
}
/** /**
* Handle form submission * Handle form submission
* @this {AdvantageSheet} * @this {AdvantageSheet}

View File

@ -38,6 +38,16 @@ export class LiturgySheet extends HandlebarsApplicationMixin(DocumentSheetV2) {
} }
} }
_configureRenderOptions(options) {
super._configureRenderOptions(options)
if (options.window) {
options.window.title = this.document.name
}
return options
}
/** /**
* Handle form submission * Handle form submission
* @this {EquipmentSheet} * @this {EquipmentSheet}

View File

@ -59,6 +59,16 @@ export class MerchantSheet extends HandlebarsApplicationMixin(ActorSheetV2) {
super(options); super(options);
} }
_configureRenderOptions(options) {
super._configureRenderOptions(options)
if (options.window) {
options.window.title = this.document.name
}
return options
}
/** /**
* Handle form submission * Handle form submission
* @this {AdvantageSheet} * @this {AdvantageSheet}

View File

@ -24,6 +24,16 @@ export class ProfessionSheet extends HandlebarsApplicationMixin(DocumentSheetV2)
}, },
} }
_configureRenderOptions(options) {
super._configureRenderOptions(options)
if (options.window) {
options.window.title = this.document.name
}
return options
}
/** /**
* Handle form submission * Handle form submission
* @this {ProfessionSheet} * @this {ProfessionSheet}

View File

@ -37,6 +37,16 @@ export class SkillSheet extends HandlebarsApplicationMixin(DocumentSheetV2) {
} }
} }
_configureRenderOptions(options) {
super._configureRenderOptions(options)
if (options.window) {
options.window.title = this.document.name
}
return options
}
/** /**
* Handle form submission * Handle form submission
* @this {SkillSheet} * @this {SkillSheet}

View File

@ -34,6 +34,16 @@ export class SpecialAbilitySheet extends HandlebarsApplicationMixin(DocumentShee
}, },
} }
_configureRenderOptions(options) {
super._configureRenderOptions(options)
if (options.window) {
options.window.title = this.document.name
}
return options
}
/** /**
* Handle form submission * Handle form submission
* @this {EquipmentSheet} * @this {EquipmentSheet}

View File

@ -42,6 +42,16 @@ export class SpellSheet extends HandlebarsApplicationMixin(DocumentSheetV2) {
} }
} }
_configureRenderOptions(options) {
super._configureRenderOptions(options)
if (options.window) {
options.window.title = this.document.name
}
return options
}
/** /**
* Handle form submission * Handle form submission
* @this {SpellSheet} * @this {SpellSheet}