CUModSquad / Camelot-Unchained

UI repository for Camelot Unchained, a tri-realm RvR MMORPG.
Mozilla Public License 2.0
7 stars 25 forks source link

Update Character Creation stat selection to use gql query #273

Closed Ajackster closed 5 years ago

Ajackster commented 5 years ago

Fixes character stats displayed in character creation not matching stats displayed in-game.

Once we get this in, we can delete the old API. Currently, the old API pulls stats data from a different place than the stats players can see in-game. So this should point character creation to the same stats sheet that the game is using.

This also gets rid of the attributes and attributesOffsets reducers and introduces StatsSelectContext that handles state for stats.

We'll have to wait for Christina's API change that introduces the GameDefsGQLData query to go up on all the API servers. I think Hawking is the only one that doesn't have it at the time of posting this.

P.S. You can disregard the patcherlib changes, it's all just generated file changes.