aoe4world / explorer

Explore units, stats and more
https://aoe4world.com/explorer
27 stars 9 forks source link

Keep patch choice #30

Open CrommVardek opened 3 months ago

CrommVardek commented 3 months ago

When selecting a patch version (or "All patches option"), I think it would be beneficial to keep that choice in memory, at least during the time of use, maybe in a cookie so selection still applies further (but then you have to set it manually to the latest, so maybe not the preferred way).

robertvanhoesel commented 3 months ago

Can you elaborate? We do not currently adjust stats based on a selected path at all. You can view patchnotes but that is basically just content, it does not alter stats or anything.

CrommVardek commented 3 months ago

My bad, that was not precise enough indeed. On a player profile, in sections "Civilizations - Solo ranked" and other sections below that one. You can select a patch and stats for that player during that patch are displayed. However when naviagting to another player, that selection is overriden by the default one. The idea would be to store it during the session (I see you use createStore from solid-js/store) having a store keeping track of the patch choice for a player's profile stats.