Skip to content

Commit

Permalink
Xenobe Various fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
thekabal committed Jun 10, 2016
1 parent 9f13c47 commit 62b1587
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions classes/Xenobe.php
Original file line number Diff line number Diff line change
Expand Up @@ -345,18 +345,6 @@ public static function xenobeToPlanet($pdo_db, $db, $planet_id, \Tki\Reg $tkireg
}
}

if ($attackerbeams > 0) // Attacker has beams left - continue combat - Beams v. shields
{
if ($attackerbeams > $targetshields) // Attacker beams greater than target shields
{
$attackerbeams = $attackerbeams - $targetshields; // Attacker loses beams equal to target shields
}
else // Attacker beams less than or equal to target shields
{
$attackerbeams = 0; // Attacker loses all beams
}
}

if ($targetbeams > 0) // Target has beams left - continue combat - Beams v. shields
{
if ($targetbeams > $attackershields) // Target beams greater than attacker shields
Expand Down

0 comments on commit 62b1587

Please sign in to comment.