v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

DF2014:Contaminant

From Dwarf Fortress Wiki
Revision as of 03:16, 20 December 2022 by LethosorBot (talk | contribs) (Migrating v50 page (753/4618) (content))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
This article is about an older version of DF.


Contaminants are substances that can be spilled or smeared onto a floor or walls. These include mud, snow, ash, stone dust, salt, blood, ichor, extracts, vomit, mucus, and pus.

Hazards[edit]

Some contaminants, like those from evil biome weather or rare, deadly extracts given off by some creatures, can cause syndromes on contact. Barefoot creatures, like pets, or dwarves that have no footwear on can be affected if they step in the contaminant on the floor.

Contaminants can get on objects in some circumstances. This can be particularly dangerous if a dangerous contaminant gets on food.

Creating mud[edit]

Any time a tile is covered in water, mud will be created on that tile. It seems that magma will remove this mud upon evaporation.

Spreading contaminants[edit]

Tracking[edit]

This feature has been temporarily disabled by default in fortress mode, because contaminants were often spread excessively and explosively.Bug:296

The tracking of contaminants is a configurable option, which defaults to NO in Fortress mode and YES in adventure mode. The actual options are WALKING_SPREADS_SPATTER_DWF and WALKING_SPREADS_SPATTER_ADV in d_init.txt.

When this feature is enabled, dwarves and other creatures that walk over contaminants can track them onto other tiles that they pass through. Dustings and spatterings, which represent small amounts of a contaminant, do not appear to be tracked around. Larger amounts of contaminants will be picked up by a dwarf's left foot, and can then be transferred to other tiles. (contaminant tracking behavior may need to be verified for the current version)[Verify]

Flowing[edit]

Water that flows over contaminants can pick them up, multiply them, and redistribute them as the water moves. Water does not appear to move mud, although mud will be created any time water covers a tile. The mechanics of redistributing contaminants using water is not well understood although there have been some observations of strange behavior when mixing blood and water.

  • adding 7/7 water on top of a pool of blood creates more pools of blood at the edge of the water as it moves and evaporates.
  • an overflowing reservoir that contains some blood creates blood everywhere the water flows.
  • water will create mud on any non-muddy tile, and moving water will frequently redistribute the mud.

Removing contaminants[edit]

From floors and walls[edit]

Removing contaminants can be accomplished by dwarves performing a cleaning task. This requires a contaminant to be on a floor tile, and will (as a side effect) also remove contaminants from adjacent walls. A contaminant that is on a wall, with no adjacent contaminated floor, will never be cleaned. Contaminants are also removed if any real building is built on them (dirt roads are not buildings), even if that building is subsequently removed. Contaminants on walls can also be removed by smoothing the wall. Mist will also remove contaminants.

Note that atom smashing a square with a contaminant on it will not remove the contaminant.

From creatures[edit]

Contaminants can be moved from creatures to floor tiles with water. The simplest and most effective way is to have the creature walk through a 2/7 or 3/7 water tile. All contaminants will be transferred from the creature to the floor, and it will walk away wet (water coverings in inventory) but otherwise uncontaminated. Another way is to drop water on a creature as it's walking over a floor grate (e.g. a waterfall). This is much more complex to set up, and has an additional drawback: a dwarf who attempts to clean the contaminated floor grate tile will be interrupted by the sudden influx of water, resulting in job cancellation spam, and an uncleaned grate (unless you temporarily turn off the waterfall).

Here is an example of a mist generator over a bathtub. Since mist is able to destroy contaminants, this example is self-cleaning as long as it's running. Once pumps are built and started, water can be added at a pump intake, and should stop filling automatically when a 7/7 water tile is in the system. Statues below are used to block movement, as the 7/7 tile would produce cancellation spam if a creature was caught in it. Putting one of these in a one-way path to your booze stockpile will effectively decontaminate everyone who isn't a vampire in the fort.