Add pathfinidng support for square and hex grids

This commit is contained in:
Manuel Vögele
2022-01-30 00:06:48 +01:00
parent 1f770f7597
commit d467fe5bcf
10 changed files with 288 additions and 3 deletions
+19
View File
@@ -82,6 +82,25 @@ 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,
onChange: () => location.reload(),
});
game.settings.register(settingsKey, "autoPathfinding", {
name: "drag-ruler.settings.autoPathfinding.name",
hint: "drag-ruler.settings.autoPathfinding.hint",
scpoe: "client",
config: true,
type: Boolean,
defualt: false,
});
game.settings.register(settingsKey, "lastTerrainRulerHintTime", {
config: false,
type: Number,