122 lines
4.8 KiB
PHP
122 lines
4.8 KiB
PHP
<?php
|
||
|
||
// Values per building type. Levels start at 0 (tent, open storage, gatherers).
|
||
// `space` is how much of the village's building space an instance takes, at any level.
|
||
// Level n: cost = cost × factor^n, build time = base × factor^n seconds at world speed 1,
|
||
// workers = round(base × factor^n), production/capacity = base × factor^n.
|
||
// The n-th instance of a type (0-based) costs instance_cost_factor^n times as much.
|
||
// Map points of an instance: round(points.base × points.factor^level).
|
||
|
||
return [
|
||
'headquarters' => [
|
||
'space' => 9,
|
||
'max_per_village' => 1,
|
||
'max_level' => 30,
|
||
'cost' => ['wood' => 90, 'clay' => 80, 'iron' => 70, 'factor' => 1.26],
|
||
'build_time' => ['base' => 120, 'factor' => 1.2],
|
||
'workers' => ['base' => 2, 'factor' => 1.1],
|
||
'production' => null,
|
||
'instance_cost_factor' => 1.0,
|
||
'points' => ['base' => 10, 'factor' => 1.2],
|
||
'requires' => [],
|
||
],
|
||
'storage' => [
|
||
'space' => 4,
|
||
'max_per_village' => null,
|
||
'max_level' => 30,
|
||
'cost' => ['wood' => 60, 'clay' => 50, 'iron' => 40, 'factor' => 1.27],
|
||
'build_time' => ['base' => 100, 'factor' => 1.2],
|
||
'workers' => ['base' => 1, 'factor' => 1.1],
|
||
'production' => null,
|
||
'capacity' => ['base' => 1000, 'factor' => 1.23],
|
||
'instance_cost_factor' => 1.5,
|
||
'points' => ['base' => 6, 'factor' => 1.2],
|
||
'requires' => [],
|
||
],
|
||
'farm' => [
|
||
'space' => 4,
|
||
'max_per_village' => null,
|
||
'max_level' => 30,
|
||
'cost' => ['wood' => 45, 'clay' => 40, 'iron' => 30, 'factor' => 1.27],
|
||
'build_time' => ['base' => 120, 'factor' => 1.2],
|
||
'workers' => ['base' => 2, 'factor' => 1.1],
|
||
'production' => ['resource' => 'food', 'base' => 30, 'factor' => 1.17],
|
||
'instance_cost_factor' => 1.5,
|
||
'points' => ['base' => 5, 'factor' => 1.2],
|
||
'requires' => [],
|
||
],
|
||
'timber_camp' => [
|
||
'space' => 4,
|
||
'max_per_village' => null,
|
||
'max_level' => 30,
|
||
'cost' => ['wood' => 50, 'clay' => 60, 'iron' => 40, 'factor' => 1.25],
|
||
'build_time' => ['base' => 90, 'factor' => 1.2],
|
||
'workers' => ['base' => 2, 'factor' => 1.12],
|
||
'production' => ['resource' => 'wood', 'base' => 30, 'factor' => 1.163],
|
||
'instance_cost_factor' => 1.5,
|
||
'points' => ['base' => 6, 'factor' => 1.2],
|
||
'requires' => [],
|
||
],
|
||
'clay_pit' => [
|
||
'space' => 4,
|
||
'max_per_village' => null,
|
||
'max_level' => 30,
|
||
'cost' => ['wood' => 65, 'clay' => 50, 'iron' => 40, 'factor' => 1.27],
|
||
'build_time' => ['base' => 90, 'factor' => 1.2],
|
||
'workers' => ['base' => 2, 'factor' => 1.12],
|
||
'production' => ['resource' => 'clay', 'base' => 30, 'factor' => 1.163],
|
||
'instance_cost_factor' => 1.5,
|
||
'points' => ['base' => 6, 'factor' => 1.2],
|
||
'requires' => [],
|
||
],
|
||
'iron_mine' => [
|
||
'space' => 4,
|
||
'max_per_village' => null,
|
||
'max_level' => 30,
|
||
'cost' => ['wood' => 75, 'clay' => 65, 'iron' => 70, 'factor' => 1.252],
|
||
'build_time' => ['base' => 110, 'factor' => 1.2],
|
||
'workers' => ['base' => 2, 'factor' => 1.12],
|
||
'production' => ['resource' => 'iron', 'base' => 30, 'factor' => 1.163],
|
||
'instance_cost_factor' => 1.5,
|
||
'points' => ['base' => 6, 'factor' => 1.2],
|
||
'requires' => [],
|
||
],
|
||
'hiding_place' => [
|
||
'space' => 1,
|
||
'max_per_village' => null,
|
||
'max_level' => 10,
|
||
'cost' => ['wood' => 50, 'clay' => 60, 'iron' => 50, 'factor' => 1.25],
|
||
'build_time' => ['base' => 60, 'factor' => 1.2],
|
||
'workers' => ['base' => 0, 'factor' => 1.0],
|
||
'production' => null,
|
||
'instance_cost_factor' => 1.5,
|
||
'points' => ['base' => 5, 'factor' => 1.2],
|
||
'requires' => [],
|
||
],
|
||
'wall' => [
|
||
// Surrounds the village and takes no building space.
|
||
'space' => 0,
|
||
'max_per_village' => 1,
|
||
'max_level' => 20,
|
||
'cost' => ['wood' => 50, 'clay' => 100, 'iron' => 20, 'factor' => 1.26],
|
||
'build_time' => ['base' => 300, 'factor' => 1.2],
|
||
'workers' => ['base' => 1, 'factor' => 1.1],
|
||
'production' => null,
|
||
'instance_cost_factor' => 1.0,
|
||
'points' => ['base' => 8, 'factor' => 1.2],
|
||
'requires' => ['headquarters' => 1],
|
||
],
|
||
'rally_point' => [
|
||
'space' => 1,
|
||
'max_per_village' => 1,
|
||
'max_level' => 1,
|
||
'cost' => ['wood' => 10, 'clay' => 40, 'iron' => 30, 'factor' => 1.26],
|
||
'build_time' => ['base' => 60, 'factor' => 1.2],
|
||
'workers' => ['base' => 0, 'factor' => 1.0],
|
||
'production' => null,
|
||
'instance_cost_factor' => 1.0,
|
||
'points' => ['base' => 2, 'factor' => 1.2],
|
||
'requires' => [],
|
||
],
|
||
];
|