wise-old-man
wise-old-man copied to clipboard
Add combined EHP hiscores
Add an option on the EHP hiscores to show all accounts combined. The hiscores could look something like this:
- Ironman_beast: 20,000 EHP
- f2p_ironman_dork: 18,000 EHP
- uim_gamer: 15,000 EHP
- 200m_all_normie: 12,814 EHP
- rank1_lvl3: 11,788 ehp
Filters should still be able to be applied so that, for example, you could look at all F2P accounts and include ironmen and lvl3 ironmen.
Example of this feature on temple: https://templeosrs.com/virtualhiscores/time_played_combined.php?
Does this mean rank by EHP regardless of their type/build?
Yes exactly @psikoi
Would this require changes to the api? Or it can be achieved on the front-end only?
Right now if you do /efficiency/leaderboard?metric=ehp
(no filters) the API will use type=regular
and build=main
by default, which won't allow for this "no filters" sort of leaderboard.
I believe the changes would be:
- Change the API to not apply those defaults ^
- Change app-v2 and app-v2 to have the type pre-selected to "regular" and build pre-selected to "build"
- So that they request
/efficiency/leaderboard?metric=ehp&type=regular&build=main
by default
- So that they request
- Add "Any build" and "Any type" options to the dropdowns, that would essentially request
/efficiency/leaderboard?metric=ehp
Sounds a bit confusing, let me know if it's clear
How to you see this in the UI? Something like this?
Or this?
First one I'd say, and the link to that page would have to have the "default" filters baked into the url, so that "combined" wouldn't be the default
Essentially these filters would now be the same as the current top/records leaderboards, expect with some pre-selections on the UI
Would be nice if the combined hiscore also allow us to combine specific builds. E.g. from a multiselect I could select the build "F2P" and "F2P Level 3". The API would need to support a query like this /efficiency/leaderboard?metric=ehp&type=ironman&build=f2p&build=f2p_lvl3
Default values would be "Any build" and "Any type"