feat: map.view windows up to 61 fields for the minimap

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Fabian @ Blax Software 2026-10-28 20:21:34 +01:00
parent e63de92e5b
commit 65cd7cd333
2 changed files with 2 additions and 2 deletions

View File

@ -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],
],

View File

@ -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 () {