This commit is contained in:
François-Xavier Guillois
2023-05-17 17:39:50 +02:00
parent 96ef5c5d7f
commit 8e2e3d1ebf
9 changed files with 129 additions and 578 deletions
+7 -18
View File
@@ -1,29 +1,18 @@
export const registerSettings = function () {
game.settings.register("totem", "game-level", {
name: game.i18n.localize("TOTEM.WorldSettings.GameLevel.Name"),
hint: game.i18n.localize("TOTEM.WorldSettings.GameLevel.Hint"),
game.settings.register("totem", "game-mode", {
name: game.i18n.localize("TOTEM.WorldSettings.GameMode.Name"),
hint: game.i18n.localize("TOTEM.WorldSettings.GameMode.Hint"),
scope: "system",
config: true,
type: String,
choices: {
"e": "Totem",
"c": "Céphale",
"b": "Bohème",
"a": "Amertume"
"1": "Survie",
"2": "Cauchemar",
"3": "Apocalypse"
},
default: 'e',
onChange: value => {
console.log(value);
// console.log(value);
}
});
game.settings.register("totem", "granting_cephalie", {
name: game.i18n.localize("TOTEM.WorldSettings.GrantingCephales.Label"),
hint: game.i18n.localize("TOTEM.WorldSettings.GrantingCephales.Description"),
scope: "system",
config: true,
type: Boolean,
default: !1
})
}