2026-10-28 18:17:34 +00:00
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
return [
|
|
|
|
|
|
// Per hour at world speed 1, regardless of staffing.
|
|
|
|
|
|
'base_production' => ['wood' => 5, 'clay' => 5, 'iron' => 5],
|
|
|
|
|
|
|
|
|
|
|
|
// Food per hour each villager eats.
|
|
|
|
|
|
'upkeep' => ['villager' => 1],
|
|
|
|
|
|
|
2026-10-28 20:28:16 +00:00
|
|
|
|
// Villagers and soldiers fill this share of the farms' nominal output; the rest is
|
|
|
|
|
|
// surplus that goes into storage. Expensive units eat into it, down to starvation.
|
|
|
|
|
|
'villager_share' => 0.8,
|
|
|
|
|
|
|
2026-10-28 18:17:34 +00:00
|
|
|
|
// Output at staffing ratio r is e^(k·(r−1)): 100% full, about 10% empty.
|
|
|
|
|
|
'staffing' => ['k' => 2.3],
|
|
|
|
|
|
|
2026-10-31 09:56:59 +00:00
|
|
|
|
// Copies of a building type work at a falling share. The instances of a type rank by
|
|
|
|
|
|
// level (highest first, then oldest); the one at rank n (0-based) gives instance_share^n
|
|
|
|
|
|
// of its output, storage, hides, beds and training speed, but needs all its workers.
|
|
|
|
|
|
'instance_share' => 0.5,
|
|
|
|
|
|
|
2026-10-28 18:17:34 +00:00
|
|
|
|
// Share of a level's cost refunded when it is demolished, and its build time spent doing so.
|
|
|
|
|
|
'demolish_refund' => 0.5,
|
|
|
|
|
|
'demolish_time_factor' => 0.5,
|
|
|
|
|
|
|
|
|
|
|
|
// Each headquarters level makes building this much faster (time / (1 + x·level)).
|
|
|
|
|
|
'hq_build_speed_per_level' => 0.05,
|
2026-10-28 20:39:48 +00:00
|
|
|
|
|
|
|
|
|
|
// Each level of a military building makes training there this much faster.
|
|
|
|
|
|
'recruit_speed_per_level' => 0.05,
|
2026-10-28 20:55:44 +00:00
|
|
|
|
|
|
|
|
|
|
// Levy: villagers drafted as militia stop working for this long (seconds at world
|
|
|
|
|
|
// speed 1), then return to work on their own. One levy at a time; it can end early.
|
|
|
|
|
|
'levy' => ['duration' => 6 * 3600],
|
2026-10-28 21:03:33 +00:00
|
|
|
|
|
|
|
|
|
|
// Starvation: once the food stock is empty and upkeep still exceeds income, soldiers
|
|
|
|
|
|
// desert after `grace` and then every `wave_every` (seconds at world speed 1), each
|
|
|
|
|
|
// wave just enough to feed the rest. Income covering upkeep again stops the clock.
|
|
|
|
|
|
'starvation' => ['grace' => 24 * 3600, 'wave_every' => 3600],
|
2026-10-28 18:17:34 +00:00
|
|
|
|
];
|