From 88bb9bbbcf5c78863ec08104b0edd76bf67ea211 Mon Sep 17 00:00:00 2001 From: Pregmodder <pregmodder@gmail.com> Date: Thu, 10 Jan 2019 18:10:49 -0500 Subject: [PATCH] notes --- devNotes/twine JS.txt | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/devNotes/twine JS.txt b/devNotes/twine JS.txt index edc5fc9f287..2c87cb25ec3 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) { -- GitLab