Skip to content

Commit

Permalink
Improvements thanks to Scrutinizer
Browse files Browse the repository at this point in the history
  • Loading branch information
thekabal committed Sep 20, 2021
1 parent cf7d412 commit 124fcea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions classes/KabalHunt.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ public static function hunt(\PDO $pdo_db, string $lang, array $playerinfo, int $
$top_players = $stmt->fetch(\PDO::FETCH_ASSOC);

// Choose a target from the top player list
$counter = 1;
$targetnum = random_int(1, $topnum);
$targetinfo = $top_players[$targetnum];

Expand Down Expand Up @@ -95,7 +94,7 @@ public static function hunt(\PDO $pdo_db, string $lang, array $playerinfo, int $
\Tki\PlayerLog::writeLog($pdo_db, $playerinfo['ship_id'], LogEnums::RAW, "Kabal used a wormhole to warp to sector $targetinfo[sector] where he is hunting player $targetinfo[character_name].");
if (!$result)
{
$error = '';
$error = null;
// $error = $old_db->ErrorMsg();
\Tki\PlayerLog::writeLog($pdo_db, $playerinfo['ship_id'], LogEnums::RAW, "Move failed with error: $error ");

Expand Down

0 comments on commit 124fcea

Please sign in to comment.