diff --git a/config/game/world.php b/config/game/world.php index e5c0777..60edc63 100644 --- a/config/game/world.php +++ b/config/game/world.php @@ -23,7 +23,7 @@ return [ 'map' => [ 'size' => 1000, // Most fields one map.view may cover in each direction. - 'max_view' => 41, + 'max_view' => 61, // Seeded once per world around the map centre, buildings at random levels up to max_level. 'barbarians' => ['count' => 120, 'radius' => 25, 'max_level' => 3], ], diff --git a/tests/Feature/MapTest.php b/tests/Feature/MapTest.php index bdade4e..89334de 100644 --- a/tests/Feature/MapTest.php +++ b/tests/Feature/MapTest.php @@ -27,7 +27,7 @@ it('shows only the window around the given centre, kept inside the map', functio $edge = app(ShowMap::class)(owner($village), $village->world_id, 2, 998, 15, 999); expect($far['villages'])->toBe([]) - ->and($edge)->toMatchArray(['x' => 0, 'y' => 959, 'w' => 15, 'h' => 41]); + ->and($edge)->toMatchArray(['x' => 0, 'y' => 939, 'w' => 15, 'h' => 61]); }); it('seeds barbarian villages once per world, away from the spawn centre', function () {