diff --git a/src/js/sexActsJS.js b/src/js/sexActsJS.js index f7d8af1a04120583cc9781fec97e59e49ec39625..4f9aa2be43b0dd24df0f7d8a79ca9f39b8ff077e 100644 --- a/src/js/sexActsJS.js +++ b/src/js/sexActsJS.js @@ -1,5 +1,3 @@ -/* eslint-disable no-unused-vars */ -/* eslint-disable no-undef */ /* times is how many times to increment the anal counts. if left undefined it will assume it to be 1. @@ -8,14 +6,14 @@ window.AnalVCheck = function AnalVCheck(times) { const V = State.variables; const slave = V.activeSlave; const pronouns = getPronouns(slave); - const he = pronouns.pronoun, - //him = pronouns.object, - his = pronouns.possessive; + const he = pronouns.pronoun; + //him = pronouns.object, + const his = pronouns.possessive; // hers = pronouns.possessivePronoun, // himself = pronouns.objectReflexive, // boy = pronouns.noun; - const He = capFirstChar(he), - His = capFirstChar(his); + const He = capFirstChar(he); + const His = capFirstChar(his); let r = ``; if (canDoAnal(slave) && slave.anus === 0) { r += `@@.lime;This breaks in ${slave.slaveName}'s virgin ass.@@ `; @@ -67,12 +65,12 @@ window.VaginalVCheck = function VaginalVCheck(times) { const V = State.variables; const slave = V.activeSlave; const pronouns = getPronouns(slave); - const he = pronouns.pronoun, - him = pronouns.object, - his = pronouns.possessive, - hers = pronouns.possessivePronoun, - himself = pronouns.objectReflexive, - boy = pronouns.noun; + const he = pronouns.pronoun; + const him = pronouns.object; + const his = pronouns.possessive; + const hers = pronouns.possessivePronoun; + const himself = pronouns.objectReflexive; + const boy = pronouns.noun; const He = capFirstChar(he); const His = capFirstChar(his); let r = ``; @@ -129,12 +127,12 @@ window.BothVCheck = function BothVCheck(analTimes, bothTimes) { const V = State.variables; const slave = V.activeSlave; const pronouns = getPronouns(slave); - const he = pronouns.pronoun, - him = pronouns.object, - his = pronouns.possessive, - hers = pronouns.possessivePronoun, - himself = pronouns.objectReflexive, - boy = pronouns.noun; + const he = pronouns.pronoun; + const him = pronouns.object; + const his = pronouns.possessive; + const hers = pronouns.possessivePronoun; + const himself = pronouns.objectReflexive; + const boy = pronouns.noun; const He = capFirstChar(he); const His = capFirstChar(his); let r = ``; @@ -289,12 +287,12 @@ window.PartnerVCheck = function PartnerVCheck(analTimes, bothTimes) { const V = State.variables; const partner = V.slaves[V.partner]; const pronouns = getPronouns(partner); - const he = pronouns.pronoun, - him = pronouns.object, - his = pronouns.possessive, - hers = pronouns.possessivePronoun, - himself = pronouns.objectReflexive, - boy = pronouns.noun; + const he = pronouns.pronoun; + const him = pronouns.object; + const his = pronouns.possessive; + const hers = pronouns.possessivePronoun; + const himself = pronouns.objectReflexive; + const boy = pronouns.noun; const He = capFirstChar(he); const His = capFirstChar(his); let r = ``; @@ -370,17 +368,15 @@ window.PartnerVCheck = function PartnerVCheck(analTimes, bothTimes) { window.SimpleSexAct = function SimpleSexAct(slave, count) { const V = State.variables; let fuckTarget = 0; - let fuckCount = 1; - let r = ``; - if (count) { - fuckCount = count; - } + const fuckCount = count || 1; + let r = ""; + for (let i = 0; i < fuckCount; i++) { fuckTarget = jsRandom(1, 100); if (slave.nipples === "fuckable" && V.PC.dick === 1 && fuckTarget > 80) { V.mammaryTotal += 1; slave.mammaryCount += 1; - } else if (canDoVaginal(slave) && slave.vagina > 0 && fuckTarget > 33) { + } else if (canDoVaginal(slave) && fuckTarget > 33) { V.vaginalTotal += 1; slave.vaginalCount += 1; if (canImpreg(slave, V.PC)) { @@ -410,16 +406,14 @@ window.SimpleSexAct = function SimpleSexAct(slave, count) { window.SimpleSlaveFucking = function SimpleSlaveFucking(slave, count) { const V = State.variables; let fuckTarget = 0; - let fuckCount = 1; - if (count) { - fuckCount = count; - } + const fuckCount = count || 1; + for (let i = 0; i < fuckCount; i++) { fuckTarget = jsRandom(1, 100); if (slave.nipples === "fuckable" && fuckTarget > 80) { V.mammaryTotal += 1; slave.mammaryCount += 1; - } else if (canDoVaginal(slave) && slave.vagina > 0 && fuckTarget > 33) { + } else if (canDoVaginal(slave) && fuckTarget > 33) { V.vaginalTotal += 1; slave.vaginalCount += 1; } else if (canDoAnal(slave) && slave.anus > 0 && fuckTarget > 10) { @@ -443,11 +437,9 @@ window.SimpleSlaveFucking = function SimpleSlaveFucking(slave, count) { window.SimpleSlaveSlaveFucking = function SimpleSlaveSlaveFucking(subslave, domslave, count) { const V = State.variables; let fuckTarget = 0; - let fuckCount = 1; - let r = ``; - if (count) { - fuckCount = count; - } + const fuckCount = count || 1; + let r = ""; + for (let j = 0; j < fuckCount; j++) { //there is a reason randomization happens inside cycle - to spread fuck around, otherwise cycle isn't even needed fuckTarget = jsRandom(1, 100); @@ -470,7 +462,7 @@ window.SimpleSlaveSlaveFucking = function SimpleSlaveSlaveFucking(subslave, doms subslave.mammaryCount++; domslave.penetrativeCount++; } - } else if (canDoVaginal(subslave) && subslave.vagina > 0 && canPenetrate(domslave) && fuckTarget > 33) { + } else if (canDoVaginal(subslave) && canPenetrate(domslave) && fuckTarget > 33) { if (passage() === "SA serve your other slaves") { if (subslave.ID === V.slaves[V.i].ID) { V.slaves[V.i].vaginalCount++;