diff --git a/www/res/scripts/calculations.php b/www/res/scripts/calculations.php index bbe0f87..4fd69f5 100644 --- a/www/res/scripts/calculations.php +++ b/www/res/scripts/calculations.php @@ -71,6 +71,8 @@ function calculateDps($stdClassWeapon, $unitID, $Projectile){ /// BTW - SpookyDB uses round(), not floor(), based on the values seen there. Values will not match between DBs. floor() is the correct method. if(isset($weapon["RateOfFire"])) { $trueReload = max(0.1*floor(10 / $weapon["RateOfFire"]), 0.1); + } else { + $trueReload = 1; } $trueReload = max( ($weapon["RackSalvoChargeTime"] ?? 0) + ($weapon["RackSalvoReloadTime"] ?? 0) +