diff --git a/devNotes/twine JS.txt b/devNotes/twine JS.txt index 33bba6c989e431c333d510020a29805e9a12f00b..72f51f4b41344187f0d083f0032d5b91c29cbdd0 100644 --- a/devNotes/twine JS.txt +++ b/devNotes/twine JS.txt @@ -20901,18 +20901,17 @@ window.rulesAutosurgery = (function() { if left undefined it will assume it to be 1. */ window.AnalVCheck = function AnalVCheck(times) { - var pronouns = getPronouns(slave); - var he = pronouns.pronoun, + const V = State.variables; + const slave = V.activeSlave; + let pronouns = getPronouns(slave); + let he = pronouns.pronoun, him = pronouns.object, his = pronouns.possessive, hers = pronouns.possessivePronoun, himself = pronouns.objectReflexive, boy = pronouns.noun; - var He = capFirstChar(he), + let He = capFirstChar(he), His = capFirstChar(his); - - const V = State.variables; - const slave = V.activeSlave; let r = ``; if (canDoAnal(slave) && slave.anus === 0) { r += `@@.lime;This breaks in ${slave.slaveName}'s virgin ass.@@ `; @@ -20930,12 +20929,12 @@ window.AnalVCheck = function AnalVCheck(times) { } slave.devotion += 4; } else if (slave.devotion > 20) { - r += `Since it's ${his} first time, you gently ease yourself into ${his} butthole and gradually increase the intensity of your thrusts. Her moans become louder and louder as you continue working away at ${his} butthole. She accepts the pain and humiliation of anal sex as part of ${his} sexual servitude, though she hopes that ${his} next time will be less painful.`; + r += `Since it's ${his} first time, you gently ease yourself into ${his} butthole and gradually increase the intensity of your thrusts. ${His} moans become louder and louder as you continue working away at ${his} butthole. ${He} accepts the pain and humiliation of anal sex as part of ${his} sexual servitude, though ${he} hopes that ${his} next time will be less painful.`; } else if (slave.devotion >= -20) { - r += `You force yourself into ${his} butthole. She sobs and cries with disgust while you continue thrusting into ${his} ass. She @@.gold;fears@@ ${his} next anal sex, remembering the pain of losing ${his} anal virginity. She dreads having ${his} ass violated by you again.`; + r += `You force yourself into ${his} butthole. ${He} sobs and cries with disgust while you continue thrusting into ${his} ass. ${He} @@.gold;fears@@ ${his} next anal sex, remembering the pain of losing ${his} anal virginity. ${He} dreads having ${his} ass violated by you again.`; slave.trust -= 5; } else { - r += `You force yourself into ${his} butthole. She sobs and cries with disgust while you continue thrusting into ${his} ass. She @@.mediumorchid;hates@@ and @@.gold;fears@@ you for violating ${his} virgin butt. She dreads having ${his} ass fucked by you again.`; + r += `You force yourself into ${his} butthole. ${He} sobs and cries with disgust while you continue thrusting into ${his} ass. ${He} @@.mediumorchid;hates@@ and @@.gold;fears@@ you for violating ${his} virgin butt. ${He} dreads having ${his} ass fucked by you again.`; slave.trust -= 5; slave.devotion -= 5; } @@ -20961,42 +20960,41 @@ window.AnalVCheck = function AnalVCheck(times) { if left undefined it will assume it to be 1. */ window.VaginalVCheck = function VaginalVCheck(times) { - var pronouns = getPronouns(slave); - var he = pronouns.pronoun, + const V = State.variables; + const slave = V.activeSlave; + let pronouns = getPronouns(slave); + let he = pronouns.pronoun, him = pronouns.object, his = pronouns.possessive, hers = pronouns.possessivePronoun, himself = pronouns.objectReflexive, boy = pronouns.noun; - var He = capFirstChar(he), + let He = capFirstChar(he), His = capFirstChar(his); - - const V = State.variables; - const slave = V.activeSlave; let r = ``; if (canDoVaginal(slave) && slave.vagina === 0) { r += `@@.lime;This breaks in ${slave.slaveName}'s virgin pussy.@@ `; if (slave.devotion > 50 || slave.career == "a slave since birth") { - r += `You ease yourself into ${his} pussy, since it's ${his} first time, then gradually speed up your thrusts while she slowly learns to move ${his} hips along with you. She moans loudly. `; + r += `You ease yourself into ${his} pussy, since it's ${his} first time, then gradually speed up your thrusts while ${he} slowly learns to move ${his} hips along with you. ${He} moans loudly. `; if (slave.tankBaby == 2) { - r += `She thinks of losing ${his} virginity to ${his} ${WrittenMaster(slave)} a @@.hotpink;necessity to be happy.@@ She expects ${his} pussy to be seeing a lot more attention in the future.`; + r += `${He} thinks of losing ${his} virginity to ${his} ${WrittenMaster(slave)} a @@.hotpink;necessity to be happy.@@ ${He} expects ${his} pussy to be seeing a lot more attention in the future.`; } else { - r += `@@.hotpink;She enjoys losing ${his} cherry to you.@@ `; + r += `@@.hotpink;${He} enjoys losing ${his} cherry to you.@@ `; if ((slave.fetishKnown && slave.fetish == "pregnancy") || (slave.energy > 95) || (slave.attrXY >= 85 && V.PC.dick === 1)) { - r += `She can't wait to have ${his} pussy fucked by you again.`; + r += `${He} can't wait to have ${his} pussy fucked by you again.`; } else { - r += `She looks forward to having ${his} pussy fucked by you again.`; + r += `${He} looks forward to having ${his} pussy fucked by you again.`; } } slave.devotion += 4; } else if (slave.devotion > 20) { - r += `You ease yourself into ${his} pussy, since it's ${his} first time, then gradually speed up your thrusts while she slowly learns to move ${his} hips along with you. She accepts losing ${his} virginity to ${his} owner and she looks forward to having ${his} pussy fucked by you again.`; + r += `You ease yourself into ${his} pussy, since it's ${his} first time, then gradually speed up your thrusts while ${he} slowly learns to move ${his} hips along with you. ${He} accepts losing ${his} virginity to ${his} owner and ${he} looks forward to having ${his} pussy fucked by you again.`; } else if (slave.devotion >= -20) { - r += `You force yourself into ${his} pussy. She sobs and cries with disgust while you continue thrusting into ${his} fuck hole. She @@.mediumorchid;hates@@ losing ${his} virginity this way and @@.gold;fears@@ the next time you'll conquer ${his}. She dreads getting violated by you again.`; + r += `You force yourself into ${his} pussy. ${He} sobs and cries with disgust while you continue thrusting into ${his} fuck hole. ${He} @@.mediumorchid;hates@@ losing ${his} virginity this way and @@.gold;fears@@ the next time you'll conquer ${his}. ${He} dreads getting violated by you again.`; slave.trust -= 5; slave.devotion -= 5; } else { - r += `You force yourself into ${his} pussy. She sobs and cries with disgust while you continue working ${his} fuck hole. She tries to struggle, but you only pound harder. She @@.mediumorchid;hates@@ and @@.gold;fears@@ you for robbing ${his} of ${his} virginity. She dreads getting fucked by you again.`; + r += `You force yourself into ${his} pussy. ${He} sobs and cries with disgust while you continue working ${his} fuck hole. ${He} tries to struggle, but you only pound harder. ${He} @@.mediumorchid;hates@@ and @@.gold;fears@@ you for robbing ${his} of ${his} virginity. ${He} dreads getting fucked by you again.`; slave.trust -= 10; slave.devotion -= 15; } @@ -21024,75 +21022,74 @@ window.VaginalVCheck = function VaginalVCheck(times) { In both cases if left undefined it will assume it to be 1. */ window.BothVCheck = function BothVCheck(analTimes, bothTimes) { - var pronouns = getPronouns(slave); - var he = pronouns.pronoun, + const V = State.variables; + const slave = V.activeSlave; + let pronouns = getPronouns(slave); + let he = pronouns.pronoun, him = pronouns.object, his = pronouns.possessive, hers = pronouns.possessivePronoun, himself = pronouns.objectReflexive, boy = pronouns.noun; - var He = capFirstChar(he), + let He = capFirstChar(he), His = capFirstChar(his); - - const V = State.variables; - const slave = V.activeSlave; let r = ``; if (canDoVaginal(slave)) { if (slave.vagina === 0) { if (canDoAnal(slave) && slave.anus == 0) { r += `@@.lime;This breaks in ${slave.slaveName}'s virgin holes.@@ `; if (slave.devotion > 50 || slave.career == "a slave since birth") { - r += `As it's ${his} first time, you ease yourself into ${his} pussy before gradually working your way into ${his} ass and alternate between the two holes while she moans. `; + r += `As it's ${his} first time, you ease yourself into ${his} pussy before gradually working your way into ${his} ass and alternate between the two holes while ${he} moans. `; if (slave.tankBaby == 2) { - r += `She believes you taking ${his} virgin holes @@.hotpink;will keep ${him} from suffering.@@ She expects you to require ${his} holes as tribute again soon.`; + r += `${He} believes you taking ${his} virgin holes @@.hotpink;will keep ${him} from suffering.@@ ${He} expects you to require ${his} holes as tribute again soon.`; } else { - r += `@@.hotpink;She's so devoted she enjoys being fucked in both holes for the first time.@@ She looks forward to having ${his} holes fucked by you again.`; + r += `@@.hotpink;${He}'s so devoted ${he} enjoys being fucked in both holes for the first time.@@ ${He} looks forward to having ${his} holes fucked by you again.`; } slave.devotion += 4; } else if (slave.devotion <= 20) { - r += `You force yourself into ${his} pussy before working your way into ${his} ass. She sobs and cries with disgust while you alternate between the two holes. She @@.mediumorchid;hates@@ losing ${his} virginity and anal virginity in one @@.gold;brutal@@ incident. She dreads having ${his} holes violated by you again.`; + r += `You force yourself into ${his} pussy before working your way into ${his} ass. ${He} sobs and cries with disgust while you alternate between the two holes. ${He} @@.mediumorchid;hates@@ losing ${his} virginity and anal virginity in one @@.gold;brutal@@ incident. ${He} dreads having ${his} holes violated by you again.`; slave.trust -= 5; slave.devotion -= 5; } else { - r += `As it's ${his} first time, you ease yourself into ${his} pussy before gradually working your way into ${his} ass and alternate between the two holes while she moans. She accepts being fucked in both holes for the first time. She looks forward to having ${his} holes fucked by you again.`; + r += `As it's ${his} first time, you ease yourself into ${his} pussy before gradually working your way into ${his} ass and alternate between the two holes while ${he} moans. ${He} accepts being fucked in both holes for the first time. ${He} looks forward to having ${his} holes fucked by you again.`; } slave.anus = 1; } else { r += `@@.lime;This breaks in ${slave.slaveName}'s virgin pussy.@@ `; if (slave.devotion > 50 || slave.career == "a slave since birth") { - r += `As it's ${his} first time, you ease yourself into ${his} pussy and gradually speed up your thrusts while she slowly learns to move ${his} hips along with you. She moans loudly. `; + r += `As it's ${his} first time, you ease yourself into ${his} pussy and gradually speed up your thrusts while ${he} slowly learns to move ${his} hips along with you. ${He} moans loudly. `; if (slave.tankBaby == 2) { - r += `She thinks of losing ${his} virginity to ${his} ${WrittenMaster(slave)} a @@.hotpink;necessity to be happy.@@ She expects ${his} pussy to be seeing a lot more attention in the future.`; + r += `${He} thinks of losing ${his} virginity to ${his} ${WrittenMaster(slave)} a @@.hotpink;necessity to be happy.@@ ${He} expects ${his} pussy to be seeing a lot more attention in the future.`; } else { - r += `@@.hotpink;She enjoys losing ${his} cherry to you.@@ She looks forward to having ${his} pussy fucked by you again.`; + r += `@@.hotpink;${He} enjoys losing ${his} cherry to you.@@ ${He} looks forward to having ${his} pussy fucked by you again.`; } slave.devotion += 4; } else if (slave.devotion <= 20) { - r += `You force yourself into ${his} pussy. She sobs and cries with disgust while you continue working ${his} fuck hole. She @@.mediumorchid;hates@@ and @@.gold;fears@@ you for taking ${his} virginity. She dreads having ${his} pussy violated by you again.`; + r += `You force yourself into ${his} pussy. ${He} sobs and cries with disgust while you continue working ${his} fuck hole. ${He} @@.mediumorchid;hates@@ and @@.gold;fears@@ you for taking ${his} virginity. ${He} dreads having ${his} pussy violated by you again.`; slave.trust -= 5; slave.devotion -= 5; } else { - r += `As it's ${his} first time, you ease yourself into ${his} pussy before gradually increasing the intensity of your thrusts while she softly moans. She accepts losing ${his} virginity to ${his} owner and she looks forward to having ${his} pussy fucked by you again.`; + r += `As it's ${his} first time, you ease yourself into ${his} pussy before gradually increasing the intensity of your thrusts while ${he} softly moans. ${He} accepts losing ${his} virginity to ${his} owner and ${he} looks forward to having ${his} pussy fucked by you again.`; } } slave.vagina = 1; } else if (canDoAnal(slave) && slave.anus == 0) { r += `@@.lime;This breaks in ${slave.slaveName}'s virgin ass.@@ `; if (slave.devotion > 50 || slave.career == "a slave since birth") { - r += `As it's ${his} first time, you ease yourself into ${his} butthole and gradually speed up your thrusts while she slowly learns to move ${his} hips along with you. She moans loudly. `; + r += `As it's ${his} first time, you ease yourself into ${his} butthole and gradually speed up your thrusts while ${he} slowly learns to move ${his} hips along with you. ${He} moans loudly. `; if (slave.tankBaby == 2) { - r += `She thinks of losing ${his} anal virginity to ${his} ${WrittenMaster(slave)} a @@.hotpink;necessity.@@ She expects ${his} asshole to be seeing a lot more attention now.`; + r += `${He} thinks of losing ${his} anal virginity to ${his} ${WrittenMaster(slave)} a @@.hotpink;necessity.@@ ${He} expects ${his} asshole to be seeing a lot more attention now.`; } else { - r += `She thinks of losing ${his} anal virginity to you as a @@.hotpink;connection@@ with ${his} beloved ${WrittenMaster(slave)}. She looks forward to having ${his} asshole fucked by you again.` + r += `${He} thinks of losing ${his} anal virginity to you as a @@.hotpink;connection@@ with ${his} beloved ${WrittenMaster(slave)}. ${He} looks forward to having ${his} asshole fucked by you again.` } slave.devotion += 4; - } else if (slave.devotion > 20) { - r += `As it's ${his} first time, you ease yourself into ${his} butthole and gradually increase the intensity of your thrusts. She accepts the pain and humiliation of anal sex as part of ${his} sexual servitude, though she hopes that ${his} next time will be less painful.`; + } else if (slave.devotion > 20){ + r += `As it's ${his} first time, you ease yourself into ${his} butthole and gradually increase the intensity of your thrusts. ${He} accepts the pain and humiliation of anal sex as part of ${his} sexual servitude, though ${he} hopes that ${his} next time will be less painful.`; } else if (slave.devotion >= -20) { - r += `You force yourself into ${his} butthole. She sobs and cries with disgust while you continue thrusting into ${his} ass. She @@.gold;fears@@ ${his} next anal sex, remembering the pain of losing ${his} anal virginity. She dreads having ${his} ass violated by you again.`; + r += `You force yourself into ${his} butthole. ${He} sobs and cries with disgust while you continue thrusting into ${his} ass. ${He} @@.gold;fears@@ ${his} next anal sex, remembering the pain of losing ${his} anal virginity. ${He} dreads having ${his} ass violated by you again.`; slave.trust -= 5; } else { - r += `You force yourself into ${his} butthole. She sobs and cries with disgust while you continue thrusting into ${his} ass. She @@.mediumorchid;hates@@ and @@.gold;fears@@ you for violating ${his} virgin butt. She dreads having ${his} ass fucked by you again.`; + r += `You force yourself into ${his} butthole. ${He} sobs and cries with disgust while you continue thrusting into ${his} ass. ${He} @@.mediumorchid;hates@@ and @@.gold;fears@@ you for violating ${his} virgin butt. ${He} dreads having ${his} ass fucked by you again.`; slave.trust -= 5; slave.devotion -= 5; } @@ -21129,20 +21126,20 @@ window.BothVCheck = function BothVCheck(analTimes, bothTimes) { if (slave.anus == 0) { r += `@@.lime;This breaks in ${slave.slaveName}'s virgin ass.@@ `; if (slave.devotion > 50 || slave.career == "a slave since birth") { - r += `As it's ${his} first time, you ease yourself into ${his} butthole and gradually speed up your thrusts while she slowly learns to move ${his} hips along with you. She moans loudly. `; + r += `As it's ${his} first time, you ease yourself into ${his} butthole and gradually speed up your thrusts while ${he} slowly learns to move ${his} hips along with you. ${He} moans loudly. `; if (slave.tankBaby == 2) { - r += `She thinks of losing ${his} anal virginity to ${his} ${WrittenMaster(slave)} a @@.hotpink;necessity.@@ She expects ${his} asshole to be seeing a lot more attention now.`; + r += `${He} thinks of losing ${his} anal virginity to ${his} ${WrittenMaster(slave)} a @@.hotpink;necessity.@@ ${He} expects ${his} asshole to be seeing a lot more attention now.`; } else { - r += `She thinks of losing ${his} anal virginity to you as a @@.hotpink;connection@@ with ${his} beloved ${WrittenMaster(slave)}. She looks forward to having ${his} asshole fucked by you again.`; + r += `${He} thinks of losing ${his} anal virginity to you as a @@.hotpink;connection@@ with ${his} beloved ${WrittenMaster(slave)}. ${He} looks forward to having ${his} asshole fucked by you again.`; } slave.devotion += 4; } else if (slave.devotion > 20) { - r += `As it's ${his} first time, you ease yourself into ${his} butthole and gradually increase the intensity of your thrusts. She accepts the pain and humiliation of anal sex as part of ${his} sexual servitude, though she hopes that ${his} next time will be less painful.`; + r += `As it's ${his} first time, you ease yourself into ${his} butthole and gradually increase the intensity of your thrusts. ${He} accepts the pain and humiliation of anal sex as part of ${his} sexual servitude, though ${he} hopes that ${his} next time will be less painful.`; } else if (slave.devotion >= -20) { - r += `You force yourself into ${his} butthole. She sobs and cries with disgust while you continue thrusting into ${his} ass. She @@.gold;fears@@ ${his} next anal sex, remembering the pain of losing ${his} anal virginity. She dreads having ${his} ass violated by you again.`; + r += `You force yourself into ${his} butthole. ${He} sobs and cries with disgust while you continue thrusting into ${his} ass. ${He} @@.gold;fears@@ ${his} next anal sex, remembering the pain of losing ${his} anal virginity. ${He} dreads having ${his} ass violated by you again.`; slave.trust -= 5; } else { - r += `You force yourself into ${his} butthole. She sobs and cries with disgust while you continue thrusting into ${his} ass. She @@.mediumorchid;hates@@ and @@.gold;fears@@ you for violating ${his} virgin butt. She dreads having ${his} ass fucked by you again.` + r += `You force yourself into ${his} butthole. ${He} sobs and cries with disgust while you continue thrusting into ${his} ass. ${He} @@.mediumorchid;hates@@ and @@.gold;fears@@ you for violating ${his} virgin butt. ${He} dreads having ${his} ass fucked by you again.` slave.trust -= 5; slave.devotion -= 5; } @@ -21185,24 +21182,21 @@ window.SimpleVCheck = function SimpleVCheck(times) { never know when someone might use the routine and forget to do such. */ window.PartnerVCheck = function PartnerVCheck(analTimes, bothTimes) { - var pronouns = getPronouns(slave); - var he = pronouns.pronoun, + const V = State.variables; + const partner = V.slaves[V.partner]; + let pronouns = getPronouns(slave); + let he = pronouns.pronoun, him = pronouns.object, his = pronouns.possessive, hers = pronouns.possessivePronoun, himself = pronouns.objectReflexive, boy = pronouns.noun; - var He = capFirstChar(he), + let He = capFirstChar(he), His = capFirstChar(his); - - const V = State.variables; - const partner = V.slaves[V.partner]; let r = ``; - if (V.partner < 0 || V.partner >= V.slaves.length) { r += `@@.red;PartnerVCheck called with invalid partner '$partner' from passage ${passage()}.@@`; - } - else if (canDoVaginal(partner)) { + } else if (canDoVaginal(partner)) { if (partner.vagina === 0) { if (canDoAnal(partner) && partner.anus === 0) { r += `Since it's ${partner.slaveName}'s first time, you take your time and gently ease yourself into ${his} pussy before gradually working your way into ${his} butthole, alternating between ${his} holes. @@.lime;This breaks in ${partner.slaveName}'s virgin holes.@@ `; @@ -21277,7 +21271,7 @@ window.SimpleSexAct = function SimpleSexAct(slave, count) { fuckCount = count; } for (var i = 0; i < fuckCount; i++) { - fuckTarget = jsRandom(1, 100); + fuckTarget = jsRandom(1,100); if (slave.nipples == "fuckable" && V.PC.dick === 1 && fuckTarget > 80) { V.mammaryTotal += 1; slave.mammaryCount += 1; @@ -21315,7 +21309,7 @@ window.SimpleSlaveFucking = function SimpleSlaveFucking(slave, count) { fuckCount = count; } for (var i = 0; i < fuckCount; i++) { - fuckTarget = jsRandom(1, 100); + fuckTarget = jsRandom(1,100); if (slave.nipples == "fuckable" && fuckTarget > 80) { V.mammaryTotal += 1; slave.mammaryCount += 1; @@ -21348,7 +21342,7 @@ window.SimpleSlaveSlaveFucking = function SimpleSlaveSlaveFucking(subslave, doms } for (var 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); + fuckTarget = jsRandom(1,100); if (subslave.nipples === "fuckable" && canPenetrate(domslave) && fuckTarget > 80) { if (passage() === "SA serve your other slaves") { if (subslave.ID == V.slaves[V.i].ID) { diff --git a/src/js/sexActsJS.tw b/src/js/sexActsJS.tw index 9a531c0231f9d0291034fa76e10818cde1fc043e..026a00a93daa6e68cf909a5bca1ef34337c2490e 100644 --- a/src/js/sexActsJS.tw +++ b/src/js/sexActsJS.tw @@ -1,22 +1,21 @@ -:: sexActJS [script] +:: sexActJS[script] /* times is how many times to increment the anal counts. if left undefined it will assume it to be 1. */ window.AnalVCheck = function AnalVCheck(times) { - var pronouns = getPronouns(slave); - var he = pronouns.pronoun, + const V = State.variables; + const slave = V.activeSlave; + let pronouns = getPronouns(slave); + let he = pronouns.pronoun, him = pronouns.object, his = pronouns.possessive, hers = pronouns.possessivePronoun, himself = pronouns.objectReflexive, boy = pronouns.noun; - var He = capFirstChar(he), + let He = capFirstChar(he), His = capFirstChar(his); - - const V = State.variables; - const slave = V.activeSlave; let r = ``; if (canDoAnal(slave) && slave.anus === 0) { r += `@@.lime;This breaks in ${slave.slaveName}'s virgin ass.@@ `; @@ -24,26 +23,21 @@ window.AnalVCheck = function AnalVCheck(times) { r += `Since it's ${his} first time, you gently ease yourself into ${his} butthole and gradually increase the intensity of your thrusts. Before long ${he}'s moaning loudly as you continue working away at ${his} butthole. `; if (slave.tankBaby == 2) { r += `${He} thinks of losing ${his} anal virginity to ${his} ${WrittenMaster(slave)} a @@.hotpink;necessity.@@ ${He} expects ${his} asshole to be seeing a lot more attention now.`; - } - else { + } else { r += `${He} thinks of losing ${his} anal virginity to you as a @@.hotpink;connection@@ with ${his} beloved ${WrittenMaster(slave)}. `; if ((slave.fetishKnown && slave.fetish == "buttslut") || (slave.energy > 95) || (slave.attrXX >= 85 && V.PC.dick === 0)) { r += `${He} can't wait to be fucked in the ass by you again.`; - } - else { + } else { r += `${He} looks forward to having ${his} asshole fucked by you again.`; } } slave.devotion += 4; - } - else if (slave.devotion > 20) { + } else if (slave.devotion > 20) { r += `Since it's ${his} first time, you gently ease yourself into ${his} butthole and gradually increase the intensity of your thrusts. ${His} moans become louder and louder as you continue working away at ${his} butthole. ${He} accepts the pain and humiliation of anal sex as part of ${his} sexual servitude, though ${he} hopes that ${his} next time will be less painful.`; - } - else if (slave.devotion >= -20) { + } else if (slave.devotion >= -20) { r += `You force yourself into ${his} butthole. ${He} sobs and cries with disgust while you continue thrusting into ${his} ass. ${He} @@.gold;fears@@ ${his} next anal sex, remembering the pain of losing ${his} anal virginity. ${He} dreads having ${his} ass violated by you again.`; slave.trust -= 5; - } - else { + } else { r += `You force yourself into ${his} butthole. ${He} sobs and cries with disgust while you continue thrusting into ${his} ass. ${He} @@.mediumorchid;hates@@ and @@.gold;fears@@ you for violating ${his} virgin butt. ${He} dreads having ${his} ass fucked by you again.`; slave.trust -= 5; slave.devotion -= 5; @@ -57,8 +51,7 @@ window.AnalVCheck = function AnalVCheck(times) { if (!times) { V.analTotal += 1; slave.analCount += 1; - } - else { + } else { V.analTotal += times; slave.analCount += times; } @@ -71,18 +64,17 @@ window.AnalVCheck = function AnalVCheck(times) { if left undefined it will assume it to be 1. */ window.VaginalVCheck = function VaginalVCheck(times) { - var pronouns = getPronouns(slave); - var he = pronouns.pronoun, + const V = State.variables; + const slave = V.activeSlave; + let pronouns = getPronouns(slave); + let he = pronouns.pronoun, him = pronouns.object, his = pronouns.possessive, hers = pronouns.possessivePronoun, himself = pronouns.objectReflexive, boy = pronouns.noun; - var He = capFirstChar(he), + let He = capFirstChar(he), His = capFirstChar(his); - - const V = State.variables; - const slave = V.activeSlave; let r = ``; if (canDoVaginal(slave) && slave.vagina === 0) { r += `@@.lime;This breaks in ${slave.slaveName}'s virgin pussy.@@ `; @@ -90,27 +82,22 @@ window.VaginalVCheck = function VaginalVCheck(times) { r += `You ease yourself into ${his} pussy, since it's ${his} first time, then gradually speed up your thrusts while ${he} slowly learns to move ${his} hips along with you. ${He} moans loudly. `; if (slave.tankBaby == 2) { r += `${He} thinks of losing ${his} virginity to ${his} ${WrittenMaster(slave)} a @@.hotpink;necessity to be happy.@@ ${He} expects ${his} pussy to be seeing a lot more attention in the future.`; - } - else { + } else { r += `@@.hotpink;${He} enjoys losing ${his} cherry to you.@@ `; if ((slave.fetishKnown && slave.fetish == "pregnancy") || (slave.energy > 95) || (slave.attrXY >= 85 && V.PC.dick === 1)) { r += `${He} can't wait to have ${his} pussy fucked by you again.`; - } - else { + } else { r += `${He} looks forward to having ${his} pussy fucked by you again.`; } } slave.devotion += 4; - } - else if (slave.devotion > 20) { + } else if (slave.devotion > 20) { r += `You ease yourself into ${his} pussy, since it's ${his} first time, then gradually speed up your thrusts while ${he} slowly learns to move ${his} hips along with you. ${He} accepts losing ${his} virginity to ${his} owner and ${he} looks forward to having ${his} pussy fucked by you again.`; - } - else if (slave.devotion >= -20) { + } else if (slave.devotion >= -20) { r += `You force yourself into ${his} pussy. ${He} sobs and cries with disgust while you continue thrusting into ${his} fuck hole. ${He} @@.mediumorchid;hates@@ losing ${his} virginity this way and @@.gold;fears@@ the next time you'll conquer ${his}. ${He} dreads getting violated by you again.`; slave.trust -= 5; slave.devotion -= 5; - } - else { + } else { r += `You force yourself into ${his} pussy. ${He} sobs and cries with disgust while you continue working ${his} fuck hole. ${He} tries to struggle, but you only pound harder. ${He} @@.mediumorchid;hates@@ and @@.gold;fears@@ you for robbing ${his} of ${his} virginity. ${He} dreads getting fucked by you again.`; slave.trust -= 10; slave.devotion -= 15; @@ -124,8 +111,7 @@ window.VaginalVCheck = function VaginalVCheck(times) { if (!times) { V.vaginalTotal += 1; slave.vaginalCount += 1; - } - else { + } else { V.vaginalTotal += times; slave.vaginalCount += times; } @@ -140,18 +126,17 @@ window.VaginalVCheck = function VaginalVCheck(times) { In both cases if left undefined it will assume it to be 1. */ window.BothVCheck = function BothVCheck(analTimes, bothTimes) { - var pronouns = getPronouns(slave); - var he = pronouns.pronoun, + const V = State.variables; + const slave = V.activeSlave; + let pronouns = getPronouns(slave); + let he = pronouns.pronoun, him = pronouns.object, his = pronouns.possessive, hers = pronouns.possessivePronoun, himself = pronouns.objectReflexive, boy = pronouns.noun; - var He = capFirstChar(he), + let He = capFirstChar(he), His = capFirstChar(his); - - const V = State.variables; - const slave = V.activeSlave; let r = ``; if (canDoVaginal(slave)) { if (slave.vagina === 0) { @@ -161,65 +146,53 @@ window.BothVCheck = function BothVCheck(analTimes, bothTimes) { r += `As it's ${his} first time, you ease yourself into ${his} pussy before gradually working your way into ${his} ass and alternate between the two holes while ${he} moans. `; if (slave.tankBaby == 2) { r += `${He} believes you taking ${his} virgin holes @@.hotpink;will keep ${him} from suffering.@@ ${He} expects you to require ${his} holes as tribute again soon.`; - } - else { + } else { r += `@@.hotpink;${He}'s so devoted ${he} enjoys being fucked in both holes for the first time.@@ ${He} looks forward to having ${his} holes fucked by you again.`; } slave.devotion += 4; - } - else if (slave.devotion <= 20) { + } else if (slave.devotion <= 20) { r += `You force yourself into ${his} pussy before working your way into ${his} ass. ${He} sobs and cries with disgust while you alternate between the two holes. ${He} @@.mediumorchid;hates@@ losing ${his} virginity and anal virginity in one @@.gold;brutal@@ incident. ${He} dreads having ${his} holes violated by you again.`; slave.trust -= 5; slave.devotion -= 5; - } - else { + } else { r += `As it's ${his} first time, you ease yourself into ${his} pussy before gradually working your way into ${his} ass and alternate between the two holes while ${he} moans. ${He} accepts being fucked in both holes for the first time. ${He} looks forward to having ${his} holes fucked by you again.`; } slave.anus = 1; - } - else { + } else { r += `@@.lime;This breaks in ${slave.slaveName}'s virgin pussy.@@ `; if (slave.devotion > 50 || slave.career == "a slave since birth") { r += `As it's ${his} first time, you ease yourself into ${his} pussy and gradually speed up your thrusts while ${he} slowly learns to move ${his} hips along with you. ${He} moans loudly. `; if (slave.tankBaby == 2) { r += `${He} thinks of losing ${his} virginity to ${his} ${WrittenMaster(slave)} a @@.hotpink;necessity to be happy.@@ ${He} expects ${his} pussy to be seeing a lot more attention in the future.`; - } - else { + } else { r += `@@.hotpink;${He} enjoys losing ${his} cherry to you.@@ ${He} looks forward to having ${his} pussy fucked by you again.`; } slave.devotion += 4; - } - else if (slave.devotion <= 20) { + } else if (slave.devotion <= 20) { r += `You force yourself into ${his} pussy. ${He} sobs and cries with disgust while you continue working ${his} fuck hole. ${He} @@.mediumorchid;hates@@ and @@.gold;fears@@ you for taking ${his} virginity. ${He} dreads having ${his} pussy violated by you again.`; slave.trust -= 5; slave.devotion -= 5; - } - else { + } else { r += `As it's ${his} first time, you ease yourself into ${his} pussy before gradually increasing the intensity of your thrusts while ${he} softly moans. ${He} accepts losing ${his} virginity to ${his} owner and ${he} looks forward to having ${his} pussy fucked by you again.`; } } slave.vagina = 1; - } - else if (canDoAnal(slave) && slave.anus == 0) { + } else if (canDoAnal(slave) && slave.anus == 0) { r += `@@.lime;This breaks in ${slave.slaveName}'s virgin ass.@@ `; if (slave.devotion > 50 || slave.career == "a slave since birth") { r += `As it's ${his} first time, you ease yourself into ${his} butthole and gradually speed up your thrusts while ${he} slowly learns to move ${his} hips along with you. ${He} moans loudly. `; if (slave.tankBaby == 2) { r += `${He} thinks of losing ${his} anal virginity to ${his} ${WrittenMaster(slave)} a @@.hotpink;necessity.@@ ${He} expects ${his} asshole to be seeing a lot more attention now.`; - } - else { + } else { r += `${He} thinks of losing ${his} anal virginity to you as a @@.hotpink;connection@@ with ${his} beloved ${WrittenMaster(slave)}. ${He} looks forward to having ${his} asshole fucked by you again.` } slave.devotion += 4; - } - else if (slave.devotion > 20){ + } else if (slave.devotion > 20){ r += `As it's ${his} first time, you ease yourself into ${his} butthole and gradually increase the intensity of your thrusts. ${He} accepts the pain and humiliation of anal sex as part of ${his} sexual servitude, though ${he} hopes that ${his} next time will be less painful.`; - } - else if (slave.devotion >= -20) { + } else if (slave.devotion >= -20) { r += `You force yourself into ${his} butthole. ${He} sobs and cries with disgust while you continue thrusting into ${his} ass. ${He} @@.gold;fears@@ ${his} next anal sex, remembering the pain of losing ${his} anal virginity. ${He} dreads having ${his} ass violated by you again.`; slave.trust -= 5; - } - else { + } else { r += `You force yourself into ${his} butthole. ${He} sobs and cries with disgust while you continue thrusting into ${his} ass. ${He} @@.mediumorchid;hates@@ and @@.gold;fears@@ you for violating ${his} virgin butt. ${He} dreads having ${his} ass fucked by you again.`; slave.trust -= 5; slave.devotion -= 5; @@ -232,8 +205,7 @@ window.BothVCheck = function BothVCheck(analTimes, bothTimes) { V.analTotal += 1; slave.vaginalCount += 1; slave.analCount += 1; - } - else { + } else { V.vaginalTotal += bothTimes; V.analTotal += bothTimes; slave.vaginalCount += bothTimes; @@ -242,13 +214,11 @@ window.BothVCheck = function BothVCheck(analTimes, bothTimes) { if (canImpreg(slave, V.PC)) { r += knockMeUp(slave, 10, 2, -1, 1); } - } - else { + } else { if (!bothTimes) { V.vaginalTotal += 1; slave.vaginalCount += 1; - } - else { + } else { V.vaginalTotal += bothTimes; slave.vaginalCount += bothTimes; } @@ -256,28 +226,23 @@ window.BothVCheck = function BothVCheck(analTimes, bothTimes) { r += knockMeUp(slave, 10, 0, -1, 1); } } - } - else if (canDoAnal(slave)) { + } else if (canDoAnal(slave)) { if (slave.anus == 0) { r += `@@.lime;This breaks in ${slave.slaveName}'s virgin ass.@@ `; if (slave.devotion > 50 || slave.career == "a slave since birth") { r += `As it's ${his} first time, you ease yourself into ${his} butthole and gradually speed up your thrusts while ${he} slowly learns to move ${his} hips along with you. ${He} moans loudly. `; if (slave.tankBaby == 2) { r += `${He} thinks of losing ${his} anal virginity to ${his} ${WrittenMaster(slave)} a @@.hotpink;necessity.@@ ${He} expects ${his} asshole to be seeing a lot more attention now.`; - } - else { + } else { r += `${He} thinks of losing ${his} anal virginity to you as a @@.hotpink;connection@@ with ${his} beloved ${WrittenMaster(slave)}. ${He} looks forward to having ${his} asshole fucked by you again.`; } slave.devotion += 4; - } - else if (slave.devotion > 20) { + } else if (slave.devotion > 20) { r += `As it's ${his} first time, you ease yourself into ${his} butthole and gradually increase the intensity of your thrusts. ${He} accepts the pain and humiliation of anal sex as part of ${his} sexual servitude, though ${he} hopes that ${his} next time will be less painful.`; - } - else if (slave.devotion >= -20) { + } else if (slave.devotion >= -20) { r += `You force yourself into ${his} butthole. ${He} sobs and cries with disgust while you continue thrusting into ${his} ass. ${He} @@.gold;fears@@ ${his} next anal sex, remembering the pain of losing ${his} anal virginity. ${He} dreads having ${his} ass violated by you again.`; slave.trust -= 5; - } - else { + } else { r += `You force yourself into ${his} butthole. ${He} sobs and cries with disgust while you continue thrusting into ${his} ass. ${He} @@.mediumorchid;hates@@ and @@.gold;fears@@ you for violating ${his} virgin butt. ${He} dreads having ${his} ass fucked by you again.` slave.trust -= 5; slave.devotion -= 5; @@ -287,8 +252,7 @@ window.BothVCheck = function BothVCheck(analTimes, bothTimes) { if (!analTimes) { V.analTotal += 1; slave.analCount += 1; - } - else { + } else { V.analTotal += analTimes; slave.analCount += analTimes; } @@ -307,8 +271,7 @@ window.SimpleVCheck = function SimpleVCheck(times) { let r = ``; if (canDoVaginal(State.variables.activeSlave)) { r += VaginalVCheck(times); - } - else if (canDoAnal(State.variables.activeSlave)) { + } else if (canDoAnal(State.variables.activeSlave)) { r += AnalVCheck(times); } return r; @@ -323,48 +286,42 @@ window.SimpleVCheck = function SimpleVCheck(times) { never know when someone might use the routine and forget to do such. */ window.PartnerVCheck = function PartnerVCheck(analTimes, bothTimes) { - var pronouns = getPronouns(slave); - var he = pronouns.pronoun, + const V = State.variables; + const partner = V.slaves[V.partner]; + let pronouns = getPronouns(slave); + let he = pronouns.pronoun, him = pronouns.object, his = pronouns.possessive, hers = pronouns.possessivePronoun, himself = pronouns.objectReflexive, boy = pronouns.noun; - var He = capFirstChar(he), + let He = capFirstChar(he), His = capFirstChar(his); - - const V = State.variables; - const partner = V.slaves[V.partner]; let r = ``; - if (V.partner < 0 || V.partner >= V.slaves.length) { r += `@@.red;PartnerVCheck called with invalid partner '$partner' from passage ${passage()}.@@`; - } - else if (canDoVaginal(partner)) { + } else if (canDoVaginal(partner)) { if (partner.vagina === 0) { if (canDoAnal(partner) && partner.anus === 0) { r += `Since it's ${partner.slaveName}'s first time, you take your time and gently ease yourself into ${his} pussy before gradually working your way into ${his} butthole, alternating between ${his} holes. @@.lime;This breaks in ${partner.slaveName}'s virgin holes.@@ `; partner.vagina = 1; partner.anus = 1; - } - else { + } else { r += `Since it's ${partner.slaveName}'s first time, you take your time and gently ease yourself into ${his} pussy before gradually increasing the intensity of your thrusts. @@.lime;This breaks in ${partner.slaveName}'s virgin pussy.@@ `; partner.vagina = 1; } - } - else if (canDoAnal(partner) && partner.anus == 0) { + } else if (canDoAnal(partner) && partner.anus == 0) { r += `Since it's ${partner.slaveName}'s first time, you take your time and gently ease yourself into ${his} butthole before gradually increasing the intensity of your thrusts into ${his} ass. @@.lime;This breaks in ${partner.slaveName}'s virgin ass.@@ `; partner.anus = 1; } - + if (canDoAnal(partner)) { if (!bothTimes) { V.vaginalTotal += 1; V.analTotal += 1; partner.vaginalCount += 1; partner.analCount += 1; - } - else { + } else { V.vaginalTotal += bothTimes; V.analTotal += bothTimes; partner.vaginalCount += bothTimes; @@ -373,13 +330,11 @@ window.PartnerVCheck = function PartnerVCheck(analTimes, bothTimes) { if (canImpreg(partner, V.PC)) { r += knockMeUp(partner, 10, 2, -1); } - } - else { + } else { if (!bothTimes) { V.vaginalTotal += 1; partner.vaginalCount += 1; - } - else { + } else { V.vaginalTotal += bothTimes; partner.vaginalCount += bothTimes; } @@ -387,8 +342,7 @@ window.PartnerVCheck = function PartnerVCheck(analTimes, bothTimes) { r += knockMeUp(partner, 10, 0, -1); } } - } - else if (canDoAnal(partner)) { + } else if (canDoAnal(partner)) { if (partner.anus === 0) { r += `Since it's ${partner.slaveName}'s first time, you take your time and gently ease yourself into ${his} butthole before gradually increasing the intensity of your thrusts into ${his} ass. @@.lime;This breaks in ${partner.slaveName}'s virgin ass.@@ `; partner.anus = 1; @@ -396,8 +350,7 @@ window.PartnerVCheck = function PartnerVCheck(analTimes, bothTimes) { if (!analTimes) { V.analTotal += 1; partner.analCount += 1; - } - else { + } else { V.analTotal += analTimes; partner.analCount += analTimes; } @@ -426,22 +379,19 @@ window.SimpleSexAct = function SimpleSexAct(slave, count) { 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) && slave.vagina > 0 && fuckTarget > 33) { V.vaginalTotal += 1; slave.vaginalCount += 1; if (canImpreg(slave, V.PC)) { r += knockMeUp(slave, 10, 0, -1, 1); } - } - else if (canDoAnal(slave) && slave.anus > 0 && fuckTarget > 10) { + } else if (canDoAnal(slave) && slave.anus > 0 && fuckTarget > 10) { V.analTotal += 1; slave.analCount += 1; if (canImpreg(slave, V.PC)) { r += knockMeUp(slave, 10, 1, -1, 1); } - } - else { + } else { V.oralTotal += 1; slave.oralCount += 1; } @@ -467,16 +417,13 @@ window.SimpleSlaveFucking = function SimpleSlaveFucking(slave, count) { 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) && slave.vagina > 0 && fuckTarget > 33) { V.vaginalTotal += 1; slave.vaginalCount += 1; - } - else if (canDoAnal(slave) && slave.anus > 0 && fuckTarget > 10) { + } else if (canDoAnal(slave) && slave.anus > 0 && fuckTarget > 10) { V.analTotal += 1; slave.analCount += 1; - } - else { + } else { V.oralTotal += 1; slave.oralCount += 1; } @@ -507,37 +454,32 @@ window.SimpleSlaveSlaveFucking = function SimpleSlaveSlaveFucking(subslave, doms V.mammaryTotal++; domslave.penetrativeCount++; V.penetrativeTotal++; - } - else { + } else { subslave.mammaryCount++; V.mammaryTotal++; V.slaves[V.i].penetrativeCount++; V.penetrativeTotal++; } - } - else { + } else { V.mammaryTotal++; V.penetrativeTotal++; subslave.mammaryCount++; domslave.penetrativeCount++; } - } - else if (canDoVaginal(subslave) && subslave.vagina > 0 && canPenetrate(domslave) && fuckTarget > 33) { + } else if (canDoVaginal(subslave) && subslave.vagina > 0 && canPenetrate(domslave) && fuckTarget > 33) { if (passage() === "SA serve your other slaves") { if (subslave.ID == V.slaves[V.i].ID) { V.slaves[V.i].vaginalCount++; V.vaginalTotal++; V.penetrativeTotal++; domslave.penetrativeCount++; - } - else { + } else { V.slaves[V.i].penetrativeCount++; V.penetrativeTotal++; subslave.vaginalCount++; V.vaginalTotal++; } - } - else { + } else { V.vaginalTotal++; subslave.vaginalCount++; V.penetrativeTotal++; @@ -546,8 +488,7 @@ window.SimpleSlaveSlaveFucking = function SimpleSlaveSlaveFucking(subslave, doms if (canImpreg(subslave, domslave)) { r += knockMeUp(subslave, 3, 0, domslave.ID, 1); } - } - else if (canDoAnal(subslave) && subslave.anus > 0 && canPenetrate(domslave) && fuckTarget > 10) { + } else if (canDoAnal(subslave) && subslave.anus > 0 && canPenetrate(domslave) && fuckTarget > 10) { //i think would impregnate from anal here even without .mpreg? same in original widget too if (canImpreg(subslave, domslave) && subslave.mpreg == 1) { r += knockMeUp(subslave, 3, 1, domslave.ID, 1); @@ -558,22 +499,19 @@ window.SimpleSlaveSlaveFucking = function SimpleSlaveSlaveFucking(subslave, doms V.analTotal++; V.penetrativeTotal++; domslave.penetrativeCount++; - } - else { + } else { V.slaves[V.i].penetrativeCount++; V.penetrativeTotal++; V.analTotal++; subslave.analCount++; } - } - else { + } else { V.analTotal++; subslave.analCount++; V.penetrativeTotal++; domslave.penetrativeCount++; } - } - else { + } else { V.oralTotal++; subslave.oralCount++; } @@ -585,8 +523,7 @@ window.SimpleVaginaFuck = function SimpleVaginaFuck(slave, count) { if (count) { State.variables.vaginalTotal += count; slave.vaginalCount += count; - } - else { + } else { State.variables.vaginalTotal++; slave.vaginalCount++; } @@ -596,9 +533,8 @@ window.SimpleAssFuck = function SimpleAssFuck(slave, count) { if (count) { State.variables.analTotal += count; slave.analCount += count; - } - else { + } else { State.variables.analTotal++; slave.analCount++; } -} \ No newline at end of file +}