export class SkillSheet extends foundry.appv1.sheets.ItemSheet {
    /**@override */
    static get defaultOptions() {
        return foundry.utils.mergeObject(super.defaultOptions, {
            classes: ['dsa41', 'sheet', 'item', 'skill'],
            width: 520,
            height: 480,
            tabs: [
                {
                    navSelector: '.sheet-tabs',
                    contentSelector: '.sheet-body',
                    initial: 'meta',
                },
            ],
        });
    }

    /** @override */
    get template() {
        return `systems/DSA_4-1/templates/item/item-skill-sheet.hbs`;
    }

    /** @override */
    getData() {
        // Retrieve the data structure from the base sheet. You can inspect or log
        // the context variable to see the structure, but some key properties for
        // sheets are the actor object, the data object, whether or not it's
        // editable, the items array, and the effects array.
        const context = super.getData();

        // Use a safe clone of the actor data for further operations.
        const skillData = context.data;

        // 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 = {
            Kampf: "Kampf",
            Körperlich: "Körperlich",
            Gesellschaft: "Gesellschaft",
            Natur: "Natur",
            Wissen: "Wissen",
            Sprachen: "Sprachen",
            Schriften: "Schriften",
            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

        return context;
    }

    activateListeners(html) {
        super.activateListeners(html);

        // Everything below here is only needed if the sheet is editable
        if (!this.isEditable) {

        }
    }

}