Skip to content

Commit

Permalink
npc.php: increase trade route variety by 50%
Browse files Browse the repository at this point in the history
NPCs often end up using the same ports over and over again because those
ports are part of the same top-profit routes. By increasing the number
of routes the NPCs select from, we should see a bit more variety in
which ports are used.
  • Loading branch information
hemberger committed Sep 28, 2023
1 parent 1e53499 commit 1636bed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/npc/npc.php
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ function findRoutes(AbstractPlayer $player): array {

$maxNumberOfPorts = 2;
$routesForPort = -1;
$numberOfRoutes = 100;
$numberOfRoutes = 150;
$maxDistance = 15;

$db = Database::getInstance();
Expand Down

0 comments on commit 1636bed

Please sign in to comment.