diff --git a/devNotes/twine JS.txt b/devNotes/twine JS.txt index dad31eba8d6c850f584e1b46af3675a424b7c834..a49eb9052a3bf9047e8f5d8c000f067629f58452 100644 --- a/devNotes/twine JS.txt +++ b/devNotes/twine JS.txt @@ -11203,9 +11203,9 @@ window.WombInit = function(actor) { ft.genetics = generateGenetics(actor.ID, actor.pregSource, i); i++; }); - } else if (actor.womb.length == 0 && actor.pregType != 0 && actor.broodmother == 0) { + } else if (actor.womb.length == 0 && actor.pregType > 0 && actor.broodmother == 0) { WombImpregnate(actor, actor.pregType, actor.pregSource, actor.preg); - } else if (actor.womb.length == 0 && actor.pregType != 0 && actor.broodmother > 0 && actor.broodmotherOnHold < 1) { + } else if (actor.womb.length == 0 && actor.pregType > 0 && actor.broodmother > 0 && actor.broodmotherOnHold < 1) { //sorry but for already present broodmothers it's impossible to calculate fully, approximation used. var i, pw = actor.preg, bCount, bLeft; if (pw > 40) pw = 40; //to avoid disaster. diff --git a/src/Mods/DinnerParty/dinnerPartyPreperations.tw b/src/Mods/DinnerParty/dinnerPartyPreparations.tw similarity index 98% rename from src/Mods/DinnerParty/dinnerPartyPreperations.tw rename to src/Mods/DinnerParty/dinnerPartyPreparations.tw index 38b83ddf36a111264737c91234ebd6b96689ceba..c20aa1b5ab53baa42e82d60ac0221701b1efd348 100644 --- a/src/Mods/DinnerParty/dinnerPartyPreperations.tw +++ b/src/Mods/DinnerParty/dinnerPartyPreparations.tw @@ -1,4 +1,4 @@ -:: Dinner Party Preperations [nobr] +:: Dinner Party Preparations [nobr] <<set $nextButton = "Cancel The Event", $nextLink = "Main">> diff --git a/src/js/assayJS.tw b/src/js/assayJS.tw index 2fed6b940aabfd5072eea1609589243835d5d648..2d6e029fa792bd1abb92f0b489fbe3a43c0e27f1 100644 --- a/src/js/assayJS.tw +++ b/src/js/assayJS.tw @@ -150,13 +150,13 @@ window.TatScore = function(slave) { tatScore += 1; } if (slave.bellyTat !== 0) { - if (((slave.preg > $activeSlave.pregData.normalBirth/1.33) && (slave.pregType >= 20)) || (slave.belly >= 300000)) { + if (((slave.preg > slave.pregData.normalBirth/1.33) && (slave.pregType >= 20)) || (slave.belly >= 300000)) { tatScore += 0.75; - } else if (((slave.preg > $activeSlave.pregData.normalBirth/2) && (slave.pregType >= 20)) || ((slave.preg > $activeSlave.pregData.normalBirth/1.33) && (slave.pregType >= 10)) || (slave.belly >= 150000)) { + } else if (((slave.preg > slave.pregData.normalBirth/2) && (slave.pregType >= 20)) || ((slave.preg > slave.pregData.normalBirth/1.33) && (slave.pregType >= 10)) || (slave.belly >= 150000)) { tatScore += 1; } else if ((slave.belly >= 10000) || (slave.bellyImplant >= 8000)) { tatScore += 1; - } else if (((slave.preg >= $activeSlave.pregData.normalBirth/4) && (slave.pregType >= 20)) || ((slave.preg > $activeSlave.pregData.normalBirth/4) && (slave.pregType >= 10)) || (slave.belly >= 5000)) { + } else if (((slave.preg >= slave.pregData.normalBirth/4) && (slave.pregType >= 20)) || ((slave.preg > slave.pregData.normalBirth/4) && (slave.pregType >= 10)) || (slave.belly >= 5000)) { tatScore += 0.5; } else if (slave.belly >= 1500) { tatScore += 0.25; diff --git a/src/js/wombJS.tw b/src/js/wombJS.tw index 0517cadcfdcb087e7c686b53cc9d90fc47a051e5..b830ec7c8d00ac37c966d8d83748f4d958e72161 100644 --- a/src/js/wombJS.tw +++ b/src/js/wombJS.tw @@ -59,9 +59,9 @@ window.WombInit = function(actor) { ft.genetics = generateGenetics(actor.ID, actor.pregSource, i); i++; }); - } else if (actor.womb.length == 0 && actor.pregType != 0 && actor.broodmother == 0) { + } else if (actor.womb.length == 0 && actor.pregType > 0 && actor.broodmother == 0) { WombImpregnate(actor, actor.pregType, actor.pregSource, actor.preg); - } else if (actor.womb.length == 0 && actor.pregType != 0 && actor.broodmother > 0 && actor.broodmotherOnHold < 1) { + } else if (actor.womb.length == 0 && actor.pregType > 0 && actor.broodmother > 0 && actor.broodmotherOnHold < 1) { //sorry but for already present broodmothers it's impossible to calculate fully, approximation used. var i, pw = actor.preg, bCount, bLeft; if (pw > actor.pregData.normalBirth) pw = actor.pregData.normalBirth; //to avoid disaster. diff --git a/src/pregmod/widgets/pregmodWidgets.tw b/src/pregmod/widgets/pregmodWidgets.tw index 7ba6c278c12f259f493ecc0c6ea200b121f1851e..c0eb8f739e0e24b852349f64c32ddd86c8efd776 100644 --- a/src/pregmod/widgets/pregmodWidgets.tw +++ b/src/pregmod/widgets/pregmodWidgets.tw @@ -1272,5 +1272,6 @@ extremely pale -5 s.geneMods.rapidCellGrowth = 0; } } + WombInit(s); })>> <</widget>> diff --git a/src/uncategorized/BackwardsCompatibility.tw b/src/uncategorized/BackwardsCompatibility.tw index 3d61be001ed17af91c14896ef52385f5b715fd32..c3f6eb8398eb53df476284e72ca8eeb6e28f07b6 100644 --- a/src/uncategorized/BackwardsCompatibility.tw +++ b/src/uncategorized/BackwardsCompatibility.tw @@ -3642,7 +3642,6 @@ Setting missing slave variables: <<if $nurseryNannies > 0>> <<for _bci = 0; _bci < $cribs.length; _bci++>> <<set _nurseryChild = $cribs[_bci]>> - <<set _nurseryChild.pregType = 0>> <<PMODinit _nurseryChild>> <</for>> <</if>> @@ -3655,6 +3654,8 @@ Setting missing slave variables: <<set $IsPastPrimePC = 5000>> <<HeroSlavesCleanup>> +<<BaseSlave>> +<<set $baseHeroSlave = clone($activeSlave)>> Done! /* Sec Exp */ diff --git a/src/uncategorized/arcmgmt.tw b/src/uncategorized/arcmgmt.tw index a18c81b2ea8d2980a191a993dc4b893d7e5a4a1b..4a3b41cf82566bf94fd8ee76c2cf6efdc3283aaf 100644 --- a/src/uncategorized/arcmgmt.tw +++ b/src/uncategorized/arcmgmt.tw @@ -587,15 +587,15 @@ _middleClass *= 1 + ($TSS.subsidize + $GRI.subsidize + $SCP.subsidize + $LDE.sub <<elseif $arcologies[0].FSSubjugationistLawME == 1>> <<set $lowerClass += Math.trunc(($NPCSlaves + $helots + $fuckdolls + $menialBioreactors) * 0.15)>> <</if>> - _helotsRetirement = Math.trunc($helots * 0.8), + <<set _helotsRetirement = Math.trunc($helots * 0.2), $helots = Math.trunc($helots * 0.8), - _fuckdollsRetirement = Math.trunc($fuckdolls * 0.8), + _fuckdollsRetirement = Math.trunc($fuckdolls * 0.2), $fuckdolls = Math.trunc($fuckdolls * 0.8), - _menialBioreactorsRetirement = Math.trunc($menialBioreactors * 0.8), + _menialBioreactorsRetirement = Math.trunc($menialBioreactors * 0.2), $menialBioreactors = Math.trunc($menialBioreactors * 0.8), - _ASlavesRetirement = Math.trunc($NPCSlaves * 0.8), + _ASlavesRetirement = Math.trunc($NPCSlaves * 0.2), $NPCSlaves = Math.trunc($NPCSlaves * 0.8), - $CitizenRetirement = 2>> + $CitizenRetirementTrigger = 2>> You have enacted citizen retirement, the slaves of eligible age are granted freedom. <<if _helotsRetirement > 1>> @@.red;<<print _helotsRetirement>> of your menial slaves@@ were retired. diff --git a/src/uncategorized/policies.tw b/src/uncategorized/policies.tw index 3f2ae298f39b71ea6c2e5cfa0d1e8cc1966d4c49..64e7f41100b188d8dd807f4d4bbd58654ab6887f 100644 --- a/src/uncategorized/policies.tw +++ b/src/uncategorized/policies.tw @@ -129,13 +129,8 @@ <br>''Public Arcade Retirement:'' once reaching mandatory retirement age, slaves are placed in cheap public arcades to be used until useless. [[Repeal|Policies][$ArcadeRetirement = 0]] <<elseif $CitizenRetirement == 1>> - <<if $CitizenRetirementTrigger == 0>> - <br>''Citizen Retirement:'' all slaveowners are required to pay into accounts to support their slaves as lower-class citizens in retirement. - [[Repeal|Policies][$CitizenRetirement = 0, $SexMilestoneRetirement = 0, $MilkMilestoneRetirement = 0, $CumMilestoneRetirement = 0, $BirthsMilestoneRetirement = 0, $KillsMilestoneRetirement = 0, $CitizenRetirementTrigger = 1]] - <<else>> - <br>''Citizen Retirement:'' all slaveowners are required to pay into accounts to support their slaves as lower-class citizens in retirement. - [[Repeal|Policies][$CitizenRetirement = 0, $SexMilestoneRetirement = 0, $MilkMilestoneRetirement = 0, $CumMilestoneRetirement = 0, $BirthsMilestoneRetirement = 0, $KillsMilestoneRetirement = 0]] - <</if>> + <br>''Citizen Retirement:'' all slaveowners are required to pay into accounts to support their slaves as lower-class citizens in retirement. + [[Repeal|Policies][$CitizenRetirement = 0, $SexMilestoneRetirement = 0, $MilkMilestoneRetirement = 0, $CumMilestoneRetirement = 0, $BirthsMilestoneRetirement = 0, $KillsMilestoneRetirement = 0]] <<else>> <br>''Menial Retirement:'' in the absence of a clear slave retirement policy, overaged sex slaves will become menial slaves. <</if>> @@ -861,9 +856,15 @@ <<if $ArcadeRetirement == 0>> <<if $CitizenRetirement == 0>> <<if $arcologies[0].FSDegradationist == "unset">> - <br>''Citizen Retirement:'' all slaveowners will be required to pay into accounts to support their slaves as lower-class citizens in retirement. - [[Implement|Policies][$CitizenRetirement = 1, $cash -=5000, $rep -= 1000]] - <br> //Will add upkeep to all slaves// + <<if $CitizenRetirementTrigger == 0>> + <br>''Citizen Retirement:'' all slaveowners will be required to pay into accounts to support their slaves as lower-class citizens in retirement. + [[Implement|Policies][$CitizenRetirement = 1, $cash -=5000, $rep -= 1000, $CitizenRetirementTrigger = 1]] + <br> //Will add upkeep to all slaves// + <<else>> + <br>''Citizen Retirement:'' all slaveowners will be required to pay into accounts to support their slaves as lower-class citizens in retirement. + [[Implement|Policies][$CitizenRetirement = 1, $cash -=5000, $rep -= 1000]] + <br> //Will add upkeep to all slaves// + <</if>> <</if>> <<if $arcologies[0].FSPaternalist == "unset">> <br>''Public Arcade Retirement:'' once reaching mandatory retirement age, slaves will be placed in cheap public arcades to be used until useless. diff --git a/src/uncategorized/slaveSummary.tw b/src/uncategorized/slaveSummary.tw index b796356fa751c780ef4a6ae402798272509aff67..7d45b1d21360e8a40043884d2ebb3d8b0ec054ca 100644 --- a/src/uncategorized/slaveSummary.tw +++ b/src/uncategorized/slaveSummary.tw @@ -597,12 +597,12 @@ [[_slaveName|Rules Slave Exclude Workaround][$activeSlave = $slaves[_ssi]]]''__ <<else>> <br>__'' - [[_slaveName|Rules Slave NoExclude Workaround][$activeSlave = $slaves+_ssi]]]''__ + [[_slaveName|Rules Slave NoExclude Workaround][$activeSlave = $slaves[_ssi]]]''__ <</if>> <<case "Matchmaking">> <br style="clear:both" /><<if $lineSeparations == 0>><br><<else>><hr style="margin:0"><</if>><<if ($seeImages == 1) && ($seeSummaryImages == 1)>><div class="imageRef smlImg"><<SlaveArt _Slave 1>></div><</if>> [[_slaveName|Slave Interact][$activeSlave = $slaves[_ssi]]] -<<case "Dinner Party Preperations">> +<<case "Dinner Party Preparations">> <br style="clear:both" /><<if $lineSeparations == 0>><br><<else>><hr style="margin:0"><</if>><<if ($seeImages == 1) && ($seeSummaryImages == 1)>><div class="imageRef smlImg"><<SlaveArt _Slave 1>></div><</if>> [[_slaveName|Slave Interact][$activeSlave = $slaves[_ssi]]] <</switch>>