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

39 lines
1.5 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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],
// 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',
];