Blizzard / api-wow-docs

Documentation for the World of Warcraft web APIs.
http://blizzard.github.com/api-wow-docs/
524 stars 66 forks source link

Endpoint for item bonus stats #29

Open robert-nix opened 10 years ago

robert-nix commented 10 years ago

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