From c7638cf1bb499d1dabc106e3b6be174976349c85 Mon Sep 17 00:00:00 2001 From: pregmodfan <pregmodfan@cock.li> Date: Sun, 18 Feb 2018 15:33:28 +0200 Subject: [PATCH] I'm fool, twine/sugarcube don't allow JS style comments (//) --- src/pregmod/widgets/seBirthWidgets.tw | 76 +++++++++++++-------------- src/utility/miscWidgets.tw | 2 +- 2 files changed, 39 insertions(+), 39 deletions(-) diff --git a/src/pregmod/widgets/seBirthWidgets.tw b/src/pregmod/widgets/seBirthWidgets.tw index cae92e78d0a..4921d89c37a 100644 --- a/src/pregmod/widgets/seBirthWidgets.tw +++ b/src/pregmod/widgets/seBirthWidgets.tw @@ -175,7 +175,7 @@ <</widget>> -//=============================================================================================== +/*===============================================================================================*/ <<widget "seBirthPreScene">> @@ -266,24 +266,24 @@ It barely comprehends what has happened, nor will it realize when another child is conceived in it. <</if>> /* close fuckdoll birth */ -// end of 2. +/* end of 2.*/ <</widget>> -//=============================================================================================== +/*===============================================================================================*/ <<widget "seBirthCalc">> <<set $slaves[$i].pregControl = "none">> <<set _beforeSize = WombGetVolume($slaves[$i])>> <<if $slaves[$i].broodmother > 0>> - <<set $slaves[$i].curBabies = WombBirth($slaves[$i], 37)>> //broodmothers - give birth for all 37+ week fetuses. + <<set $slaves[$i].curBabies = WombBirth($slaves[$i], 37)>> /*broodmothers - give birth for all 37+ week fetuses.*/ <<else>> - <<set $slaves[$i].curBabies = WombBirth($slaves[$i], 34)>> //Normal pregnancy - 34 week is minimal gestation time for live birth. + <<set $slaves[$i].curBabies = WombBirth($slaves[$i], 34)>> /*Normal pregnancy - 34 week is minimal gestation time for live birth.*/ <</if>> <<set $slaves[$i].curStillBirth = 0 >> -<<set _curBabies = $slaves[$i].curBabies.length>> //just to improve speed and usability here. +<<set _curBabies = $slaves[$i].curBabies.length>> /*just to improve speed and usability here.*/ <<set $slaves[$i].births += _curBabies>> <<set $slaves[$i].birthsTotal += _curBabies>> @@ -298,7 +298,7 @@ /* Here support for partial birth cases but if slaves still NOT have broomother implant. Right now remaining babies will be lost, need to add research option for selective births. It's should control labour and stop it after ready to birth babies out. Should be Repopulation FS research before broodmothers (their implant obviously have it as a part of functional). */ <<if $slaves[$i].broodmother == 0>> <<if $safePartialBirthTech == 1 >> - // nothing right now. + /* nothing right now.*/ <<else>> <<set $slaves[$i].curStillBirth = $slaves[$i].womb.length>> <<set WombFlush($slaves[$i])>> @@ -306,11 +306,11 @@ <</if>> <<set _afterSize = WombGetVolume($slaves[$i])>> -<<set $diffSize = _beforeSize / (1 + _afterSize)>> // 1 used to avoid devide by zero error. +<<set $diffSize = _beforeSize / (1 + _afterSize)>> /* 1 used to avoid devide by zero error.*/ <</widget>> -//=============================================================================================== +/*===============================================================================================*/ <<widget "seBirthMainScene">> <<_curBabies = $slaves[$i].curBabies.length>> @@ -322,7 +322,7 @@ <<set $daddy = "some unknown father">> <</if>> -// -------- cow birth variant --------------------------------------------------------------------- +/* -------- cow birth variant ---------------------------------------------------------------------*/ <br> <br> /* diffSize used for check result of partial birth size changes - if it = 2 then womb lost half of it's original size after partial birth, if it = 1 - no size lost. (We get this value as result of dividing of original womb size by after birth size) @@ -363,7 +363,7 @@ This decriptions can be expanded with more outcomes later. But it's not practica . <</if>> -<<else>> // ---------- normal birth variant. ------------------------------------------------------------- +<<else>> /* ---------- normal birth variant. -------------------------------------------------------------*/ <<if $csec == 1>> $pronounCap was given @@.orange;a cesarean section@@ due to health concerns.<br><br> @@ -414,11 +414,11 @@ This decriptions can be expanded with more outcomes later. But it's not practica <<if _curBabies > 1>>they<<else>>she<</if>> entered the world. <</if>> -// ---- Postbirth reactions, body ------------------------------------------------------------------------------------------- +/* ---- Postbirth reactions, body -------------------------------------------------------------------------------------------*/ -<<if $csec != 1>> //all this block only if no c'section used. +<<if $csec != 1>> /*all this block only if no c'section used.*/ <br><br> - <<if $diffSize > 1.5 && $slaves[$i].pregType >= 80>> //only show if belly lost at least 1/4 of original size. + <<if $diffSize > 1.5 && $slaves[$i].pregType >= 80>> /*only show if belly lost at least 1/4 of original size.*/ After an entire day of labor and birth, $possessive belly sags heavily. <<elseif $diffSize > 1.5 && _curBabies.length >= 40>> After half a day of labor and birth, $possessive belly sags softly. @@ -481,14 +481,14 @@ This decriptions can be expanded with more outcomes later. But it's not practica <</if>> <</if>> <<if $slaves[$i].mpreg == 1>> - //Childbirth has @@.lime;stretched out $possessive anus.@@ //no need for description now + /* Childbirth has @@.lime;stretched out $possessive anus.@@ //no need for description now */ <<if ($dairyPregSetting > 1) && ($slaves[$i].anus < 4)>> <<set $slaves[$i].anus += 1>> <<elseif ($slaves[$i].anus < 3)>> <<set $slaves[$i].anus += 1>> <</if>> <<else>> - //Childbirth has @@.lime;stretched out $possessive vagina.@@ //no need for description now + /* Childbirth has @@.lime;stretched out $possessive vagina.@@ //no need for description now */ <<if ($dairyPregSetting > 1) && ($slaves[$i].vagina < 4)>> <<set $slaves[$i].vagina += 1>> <<elseif ($slaves[$i].vagina < 3)>> @@ -501,10 +501,10 @@ This decriptions can be expanded with more outcomes later. But it's not practica Since $possessive <<if $slaves[$i].mpreg == 1>>ass<<else>>vagina<</if>> was spared from childbirth, @@.lime;it retained its tightness.@@ <</if>> -// ------ Postbirth reactions, mother experience ----------------------------------------------------------------------------- +/* ------ Postbirth reactions, mother experience ----------------------------------------------------------------------------- */ - // I think all this reactions should be showed only if no c'section used too. Setting it up for just in case: -<<if $csec != 1>> //if not desired, this check can be easily removed or deactevated with condition set to true. + /* I think all this reactions should be showed only if no c'section used too. Setting it up for just in case: */ +<<if $csec != 1>> /*if not desired, this check can be easily removed or deactevated with condition set to true.*/ <<br>> <<if $slaves[$i].birthsTotal == 0>> <br> @@ -603,7 +603,7 @@ This decriptions can be expanded with more outcomes later. But it's not practica <</if>> <</if>> <</if>> -//----- Body/mother resume ------------------------- +/*----- Body/mother resume -------------------------*/ <br> <br> <<if $slaves[$i].assignment != "work in the dairy" && $slaves[$i].broodmother == 0 && $csec == 0>> @@ -624,12 +624,12 @@ All in all, <</if>> <</if>> -// ----- Postbirth reactions, mind ------------------------------------------------------------------------------------------- +/* ----- Postbirth reactions, mind ------------------------------------------------------------------------------------------- */ <<if $slaves[$i].fetish != "mindbroken">> <<if $slaves[$i].curStillBirth > 0>> <br><br> - //Here should be descriptions of reactions from losing some of babies. + /*Here should be descriptions of reactions from losing some of babies.*/ <</if>> <<if ($slaves[$i].devotion) < 20>> <br><br> @@ -666,7 +666,7 @@ All in all, <</if>> <</if>> -// ------ Social reactions +/* ------ Social reactions--------------- */ <<if $arcologies[0].FSRestart != "unset">> <<if $slaves[$i].breedingMark == 1 && $slaves[$i].pregSource == -1>> <br><br> @@ -682,22 +682,22 @@ All in all, <</widget>> -//=============================================================================================== +/*===============================================================================================*/ <<widget "seBirthBabies">> <<set _curBabies = $slaves[$i].curBabies.length, _cToIncub = 0, _origReserve = $slaves[$i].reservedChildren>> -// ----------------------- incubator adding subsection. There is support for broodmothers too. +/* ----------------------- incubator adding subsection. There is support for broodmothers too. */ -<<if _origReserve > 0 && _curBabies > 0>> //Do we need incubator checks? +<<if _origReserve > 0 && _curBabies > 0>> /*Do we need incubator checks?*/ <<if _curBabies >= _origReserve >> - //adding normal + /*adding normal*/ <<set _cToIncub = _origReserve >> <<elseif _curBabies < _origReserve && $slaves[$i].womb.length > 0>> - //broodmother or partial birth, we will wait for next time to get remaining children + /*broodmother or partial birth, we will wait for next time to get remaining children*/ <<set $slaves[$i].reservedChildren -= _curBabies, _cToIncub = _curBabies>> <<else>> - //Stillbirth or something other go wrong. Correcting children count. + /*Stillbirth or something other go wrong. Correcting children count.*/ <<set $slaves[$i].reservedChildren = 0, _cToIncub = _curBabies>> <</if>> @@ -718,7 +718,7 @@ All in all, <</if>> -//------------------------ Fate of other babies --------------------------------------- +/*------------------------ Fate of other babies ---------------------------------------*/ <<if $slaves[$i].fetish != "mindbroken" && $slaves[$i].fuckdoll == 0 && _curBabies > 0>> <<set _count = _curBabies>> @@ -835,7 +835,7 @@ All in all, <</widget>> -//=============================================================================================== +/*===============================================================================================*/ <<widget "seBirthPostpartum">> <<_curBabies = $slaves[$i].curBabies.length>> @@ -843,9 +843,9 @@ All in all, <<if $slaves[$i].broodmother > 0 >> <<set $slaves[$i].preg = 37>> - <<if $slaves[$i].broodmotherCountDown > 0 && $slaves[$i].womb.length > 0>> //do we really finished? - <<set $slaves[$i].broodmotherCountDown = 38 - $slaves[$i].womb[$slaves[$i].womb.length-1].age >> //age of most new (small) fetus used to correct guessing of remained time. - //Really, next block can be changed so implant will can remain inside womb turned off indefinitely. With manual extraction in surgery. But for now I leave it as is. + <<if $slaves[$i].broodmotherCountDown > 0 && $slaves[$i].womb.length > 0>> /*do we really finished?*/ + <<set $slaves[$i].broodmotherCountDown = 38 - $slaves[$i].womb[$slaves[$i].womb.length-1].age >> /*age of most new (small) fetus used to correct guessing of remained time.*/ + /*Really, next block can be changed so implant will can remain inside womb turned off indefinitely. With manual extraction in surgery. But for now I leave it as is.*/ <<if $slaves[$i].broodmotherCountDown == 0>> $pronounCap also passed the implant making $object a broodmother alongside the afterbirth. <<set $slaves[$i].preg = 0>> @@ -856,9 +856,9 @@ All in all, <<set $slaves[$i].broodmother = 0>> <</if>> <</if>> -<<elseif $slaves[$i].womb.length > 0>>// Not broodmother, but still has babies, partial birth case. - <<set $slaves[$i].preg = $slaves[$i].womb[0].age>> //now we use most advanced remained fetus as base. - <<set $slaves[$i].pregSource = $slaves[$i].womb[0].fatherID>> //in such case it's good chance that there is different father also. +<<elseif $slaves[$i].womb.length > 0>>/* Not broodmother, but still has babies, partial birth case.*/ + <<set $slaves[$i].preg = $slaves[$i].womb[0].age>> /*now we use most advanced remained fetus as base.*/ + <<set $slaves[$i].pregSource = $slaves[$i].womb[0].fatherID>> /*in such case it's good chance that there is different father also.*/ <<else>> <<set _tmp = lastPregRule($slaves[$i], $defaultRules)>> <<if ($slaves[$i].assignmentVisible == 0) && (_tmp != null)>> @@ -877,7 +877,7 @@ All in all, <</widget>> -//=============================================================================================== +/*===============================================================================================*/ <<widget "seBirthCritical">> <<_curBabies = $slaves[$i].curBabies.length>> diff --git a/src/utility/miscWidgets.tw b/src/utility/miscWidgets.tw index 29943a1a7d1..a9a7cea1a0e 100644 --- a/src/utility/miscWidgets.tw +++ b/src/utility/miscWidgets.tw @@ -2410,7 +2410,7 @@ This experience <<set WombInit($args[0])>> <<set $args[0].bellyPreg = WombGetVolume($args[0])>> <<set $args[0].pregType = $args[0].womb.length>> - //<<set $args[0].preg = $args[0].womb[0].age>> //for future usage, placeholder + /* <<set $args[0].preg = $args[0].womb[0].age>> for future usage, placeholder */ <<if $args[0].bellyImplant > 0>> <<set _implantSize = $args[0].bellyImplant>> -- GitLab