Working on initiative, and now TN is global with GM tool

This commit is contained in:
Vlyan
2021-01-14 18:44:56 +01:00
parent 30950a0d63
commit 58a4e71b32
15 changed files with 561 additions and 186 deletions

View File

@@ -1,4 +1,36 @@
export const RegisterSettings = function() {
// Register any custom system settings here
}
/**
* Custom system settings register
*/
export const RegisterSettings = function () {
/**
* Settings set by Initiative Roll Dialog (GM only)
*/
game.settings.register("l5r5e", "initiative.difficulty.hidden", {
name: "Initiative difficulty is hidden",
scope: "world",
config: false,
type: Boolean,
default: false,
});
game.settings.register("l5r5e", "initiative.difficulty.value", {
name: "Initiative difficulty value",
scope: "world",
config: false,
type: Number,
default: 2,
});
game.settings.register("l5r5e", "initiative.encounter", {
name: "Initiative encounter type",
scope: "world",
config: false,
type: String,
default: "skirmish",
});
game.settings.register("l5r5e", "initiative.prepared", {
name: "Initiative NPC prepared or not",
scope: "world",
config: false,
type: Boolean,
default: true,
});
};