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:
parent
e63de92e5b
commit
65cd7cd333
|
|
@ -23,7 +23,7 @@ return [
|
||||||
'map' => [
|
'map' => [
|
||||||
'size' => 1000,
|
'size' => 1000,
|
||||||
// Most fields one map.view may cover in each direction.
|
// 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.
|
// Seeded once per world around the map centre, buildings at random levels up to max_level.
|
||||||
'barbarians' => ['count' => 120, 'radius' => 25, 'max_level' => 3],
|
'barbarians' => ['count' => 120, 'radius' => 25, 'max_level' => 3],
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -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);
|
$edge = app(ShowMap::class)(owner($village), $village->world_id, 2, 998, 15, 999);
|
||||||
|
|
||||||
expect($far['villages'])->toBe([])
|
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 () {
|
it('seeds barbarian villages once per world, away from the spawn centre', function () {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue