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

44 lines
1.8 KiB
PHP
Raw Normal View History

<?php
// Raiders (architecture.md, "Raids"): the nearest barbarian camp sends a band at every
// player village now and then, announced while it gathers. every_hours and gather_hours
// are real hours on every world: they follow the player's day, not world time. The band
// marches at world speed.
return [
'enabled' => true,
// Hours between two raids on one village, drawn evenly between the two. The first
// comes when beginner protection ends.
'every_hours' => [20, 40],
// 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, rounded.
'rams' => ['from_points' => 300, 'per_wall_level' => 0.5],
// Before it sends a band, the camp fights the battle on paper (no luck, full morale)
// against the troops in the village, its wall and the night at arrival. When the band
// would lose with less than dare × the defence's strength, it stays home this time.
'dare' => 0.3,
// 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',
];