ironmonk88 / monks-tokenbar

GNU General Public License v3.0
48 stars 46 forks source link

Allow stats to get values directly from actor #475

Open tdhsmith opened 7 months ago

tdhsmith commented 7 months ago

Is your feature request related to a problem? Please describe. Stats are currently pulled from either entry.actor.system or entry.token. When "Show actors" is on and a token isn't present in the scene, this means only stats within system are supported and there is no way to access properties only available on the actor itself.

https://github.com/ironmonk88/monks-tokenbar/blob/main/apps/tokenbar.js#L404

The specific use case this came up for was \u\ShellHunter on reddit trying to display PF2e gold amounts which are accessible in actor.inventory.coins.

Describe the solution you'd like Call processStat on base entry.actor in addition to the other two options. Or another alternative?

(Personally I don't love that "system" is assumed in the first place but I know that's either a breaking change or would require migrating people's old settings...)