Merge branch 'dev' into dev_skillslist
# Conflicts: # CHANGELOG.md # system/lang/en-en.json # system/lang/fr-fr.json # system/scripts/actor.js # system/scripts/actors/base-character-sheet.js # system/scripts/combat.js # system/scripts/config.js # system/scripts/dice/dice-picker-dialog.js # system/scripts/dice/roll-n-keep-dialog.js # system/scripts/gm/gm-monitor.js # system/scripts/gm/gm-toolbox.js # system/scripts/hooks.js # system/scripts/items/technique-sheet.js # system/scripts/main-l5r5e.js # system/scripts/migration.js # system/scripts/preloadTemplates.js # system/scripts/settings.js # system/scripts/socket-handler.js # system/styles/l5r5e.css # system/system.json # system/templates/actors/character-sheet.html
This commit is contained in:
@@ -2,10 +2,12 @@
|
||||
* Custom system settings register
|
||||
*/
|
||||
export const RegisterSettings = function () {
|
||||
const isBabeleRegistered = (typeof Babele !== "undefined");
|
||||
|
||||
/* ------------------------------------ */
|
||||
/* User settings */
|
||||
/* ------------------------------------ */
|
||||
game.settings.registerMenu(CONFIG.l5r5e.systemName, "defaultSkillsListMenu", {
|
||||
game.settings.registerMenu(CONFIG.l5r5e.namespace, "defaultSkillsListMenu", {
|
||||
name: "SETTINGS.DefaultSkillsList.Title",
|
||||
label: "SETTINGS.DefaultSkillsList.Label",
|
||||
hint: "SETTINGS.DefaultSkillsList.Hint",
|
||||
@@ -13,7 +15,7 @@ export const RegisterSettings = function () {
|
||||
type: game.l5r5e.DefaultSkillsDialogL5r5e,
|
||||
restricted: true, // GameMaster only
|
||||
});
|
||||
game.settings.register(CONFIG.l5r5e.systemName, "defaultSkillsList", {
|
||||
game.settings.register(CONFIG.l5r5e.namespace, "defaultSkillsList", {
|
||||
name: "System Migration Version",
|
||||
scope: "world",
|
||||
config: false,
|
||||
@@ -21,7 +23,7 @@ export const RegisterSettings = function () {
|
||||
default: game.l5r5e.HelpersL5r5e.getDefaultSkillsUuidFromPack(),
|
||||
});
|
||||
|
||||
game.settings.register(CONFIG.l5r5e.systemName, "rnk-deleteOldMessage", {
|
||||
game.settings.register(CONFIG.l5r5e.namespace, "rnk-deleteOldMessage", {
|
||||
name: "SETTINGS.RollNKeep.DeleteOldMessage",
|
||||
hint: "SETTINGS.RollNKeep.DeleteOldMessageHint",
|
||||
scope: "world",
|
||||
@@ -29,7 +31,7 @@ export const RegisterSettings = function () {
|
||||
default: true,
|
||||
type: Boolean,
|
||||
});
|
||||
game.settings.register(CONFIG.l5r5e.systemName, "initiative-setTn1OnTypeChange", {
|
||||
game.settings.register(CONFIG.l5r5e.namespace, "initiative-setTn1OnTypeChange", {
|
||||
name: "SETTINGS.Initiative.SetTn1OnTypeChange",
|
||||
hint: "SETTINGS.Initiative.SetTn1OnTypeChangeHint",
|
||||
scope: "world",
|
||||
@@ -37,14 +39,14 @@ export const RegisterSettings = function () {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
});
|
||||
game.settings.register(CONFIG.l5r5e.systemName, "token-reverseFatigueBar", {
|
||||
game.settings.register(CONFIG.l5r5e.namespace, "token-reverseFatigueBar", {
|
||||
name: "SETTINGS.ReverseFatigueBar",
|
||||
scope: "world",
|
||||
config: true,
|
||||
type: Boolean,
|
||||
default: false,
|
||||
});
|
||||
game.settings.register(CONFIG.l5r5e.systemName, "techniques-customs", {
|
||||
game.settings.register(CONFIG.l5r5e.namespace, "techniques-customs", {
|
||||
name: "SETTINGS.CustomTechniques.Title",
|
||||
hint: "SETTINGS.CustomTechniques.Hint",
|
||||
scope: "world",
|
||||
@@ -52,11 +54,25 @@ export const RegisterSettings = function () {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
});
|
||||
game.settings.register(CONFIG.l5r5e.namespace, "custom-compendium-name", {
|
||||
name: "SETTINGS.CustomCompendiumName.Title",
|
||||
hint: "SETTINGS.CustomCompendiumName.Hint",
|
||||
scope: "world",
|
||||
config: isBabeleRegistered,
|
||||
requiresReload: true,
|
||||
type: String,
|
||||
default: "l5r5e-custom-compendiums",
|
||||
onChange: (name) => {
|
||||
if (!Babele.get().modules.find((module) => module.module === name)) {
|
||||
ui.notifications.warn(game.i18n.format("SETTINGS.CustomCompendiumName.Notification", { name }), { permanent: true });
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
/* ------------------------------------ */
|
||||
/* Update */
|
||||
/* ------------------------------------ */
|
||||
game.settings.register(CONFIG.l5r5e.systemName, "systemMigrationVersion", {
|
||||
game.settings.register(CONFIG.l5r5e.namespace, "systemMigrationVersion", {
|
||||
name: "System Migration Version",
|
||||
scope: "world",
|
||||
config: false,
|
||||
@@ -67,7 +83,7 @@ export const RegisterSettings = function () {
|
||||
/* ------------------------------------ */
|
||||
/* Initiative Roll Dialog (GM only) */
|
||||
/* ------------------------------------ */
|
||||
game.settings.register(CONFIG.l5r5e.systemName, "initiative-difficulty-hidden", {
|
||||
game.settings.register(CONFIG.l5r5e.namespace, "initiative-difficulty-hidden", {
|
||||
name: "Initiative difficulty is hidden",
|
||||
scope: "world",
|
||||
config: false,
|
||||
@@ -75,7 +91,7 @@ export const RegisterSettings = function () {
|
||||
default: false,
|
||||
onChange: () => game.l5r5e.HelpersL5r5e.notifyDifficultyChange(),
|
||||
});
|
||||
game.settings.register(CONFIG.l5r5e.systemName, "initiative-difficulty-value", {
|
||||
game.settings.register(CONFIG.l5r5e.namespace, "initiative-difficulty-value", {
|
||||
name: "Initiative difficulty value",
|
||||
scope: "world",
|
||||
config: false,
|
||||
@@ -83,20 +99,20 @@ export const RegisterSettings = function () {
|
||||
default: 2,
|
||||
onChange: () => game.l5r5e.HelpersL5r5e.notifyDifficultyChange(),
|
||||
});
|
||||
game.settings.register(CONFIG.l5r5e.systemName, "initiative-encounter", {
|
||||
game.settings.register(CONFIG.l5r5e.namespace, "initiative-encounter", {
|
||||
name: "Initiative encounter type",
|
||||
scope: "world",
|
||||
config: false,
|
||||
type: String,
|
||||
default: "skirmish",
|
||||
onChange: () => {
|
||||
if (game.settings.get(CONFIG.l5r5e.systemName, "initiative-setTn1OnTypeChange")) {
|
||||
game.settings.set(CONFIG.l5r5e.systemName, "initiative-difficulty-value", 1);
|
||||
if (game.settings.get(CONFIG.l5r5e.namespace, "initiative-setTn1OnTypeChange")) {
|
||||
game.settings.set(CONFIG.l5r5e.namespace, "initiative-difficulty-value", 1);
|
||||
}
|
||||
ui.combat.render(true);
|
||||
},
|
||||
});
|
||||
game.settings.register(CONFIG.l5r5e.systemName, "initiative-prepared-character", {
|
||||
game.settings.register(CONFIG.l5r5e.namespace, "initiative-prepared-character", {
|
||||
name: "Initiative PC prepared or not",
|
||||
scope: "world",
|
||||
config: false,
|
||||
@@ -107,7 +123,7 @@ export const RegisterSettings = function () {
|
||||
ui.combat.render(true);
|
||||
},
|
||||
});
|
||||
game.settings.register(CONFIG.l5r5e.systemName, "initiative-prepared-adversary", {
|
||||
game.settings.register(CONFIG.l5r5e.namespace, "initiative-prepared-adversary", {
|
||||
name: "Initiative NPC adversary are prepared or not",
|
||||
scope: "world",
|
||||
config: false,
|
||||
@@ -118,7 +134,7 @@ export const RegisterSettings = function () {
|
||||
ui.combat.render(true);
|
||||
},
|
||||
});
|
||||
game.settings.register(CONFIG.l5r5e.systemName, "initiative-prepared-minion", {
|
||||
game.settings.register(CONFIG.l5r5e.namespace, "initiative-prepared-minion", {
|
||||
name: "Initiative NPC minion are prepared or not",
|
||||
scope: "world",
|
||||
config: false,
|
||||
@@ -133,7 +149,7 @@ export const RegisterSettings = function () {
|
||||
/* ------------------------------------ */
|
||||
/* GM Monitor windows (GM only) */
|
||||
/* ------------------------------------ */
|
||||
game.settings.register(CONFIG.l5r5e.systemName, "gm-monitor-actors", {
|
||||
game.settings.register(CONFIG.l5r5e.namespace, "gm-monitor-actors", {
|
||||
name: "Gm Monitor",
|
||||
scope: "world",
|
||||
config: false,
|
||||
|
||||
Reference in New Issue
Block a user