diff --git a/devNotes/twine JS.txt b/devNotes/twine JS.txt index 5f2bd5511b184c09b26b128256564b0592815951..c3d9bc6828fa207f09e75c4e509eb94e9247b27e 100644 --- a/devNotes/twine JS.txt +++ b/devNotes/twine JS.txt @@ -1999,25 +1999,25 @@ window.getBaseBoobs = function(slave) { /*:: SetBellySize [script]*/ window.SetBellySize = function SetBellySize(slave) { - let _implantSize - WombNormalizePreg(slave) /*now with support for legacy code that advance pregnancy by setting .preg++ */ + let _implantSize; + WombNormalizePreg(slave); /*now with support for legacy code that advance pregnancy by setting .preg++ */ if (slave.bellyImplant > 0) - _implantSize = slave.bellyImplant + _implantSize = slave.bellyImplant; else - _implantSize = 0 + _implantSize = 0; if (slave.inflation == 3) - slave.bellyFluid = 10000 + slave.bellyFluid = 10000; else if (slave.inflation == 2) - slave.bellyFluid = 5000 + slave.bellyFluid = 5000; else if (slave.inflation == 1) - slave.bellyFluid = 2000 + slave.bellyFluid = 2000; else - slave.bellyFluid = 0 + slave.bellyFluid = 0; - slave.belly = slave.bellyPreg+slave.bellyFluid+_implantSize -} + slave.belly = slave.bellyPreg+slave.bellyFluid+_implantSize; +}; /*:: rbuttonJS [script]*/ /* This is modified radiobutton macro, for automatic checked state setup*/ diff --git a/src/js/SetBellySize.tw b/src/js/SetBellySize.tw index d4e1ea3280da7881fe64cc594b687d77690518d1..15a0399dcacaae6da27f39e11ad1c34a8cf10929 100644 --- a/src/js/SetBellySize.tw +++ b/src/js/SetBellySize.tw @@ -1,22 +1,22 @@ :: SetBellySize [script] window.SetBellySize = function SetBellySize(slave) { - let _implantSize - WombNormalizePreg(slave) /*now with support for legacy code that advance pregnancy by setting .preg++ */ + let _implantSize; + WombNormalizePreg(slave); /*now with support for legacy code that advance pregnancy by setting .preg++ */ if (slave.bellyImplant > 0) - _implantSize = slave.bellyImplant + _implantSize = slave.bellyImplant; else - _implantSize = 0 + _implantSize = 0; if (slave.inflation == 3) - slave.bellyFluid = 10000 + slave.bellyFluid = 10000; else if (slave.inflation == 2) - slave.bellyFluid = 5000 + slave.bellyFluid = 5000; else if (slave.inflation == 1) - slave.bellyFluid = 2000 + slave.bellyFluid = 2000; else - slave.bellyFluid = 0 + slave.bellyFluid = 0; - slave.belly = slave.bellyPreg+slave.bellyFluid+_implantSize -} + slave.belly = slave.bellyPreg+slave.bellyFluid+_implantSize; +}; diff --git a/src/uncategorized/arcmgmt.tw b/src/uncategorized/arcmgmt.tw index b39bca123a2e18f4743e41b3a183e55d4c846151..ee1290ad4821f20535ca397b85d519a60538ae78 100644 --- a/src/uncategorized/arcmgmt.tw +++ b/src/uncategorized/arcmgmt.tw @@ -150,7 +150,7 @@ _topClassP = 1>> <<if $arcologies[0].FSAssetExpansionist != "unset">> <<set _FSScore += Math.min($arcologies[0].FSAssetExpansionist, 100)>> <<if $arcologies[0].FSBodypurist != "unset">> - <<set _expirationFS *= 1 + (Math.trunc(Math.min($arcologies[0].FSAssetExpansionist, 100) / 20) * 0.05) * (1 + (Math.trunc(Math.min($arcologies[0].FSBodypurist, 100) / 20) * -0.1)>> + <<set _expirationFS *= 1 + (Math.trunc(Math.min($arcologies[0].FSAssetExpansionist, 100) / 20) * 0.05) * (1 + (Math.trunc(Math.min($arcologies[0].FSBodypurist, 100) / 20) * -0.1))>> <<else>> <<set _expirationFS *= 1 + Math.trunc(Math.min($arcologies[0].FSAssetExpansionist, 100) / 20) * 0.05>> <</if>>