import Shadowrun6ActorSheet from "./SR6ActorSheet.js";
/**
 * Extend the basic ActorSheet with some very simple modifications
 * @extends {ActorSheet}
 */
export default class Shadowrun6ActorSheetNPC extends Shadowrun6ActorSheet {
    /** @override */
    static get defaultOptions() {
        return foundry.utils.mergeObject(super.defaultOptions, {
            classes: ["shadowrun6", "sheet", "actor", "npc"],
            template: "systems/shadowrun-de/templates/actor/shadowrun6-NPC-sheet.html",
            width: null,
            height: 600,
            tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "overview" }],
            scrollY: [".items", ".attributes"],
            dragDrop: [{ dragSelector: ".item-list .item", dropSelector: null }]
        });
    }

    /** @overrride */
    async getData() {
        let data = await super.getData();
        console.log("SR6E | Shadowrun6ActorSheetNPC | getData()");
        if (this.token)
            data.gruntGroup = this.actor.gruntGroup;
        // Not sure yet if we need to display the whole grunt group tokens
        // if (data.gruntGroupId)
        //     data.gruntGroup = canvas.scene.tokens.filter((tokenDoc) => tokenDoc.getFlag(game.system.id, 'GruntGroupId') === data.gruntGroupId);
        
        return data;
    }

}