v10 compat: Make Drag Ruler play nice with Foundry v10's hex grid and the new hex-size-support module
This commit is contained in:
@@ -2,11 +2,6 @@ import {buildCostFunction} from "./api.js";
|
||||
import {settingsKey} from "./settings.js";
|
||||
import {highlightTokenShape} from "./util.js";
|
||||
|
||||
export function getHexSizeSupportTokenGridCenter(token) {
|
||||
const tokenCenterOffset = CONFIG.hexSizeSupport.getCenterOffset(token);
|
||||
return {x: token.x + tokenCenterOffset.x, y: token.y + tokenCenterOffset.y};
|
||||
}
|
||||
|
||||
export function highlightMeasurementTerrainRuler(
|
||||
ray,
|
||||
startDistance,
|
||||
|
||||
Reference in New Issue
Block a user