Skip to content

Commit

Permalink
Merge pull request #188 from sasquach45932/master
Browse files Browse the repository at this point in the history
Diagonal movement calc - switching to Foundry default
  • Loading branch information
ClipplerBlood authored Jun 4, 2024
2 parents d4c284d + ad31b8e commit 748ea83
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 69 deletions.
6 changes: 0 additions & 6 deletions src/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -569,12 +569,6 @@
"DL.SettingAutoDeleteEffectsHint": "Automatically delete Active Effects from non-player items when they expire.",
"DL.SettingConfirmAncestryPathRemoval": "Confirm ancestry/path removal",
"DL.SettingConfirmAncestryPathRemovalHint": "Show a confirmation dialog when attempting to remove an ancestry or path from a character of level 1 or higher.",
"DL.Setting.DiagonalRule": "Diagonal Movement Rule",
"DL.Setting.DiagonalRuleHint": "Configure which diagonal movement rule should be used.",
"DL.Setting.DiagonalRuleEuc": "Euclidean (1.41 yd. diagonal)",
"DL.Setting.DiagonalRuleStd": "Standard (1/1/1)",
"DL.Setting.DiagonalRuleAlt": "Alternative (1/2/1)",
"DL.Setting.DiagonalRuleManh": "Manhattan / Taxicab",
"DL.SettingGMEffectsControls": "GM Effects Controls",
"DL.SettingGMEffectsControlsHint": "Always show the active effects controls in the character sheets (toggle, edit and delete) to the Game Master, regardless of the effect type.",
"DL.SettingHorrifyingBane": "Bane against horrifying creatures",
Expand Down
6 changes: 0 additions & 6 deletions src/module/demonlord.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ import 'tippy.js/dist/tippy.css';
import {registerHandlebarsHelpers} from "./utils/handlebars-helpers";
import DLBaseActorSheet from "./actor/sheets/base-actor-sheet";
import {_onUpdateWorldTime, DLCombat} from "./combat/combat"; // optional for styling
import * as canvasUtils from "./utils/canvas.js";


Hooks.once('init', async function () {
Expand Down Expand Up @@ -511,8 +510,3 @@ Hooks.on('DL.Action', async () => {

Hooks.on('renderDLBaseItemSheet', (app, html, data) => DLBaseItemSheet.onRenderInner(app, html, data))
Hooks.on('renderDLBaseActorSheet', (app, html, data) => DLBaseActorSheet.onRenderInner(app, html, data))

Hooks.on('canvasInit', gameCanvas => {
gameCanvas.grid.diagonalRule = game.settings.get('demonlord', 'diagonalMovement')
foundry.grid.SquareGrid.prototype.measureDistances = canvasUtils.measureDistances
})
15 changes: 0 additions & 15 deletions src/module/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,19 +142,4 @@ export const registerSettings = function () {
type: Boolean,
config: true,
})
game.settings.register("demonlord", "diagonalMovement", {
name: "DL.Setting.DiagonalRule",
hint: "DL.Setting.DiagonalRuleHint",
scope: "world",
config: true,
default: "111",
type: String,
choices: {
111: "DL.Setting.DiagonalRuleStd",
121: "DL.Setting.DiagonalRuleAlt",
EUCL: "DL.Setting.DiagonalRuleEuc",
MANH: "DL.Setting.DiagonalRuleManh"
},
onChange: rule => canvas.grid.diagonalRule = rule
});
}
42 changes: 0 additions & 42 deletions src/module/utils/canvas.js

This file was deleted.

0 comments on commit 748ea83

Please sign in to comment.