game-village-politics-backend/config/game/world.php

31 lines
989 B
PHP
Raw Normal View History

<?php
// World defaults. A world's `config` JSON overrides any key (see WorldConfig).
return [
// Multiplies production and divides every duration.
'speed' => 1.0,
'village' => [
// Building space: the sum of the buildings' `space` may not exceed it.
'space' => 50,
'start_resources' => ['wood' => 500, 'clay' => 500, 'iron' => 500, 'food' => 300],
// Auto-placed at level 0 in this order.
'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,
// Most fields one map.view may cover in each direction.
'max_view' => 41,
// Seeded once per world around the map centre, buildings at random levels up to max_level.
'barbarians' => ['count' => 120, 'radius' => 25, 'max_level' => 3],
],
];