From dac37eeaa1cdb71b2c2c8c18e10b0255ab9c0246 Mon Sep 17 00:00:00 2001 From: Johannes Loher Date: Sun, 7 Feb 2021 12:29:15 +0100 Subject: [PATCH] Remove unused import --- src/module/actor/sheets/actor-sheet.ts | 1 - src/module/ds4.ts | 8 -------- 2 files changed, 9 deletions(-) diff --git a/src/module/actor/sheets/actor-sheet.ts b/src/module/actor/sheets/actor-sheet.ts index e0308546..8d373def 100644 --- a/src/module/actor/sheets/actor-sheet.ts +++ b/src/module/actor/sheets/actor-sheet.ts @@ -2,7 +2,6 @@ import { DS4 } from "../../config"; import { DS4Item } from "../../item/item"; import { DS4ItemData } from "../../item/item-data"; import { DS4Actor } from "../actor"; -import { DS4ActorData } from "../actor-data"; /** * The base Sheet class for all DS4 Actors diff --git a/src/module/ds4.ts b/src/module/ds4.ts index 7591960b..2f825cfc 100644 --- a/src/module/ds4.ts +++ b/src/module/ds4.ts @@ -1,4 +1,3 @@ -// Import Modules import { DS4Actor } from "./actor/actor"; import { DS4Item } from "./item/item"; import { DS4ItemSheet } from "./item/item-sheet"; @@ -21,25 +20,19 @@ Hooks.once("init", async function () { migration, }; - // Record configuration CONFIG.DS4 = DS4; - // Define custom Entity classes CONFIG.Actor.entityClass = DS4Actor; CONFIG.Item.entityClass = DS4Item; - // Define localized type labels CONFIG.Actor.typeLabels = DS4.i18n.actorTypes; CONFIG.Item.typeLabels = DS4.i18n.itemTypes; - // Configure Dice CONFIG.Dice.types.push(DS4Check); CONFIG.Dice.terms.s = DS4Check; - // Register system settings registerSystemSettings(); - // Register sheet application classes Actors.unregisterSheet("core", ActorSheet); Actors.registerSheet("ds4", DS4CharacterActorSheet, { types: ["character"], makeDefault: true }); Actors.registerSheet("ds4", DS4CreatureActorSheet, { types: ["creature"], makeDefault: true }); @@ -76,7 +69,6 @@ async function registerHandlebarsPartials() { * This function runs after game data has been requested and loaded from the servers, so entities exist */ Hooks.once("setup", function () { - // Exclude some from sorting where the default order matters const noSort = ["attributes", "traits", "combatValues", "creatureSizeCategories"]; // Localize and sort CONFIG objects