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

111 lines
4.2 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
// Values per building type. Levels start at 0 (tent, open storage, gatherers).
// 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.
return [
'headquarters' => [
'footprint' => [3, 3],
'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,
'requires' => [],
],
'storage' => [
'footprint' => [2, 2],
'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,
'requires' => [],
],
'farm' => [
'footprint' => [2, 2],
'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,
'requires' => [],
],
'timber_camp' => [
'footprint' => [2, 2],
'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,
'requires' => [],
],
'clay_pit' => [
'footprint' => [2, 2],
'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,
'requires' => [],
],
'iron_mine' => [
'footprint' => [2, 2],
'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,
'requires' => [],
],
'hiding_place' => [
'footprint' => [1, 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,
'requires' => [],
],
'wall' => [
// Surrounds the village and takes no cells.
'footprint' => [0, 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,
'requires' => ['headquarters' => 1],
],
'rally_point' => [
'footprint' => [1, 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,
'requires' => [],
],
];