diff --git a/webapp/services/FormulaService.php b/webapp/services/FormulaService.php index 6ed0a55a..16a94b2d 100644 --- a/webapp/services/FormulaService.php +++ b/webapp/services/FormulaService.php @@ -88,9 +88,9 @@ class FormulaService extends BaseService { $lucky = 0; $upLimit = round( ( - 0.0111*pow($heroDb['quality'],3) - - 0.25974*pow($heroDb['quality'],2) + - 3.29292*$heroDb['quality'] + + 0.0111*pow($weaponDb['quality'],3) - + 0.25974*pow($weaponDb['quality'],2) + + 3.29292*$weaponDb['quality'] + 1.3389 ) + ( @@ -110,9 +110,9 @@ class FormulaService extends BaseService { $lucky = 0; $upLimit = round( ( - 0.0259*pow($heroDb['quality'],3) - - 0.6061*pow($heroDb['quality'],2) + - 7.6836*$heroDb['quality'] + + 0.0259*pow($weaponDb['quality'],3) - + 0.6061*pow($weaponDb['quality'],2) + + 7.6836*$weaponDb['quality'] + 3.1241 ) + (