Stats Math

Topics: Rawr.Base
Coordinator
Jul 31, 2009 at 3:07 AM
Edited Jul 31, 2009 at 3:12 AM

I thought I had this sorted out and I just found a counter example that proved me wrong. I know some of you have worked on this before so I'm looking for any fresh perspective. The question of course is how are the racial, talent and buff multipliers combined to get the final value of the stat. For my specific case I'm looking at intellect on a gnome mage with Arcane Mind. The test gear has 1010 Intellect. The following are results as shown by ingame tooltip.

5% Gnome, 15% Arcane Mind: 1441=222+1219

5% Gnome, 6% Arcane Mind: 1328=204+1124

5% Gnome, 6% Arcane Mind, Arcane Intellect (60): 1394=204+1190

5% Gnome, 15% Arcane Mind, Arcane Intellect (60): 1514=222+1292

5% Gnome, 15% Arcane Mind, Mark of the Wild (51): 1503=222+1281

5% Gnome, 15% Arcane Mind, Mark of the Wild (51), Arcane Intellect (60), 10% Blessing of Kings: 1732=222+1510

Any ideas are welcome while I put my mind to rest.

Jul 31, 2009 at 4:24 AM

Racial_Int = Math.Floor(Racial_Base * IntMultBuff1 * IntMultBuff2 * IntMultBuff3 ...) // note that Kings is included here

Gear_Int = Math.Floor((gearStats.Int + IntBuff1 + IntBuff2 + ...) * IntMultBuff1 * IntMultBuff2 * ...) // kings here, as well

Int = Racial_Int + Gear_Int

For your last entry, 1732 is correct, but it should be 244+1488 and not 222+1510.  If the tooltip is showing 222+1510, that's because there's a bug in the tooltip that doesn't count Kings.  Presumably, the second number listed in the tooltip is simply (Stats.Int - BuggedNumberDisplayed).

For reference: 184*1.05*1.15*1.10 = 244, (1010+51+60)*1.05*1.15*1.10 = 1488.  1488+244 = 1732

Coordinator
Jul 31, 2009 at 6:00 AM

Well I had it as floor before but I had to change it because of this data set (this is undead mage I believe):

Intellect (with AI) 179+806=985
Intellect with Kings 179+904=1083

Spirit 179+231=410
Spirit with Kings 179+272=451
Spirit with 7% SotM         191+247=438
Spirit with 7% SotM + Kings 191+291=482

Jul 31, 2009 at 12:11 PM

Hmm, I'm wondering if the base stats for that race aren't something like 179.0909090... ie, it was 197 at one point, and was bumped down 10%.

I'm really at a loss right now, because it's not like it's a weird edge case -- the last one with kings/motw/ai also came out  to like 1488.96, but fit the pattern

Developer
Jul 31, 2009 at 12:59 PM

Has it been disproved that SotM isn't 10%*1/3/10%*2/3/10%*3/3 ?

 

179 * 2/3*10% = 190.93333333

Although it fails for gear (246.4)

Jul 31, 2009 at 2:24 PM

The rogue value right now is the Intellect with Kings 179+904=1083.  I didn't even bother looking at the spirit and crunching those numbers.

I tried different combinations of flooring just the racial stat, or just the gear stat, flooring both.  I tried rounding base and flooring gear, rounding gear and flooring base, rounding both, and rounding just the sum.  None of these approaches seem to work.  I wonder if it's floating point related.