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] ReferenceError: math is not defined #115

Open mkahvi opened 1 year ago

mkahvi commented 1 year ago

Describe the bug "Exp" type fields work unreliably.

To Reproduce For example, this expression is always hidden, even though it is supposed to be always visible.

{
wis = floor(<attributes.hd.total> / 2) + <abilities.wis.mod>;
sen = <skills.sen.rank> > 0 ? <skills.sen.mod> : 0;
10 + (wis > sen ? wis : sen)
}

Screenshots Debug enabled I at least get this:
Screenshot 2023-01-20 163617

Please complete the following information:

An export of your tooltip settings My settings are here, these used to work without issue: https://gitlab.com/-/snippets/2151085