36 lines
1.4 KiB
PHP
36 lines
1.4 KiB
PHP
|
|
<?php
|
|||
|
|
|
|||
|
|
// Raiders (architecture.md, "Raids"): the nearest barbarian camp sends a band at every
|
|||
|
|
// player village now and then, announced while it gathers. Hours are at world speed 1.
|
|||
|
|
|
|||
|
|
return [
|
|||
|
|
'enabled' => true,
|
|||
|
|
|
|||
|
|
// Hours between two raids on one village, drawn evenly between the two. The first
|
|||
|
|
// comes when beginner protection ends.
|
|||
|
|
'every_hours' => [18, 30],
|
|||
|
|
|
|||
|
|
// The band gathers this long at its camp before it marches; the village sees it
|
|||
|
|
// coming from the start, so this is the least warning it gets.
|
|||
|
|
'gather_hours' => 3,
|
|||
|
|
|
|||
|
|
// Only barbarian villages this many fields away or closer raid a village; the nearest one does.
|
|||
|
|
'range' => 15,
|
|||
|
|
|
|||
|
|
// Attack strength of a band: base + per_point × the village's points, in its camp's profile.
|
|||
|
|
'attack' => ['base' => 50, 'per_point' => 1.5],
|
|||
|
|
|
|||
|
|
// From this many village points on, rams come along: per_wall_level for each wall level.
|
|||
|
|
'rams' => ['from_points' => 300, 'per_wall_level' => 1.0],
|
|||
|
|
|
|||
|
|
// On arrival the band is as strong as its camp's garrison is (share of full strength);
|
|||
|
|
// below scatter_below it scatters, so hitting the camp first breaks the raid.
|
|||
|
|
'scatter_below' => 0.25,
|
|||
|
|
|
|||
|
|
// A beaten band leaves bounty × its attack strength in resources, a third each of
|
|||
|
|
// wood, clay and iron, up to what the storage holds.
|
|||
|
|
'bounty' => 0.5,
|
|||
|
|
|
|||
|
|
'mode' => 'normal',
|
|||
|
|
];
|