- fixed some typos

- fixed a forgotten query to use ?_icons

rerun 'php aowow --sql=item_stats' to generate the missing stats for gems
This commit is contained in:
Sarjuuk
2015-06-06 09:17:47 +02:00
parent c93b08f333
commit 618217b970
4 changed files with 10 additions and 4 deletions

View File

@@ -99,7 +99,7 @@ class ItemStatSetup extends ItemList
if ($item > 0) // apply socketBonus
$this->json[$item]['socketbonusstat'] = $stats;
else /* if ($item < 0) */ // apply gemEnchantment
Util::arraySumByKey($this->json[-$item][$mod], $stats);
Util::arraySumByKey($this->json[-$item], $stats);
}
}
}

View File

@@ -120,7 +120,7 @@ function taxi() // path & nodes
continue;
$dist = pow($c['posX'] - $n['origPosX'], 2) + pow($c['posY'] - $n['origPosY'], 2);
if ($dist > 1000)
if ($dist > 1000)
continue;
if (!isset($n['dist']) || $n['dist'] < $dist)