Add vehicle sheet code

This commit is contained in:
TakeV 2023-11-28 17:34:16 -05:00
parent a8e44fdde3
commit 4ac2be50e9
Signed by: TakeV
GPG key ID: A64F41345C7400AF

View file

@ -18,6 +18,7 @@ import { BladesCrewSheet } from "./blades-crew-sheet.js";
import { BladesClockSheet } from "./blades-clock-sheet.js"; import { BladesClockSheet } from "./blades-clock-sheet.js";
import { BladesNPCSheet } from "./blades-npc-sheet.js"; import { BladesNPCSheet } from "./blades-npc-sheet.js";
import { BladesFactionSheet } from "./blades-faction-sheet.js"; import { BladesFactionSheet } from "./blades-faction-sheet.js";
import { BeamVehicleSheet } from "./beam-vehicle-sheet.js";
import * as migrations from "./migration.js"; import * as migrations from "./migration.js";
window.BladesHelpers = BladesHelpers; window.BladesHelpers = BladesHelpers;
@ -49,6 +50,7 @@ Hooks.once("init", async function() {
Actors.registerSheet("blades", BladesFactionSheet, { types: ["factions"], makeDefault: true }); Actors.registerSheet("blades", BladesFactionSheet, { types: ["factions"], makeDefault: true });
Actors.registerSheet("blades", BladesClockSheet, { types: ["\uD83D\uDD5B clock"], makeDefault: true }); Actors.registerSheet("blades", BladesClockSheet, { types: ["\uD83D\uDD5B clock"], makeDefault: true });
Actors.registerSheet("blades", BladesNPCSheet, { types: ["npc"], makeDefault: true }); Actors.registerSheet("blades", BladesNPCSheet, { types: ["npc"], makeDefault: true });
Actors.registerSheet("blades", BeamVehicleSheet, { types: ["vehicle"], makeDefault: true });
Items.unregisterSheet("core", ItemSheet); Items.unregisterSheet("core", ItemSheet);
Items.registerSheet("blades", BladesItemSheet, {makeDefault: true}); Items.registerSheet("blades", BladesItemSheet, {makeDefault: true});
await preloadHandlebarsTemplates(); await preloadHandlebarsTemplates();