1.0, 'village' => [ // Building space: the sum of the buildings' `space` may not exceed // space + space_per_hq_level × (headquarters level − 1): 40 at level 1, 45 at 2, 85 at // 10. Scarce on purpose: what goes in is the village's main choice. 'space' => 40, 'space_per_hq_level' => 5, // What fills the space gives a village its role. When one role's buildings take at // least `share` of the space both roles' buildings take together, and min_space of // it, the village has that role and its bonus: a resource village produces more in // its camps, a military village trains faster and its defenders fight harder. 'specialisation' => [ 'share' => 0.7, 'min_space' => 16, 'roles' => [ 'resources' => ['buildings' => ['timber_camp', 'clay_pit', 'iron_mine'], 'production' => 0.2], 'military' => ['buildings' => ['barracks', 'stable', 'workshop', 'academy'], 'recruit_speed' => 0.2, 'defense' => 0.1], ], ], 'start_resources' => ['wood' => 500, 'clay' => 500, 'iron' => 500, 'food' => 300], // Auto-placed at level 1 in this order. 'start_buildings' => ['headquarters', 'storage', 'farm'], ], // A world is a season. crowns_after_days (at world speed) after it starts, `crowns` // crown forts appear on a ring of `radius` fields around 0|0: barbarian villages with // these building levels and this garrison, which never raid. A player who holds more // than half of them for hold_days wins; the world ends and the next one opens. 'season' => [ 'crowns_after_days' => 30, 'crowns' => 5, 'radius' => 10, 'buildings' => ['headquarters' => 20, 'storage' => 20, 'farm' => 30, 'wall' => 20, 'timber_camp' => 15, 'clay_pit' => 15, 'iron_mine' => 15], 'garrison' => ['spear' => 300, 'sword' => 300, 'archer' => 150, 'heavy_cavalry' => 50], 'hold_days' => 7, ], 'builders' => [ 'base' => 2, // One more builder from each of these headquarters levels on. 'extra_at_hq_levels' => [10, 20], ], 'map' => [ // Fields per side. The world starts at 0|0; coordinates run from −size/2 to size/2 − 1. 'size' => 1000, // Most fields one map.view may cover in each direction. 'max_view' => 61, // Like Die Stämme, villages settle on a frontier around 0|0 that grows with all // villages (players and barbarians): start_radius + sqrt(villages / (π·density)), // ± band fields. 0.29 is DS's density: about one village in 3.4 fields. A new // player avoids the fields right next to other players for as long as it can. 'spawn' => ['start_radius' => 0, 'density' => 0.29, 'band' => 3], // Barbarian villages come with the players: per_join on average for each joining // player (1.3 = one, and a second with 30% chance, as in DS), within near fields of // the new village, buildings at random levels up to max_level. Every few hours (at // world speed) one building of each grows a level, up to growth.max_level. 'barbarians' => [ 'per_join' => 1.3, 'near' => 4, 'max_level' => 3, 'growth' => ['every_hours' => 8, 'max_level' => 10], // Troops a barbarian village holds at full strength: per_point × (points − // free_points) heads, split by its profile's shares (the profile follows from // the village id), and never eating more than max_food_share of its farms' // food budget. After a hit, or when the village grows, it regroups: every // regroup.every_hours (at world speed) it gets regroup.share of full strength back. 'garrison' => [ 'per_point' => 0.1, 'free_points' => 30, 'max_food_share' => 0.5, 'profiles' => [ 'spearmen' => ['spear' => 0.7, 'sword' => 0.3], 'swordsmen' => ['sword' => 0.7, 'spear' => 0.3], 'archers' => ['archer' => 0.6, 'spear' => 0.4], 'riders' => ['light_cavalry' => 0.5, 'spear' => 0.5], ], 'regroup' => ['every_hours' => 2, 'share' => 0.25], ], ], ], ];