> For the complete documentation index, see [llms.txt](https://machinations.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://machinations.gitbook.io/docs/basic-nodes/drains.md).

# Drains

destroy Resources

{% hint style="danger" %}
A Resource that goes into a Drain is permanently removed from a game's economy.
{% endhint %}

A Drain has the 4 [Activation Modes](/docs/nodes-properties/activation-modes.md) and the [Pulling & Pushing](/docs/nodes-properties/pulling-and-pushing-resources.md) actions of all other Nodes.

![](https://2667914601-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LGZcALyOGDKb9q0wdJ5%2F-MLqUNm6fVsSytWq2VzF%2F-MLqXm7ew-bhXH_kgOC6%2Fimage.png?alt=media\&token=8eeddc70-dd7b-471e-a255-c1c91048013f)

The rate of a Drain is determined by the flow rate of its input [Resource Connection](https://machinations.gitbook.io/docs/connections/resource-connections). Some Drains consume Resources at a steady rate, while others consume Resources at random rates or intervals.

![](https://2667914601-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LGZcALyOGDKb9q0wdJ5%2F-Lh6SYpwFRn4OWiSW-s5%2F-Lh6_Og1VXzFXweKMgN8%2Fdrains.gif?alt=media\&token=a786932c-214f-4c28-be8f-75e5b67b1346)

:wrench: In the gif above, there are 3 examples of flow rates:

1. Shooter: The Shoot Drain consumes 1 Ammo every time the player shoots
2. Resource Management: The player has a cost of 1 coin every 2 weeks
3. Brawler: During a boss fight, player takes damage anywhere between 1 to 6 Health points (D6 notion), every time the boss hits.

:book: Find out other types of Resources flows you can design:

{% content-ref url="/pages/-LHZOi4c6lu\_IN46pvE5" %}
[Labels](/docs/connections/labels.md)
{% endcontent-ref %}

:wrench: You can also set a Drain consume all Resource within a Pool by labelling the Resource Connection with `all`.&#x20;

![](https://2667914601-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LGZcALyOGDKb9q0wdJ5%2F-LglzxjBj_e-dnRFdqSm%2F-Lgm13leuXTTNbFiolXL%2Fdrain-all.gif?alt=media\&token=c1f9c918-c0af-4e91-86b5-99c955f99f99)

##
