AcidWeb / REFlex

Collect statistics of played arena matches and battlegrounds.
Other
10 stars 9 forks source link

Save Region code alongside match data #30

Open okwinza opened 7 months ago

okwinza commented 7 months ago

Hey there!

We're workong on a Reflex DB analyzer tool and since there is no region info we are forced to fetch it from config.wtf which is not quite reliable.

Currently Reflex stores realm & character names but it would be really helpful to also store the current region of the match.

There is an API for that: https://wowpedia.fandom.com/wiki/API_GetCurrentRegion

So I suppose we could add something like

RE.MatchData.Region = GetCurrentRegion()

Somewhere here: https://github.com/AcidWeb/REFlex/blob/master/REFlex.lua#L892

If there is any way to sponsor a PR for this I'd be glad to help.