r+=`${He} is being fed an excessive amount of food, causing <span class="red">rapid weight gain.</span> `;
}elseif (V.nurseryWeightSetting===2){
if (child.weight>10){
child.weight--;
r+=`${Matron?Matron.slaveName:NL>1?`A nanny`:firstNanny.slaveName} notices ${he} is overweight and <span class="green">decreases the amount of food ${he} eats.</span> `;
}elseif (child.weight<=-10){
child.weight++;
r+=`${Matron?Matron.slaveName:NL>1?`A nanny`:firstNanny.slaveName} notices ${he} is underweight and <span class="green">increases the amount of food ${he} eats.</span> `;
}else{
r+=`${He} is <span class="lime">currently a healthy weight;</span> efforts will be made to maintain it. `;
}
}elseif (V.nurseryWeightSetting===0){
if (child.weight>-20){
r+=`${His} developing body <span class="red">quickly sheds its gained weight.</span> `;
child.weight-=40;
}
}
}else{
if (child.weight>-20){
child.weight-=40;
r+=`${His} developing body <span class="red">quickly sheds its gained weight.</span>`;
}
}
// TODO: rewrite these
if (V.nurseryMuscles){
...
...
@@ -330,5 +301,46 @@ App.Facilities.Nursery.childrenReport = function childrenReport() {
return;
}
// MARK: Nursery Rules Effects
functionweightRulesEffects(){
letr=[];
if (V.nurseryWeight){
constfirstNanny=NL>0?nannies[0]:null;
r.push(`<br>`);
if (V.nurseryWeightSetting===1){
if (child.weight<200){
child.weight+=5;
}
r.push(`${He} is being fed an excessive amount of food, causing <span class="red">rapid weight gain.</span> `);
}elseif (V.nurseryWeightSetting===2){
if (child.weight>10){
child.weight--;
r.push(`${Matron?Matron.slaveName:NL>1?`A nanny`:firstNanny.slaveName} notices ${he} is overweight and <span class="green">decreases the amount of food ${he} eats.</span> `);
}elseif (child.weight<=-10){
child.weight++;
r.push(`${Matron?Matron.slaveName:NL>1?`A nanny`:firstNanny.slaveName} notices ${he} is underweight and <span class="green">increases the amount of food ${he} eats.</span> `);
}else{
r.push(`${He} is <span class="lime">currently a healthy weight;</span> efforts will be made to maintain it. `);
}
}elseif (V.nurseryWeightSetting===0){
if (child.weight>-20){
r.push(`${His} developing body <span class="red">quickly sheds its gained weight.</span> `);
child.weight-=40;
}
}
}else{
if (child.weight>-20){
child.weight-=40;
r.push(`${His} developing body <span class="red">quickly sheds its gained weight.</span>`);