Druids Rule Recoded
01.09.2010 by Stephanie
I used to be an avid World of Warcraft gamer. The keyword is used to be. Back in 2008, I built a PHP tool to calculate some gaming stats. Basically it involved a lot of math. In sheer determination to fix up a lot of my personal projects, I went ahead and gave it a minimal simple new layout and cleaner xhtml.
There’s a bit of php math going on in this project (which was how I learned most of the php math I know today):
// formulas $base_regen = 0.005575; $mp5 = 5 * (0.001 + sqrt($int) * $spirit * $base_regen); $mp5_from_gear = $head + $neck + $shoulder + $back + $chest + $bracers + $gloves + $waist + $pants + $boots + $ring1 + $ring2 + $trink1 + $trink2+ $weapon + $offhand + $idol; $spirit_without_ls = $spirit - (floor($spirit * 0.15)); $mp5_without_ls = (0.001 + sqrt($int) * $spirit_without_ls * $base_regen);
One of these days, I’m going to find a better way to do all those calculations. Haha.
Check out the current version here.













