diff --git a/devNotes/twine JS.txt b/devNotes/twine JS.txt index edc5fc9f287efee67f6cc0b8c5f50f3b3a070da7..2c87cb25ec3cf8ec2cb13acb18f3e996e5717f7d 100644 --- a/devNotes/twine JS.txt +++ b/devNotes/twine JS.txt @@ -1650,7 +1650,22 @@ window.setPregType = function(actor) { } ovum = Math.clamp(ovum, 0, 8); } else if(actor.pregType == 0) { - ovum += jsEither([0, 0, 0, 0, 0, 0, 0, 0, 0, 1]); //base chance for twins + if(actor.geneticQuirks.fertility == 2 && actor.geneticQuirks.hyperFertility == 2) { // Do not mix with sperm + ovum += jsEither([1, 2, 2, 3]); + fertilityStack++; + fertilityStack++; + fertilityStack++; + fertilityStack++; + } else if(actor.geneticQuirks.hyperFertility == 2) { // Predisposed to multiples + ovum += jsEither([0, 1, 1, 2]); + fertilityStack++; + fertilityStack++; + } else if(actor.geneticQuirks.fertility == 2) { // Predisposed to twins + ovum += jsEither([0, 0, 0, 0, 1]); + fertilityStack++; + } else { + ovum += jsEither([0, 0, 0, 0, 0, 0, 0, 0, 0, 1]); //base chance for twins + } if(actor.ovaImplant == "fertility") { ovum += jsEither([0, 0, 0, 0, 0, 0, 0, 0, 0, 1]); fertilityStack++; @@ -2502,6 +2517,9 @@ window.getSlaveCost = function(s) { cost -= foodCost; break; } + if(s.geneticQuirks.fertility == 2 && s.geneticQuirks.hyperFertility == 2) { + cost += foodCost * .5; + } if(s.weight > 130) { cost += foodCost * 2; } else if(s.weight > 50) {