2026-10-28 18:17:34 +00:00
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
// World defaults. A world's `config` JSON overrides any key (see WorldConfig).
|
|
|
|
|
|
|
|
|
|
|
|
return [
|
|
|
|
|
|
// Multiplies production and divides every duration.
|
|
|
|
|
|
'speed' => 1.0,
|
|
|
|
|
|
|
|
|
|
|
|
'village' => [
|
2026-10-28 21:16:45 +00:00
|
|
|
|
// Building space: the sum of the buildings' `space` may not exceed
|
2026-10-28 21:26:25 +00:00
|
|
|
|
// space + space_per_hq_level × (headquarters level − 1): 40 at level 1, 60 at 2, ...
|
2026-10-28 21:16:45 +00:00
|
|
|
|
'space' => 40,
|
|
|
|
|
|
'space_per_hq_level' => 20,
|
2026-10-28 18:17:34 +00:00
|
|
|
|
'start_resources' => ['wood' => 500, 'clay' => 500, 'iron' => 500, 'food' => 300],
|
2026-10-28 21:26:25 +00:00
|
|
|
|
// Auto-placed at level 1 in this order.
|
2026-10-28 18:17:34 +00:00
|
|
|
|
'start_buildings' => ['headquarters', 'storage', 'farm'],
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
|
|
'builders' => [
|
|
|
|
|
|
'base' => 2,
|
|
|
|
|
|
// One more builder from each of these headquarters levels on.
|
|
|
|
|
|
'extra_at_hq_levels' => [10, 20],
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
|
|
'map' => [
|
|
|
|
|
|
'size' => 1000,
|
2026-10-28 18:45:02 +00:00
|
|
|
|
// Most fields one map.view may cover in each direction.
|
2026-10-28 19:21:34 +00:00
|
|
|
|
'max_view' => 61,
|
2026-10-28 18:45:02 +00:00
|
|
|
|
// Seeded once per world around the map centre, buildings at random levels up to max_level.
|
2026-10-28 20:32:09 +00:00
|
|
|
|
// Every few hours (at world speed) one building of each grows a level, up to growth.max_level.
|
|
|
|
|
|
'barbarians' => [
|
|
|
|
|
|
'count' => 120,
|
|
|
|
|
|
'radius' => 25,
|
|
|
|
|
|
'max_level' => 3,
|
|
|
|
|
|
'growth' => ['every_hours' => 8, 'max_level' => 10],
|
|
|
|
|
|
],
|
|
|
|
|
|
// New players start on a ring around the centre: start_radius + sqrt(players / (π·density)),
|
|
|
|
|
|
// ± band fields, never next to another village.
|
|
|
|
|
|
'spawn' => ['start_radius' => 6, 'density' => 0.08, 'band' => 2],
|
2026-10-28 18:17:34 +00:00
|
|
|
|
],
|
|
|
|
|
|
];
|