maptool icon indicating copy to clipboard operation
maptool copied to clipboard

Sight multipliers do not increase the size of grid shaped lights correctly.

Open Ahnoold opened this issue 3 years ago • 2 comments

Describe the bug When a sight type that has a multiplier as part of its definition interacts with a light source that is defined to be grid shaped, the resulting light radius is not multiplied correctly.

To Reproduce Steps to reproduce the behavior:

  1. Create a new map with a square grid.
  2. Set "Distance per cell" to 5.
  3. Set the map's vision to "Night"
  4. In "Campaign Properties", define a light source to be grid shaped with a radius of 5.
  5. Define a sight type to be either circle or grid shaped with a x10 multiplier.
  6. Place a token on the map.
  7. Make the token Medium size.
  8. Give the token the vision type defined in Step 5 above.
  9. Give the token the light source defined in Step 4 above.

Expected behavior The light source would have an adjusted radius of 52.5 units, covering to the far edge of the 10th square away from the token.

Actual behavior The light source has an adjusted radius of 75 units, covering to the middle of the 15th square away from the token.

Screenshots image

MapTool Info

  • Version: 1.8.4
  • Install: Upgrade from 1.8.3 (same behavior observed in 1.8.3)

Desktop (please complete the following information):

  • OS: Windows
  • Version: 10 Pro, 20H2

Additional context It appears that to make the grid shaped light source conform to the grid, its radius (5 in the above example) is increased by half the distance per cell (5/2 = 2.5). (The adjusted radius becomes 5 + 2.5 = 7.5). When a vision with a multiplier is applied, the adjusted radius is multiplied by the vision's multiplier (10 * 7.5 = 75). Instead, the original radius should be multiplied, and then the adjustment reapplied ( (10 * 5) + 2.5 = 52.5).

Ahnoold avatar Mar 30 '21 20:03 Ahnoold