I am trying to figure out the algorithm/formula for item stat scaling in WoW. If you play in battlegrounds or arenas, your item's stats increase to the highest possible level in that bracket. So if you're level 10 your items will be boosted to level 19 in that bracket. 20 will be 29 and so on.
I have an example here:
This item is level level 20 and has 10 armor, 7 agility, and 7 stamina. When you join the arena or battleground, it will increase to this:
I am trying to figure out this algorithm/formula, so I can enter any item's item level and stats, which will then figure out the stats when in a battleground or arena. How would I approach that? I've tried a few isolation equations, but it won't really work :( Thanks in advance!