Open dev7355608 opened 3 years ago
Thanks for opening an issue, traveller! If your issue is related to an actor or an item, sending thing that is broken will help a lot and speed up debugging.
How to send an item? > - If item is owned by a character, drag and drop it to world item list. > - Right click on item in browser item list and click export. > - Attach downloaded item to this ticket. How to send an actor? > - Right click on actor in browser actor list and click export. > - Attach downloaded actor to this ticket.
Thanks for pointing that out! For now I ported PF1 solution as it is drop in for 3.5e so it at least has correct result, I will work on it more when I get to #383 that also deals with vision stuff.
All light and vision sources radius are doubled currently. But only light sources should be doubled. The PF1 system handles it correctly; see here.
Token.prototype.updateSource
needs to be overridden to make the distinction between vision and light. PF1 had this issue also a while ago; see here.I also think it's not right to override
Token.prototype.getLightRadius()
, since it's used for vision as well and not only for light; it's just a helper to calculate the radius in pixels given a range in units. The PF1 system overridesgetLightRadius
as well, but then divides by two in theupdateSource
patch to get the correct vision radii; I don't think this is the right approach. Instead overrideToken.prototype.dimRadius
andToken.prototype.brightRadius
like this: