From 7ea6b4a2e05a79fdb4ba06b5cf04a23999c794b2 Mon Sep 17 00:00:00 2001 From: macniel Date: Wed, 15 Oct 2025 20:19:59 +0200 Subject: [PATCH] Fixes styling of attack-statistics and visibility of different statistics base on the nature of the given skill --- src/module/sheets/skillSheet.mjs | 8 ++++---- src/style/_skill-sheet.scss | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/module/sheets/skillSheet.mjs b/src/module/sheets/skillSheet.mjs index 07654deb..3ea4f5d9 100644 --- a/src/module/sheets/skillSheet.mjs +++ b/src/module/sheets/skillSheet.mjs @@ -69,10 +69,10 @@ export class SkillSheet extends HandlebarsApplicationMixin(DocumentSheetV2) { Handwerk: "Handwerk" } - 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 + context.isCombat = skillData.system.gruppe === "Kampf" + context.isTalent = skillData.system.gruppe !== "Kampf" + context.isLanguage = skillData.system.gruppe === "Sprachen" || skillData.system.gruppe === "Schriften" + context.hasRequirement = skillData.system.voraussetzung?.talent != null ?? false return context; } diff --git a/src/style/_skill-sheet.scss b/src/style/_skill-sheet.scss index 211e3949..f1e621e5 100644 --- a/src/style/_skill-sheet.scss +++ b/src/style/_skill-sheet.scss @@ -42,6 +42,7 @@ grid-area: attack; display: flex; flex-direction: row; + gap: 16px; } }