Bloodlines

Animal breeding and genetics for Dwarf Fortress.

A DFHack mod. Every father is recorded, every trait is inherited, and every litter can be better than the last.

The game forgets the father. Bloodlines doesn't.

In vanilla Dwarf Fortress a newborn animal gets random attributes, and nobody knows which male sired it. Bloodlines records every mating, passes attributes on from both parents and lets you breed stronger, tougher and braver animals generation by generation.

Once it's installed you only deal with the game itself. Two hotkeys cover everything, and the DFHack console stays optional.

Every father, every time

The father is found by matching the genes stored in the pregnancy. A wild stray that covers one of your animals counts too.

All 19 attributes

Six physical, thirteen mental. Strength, Toughness and Willpower pass on just like Agility or Focus.

Eggs as well

Each egg remembers both parents, and the chick that hatches is matched to its egg.

Five gene pairs per trait

Each attribute rests on five gene pairs. A pup gets one gene of every pair from its mother and one from its father, so variety stays in the herd and the species maximum stays within reach.

Strong and weak genes. More strong genes, higher value.

A hidden defect gene. Harmless alone, but passed on.

Two defects in one pair: the attribute drops by 35 %. Inbreeding makes this far more likely.

A prime gene. A very rare mutation, +2 % for its carrier.

Two prime genes in a pair: +35 %, even past the species maximum.

Prefer it simple? Switch to blend mode and every pup gets its parents' average plus a little luck.

Breeding details window of a puppy: attribute table with current value, heritable value, gene bars, level and both parents' values.
  1. 1An expressed prime pair. Strength 5000, above anything the species normally reaches.
  2. 2Hidden defect genes, in red. This pup carries them without suffering from them.
  3. 3Both parents' values side by side, to judge which line a trait came from.

Knowledge your fortress has to earn

Press Ctrl+Shift+Z on an animal's sheet for its breeding details. How much you see depends on your best animal trainer or animal caretaker. If that dwarf dies or leaves, the knowledge goes with them.

No skilled keeper Breeding details window showing only parents, generation, litter and inbreeding.

Parents, generation, litter and inbreeding. Nothing the game wouldn't tell you anyway.

Proficient Breeding details window with exact values and parent values, without genes.

Exact attribute values, next to the mother's and the father's.

Expert Breeding details window with gene bars.

The heritable value and the gene bars, hidden defects and prime genes included.

The game's Relations tab of a puppy listing mother, father, paternal grandfather and half-siblings.
The game's own Relations tab, filled in by Bloodlines.

Family trees in the game's own screens

Animals bred in your fortress become historical figures. The Relations tab then shows mother, father, grandparents and siblings, and the lines carry on into Legends.

Every young animal of your own herd also gets a nickname you can read at a glance:

G3generation 3 Blitter B of this species 4fourth young of the litter

A clutch of eggs counts as one litter. Rename an animal yourself and Bloodlines leaves the name alone, so "Keep" and "Cull" are all yours.

The pets and livestock list with puppies nicknamed G1 C1, G1 D2, G1 D3 and so on.
Litters line up in the pet list.

From nest box to bloodline

Hens, turkeys and every other egg layer work too. Each egg carries both parents' genes until it hatches, and the chick is matched to the egg it came from. Give your layers nest boxes, as in the unmodded game.

Announcements: A sickly Puppy was born. A remarkably agile Puppy was born! An exceptionally strong Puppy was born!

Remarkable and sickly births get their own announcement. Identical ones are combined, so a big litter doesn't flood the log.

One window for every setting

Press Ctrl+Shift+B anywhere in fortress mode. Each option comes with a short explanation and is saved with the fortress.

  • Mendel or blend inheritance
  • Defect genes and prime genes
  • An optional inbreeding penalty, mild or strong
  • Nicknames, with a button for young born earlier
  • The details window: off, skilled keeper or always
The Breeding settings window with all options and their explanations.

Install

Bloodlines needs DFHack. Tested with Dwarf Fortress 53.17 and DFHack 53.17-r1.

  1. Subscribe on the Steam Workshop. On itch.io or Classic, download it from DFFD and copy the bloodlines folder into the mods folder of your DF user data. On Windows that's %AppData%\Bay 12 Games\Dwarf Fortress\mods.

  2. Load any fortress, new or old. You don't have to add the mod to the world. A green message confirms that Bloodlines is running.

  3. Press Ctrl+Shift+B to look at the settings, then let your animals do the rest.

Breeding tips

  • For war dogs, breed for Strength, Toughness, Agility, Endurance and Willpower first, then Kinesthetic and Spatial sense. Most other mental attributes do nothing for animals.
  • Train an animal caretaker early. Proficient shows the numbers, Expert the genes.
  • From one average pair to a top dog takes about six generations, roughly 9 to 12 in-game years.

Good to know

  • Animals already in a fortress are treated as founders.
  • Only animals are affected. Dwarves are left alone.
  • Body size and horn length aren't inherited yet. Coat and eye colours follow the game's own genetics.
  • Removing the mod is safe. Animals keep their attributes.