bmarian / token-tooltip-alt

A module that adds a tooltip next to the currently hovered token to show some useful information for players and DMs.
MIT License
9 stars 15 forks source link

[BUG] Token dispositions are incorrect #123

Open tyrielv opened 1 year ago

tyrielv commented 1 year ago

Describe the bug At some point recently Foundry core added another disposition, "SECRET", with value -2. The array lookup in _getActorDisposition doesn't account for that correctly - friendly is treated as neutral, neutral as hostile, hostile as secret.

(I don't think SECRET is fully implemented yet, I don't know how to get a token to have that disposition.)

See commons.js, line 1269

Please complete the following information:

tyrielv commented 1 year ago

Looks like #122 addresses this