From 6abbaac293a0f9942f3da456a82b17b61a86d069 Mon Sep 17 00:00:00 2001 From: lowercasedonkey <lowercasedonkey@gmail.com> Date: Sat, 26 Sep 2020 01:07:01 -0400 Subject: [PATCH] new mom --- src/js/birth/birth.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/js/birth/birth.js b/src/js/birth/birth.js index ef36179eb2b..2053d3e1bed 100644 --- a/src/js/birth/birth.js +++ b/src/js/birth/birth.js @@ -31,7 +31,7 @@ globalThis.birth = function(slave, {birthStorm = false} = {}) { let cSection = 0; let slaveDead = 0; let birthDamage = 0; - let newMother = 0; + const newMother = (slave.counter.laborCount === 0 && slave.counter.birthsTotal === 0); let diffSize; let numStillborn = 0; let babiesBeingBorn; @@ -839,7 +839,7 @@ globalThis.birth = function(slave, {birthStorm = false} = {}) { /* I think all this reactions should be showed only if no c'section used too. Setting it up for just in case: */ if (cSection === 0 && slave.assignment !== "work in the dairy") { // if not desired, this check can be easily removed or deactivated with condition set to true. p = document.createElement("p"); - if (slave.counter.laborCount === 0 && slave.counter.birthsTotal === 0) { + if (newMother) { App.Events.addNode( p, [ @@ -850,7 +850,6 @@ globalThis.birth = function(slave, {birthStorm = false} = {}) { ); compoundCondition = 1; birthDamage += 2; - newMother = 1; } r = []; if (slave.mpreg === 1) { @@ -1029,7 +1028,7 @@ globalThis.birth = function(slave, {birthStorm = false} = {}) { if ( ( (slave.vagina >= 2 || slave.vaginaLube > 0) && slave.mpreg === 1) || - newMother === 0 || + !newMother || slave.hips > 0 || (App.Data.misc.nurseCareers.includes(slave.career) && slave.fetish !== "mindbroken" && slave.muscles >= -95) || slave.intelligenceImplant >= 15 || @@ -1078,7 +1077,7 @@ globalThis.birth = function(slave, {birthStorm = false} = {}) { } } - if (newMother === 0) { + if (!newMother) { App.Events.addNode( p, [ -- GitLab