diff --git a/src/descriptions/familySummaries.js b/src/descriptions/familySummaries.js index db684b59c2984f2b2ad9bc2f4c73dce26056fbc3..02d12e854ea5c02acc6b6555690fbecf108082c8 100644 --- a/src/descriptions/familySummaries.js +++ b/src/descriptions/familySummaries.js @@ -689,6 +689,20 @@ App.Desc.family = (function() { r.push(`<br>You have ${numberWithPlural(V.PC.sisters, "sister")} and ${numberWithPlural(V.PC.daughters, "daughter")}.`); } + if (V.inbreeding && V.PC.inbreedingCoeff > 0) { + r.push(`You are`); + if (V.PC.inbreedingCoeff >= 0.5) + r.push("extremely"); + else if (V.PC.inbreedingCoeff >= 0.25) + r.push("very"); + else if (V.PC.inbreedingCoeff >= 0.125); + else if (V.PC.inbreedingCoeff >= 0.0625) + r.push("somewhat"); + else + r.push("slightly"); + r.push(`inbred, with a CoI of ${V.PC.inbreedingCoeff}.`); + } + return r.join(" "); }