Magical gene / magical coat genes
Hood
A colour laid solid over the head that thins out along the neck and is gone by the shoulder - how far it reaches, and what colour it is, both run in the family.
What it can come out as
| Outcome | Carrying |
|---|---|
| Hood | Hd/Hd |
| Hood carrier | Hd/n |
| Wild type | n/n |
How each one is actually drawn - region by region, and the layers it is built from - is on the coding tab.
Crossing two of them
Finding one
About 1 in 1,250 wild horses is born showing this. That is the whole of the supply: catch one, or make one with the carrot below. Breeds set their own pools and a breed built around this gene will carry it far more often than the wild population does.
| Wild pair | Shows as | How often |
|---|---|---|
Hd/Hd | Hood | 0.08% — 1 in 1,250 |
n/n | Wild type | 99.92% |
Its gene carrot
The file
common/src/main/resources/horsegenetics/genes/hood.json — a
data-driven gene, not a Java class. It is listed in the
index.json beside it and registered by Genes' class
initialiser at startup.
| Key | horsegenetics.hood |
|---|---|
| Phase | magical — it adds signed colour in phase 3, after the pigment has resolved |
| Priority | 103 — where it sits in the one (priority, key) paint order |
| Alleles | Hd · n |
| Varies per horse | 3 values drawn once off the expressing allele copy, so a foal that inherits the copy inherits the look |
| Built from | PARTS, TOWARD, WAVES |
What it paints
Each outcome, described the way the gene file describes it, and then the layers that draw it in the order they are painted. The prose is the part a reader checks a bake against; the list underneath is what the engine actually did.
Hood
Opaque over the whole head - muzzle, ears and all - and from there it weakens continuously back along the neck until it has vanished entirely, somewhere between the throatlatch and the shoulder depending on the horse. It runs out evenly all the way round: the crest, the sides and the throat lose it together rather than the top going first, so what travels down the neck is a band square to it and not a diagonal. There is no edge to it at any point; it simply runs out, and it starts running out well up the neck rather than near the shoulder. Both the colour and how far it carries are drawn once and passed on.
- solid over the head —
PARTS, painted withTOWARD - thinning out along the neck —
WAVES, painted withTOWARD
Hood carrier
One copy shows nothing. It takes two.
Paints nothing.
Wild type
No hood.
Paints nothing.