Skip to content

Commit

Permalink
SmrCombatDrones: remove internal references
Browse files Browse the repository at this point in the history
  • Loading branch information
hemberger committed Mar 27, 2018
1 parent d69388c commit e5dc2ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Default/SmrCombatDrones.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ class SmrCombatDrones extends AbstractSmrCombatWeapon {
$modifiedAccuracy = $this->getModifiedAccuracy();
$modifiedAccuracy += ($random + mt_rand($weaponPlayer->getLevelID() / 2,$weaponPlayer->getLevelID()) - ($targetPlayer->getLevelID() - $weaponPlayer->getLevelID())/3)/1.5;

$weaponShip =& $weaponPlayer->getShip();
$targetShip =& $targetPlayer->getShip();
$weaponShip = $weaponPlayer->getShip();
$targetShip = $targetPlayer->getShip();
$mrDiff = $targetShip->getMR() - $weaponShip->getMR();
if($mrDiff > 0)
$modifiedAccuracy -= $this->getBaseAccuracy() * ($mrDiff/MR_FACTOR)/100;
Expand Down Expand Up @@ -312,4 +312,4 @@ class SmrCombatDrones extends AbstractSmrCombatWeapon {
}
}

?>
?>

0 comments on commit e5dc2ab

Please sign in to comment.