caewok / fvtt-token-visibility

Advanced token visibility rules for Foundry VTT
MIT License
4 stars 8 forks source link

Simplify `useLitTargetShape` and `largeTarget` #79

Open caewok opened 7 months ago

caewok commented 7 months ago

Instead of having each algorithm handle the different token shapes, handle them in AlternativeLOS abstract class.

  1. Percent visible for a given shape without obstacles. Compare lit versus constrained token shapes, or partial shapes for largeTarget.
  2. Percent visible for a given shape with obstacles. Again, can pass lit, constrained token shapes, or partial shapes for largeTarget.

Visible when lit shape visibility with obstacles is X% of constrained token shape visibility without obstacles. For largeTarget, maximum of each subset shape.