2026-10-28 20:39:48 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
// Units, with Die Stämme-like stats. A unit is trained from one villager at its building
|
2026-11-03 08:42:07 +00:00
|
|
|
// type; while queued and after, it takes `upkeep` heads of the food budget instead of that
|
|
|
|
|
// villager: it eats `upkeep` food per hour at world speed 1, world speed times that on a
|
|
|
|
|
// faster world.
|
2026-10-28 21:26:25 +00:00
|
|
|
// build_time is seconds per unit at world speed 1, building level 1 and full staffing.
|
2026-10-31 09:59:32 +00:00
|
|
|
// 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).
|
2026-10-28 20:39:48 +00:00
|
|
|
|
|
|
|
|
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',
|
2026-10-31 09:59:32 +00:00
|
|
|
'volley' => 0.1,
|
2026-10-28 20:39:48 +00:00
|
|
|
'speed' => 18,
|
|
|
|
|
'carry' => 10,
|
|
|
|
|
'requires' => ['barracks' => 3],
|
|
|
|
|
],
|
2026-10-28 23:10:49 +00:00
|
|
|
// 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' => [],
|
|
|
|
|
],
|
2026-10-28 20:39:48 +00:00
|
|
|
'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',
|
2026-10-31 09:59:32 +00:00
|
|
|
'volley' => 0.5,
|
2026-10-28 20:39:48 +00:00
|
|
|
'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,
|
2026-10-29 09:28:20 +00:00
|
|
|
// Lowers loyalty when it survives a won attack (combat.conquest).
|
|
|
|
|
'noble' => true,
|
2026-10-28 20:39:48 +00:00
|
|
|
'requires' => [],
|
|
|
|
|
],
|
|
|
|
|
];
|