# Defending The Farm

When a player decides to attack your farm and deposit his FW coins, there are two possible scenarios - Victory or defeat (daaa..). In case of the attacker destroys the farm's headquarters, the attacker will be declared victorious and will be rewarded with three parameters:

1. The available [mutant liquid](/chapter-3-game-resources/mutant-liquid.md) in the [mining facility ](/chapter-4-buildings-and-facilities/the-mining-facility.md)- all the liquid that the farm owner did not collect is up for grabs by attackers. The only liquid inside the [storing device ](/chapter-4-buildings-and-facilities/the-storing-facility.md)is protected from attacks.
2. The FW deposit that the attacker placed before the attack will be automatically returned to his farm's balance.
3. The [FW coins](/chapter-3-game-resources/fw-coins.md) loot - the FW coins that can be looted is 15% of the total amount available on the farm's balance. If a player had 5,000 available FW coins, the attacker would retrieve 750 of those coins in the attack, and those coins will be deducted from the balance of the attacked farm.

After each victory, the player will gain XP points that will be displayed on the game leaderboard.\
Top names on the leaderboard will be airdropped rare items and FW boxes regularly.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.thefarmwars.com/chapter-5-the-farm-wars-game-mechanics/defending-the-farm.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
