Skip to content
Snippets Groups Projects
Commit c6b6ee66 authored by Pregmodder's avatar Pregmodder
Browse files

Merge branch 'fixes' into 'pregmod-master'

Semicolons

See merge request pregmodfan/fc-pregmod!3087
parents 049e8a33 dd23031c
No related branches found
No related tags found
No related merge requests found
...@@ -1999,25 +1999,25 @@ window.getBaseBoobs = function(slave) { ...@@ -1999,25 +1999,25 @@ window.getBaseBoobs = function(slave) {
/*:: SetBellySize [script]*/ /*:: SetBellySize [script]*/
   
window.SetBellySize = function SetBellySize(slave) { window.SetBellySize = function SetBellySize(slave) {
let _implantSize let _implantSize;
WombNormalizePreg(slave) /*now with support for legacy code that advance pregnancy by setting .preg++ */ WombNormalizePreg(slave); /*now with support for legacy code that advance pregnancy by setting .preg++ */
   
if (slave.bellyImplant > 0) if (slave.bellyImplant > 0)
_implantSize = slave.bellyImplant _implantSize = slave.bellyImplant;
else else
_implantSize = 0 _implantSize = 0;
   
if (slave.inflation == 3) if (slave.inflation == 3)
slave.bellyFluid = 10000 slave.bellyFluid = 10000;
else if (slave.inflation == 2) else if (slave.inflation == 2)
slave.bellyFluid = 5000 slave.bellyFluid = 5000;
else if (slave.inflation == 1) else if (slave.inflation == 1)
slave.bellyFluid = 2000 slave.bellyFluid = 2000;
else else
slave.bellyFluid = 0 slave.bellyFluid = 0;
   
slave.belly = slave.bellyPreg+slave.bellyFluid+_implantSize slave.belly = slave.bellyPreg+slave.bellyFluid+_implantSize;
} };
   
/*:: rbuttonJS [script]*/ /*:: rbuttonJS [script]*/
/* This is modified radiobutton macro, for automatic checked state setup*/ /* This is modified radiobutton macro, for automatic checked state setup*/
:: SetBellySize [script] :: SetBellySize [script]
window.SetBellySize = function SetBellySize(slave) { window.SetBellySize = function SetBellySize(slave) {
let _implantSize let _implantSize;
WombNormalizePreg(slave) /*now with support for legacy code that advance pregnancy by setting .preg++ */ WombNormalizePreg(slave); /*now with support for legacy code that advance pregnancy by setting .preg++ */
if (slave.bellyImplant > 0) if (slave.bellyImplant > 0)
_implantSize = slave.bellyImplant _implantSize = slave.bellyImplant;
else else
_implantSize = 0 _implantSize = 0;
if (slave.inflation == 3) if (slave.inflation == 3)
slave.bellyFluid = 10000 slave.bellyFluid = 10000;
else if (slave.inflation == 2) else if (slave.inflation == 2)
slave.bellyFluid = 5000 slave.bellyFluid = 5000;
else if (slave.inflation == 1) else if (slave.inflation == 1)
slave.bellyFluid = 2000 slave.bellyFluid = 2000;
else else
slave.bellyFluid = 0 slave.bellyFluid = 0;
slave.belly = slave.bellyPreg+slave.bellyFluid+_implantSize slave.belly = slave.bellyPreg+slave.bellyFluid+_implantSize;
} };
...@@ -150,7 +150,7 @@ _topClassP = 1>> ...@@ -150,7 +150,7 @@ _topClassP = 1>>
<<if $arcologies[0].FSAssetExpansionist != "unset">> <<if $arcologies[0].FSAssetExpansionist != "unset">>
<<set _FSScore += Math.min($arcologies[0].FSAssetExpansionist, 100)>> <<set _FSScore += Math.min($arcologies[0].FSAssetExpansionist, 100)>>
<<if $arcologies[0].FSBodypurist != "unset">> <<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>> <<else>>
<<set _expirationFS *= 1 + Math.trunc(Math.min($arcologies[0].FSAssetExpansionist, 100) / 20) * 0.05>> <<set _expirationFS *= 1 + Math.trunc(Math.min($arcologies[0].FSAssetExpansionist, 100) / 20) * 0.05>>
<</if>> <</if>>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment