theastrogoth / tera-raid-builder

A tool for simulating Tera Raid battles in Pokémon Scarlet & Violet
https://theastrogoth.github.io/tera-raid-builder/
4 stars 3 forks source link

Add stat plots to graphics, UI tweaks #195

Closed theastrogoth closed 7 months ago

theastrogoth commented 7 months ago

Adds radar plots to each raider in the graphic. The plots use the same format as the ones in PokemonSummary, with small tweaks for readability. These are toggleable, since they might not be desired much of the time.

Also included are some other UI changes and fixes:

Ericzklm commented 7 months ago

Attempted to fix the issue with stat plots overflowing the boundaries. Using the following sigmoid seems to somewhat mirror how the game handles the plot scaling:

$y\ =\ \frac{1.75}{1+e^{-\left(\frac{x}{125}\right)}}-.75$

Currently, this same function is also used to scale HP instead of having a different HP scaling function which helps for some edge cases (Blissey's plot overflows in-game). The hpModifier can be added back in since that got removed.

Another improvement that can be made is to find a cleaner way to display the text in the plots. I can try a few things later.

theastrogoth commented 7 months ago

I'll try a couple things as well. Plotly might not make it easy without some finagling.

We could also just have a gen 3 style table, if the plots can't be made to look how we want. We'd lose information about EVs, but we would still have those listed above