forked from vttred/ose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.js
98 lines (91 loc) · 2.9 KB
/
settings.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
export const registerSettings = function () {
game.settings.register("ose", "initiative", {
name: game.i18n.localize("OSE.Setting.Initiative"),
hint: game.i18n.localize("OSE.Setting.InitiativeHint"),
default: "group",
scope: "world",
type: String,
config: true,
choices: {
individual: "OSE.Setting.InitiativeIndividual",
group: "OSE.Setting.InitiativeGroup",
},
onChange: _ => window.location.reload()
});
game.settings.register("ose", "rerollInitiative", {
name: game.i18n.localize("OSE.Setting.RerollInitiative"),
hint: game.i18n.localize("OSE.Setting.RerollInitiativeHint"),
default: "reset",
scope: "world",
type: String,
config: true,
choices: {
keep: "OSE.Setting.InitiativeKeep",
reset: "OSE.Setting.InitiativeReset",
reroll: "OSE.Setting.InitiativeReroll",
}
});
game.settings.register("ose", "ascendingAC", {
name: game.i18n.localize("OSE.Setting.AscendingAC"),
hint: game.i18n.localize("OSE.Setting.AscendingACHint"),
default: false,
scope: "world",
type: Boolean,
config: true,
onChange: _ => window.location.reload()
});
game.settings.register("ose", "morale", {
name: game.i18n.localize("OSE.Setting.Morale"),
hint: game.i18n.localize("OSE.Setting.MoraleHint"),
default: false,
scope: "world",
type: Boolean,
config: true,
});
game.settings.register("ose", "encumbranceOption", {
name: game.i18n.localize("OSE.Setting.Encumbrance"),
hint: game.i18n.localize("OSE.Setting.EncumbranceHint"),
default: "detailed",
scope: "world",
type: String,
config: true,
choices: {
disabled: "OSE.Setting.EncumbranceDisabled",
basic: "OSE.Setting.EncumbranceBasic",
detailed: "OSE.Setting.EncumbranceDetailed",
complete: "OSE.Setting.EncumbranceComplete",
},
onChange: _ => window.location.reload()
});
game.settings.register("ose", "significantTreasure", {
name: game.i18n.localize("OSE.Setting.SignificantTreasure"),
hint: game.i18n.localize("OSE.Setting.SignificantTreasureHint"),
default: 800,
scope: "world",
type: Number,
config: true,
onChange: _ => window.location.reload()
});
game.settings.register("ose", "languages", {
name: game.i18n.localize("OSE.Setting.Languages"),
hint: game.i18n.localize("OSE.Setting.LanguagesHint"),
default: "",
scope: "world",
type: String,
config: true,
onChange: _ => window.location.reload()
});
game.settings.register('ose', 'applyDamageOption', {
name: game.i18n.localize('OSE.Setting.applyDamageOption'),
hint: game.i18n.localize('OSE.Setting.applyDamageOptionHint'),
default: 'selected',
scope: 'world',
type: String,
config: true,
choices: {
selected: 'OSE.Setting.damageSelected',
targeted: 'OSE.Setting.damageTarget'
},
onChange: _ => window.location.reload()
});
};