Larkinabout / fvtt-token-action-hud-pf2e

Token Action HUD is a repositionable HUD of actions for a selected token.
10 stars 15 forks source link

Strike bonuses displaying incorrectly with Automatic Bonus Progression #80

Closed EitherOrlok closed 1 year ago

EitherOrlok commented 1 year ago

Describe the bug Strike bonuses are displaying in the wrong order. Anything 10 or higher is sorted in ascending order, followed by anything 9 or lower in ascending order.

order

This applies to all characters created in a game with the Automatic Bonus Progression variant rule active. Dragging a character from Actors that was created in a world that does not use that variant rule displays their strike bonuses correctly.

Disabling the Automatic Bonus Progression variant rule does not cause the strike bonuses to revert to their descending ordering.

Steps to reproduce Loaded a PF2 game with no mods active. Enabled Action Hud Core, Action Hud for PF2, and SocketLib.

Versions:

Additional context socketlib 1.0.13 Games are hosted on Forge

EitherOrlok commented 1 year ago

UPDATE: Duplicating the characters and placing the copies in a scene reverts the bug and strike bonuses display correctly.

Larkinabout commented 1 year ago

It looks like you may have the Sort Actions Alphabetically option enabled on either those groups or in Token Action HUD Core module setting. If you disable those settings and then reset the layout it should reset to the default unsorted order.

EitherOrlok commented 1 year ago

I tried that and it didn't fix the values. Neither did deselecting all options and restarting the world.

It's not the action names that need resorting, but the first/second/third action strike numeric bonuses - the +13 / +17 / +9 to hit with Unarmed in the sample image. Those should be displayed left to right in ascending value.

Larkinabout commented 1 year ago

If you don't have the Sort Actions Alphabetically option enabled anywhere then try removing and then re-adding the Strikes group on the HUD.

EitherOrlok commented 1 year ago

That created a nested set of strikes that looked like this.

Unarmed Attack > Unarmed Attack > Unarmed Attack>

Removing weapons and then putting them back into the characters' inventories fixed the issue in those cases, but there were no icons and no names for the strikes, only the buttons for attacks and damage.

And I could not find a way to remove and replace an unarmed strike that didn't give me that nested strike display.

As I posted in the update above, making a copy of the character fixes everything, so at least that's a workaround for this weird set of glitches.