Update vtt types
This commit is contained in:
parent
623558dc78
commit
c57960c153
24 changed files with 144 additions and 107 deletions
|
@ -2,11 +2,13 @@
|
|||
//
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
import { getGame } from "./helpers";
|
||||
|
||||
export function registerSystemSettings(): void {
|
||||
/**
|
||||
* Track the migrations version of the latest migration that has been applied
|
||||
*/
|
||||
game.settings.register("ds4", "systemMigrationVersion", {
|
||||
getGame().settings.register("ds4", "systemMigrationVersion", {
|
||||
name: "System Migration Version",
|
||||
scope: "world",
|
||||
config: false,
|
||||
|
@ -14,7 +16,7 @@ export function registerSystemSettings(): void {
|
|||
default: -1,
|
||||
});
|
||||
|
||||
game.settings.register("ds4", "useSlayingDiceForAutomatedChecks", {
|
||||
getGame().settings.register("ds4", "useSlayingDiceForAutomatedChecks", {
|
||||
name: "DS4.SettingUseSlayingDiceForAutomatedChecksName",
|
||||
hint: "DS4.SettingUseSlayingDiceForAutomatedChecksHint",
|
||||
scope: "world",
|
||||
|
@ -23,7 +25,7 @@ export function registerSystemSettings(): void {
|
|||
default: false,
|
||||
});
|
||||
|
||||
game.settings.register("ds4", "showSlayerPoints", {
|
||||
getGame().settings.register("ds4", "showSlayerPoints", {
|
||||
name: "DS4.SettingShowSlayerPointsName",
|
||||
hint: "DS4.SettingShowSlayerPointsHint",
|
||||
scope: "world",
|
||||
|
@ -41,8 +43,8 @@ export interface DS4Settings {
|
|||
|
||||
export function getDS4Settings(): DS4Settings {
|
||||
return {
|
||||
systemMigrationVersion: game.settings.get("ds4", "systemMigrationVersion"),
|
||||
useSlayingDiceForAutomatedChecks: game.settings.get("ds4", "useSlayingDiceForAutomatedChecks"),
|
||||
showSlayerPoints: game.settings.get("ds4", "showSlayerPoints"),
|
||||
systemMigrationVersion: getGame().settings.get("ds4", "systemMigrationVersion"),
|
||||
useSlayingDiceForAutomatedChecks: getGame().settings.get("ds4", "useSlayingDiceForAutomatedChecks"),
|
||||
showSlayerPoints: getGame().settings.get("ds4", "showSlayerPoints"),
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue