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 might happens while the party is away, otherwise occupied, or when the Fragment faces an assault too massive to be fought strictly through personal combat.
A Raid takes place over three rounds, or 'Waves'. When the Raid begins, the attacking force is assigned an **Assault Rating**. This rating represents the sheer number, power, and ferocity of the attackers, and it may range from a Minor Skirmish (5) to a Cataclysmic Siege (30).
Each round, the DM rolls a number of d10's equal to the Assault Rating to determine the **Assault Total** for that Wave. Your Fragment must then defend itself by generating a **Defence Total** against that Wave.
<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 [[Fragment Upgrades#Armoury|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 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 an attack roll or spell attack roll, the DC of which is equal to the Assault Rating. On a success they may roll 2d6, adding their roll and their proficiency bonus to the Defence Total. On a Critical success, a player rolls a additional 2d6.
<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 each Wave's Assault Total to your Fragment's Defence Total. If the Defence Total is higher, the wave is repelled without damage to your Fragment's infrastructure! However if the Attack Total is higher, the attackers overrun your defences before eventually being driven off.
After each successful attack, one of your Fragment's buildings is immediately damaged, as well as an additional building for every 10 points higher than the attack total is over the defence. For example, if the Attack total is 84 and the Defence Total is just 72, two buildings would be destroyed. 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. If there are no surviving Militia on your fragment, nothing happens.
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 damaged, 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 damaged Stockyard or Warehouse may be stolen (DM's discretion).
Make sure to mark each successful defence as well! At the end of the raid, you may discover that you were able to capture enemy loot, salvage or even take prisoners to be interrogated depending on how many successes were achieved!