#1 - Dec. 22, 2012, 8:01 a.m.
On a side note, providing a aggregatedAttributesRaw property to the root level of a hero would also help very much. Players are interested in the unbuffed DPS, to do this they must parse each item and extract the modifiers and calculate them. Right now I make 15 requests to load a hero, 1 for the hero, then 14 times for each item because I need the raw attributes to calculate unbuffed dps. If they were included in the hero object it would be much easier to work with.
The current client I am working on is here[3] and I am open to any feedback if I am making this more complicated then it needs to be.
[1]
{ slug: 'natalyas-solace',
name: 'Natalya\'s Solace',
ranks:
[ { required: 2, attributes: { required: 2, attributes: [ 'Critical Hit Chance Increased by 7.0%' ] }},
{ required: 3, attributes: .. snip .. },
{ required: 4, attributes: .. snip .. } ],
items:
[ .. snip .. ] }
[2]
{ slug: 'natalyas-solace',
name: 'Natalya\'s Solace',
ranks:
[ { required: 2, attributes: { required: 2, attributes: [ 'Critical Hit Chance Increased by 7.0%' ], attributesRaw: [ 'Crit_Percent_Bonus_Capped' ] }},
{ required: 3, attributes: .. snip .. },
{ required: 4, attributes: .. snip .. } ],
items:
[ .. snip .. ] }
[3] https://github.com/cstockton/nodejs-lfger-d3