Add setting to forbid the usage of pathfinding

This commit is contained in:
Manuel Vögele
2022-01-27 23:29:08 +01:00
parent 7e19fb95b0
commit 9140ef3acf
5 changed files with 26 additions and 2 deletions
+9
View File
@@ -82,6 +82,15 @@ export function registerSettings() {
default: true,
});
game.settings.register(settingsKey, "allowPathfinding", {
name: "drag-ruler.settings.allowPathfinding.name",
hint: "drag-ruler.settings.allowPathfinding.hint",
scope: "world",
config: true,
type: Boolean,
default: false,
});
game.settings.register(settingsKey, "autoPathfinding", {
name: "drag-ruler.settings.autoPathfinding.name",
hint: "drag-ruler.settings.autoPathfinding.hint",