The Shatter is a dangerous place, teeming with Void-beasts, rogue elementals, and desperate marauders. Once a Fragment begins to thrive and draw attention, it inevitably becomes a target. When your Fragment is attacked, whether by an organized syndicate or a flock of starving drakes, it relies on both its structural defenses and the people stationed aboard to survive.
<br>
---
### Raids
A Raid typically happens while the party is away, otherwise occupied, or when the Fragment faces an assault too massive to be fought strictly through personal combat.
During a Raid, the attacking force is assigned an **Assault Rating**. This rating represents the sheer number, power, and ferocity of the attackers, and it typically ranges from a Minor Skirmish (5d10) to a Cataclysmic Siege (30d10).
The DM rolls the Assault Rating to determine the **Assault Total**. Your Fragment must then defend itself by generating a **Defence Total**. If your Defence Total equals or exceeds the Assault Total, the attack is repelled without lasting damage to your Fragment's infrastructure. If the Defence Total is lower, the attackers breach your defences, resulting in property damage, loss of Hirelings, and stolen goods.
<br>
### Mustering a Defence
A Fragment’s Defence Total is generated by the structures built upon it, the presence of the Player Characters, and, most importantly, the Fragment's standing **Militia**.
To calculate your Defence Total, roll and add together the following elements:
>- **The Militia:** For every member of your Militia stationed on the Fragment during the attack, roll 1d6. (If your Fragment features an Armoury that is fully stocked and maintained, you roll 1d8, or 1d12 for an expanded Armoury, per Militia member). Keep track of these rolls; they may determine whether your Militia live or die.
><br>
>- **Defensive Turrets:** Each active [[Fragment Upgrades#Defensive Turret|Defensive Turret]] rolls 2d10 (or 4d10 for Heavy Munitions) and adds the result to the Defence Total.
><br>
>- **The Player Characters:** If the party is present during the attack, each character may contribute to the Defence Total by making a DC 15 attack roll or spellcasting check. On a success, they may roll a number 2d6+their proficiency bonus and add the result to the Defence Total.
<br>
##### Militia
When you [[Downtime Activities#Recruitment|recruit]] new hirelings to your fragment, you can decide to make them Militia. When your Militia are involved in an raid, keep track of their rolls; if any of your defenders roll a 1, they fall in combat and unless you have an [[Fragment Upgrades#Infirmary|infirmary]], perish.
<br>
#### Resolving the Attack
Compare the final Assault Total to your Fragment's Defence Total. If the Defence Total is higher, the attackers are repelled! However if the Attack Total is higher, the attackers overrun the outer defences before eventually being driven off.
One of your Fragment's buildings is immediately damaged. Then, for every 5 points higher that the Assault Total was over the Defence Total was, another building is damaged. For example, if the Defence Total for a Raid was 64, while the Attack Total was 86, 5 buildings would be damaged; 1 for the loss, and then 4 for the points difference.
If there aren't enough buildings that can be damaged, 1 [[#Militia]] that would have otherwise survived is killed in place of a building that would be destroyed. This death occurs even if there is an [[Fragment Upgrades#Infirmary|Infirmary]] on the Fragment.
When deciding which buildings are damaged, [[Fragment Upgrades#Fortifications|Fortifications]] are always targeted first. If there are no Fortifications, or if they have already been destroyed, the DM randomly determines which building takes damage (unless there is a [[Fragment Upgrades#Stockyard / Warehouse / Vault|Stockyard]], in which case, it is always attacked first). A damaged building cannot be used and provides no benefits until a [[Downtime Activities#Maintenance|Maintenance]] downtime is performed and the cost of the building, or 500 ![[shard.png]] (whichever is less) is paid in order to repair it. Goods stored in a destroyed Stockyard or Warehouse may be stolen (DM's discretion).