Closed p4535992 closed 1 year ago
In the settings, if you set the 'Source for light effect' to Disable Token Effect. This will disable the effects being placed on the tokens. However the token is still being processed, and the information being stored. This is how the TokenHud still functions without the effects being placed.
I believe this information can already be found via token effect flags information the info is stored at: token.actor.flags.tokenlightcondition.lightLevel or call: token.actor.getFlag('tokenlightcondition','lightLevel')
A ok ty for the clarification ! i still think a API is still useful, but a flag is just enough.
It's certainly something I can look into, but hasn't been on my radar until now.
Make effect generation optional and add setting of specific flags
The purpose is that effect generation may be redundant or tedious in some cases, but it would be convenient to retrieve the value to apply certain rules on the flags system . from the standard module api model exposed by :
game.modules.get('tokenlightcondition').api
.If effect behaviour and flags bhaviour are both enabled they should be sync.
Here some example: