Skip to content

Commit

Permalink
Update Cata agility conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
raethkcj committed May 13, 2024
1 parent b745ea0 commit 6a198ae
Showing 1 changed file with 60 additions and 36 deletions.
96 changes: 60 additions & 36 deletions libs/StatLogic/Cata_Logic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ addon.CritPerAgi = {
0.05952380, 0.05882350, 0.05747130, 0.05617980, 0.05494510, 0.05434780, 0.05319150, 0.05208330, 0.05102040, 0.05000000,
0.04761900, 0.04545450, 0.04347830, 0.04166670, 0.04000000, 0.03846150, 0.03703700, 0.03571430, 0.03448280, 0.03333330,
0.03105590, 0.02873560, 0.02673800, 0.02487560, 0.02314810, 0.02145920, 0.01992030, 0.01851850, 0.01724140, 0.01602560,
0.01219510, 0.00929368, 0.00707214, 0.00538793, 0.00410509, 0.00192160, 0.00134916, 0.00094733, 0.00066525, 0.00046711,
0.00032802, 0.00023034, 0.00016174, 0.00011358, 0.00007976, 0.00005600, 0.00003933, 0.00002762, 0.00001939, 0.00001362,
0.01219510, 0.00929368, 0.00707214, 0.00538793, 0.00410509,
},
["PALADIN"] = {
0.21740000, 0.20704800, 0.20704800, 0.19763601, 0.19763601, 0.18904300, 0.18904300, 0.18116700, 0.18116700, 0.17392000,
Expand All @@ -86,8 +85,7 @@ addon.CritPerAgi = {
0.06038890, 0.05956160, 0.05797330, 0.05721050, 0.05574360, 0.05503800, 0.05435000, 0.05302440, 0.05238550, 0.05115290,
0.04940910, 0.04831110, 0.04726090, 0.04576840, 0.04482470, 0.04391920, 0.04262750, 0.04180770, 0.04101890, 0.04025930,
0.03716240, 0.03450790, 0.03220740, 0.02978080, 0.02769430, 0.02572780, 0.02389010, 0.02229740, 0.02070480, 0.01923890,
0.01463970, 0.01114870, 0.00849219, 0.00647024, 0.00492412, 0.00230663, 0.00161937, 0.00113733, 0.00079868, 0.00056081,
0.00039381, 0.00027652, 0.00019418, 0.00013635, 0.00009575, 0.00006723, 0.00004721, 0.00003315, 0.00002328, 0.00001635,
0.01463970, 0.01114870, 0.00849219, 0.00647024, 0.00492412,
},
["HUNTER"] = {
0.28400000, 0.28343401, 0.27107401, 0.25299001, 0.24300499, 0.23373601, 0.22510700, 0.21705499, 0.20513700, 0.19836400,
Expand All @@ -98,8 +96,7 @@ addon.CritPerAgi = {
0.03659920, 0.03578580, 0.03500600, 0.03413840, 0.03342470, 0.03284840, 0.03207870, 0.03144320, 0.03073430, 0.03014770,
0.02967120, 0.02903510, 0.02842440, 0.02791680, 0.02734930, 0.02695050, 0.02641880, 0.02590650, 0.02541250, 0.02499810,
0.02323340, 0.02159330, 0.02006910, 0.01865240, 0.01733570, 0.01611190, 0.01497460, 0.01391750, 0.01293510, 0.01202200,
0.00915552, 0.00697209, 0.00530727, 0.00404195, 0.00307831, 0.00144129, 0.00101208, 0.00071069, 0.01154730, 0.01136360,
0.01123600, 0.01106190, 0.01089320, 0.01075270, 0.01059320, 0.01046030, 0.01030930, 0.01016260, 0.01002000, 0.00988142,
0.00915552, 0.00697209, 0.00530727, 0.00404195, 0.00307831,
},
["ROGUE"] = {
0.44760900, 0.42895800, 0.41180002, 0.38129601, 0.36767900, 0.35500000, 0.33209701, 0.32171900, 0.31196999, 0.29414301,
Expand All @@ -110,8 +107,7 @@ addon.CritPerAgi = {
0.04307530, 0.04219260, 0.04118000, 0.04037250, 0.03944440, 0.03855810, 0.03784930, 0.03703240, 0.03637810, 0.03550000,
0.03343390, 0.03217750, 0.03063990, 0.02959690, 0.02861530, 0.02767470, 0.02680990, 0.02618690, 0.02560950, 0.02499880,
0.02323930, 0.02158280, 0.02006820, 0.01865040, 0.01733160, 0.01611110, 0.01496370, 0.01391220, 0.01293340, 0.01202690,
0.00915925, 0.00697493, 0.00530944, 0.00404360, 0.00307957, 0.00144188, 0.00101249, 0.00071098, 0.00049925, 0.00035058,
0.00024617, 0.00017286, 0.00012139, 0.00008524, 0.00005985, 0.00004203, 0.00002951, 0.00002072, 0.00001455, 0.00001022,
0.00915925, 0.00697493, 0.00530944, 0.00404360, 0.00307957,
},
["PRIEST"] = {
0.09117500, 0.09117500, 0.09117500, 0.08683330, 0.08683330, 0.08683330, 0.08683330, 0.08288640, 0.08288640, 0.08288640,
Expand All @@ -122,8 +118,7 @@ addon.CritPerAgi = {
0.05065280, 0.05065280, 0.04928380, 0.04928380, 0.04798680, 0.04798680, 0.04675640, 0.04675640, 0.04558750, 0.04558750,
0.04449120, 0.04458550, 0.04426580, 0.04344670, 0.04271900, 0.04207770, 0.04151880, 0.04133470, 0.04117830, 0.04014610,
0.03721430, 0.03440570, 0.03199120, 0.02989340, 0.02762880, 0.02568310, 0.02399340, 0.02223780, 0.02072160, 0.01919470,
0.01461810, 0.01113190, 0.00847380, 0.00645353, 0.00491496, 0.00230122, 0.00161592, 0.00113472, 0.03508770, 0.03448280,
0.03448280, 0.03389830, 0.03333330, 0.03278690, 0.03278690, 0.03225810, 0.03174600, 0.03125000, 0.03076920, 0.03076920,
0.01461810, 0.01113190, 0.00847380, 0.00645353, 0.00491496,
},
["DEATHKNIGHT"] = {
0.24999999, 0.23809499, 0.23809499, 0.22727300, 0.21739099, 0.20833299, 0.20833299, 0.20000001, 0.19230800, 0.19230800,
Expand All @@ -134,8 +129,7 @@ addon.CritPerAgi = {
0.05952380, 0.05882350, 0.05747130, 0.05617980, 0.05494510, 0.05434780, 0.05319150, 0.05208330, 0.05102040, 0.05000000,
0.04761900, 0.04545450, 0.04347830, 0.04166670, 0.04000000, 0.03846150, 0.03703700, 0.03571430, 0.03448280, 0.03333330,
0.03105590, 0.02873560, 0.02673800, 0.02487560, 0.02314810, 0.02145920, 0.01992030, 0.01851850, 0.01724140, 0.01602560,
0.01220460, 0.00929400, 0.00707475, 0.00538804, 0.00410348, 0.00192160, 0.00134916, 0.00094733, 0.00066525, 0.00046711,
0.00032802, 0.00023034, 0.00016174, 0.00011358, 0.00007976, 0.00005600, 0.00003933, 0.00002762, 0.00001939, 0.00001362,
0.01220460, 0.00929400, 0.00707475, 0.00538804, 0.00410348,
},
["SHAMAN"] = {
0.10390000, 0.10390000, 0.09895239, 0.09895239, 0.09445450, 0.09445450, 0.09445450, 0.09034780, 0.09034780, 0.08658330,
Expand All @@ -146,8 +140,7 @@ addon.CritPerAgi = {
0.03710710, 0.03645610, 0.03645610, 0.03582760, 0.03463330, 0.03406560, 0.03351610, 0.03351610, 0.03298410, 0.03196920,
0.03102490, 0.03040300, 0.02935380, 0.02848270, 0.02807010, 0.02734040, 0.02668210, 0.02608150, 0.02552060, 0.02499630,
0.02323170, 0.02159180, 0.02006760, 0.01865100, 0.01733440, 0.01611080, 0.01497350, 0.01391650, 0.01293410, 0.01202110,
0.00915486, 0.00697159, 0.00530689, 0.00404166, 0.00307809, 0.00144118, 0.00101200, 0.00071064, 0.03300000, 0.03235290,
0.03203880, 0.03142860, 0.03113210, 0.03084110, 0.03000000, 0.02972970, 0.02946430, 0.02894740, 0.02869570, 0.02820510,
0.00915486, 0.00697159, 0.00530689, 0.00404166, 0.00307809,
},
["MAGE"] = {
0.07730000, 0.07730000, 0.07730000, 0.07361900, 0.07361900, 0.07361900, 0.07361900, 0.07361900, 0.07361900, 0.07027270,
Expand All @@ -158,8 +151,7 @@ addon.CritPerAgi = {
0.04831250, 0.04831250, 0.04684850, 0.04684850, 0.04684850, 0.04547060, 0.04547060, 0.04547060, 0.04417140, 0.04417140,
0.04417140, 0.04417140, 0.04294440, 0.04294440, 0.04294440, 0.04178380, 0.04178380, 0.04178380, 0.04068420, 0.04068420,
0.03770730, 0.03513640, 0.03289360, 0.03031370, 0.02810910, 0.02620340, 0.02415630, 0.02273530, 0.02089190, 0.01956960,
0.01486540, 0.01136760, 0.00863687, 0.00657872, 0.00500324, 0.00234598, 0.00164819, 0.00115719, 0.00081240, 0.00057048,
0.00040052, 0.00028130, 0.00019752, 0.00013869, 0.00009739, 0.00006839, 0.00004802, 0.00003372, 0.00002368, 0.00001663,
0.01486540, 0.01136760, 0.00863687, 0.00657872, 0.00500324,
},
["WARLOCK"] = {
0.11890000, 0.11890000, 0.11323800, 0.11323800, 0.11323800, 0.10809100, 0.10809100, 0.10809100, 0.10339100, 0.10339100,
Expand All @@ -170,8 +162,7 @@ addon.CritPerAgi = {
0.05425950, 0.05346520, 0.05268400, 0.05191560, 0.05115970, 0.05041610, 0.04968460, 0.04896490, 0.04825680, 0.04756000,
0.04687440, 0.04619980, 0.04553590, 0.04488250, 0.04423950, 0.04360670, 0.04298380, 0.04237070, 0.04176730, 0.04117320,
0.03835480, 0.03549250, 0.03302780, 0.03088310, 0.02865060, 0.02642220, 0.02451550, 0.02286540, 0.02123210, 0.01981670,
0.01509170, 0.01149260, 0.00874836, 0.00666263, 0.00507420, 0.00237578, 0.00166828, 0.00117148, 0.03296700, 0.03225810,
0.03191490, 0.03157890, 0.03125000, 0.03092780, 0.03030300, 0.03000000, 0.02970300, 0.02912620, 0.02884620, 0.02830190,
0.01509170, 0.01149260, 0.00874836, 0.00666263, 0.00507420,
},
["DRUID"] = {
0.12622500, 0.12622500, 0.12021400, 0.12021400, 0.11475000, 0.11475000, 0.10976100, 0.10976100, 0.10518699, 0.09709620,
Expand All @@ -182,8 +173,7 @@ addon.CritPerAgi = {
0.03606430, 0.03555630, 0.03506250, 0.03506250, 0.03411490, 0.03366000, 0.03321710, 0.03278570, 0.03236540, 0.03078660,
0.02988460, 0.02950110, 0.02849640, 0.02791070, 0.02738060, 0.02690250, 0.02647340, 0.02577280, 0.02537310, 0.02499810,
0.02323340, 0.02159330, 0.02006910, 0.01865240, 0.01733570, 0.01611190, 0.01497460, 0.01391750, 0.01293510, 0.01202200,
0.00915552, 0.00697209, 0.00530727, 0.00404195, 0.00307831, 0.00144129, 0.00101208, 0.00071069, 0.03388430, 0.03333330,
0.03280000, 0.03253970, 0.03203130, 0.03178290, 0.03106060, 0.03082710, 0.03037040, 0.02992700, 0.02971010, 0.02907800,
0.00915552, 0.00697209, 0.00530727, 0.00404195, 0.00307831,
},
}

Expand Down Expand Up @@ -278,6 +268,11 @@ addon.SpellCritPerInt = {
},
}

-- Through observations of data gathered from the result of GetDodgePerAgi() through addon comms,
-- each class except Hunter and Warlock has a constant conversion of CritPerAgi to DodgePerAgi for 1-80.
-- Levels 81-85 use that constant *and* an additional class-independent scalar; 2/3 at 85. 81-84 are TODO.
-- Hunter and Warlock don't use a constant conversion, but are exactly 15% greater than their WOTLK DodgePerAgi values.
-- These class constants are exactly 15% greater than WOTLK values, except rogue, which is slightly higher, at 2.06 instead of 2
addon.DodgePerAgi = {
["WARRIOR"] = addon.zero,
["PALADIN"] = addon.zero,
Expand All @@ -287,36 +282,65 @@ addon.DodgePerAgi = {
[85] = 0.00230177,
},
["ROGUE"] = {
0.91880004, -- [1]
[80] = 0.02474332,
[85] = 0.00430335,
0.92207454, 0.88365348, 0.84830804, 0.78546978, 0.75741874, 0.73130000, 0.68411984, 0.66274114, 0.64265818, 0.60593460,
0.54378644, 0.49320316, 0.44182674, 0.40784086, 0.36565000, 0.34205888, 0.32132908, 0.29870000, 0.27904966, 0.26182394,
0.24660054, 0.23564134, 0.22323808, 0.21421940, 0.20197806, 0.19279725, 0.18603242, 0.17821596, 0.17102985, 0.16313614,
0.15826650, 0.15257328, 0.14727579, 0.14233364, 0.13682396, 0.13254802, 0.12931526, 0.12548943, 0.12188340, 0.11782046,
0.11463612, 0.11161945, 0.10875749, 0.10551093, 0.10245266, 0.10003628, 0.09773134, 0.09553023, 0.09342594, 0.09063114,
0.08873512, 0.08691676, 0.08483080, 0.08316735, 0.08125546, 0.07942969, 0.07796956, 0.07628674, 0.07493889, 0.07313000,
0.06887383, 0.06628565, 0.06311819, 0.06096961, 0.05894752, 0.05700988, 0.05522839, 0.05394501, 0.05275557, 0.05149753,
0.04787296, 0.04446057, 0.04134049, 0.03841982, 0.03570310, 0.03318887, 0.03082522, 0.02865913, 0.02664280, 0.02477541,
[85] = 0.00422928,
},
["PRIEST"] = {
0.09080001, -- [1]
[80] = 0.01920001,
[85] = 0.00330000,
0.09117500, 0.09117500, 0.09117500, 0.08683330, 0.08683330, 0.08683330, 0.08683330, 0.08288640, 0.08288640, 0.08288640,
0.08288640, 0.07928260, 0.07928260, 0.07928260, 0.07928260, 0.07597920, 0.07597920, 0.07597920, 0.07294000, 0.07294000,
0.07294000, 0.07294000, 0.07013460, 0.07013460, 0.07013460, 0.06753700, 0.06753700, 0.06753700, 0.06512500, 0.06512500,
0.06512500, 0.06287930, 0.06287930, 0.06287930, 0.06078330, 0.06078330, 0.06078330, 0.05882260, 0.05882260, 0.05882260,
0.05698440, 0.05698440, 0.05525760, 0.05525760, 0.05525760, 0.05363240, 0.05363240, 0.05210000, 0.05210000, 0.05210000,
0.05065280, 0.05065280, 0.04928380, 0.04928380, 0.04798680, 0.04798680, 0.04675640, 0.04675640, 0.04558750, 0.04558750,
0.04449120, 0.04458550, 0.04426580, 0.04344670, 0.04271900, 0.04207770, 0.04151880, 0.04133470, 0.04117830, 0.04014610,
0.03721430, 0.03440570, 0.03199120, 0.02989340, 0.02762880, 0.02568310, 0.02399340, 0.02223780, 0.02072160, 0.01919470,
[85] = 0.00327664,
},
["DEATHKNIGHT"] = addon.zero,
["SHAMAN"] = {
0.16620000, -- [1]
[80] = 0.01920000,
[85] = 0.00330000,
0.16624000, 0.16624000, 0.15832382, 0.15832382, 0.15112720, 0.15112720, 0.15112720, 0.14455648, 0.14455648, 0.13853328,
0.13853328, 0.13299200, 0.13299200, 0.12787696, 0.12314080, 0.11874288, 0.11874288, 0.11464832, 0.11464832, 0.10725168,
0.10725168, 0.10390000, 0.10390000, 0.10075152, 0.09778816, 0.09499424, 0.09499424, 0.09235552, 0.09235552, 0.08749472,
0.08749472, 0.08525136, 0.08312000, 0.08312000, 0.07916192, 0.07732096, 0.07732096, 0.07556368, 0.07556368, 0.07227824,
0.07074048, 0.07074048, 0.06926672, 0.06785312, 0.06649600, 0.06519216, 0.06393840, 0.06273200, 0.06273200, 0.06045088,
0.05937136, 0.05832976, 0.05832976, 0.05732416, 0.05541328, 0.05450496, 0.05362576, 0.05362576, 0.05277456, 0.05115072,
0.04963984, 0.04864480, 0.04696608, 0.04557232, 0.04491216, 0.04374464, 0.04269136, 0.04173040, 0.04083296, 0.03999408,
0.03717072, 0.03454688, 0.03210816, 0.02984160, 0.02773504, 0.02577728, 0.02395760, 0.02226640, 0.02069456, 0.01923376,
[85] = 0.00328330,
},
["MAGE"] = {
0.07712273, -- [1]
[80] = 0.01951111,
[85] = 0.00331163,
0.07730000, 0.07730000, 0.07730000, 0.07361900, 0.07361900, 0.07361900, 0.07361900, 0.07361900, 0.07361900, 0.07027270,
0.07027270, 0.07027270, 0.07027270, 0.07027270, 0.06721740, 0.06721740, 0.06721740, 0.06721740, 0.06721740, 0.06441670,
0.06441670, 0.06441670, 0.06441670, 0.06184000, 0.06184000, 0.06184000, 0.06184000, 0.06184000, 0.05946150, 0.05946150,
0.05946150, 0.05946150, 0.05725930, 0.05725930, 0.05725930, 0.05521430, 0.05521430, 0.05521430, 0.05521430, 0.05331030,
0.05331030, 0.05331030, 0.05331030, 0.05153330, 0.05153330, 0.05153330, 0.04987100, 0.04987100, 0.04987100, 0.04831250,
0.04831250, 0.04831250, 0.04684850, 0.04684850, 0.04684850, 0.04547060, 0.04547060, 0.04547060, 0.04417140, 0.04417140,
0.04417140, 0.04417140, 0.04294440, 0.04294440, 0.04294440, 0.04178380, 0.04178380, 0.04178380, 0.04068420, 0.04068420,
0.03770730, 0.03513640, 0.03289360, 0.03031370, 0.02810910, 0.02620340, 0.02415630, 0.02273530, 0.02089190, 0.01956960,
[85] = 0.00333549,
},
["WARLOCK"] = {
0.14830000, -- [1]
[80] = 0.01920000,
[85] = 0.00330000,
},
["DRUID"] = {
0.25239997, -- [1]
[80] = 0.02400000,
[85] = 0.00410000,

0.25245000, 0.25245000, 0.24042800, 0.24042800, 0.22950000, 0.22950000, 0.21952200, 0.21952200, 0.21037398, 0.19419240,
0.18700000, 0.18700000, 0.18032140, 0.18032140, 0.16830000, 0.16830000, 0.16287100, 0.15778120, 0.15778120, 0.14025000,
0.14025000, 0.13645940, 0.13286840, 0.13286840, 0.12622500, 0.12622500, 0.12314640, 0.12021420, 0.12021420, 0.10976080,
0.10742560, 0.10742560, 0.10518740, 0.10304080, 0.10098000, 0.09900000, 0.09709620, 0.09709620, 0.09526420, 0.08857900,
0.08705180, 0.08705180, 0.08557620, 0.08415000, 0.08143540, 0.08014280, 0.08014280, 0.07889060, 0.07767700, 0.07317400,
0.07212860, 0.07111260, 0.07012500, 0.07012500, 0.06822980, 0.06732000, 0.06643420, 0.06557140, 0.06473080, 0.06157320,
0.05976920, 0.05900220, 0.05699280, 0.05582140, 0.05476120, 0.05380500, 0.05294680, 0.05154560, 0.05074620, 0.04999620,
0.04646680, 0.04318660, 0.04013820, 0.03730480, 0.03467140, 0.03222380, 0.02994920, 0.02783500, 0.02587020, 0.02404400,
[85] = 0.00410441,
},
}

Expand Down

0 comments on commit 6a198ae

Please sign in to comment.