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

View File

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

View File

@ -69,6 +69,16 @@ export class CreatureSheet extends HandlebarsApplicationMixin(ActorSheetV2) {
return tabs
}
_configureRenderOptions(options) {
super._configureRenderOptions(options)
if (options.window) {
options.window.title = this.document.name
}
return options
}
/**
* Handle form submission
* @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
* @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
* @this {EquipmentSheet}

View File

@ -57,6 +57,16 @@ export class GroupSheet extends HandlebarsApplicationMixin(ActorSheetV2) {
super(options);
}
_configureRenderOptions(options) {
super._configureRenderOptions(options)
if (options.window) {
options.window.title = this.document.name
}
return options
}
/**
* Handle form submission
* @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
* @this {EquipmentSheet}

View File

@ -59,6 +59,16 @@ export class MerchantSheet extends HandlebarsApplicationMixin(ActorSheetV2) {
super(options);
}
_configureRenderOptions(options) {
super._configureRenderOptions(options)
if (options.window) {
options.window.title = this.document.name
}
return options
}
/**
* Handle form submission
* @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
* @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
* @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
* @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
* @this {SpellSheet}