Hi, thanks for the mod, it's doing most of what I wanted.
Bug description
The point of origin for the sight is set at the centre of the adjacent tile instead of on the border. For example, if I chose top right corner, the line of sight will be drawn from the centre of the tile that is located at the top right of the token.
Solution?
I don't know much javascript, but from my understanding, I think that lightPositions in getSightOrigin() should be defined by:
x: this.center.x + this.w / 2, y: this.center.y + this.h / 2
for the point of origin to land on the top-right corner instead of inside the next tile.
Hi, thanks for the mod, it's doing most of what I wanted.
Bug description The point of origin for the sight is set at the centre of the adjacent tile instead of on the border. For example, if I chose top right corner, the line of sight will be drawn from the centre of the tile that is located at the top right of the token.
Solution? I don't know much javascript, but from my understanding, I think that
lightPositions
ingetSightOrigin()
should be defined by:x: this.center.x + this.w / 2, y: this.center.y + this.h / 2
for the point of origin to land on the top-right corner instead of inside the next tile.I hope this helps.