fixes typos and stuff

feature/applicationv2
macniel 2025-10-15 16:24:35 +02:00
parent 64ae1b44b5
commit 232347aae5
2 changed files with 5 additions and 11 deletions

View File

@ -14,8 +14,6 @@ export class SkillSheet extends HandlebarsApplicationMixin(DocumentSheetV2) {
}
}
// MIGRATE to tabs
static TABS = {
sheet: {
tabs: [
@ -56,11 +54,8 @@ export class SkillSheet extends HandlebarsApplicationMixin(DocumentSheetV2) {
async _prepareContext(options) {
const context = await super._prepareContext(options)
// Use a safe clone of the actor data for further operations.
const skillData = context.document;
// Add the actor's data to context.data for easier access, as well as flags.
context.system = skillData.system;
context.flags = skillData.flags;
context.categoryOptions = {
@ -74,12 +69,11 @@ export class SkillSheet extends HandlebarsApplicationMixin(DocumentSheetV2) {
Handwerk: "Handwerk"
}
context.isCombat = context.system.gruppe === "Kampf"
context.isTalent = context.system.gruppe !== "Kampf"
context.isLanguage = context.system.gruppe === "Sprachen" || context.system.gruppe === "Schriften"
context.hasRequirement = context.system.voraussetzung?.talent != null ?? false
context.isCombat = skillData.gruppe === "Kampf"
context.isTalent = skillData.gruppe !== "Kampf"
context.isLanguage = skillData.gruppe === "Sprachen" || skillData.gruppe === "Schriften"
context.hasRequirement = skillData.voraussetzung?.talent != null ?? false
return context;
}
}

View File

@ -45,7 +45,7 @@
</div>
{{#if isLanguage}}
<div class="language-statistics">
<label>Sprachenkomplexizität
<label>Sprachenkomplexität
<input type="text" name="system.komplexität" value="{{system.komplexität}}"/>
</label>
</div>