Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

BoltsJ/grid-aware-templates

Repository files navigation

Grid Aware Templates

Warning

This module is not necessary on version 12 and up. On those versions you can enable "Grid Based Template Shapes" in the settings menu.

Improves shape detection for measured templates on gridded maps. The default algorithm in foundry checks if a grid center is within the preview shape and highlights according to that. This approach is a poor choice for games that rely heavily on grid spaces for measurements, leading to incorrectly highlighted areas.

This uses an alternative approach for highlighting spaces in circle and cone templates. For circles, all spaces within the radius of the template, as measured by grid spaces are highlighted. For cones, the circle area used, then spaces that aren't within the angle of the cone are removed. These alternate approaches give much nicer template highlighting, particularly for hexagonal grids.

To make these changes easier to use, templates will now snap to grid space increments for size and 15° increments for rotation during creation.

Screenshots

Stock behavior for blast templates

blast 1 stock

With Grid Aware templates

blast 1 modded

About

Grid Aware Templates for Foundry VTT

Resources

Stars

Watchers

Forks

Packages

No packages published