All user data for FoundryVTT. Includes worlds, systems, modules, and any asset in the "foundryuserdata" directory. Does NOT include the FoundryVTT installation itself.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.6 KiB

1 year ago
  1. export function registerSettings() {
  2. // Create the setting for Automatic Movement switching for later use.
  3. game.settings.register("pf2e-dragruler", "auto", {
  4. name: "Automatic Movement Switching",
  5. hint: "If enabled, positive elevations will automatically use fly speed, negative elevations will use burrow, and tokens in water or aquatic terrain will use swim speeds, if an actor does not have that speed, it will instead use their land speed.",
  6. scope: "world",
  7. config: true,
  8. type: Boolean,
  9. default: false
  10. }),
  11. game.settings.register("pf2e-dragruler", "scene", {
  12. name: "Scene Environment Automation",
  13. hint: "Requires Enhanced Terrain Layer. If enabled, actors in Sky scenes will automatically use fly speed, and those in aquatic terrain will use swim speeds, if an actor does not have a speed, will use their land speed.",
  14. scope: "world",
  15. config: true,
  16. type: Boolean,
  17. default: false
  18. }),
  19. game.settings.register("pf2e-dragruler", "offTurnMovement", {
  20. name: "Ignore Off Turn Movement",
  21. hint: "Requires movement history to be enabled. Automatically resets movement history at the start of each actor's turn in combat, meaning any movement performed off turn as a reaction won't effect the movement history, on your turn.",
  22. scope: "world",
  23. config: true,
  24. type: Boolean,
  25. default: false
  26. }),
  27. game.settings.register("pf2e-dragruler", "partialMovements", {
  28. name: "Partial Movements",
  29. hint: "Treat each completed drag as an action, and reduce viable move distance as appropriate",
  30. scope: "world",
  31. config: true,
  32. type: Boolean,
  33. default: false
  34. })
  35. };