Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Endpoint for item bonus stats #29

Open
robert-nix opened this issue Aug 22, 2014 · 0 comments
Open

Endpoint for item bonus stats #29

robert-nix opened this issue Aug 22, 2014 · 0 comments

Comments

@robert-nix
Copy link

Data generation

To generate the script, use s_bonusStatStringTags, BONUS_STAT_START, and BONUS_STAT_MAX from the client source tree (probably available in WoW/Source/Ui/GameUI.cpp but I can't be sure). If s_bonusStatStringTags is defined by brace initialization, you can probably copy-paste that and adjust the indexing at line 85 to read local mod = bonusStats[i + 1]. The script also requires Interface/FrameXML/GlobalStrings.lua from the appropriate localized client data directory to be present in the same directory when ran. From there it's just a matter of running the script and converting the tsv output to whatever format you wanna consume.

Documentation sample

Item Bonus Stats

The item bonus stats data API provides a mapping from bonusStat id to name.

URL: /api/wow/data/item/bonusStats

Example Data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant