Sarjuuk / aowow

Database viewer for TrinityCore based on aowow by @LordJZ, based on the JS-Engine of Wowhead
204 stars 217 forks source link

Resolve spell tooltip formulas containing PL variable via levelpicker #304

Open wodim opened 3 years ago

wodim commented 3 years ago

https://tcubuntu.northeurope.cloudapp.azure.com/aowow/?item=21647

"Use: Reduces the threat you generate by 70-2*MAX(0,PL-60)% for 20 sec. (3 min cooldown)"

Sarjuuk commented 3 years ago

The formula can not be resolved, because player level (PL) is unknown.

So working as intended.

wodim commented 3 years ago

A feature request could be to add a level slider like items have.

Or default to level 80. That would be infinitely more useful than just showing the formula, imo.

Sarjuuk commented 3 years ago

Setting it at a fixed level 80 would kill the information, that the spell scales with level, so no!

Adapting the level slider for inline formulas should be possible though.

wodim commented 3 years ago

For example this item requires level 60. So it could say by default "Reduces threat by x% at level 60." There already are tooltips that say (1.71% @ L80) and stuff like that.