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

126 lines
4.2 KiB
PHP
Raw Normal View History

<?php
// Units, with Die Stämme-like stats. A unit is trained from one villager at its building
// type; while queued and after, it eats `upkeep` food per hour instead of that villager.
// build_time is seconds per unit at world speed 1, building level 1 and full staffing.
// speed is minutes per field (M4), carry is loot per unit (M4). volley is what one unit
// shoots before the melee, in food upkeep of the enemy it kills (0 when missing; see combat.php).
return [
'spear' => [
'building' => 'barracks',
'cost' => ['wood' => 50, 'clay' => 30, 'iron' => 10],
'upkeep' => 1,
'build_time' => 1020,
'attack' => 10,
'defense' => ['infantry' => 15, 'cavalry' => 45, 'archer' => 20],
'class' => 'infantry',
'speed' => 18,
'carry' => 25,
'requires' => [],
],
'sword' => [
'building' => 'barracks',
'cost' => ['wood' => 30, 'clay' => 30, 'iron' => 70],
'upkeep' => 1,
'build_time' => 1500,
'attack' => 25,
'defense' => ['infantry' => 50, 'cavalry' => 15, 'archer' => 40],
'class' => 'infantry',
'speed' => 22,
'carry' => 15,
'requires' => [],
],
'archer' => [
'building' => 'barracks',
'cost' => ['wood' => 100, 'clay' => 30, 'iron' => 60],
'upkeep' => 1,
'build_time' => 1800,
'attack' => 15,
'defense' => ['infantry' => 50, 'cavalry' => 40, 'archer' => 5],
'class' => 'archer',
'volley' => 0.1,
'speed' => 18,
'carry' => 10,
'requires' => ['barracks' => 3],
],
// Scouts don't fight: they meet the defending scouts first, and if enough get through,
// the report shows the village's troops, resources and buildings (combat.scouting).
'scout' => [
'building' => 'stable',
'cost' => ['wood' => 50, 'clay' => 50, 'iron' => 20],
'upkeep' => 2,
'build_time' => 900,
'attack' => 0,
'defense' => ['infantry' => 0, 'cavalry' => 0, 'archer' => 0],
'class' => 'cavalry',
'speed' => 9,
'carry' => 0,
'scout' => true,
'requires' => [],
],
'light_cavalry' => [
'building' => 'stable',
'cost' => ['wood' => 125, 'clay' => 100, 'iron' => 250],
'upkeep' => 3,
'build_time' => 1800,
'attack' => 130,
'defense' => ['infantry' => 30, 'cavalry' => 40, 'archer' => 30],
'class' => 'cavalry',
'speed' => 10,
'carry' => 80,
'requires' => [],
],
'heavy_cavalry' => [
'building' => 'stable',
'cost' => ['wood' => 200, 'clay' => 150, 'iron' => 600],
'upkeep' => 4,
'build_time' => 3600,
'attack' => 150,
'defense' => ['infantry' => 200, 'cavalry' => 80, 'archer' => 180],
'class' => 'cavalry',
'speed' => 11,
'carry' => 50,
'requires' => ['stable' => 5],
],
'ram' => [
'building' => 'workshop',
'cost' => ['wood' => 300, 'clay' => 200, 'iron' => 200],
'upkeep' => 4,
'build_time' => 4800,
'attack' => 2,
'defense' => ['infantry' => 20, 'cavalry' => 50, 'archer' => 20],
'class' => 'infantry',
'speed' => 30,
'carry' => 0,
'requires' => [],
],
'catapult' => [
'building' => 'workshop',
'cost' => ['wood' => 320, 'clay' => 400, 'iron' => 100],
'upkeep' => 6,
'build_time' => 7200,
'attack' => 100,
'defense' => ['infantry' => 100, 'cavalry' => 50, 'archer' => 100],
'class' => 'infantry',
'volley' => 0.5,
'speed' => 30,
'carry' => 0,
'requires' => ['workshop' => 2],
],
'nobleman' => [
'building' => 'academy',
'cost' => ['wood' => 40000, 'clay' => 50000, 'iron' => 50000],
'upkeep' => 10,
'build_time' => 10800,
'attack' => 30,
'defense' => ['infantry' => 100, 'cavalry' => 50, 'archer' => 100],
'class' => 'infantry',
'speed' => 35,
'carry' => 0,
// Lowers loyalty when it survives a won attack (combat.conquest).
'noble' => true,
'requires' => [],
],
];