code
stringlengths
0
56.1M
repo_name
stringclasses
515 values
path
stringlengths
2
147
language
stringclasses
447 values
license
stringclasses
7 values
size
int64
0
56.8M
App.Data.Facilities.incubator = { baseName: "incubator", genericName: null, jobs: { tank: { position: "tank", assignment: Job.TANK, publicSexUse: false, fuckdollAccepted: false } }, defaultJob: "tank", manager: null }; App.Entity.Facilities.IncubatorTankJob = class extends App.Entity.Facilities.Job { /** * @override * @returns {App.Entity.SlaveState[]} */ employees() { return V.tanks; } /** @override */ employeesIDs() { return new Set(this.employees().map(s => s.ID)); } }; App.Entity.Facilities.Incubator = class extends App.Entity.Facilities.Facility { constructor() { super(App.Data.Facilities.incubator, { tank: new App.Entity.Facilities.IncubatorTankJob() }); } }; App.Entity.facilities.incubator = new App.Entity.Facilities.Incubator();
MonsterMate/fc
src/facilities/incubator/incubatorFramework.js
JavaScript
mit
798
App.UI.incubator = function() { V.nextButton = "Back to Main"; V.nextLink = "Main"; V.returnTo = "Incubator"; V.encyclopedia = "The Incubation Facility"; V.readySlaves = 0; V.readySlave = 0; let tankOrgans = {}; const el = new DocumentFragment(); const _SL = V.slaves.length; let childrenReserved; const _incubatorNameCaps = capFirstChar(V.incubatorName); App.UI.tabBar.handlePreSelectedTab(V.tabChoice.Incubator); const tabCaptions = { mothers: 'Mothers', tanks: 'Tanks', settings: 'Settings', pc: 'You' }; const introSpan = document.createElement("span"); introSpan.append(makeSpanIded("content-intro", intro())); el.append(introSpan); const tabBar = App.UI.DOM.appendNewElement("div", el, '', "tab-bar"); tabBar.append(App.UI.tabBar.tabButton('mothers', tabCaptions.mothers)); if (V.PC.pregKnown === 1 && (V.arcologies[0].FSRestart === "unset" || V.eugenicsFullControl === 1 || (V.PC.pregSource !== -1 && V.PC.pregSource !== -6))) { tabBar.append(App.UI.tabBar.tabButton('pc', tabCaptions.pc)); } tabBar.append( App.UI.tabBar.tabButton('tanks', tabCaptions.tanks), App.UI.tabBar.tabButton('settings', tabCaptions.settings), ); el.append(App.UI.tabBar.makeTab('mothers', makeSpanIded("content-mothers", mothers()))); el.append(App.UI.tabBar.makeTab('pc', makeSpanIded("content-pc", PC()))); el.append(App.UI.tabBar.makeTab('tanks', makeSpanIded("content-tank-babies", tankBabies()))); el.append(App.UI.tabBar.makeTab('settings', makeSpanIded("content-tank-settings", tankSettings()))); introSpan.after(release()); // run me late. return el; function intro() { const el = document.createElement("p"); let r = []; const incubatorSlaves = V.tanks.length; const freeTanks = V.incubator - incubatorSlaves; r.push(`${_incubatorNameCaps} is a clean, cold hall designed to be lined with tanks and their connected monitoring systems.`); if (incubatorSlaves > 2) { r.push(`It's well used. The hum of active tanks fills the air.`); } else if (incubatorSlaves > 0) { r.push(`It's barely used; most of the tanks lie dormant.`); } else { r.push(`It's empty and quiet.`); r.push( choice( "Decommission the incubator", () => { V.incubator = 0; V.incubatorUpgradeSpeed = 5; V.incubatorUpgradeWeight = 0; V.incubatorUpgradeMuscles = 0; V.incubatorUpgradeReproduction = 0; V.incubatorUpgradeGrowthStims = 0; V.incubatorWeightSetting = 0; V.incubatorMusclesSetting = 0; V.incubatorReproductionSetting = 0; V.incubatorGrowthStimsSetting = 0; V.tanks = []; } ) ); } App.Events.addNode(el, r, "p"); r = []; r.push(`It can support ${V.incubator}`); if (incubatorSlaves === 1) { r.push(`child. There is currently ${incubatorSlaves} tank`); } else { r.push(`children. There are currently ${incubatorSlaves} tanks`); } r.push(`in use in ${V.incubatorName}.`); App.Events.addNode(el, r, "div"); el.append( choice( `Add another incubation tank`, () => { cashX(forceNeg(Math.trunc(60000 * V.upgradeMultiplierArcology)), "capEx"); V.incubator += 1; }, "Incubator", `Costs ${cashFormat(Math.trunc(60000 * V.upgradeMultiplierArcology))} and will increase upkeep costs` ) ); if (freeTanks === 0) { el.append(`All of the tanks are currently occupied by growing children.`); } return el; } function mothers() { const el = new DocumentFragment(); let r = []; let eligibility = 0; let linkArray; const reservedChildren = FetusGlobalReserveCount("incubator"); const incubatorSlaves = V.tanks.length; const freeTanks = V.incubator - incubatorSlaves; r.push(`Reserve an eligible mother-to-be's child to be placed in a tank upon birth. Of ${V.incubator} tanks, ${freeTanks}`); if (freeTanks === 1) { r.push(`is`); } else { r.push(`are`); } r.push(`unoccupied. Of those, ${reservedChildren}`); if (reservedChildren === 1) { r.push(`tank is`); } else { r.push(`tanks are`); } r.push(` reserved.`); App.Events.addNode(el, r, "div"); /* ** With hundreds of slaves, navigating the Incubator room was giving me as much of a headache as other lists. ** So, I borrowed the sorting list and dropped a few options here. */ if (0 < _SL) { const sortingBar = document.createElement("div"); sortingBar.id = "sorting-bar"; sortingBar.classList.add("incubator-underscore"); V.sortIncubatorList = V.sortIncubatorList || 'Unsorted'; linkArray = []; const sortingOptions = new Map([ ["Name", sortByName], ["Reserved Incubator Spots", sortByReservedSpots], ["Pregnancy Week", sortByPregnancyWeek], ["Number of Children", sortByPregnancyCount], ]); sortingBar.append(sortingBarFunc(sortingOptions)); el.append(sortingBar); } const qlIncubator = document.createElement("div"); qlIncubator.id = "qlIncubator"; for (const slave of V.slaves) { if (slave.preg > 0 && slave.broodmother === 0 && slave.pregKnown === 1 && slave.eggType === "human") { const { His, his } = getPronouns(slave); const r = []; if ((slave.assignment === "work in the dairy" && V.dairyPregSetting > 0) || slave.assignment === "be your agent" || slave.assignment === "live with your agent") { } else { const freeTanks = V.incubator - incubatorSlaves; const _slaveId = "slave-" + slave.ID; const _WL = slave.womb.length; const _reservedIncubator = WombReserveCount(slave, "incubator"); const _reservedNursery = WombReserveCount(slave, "nursery"); const _pregWeek = slave.pregWeek; const _slaveName = SlaveFullName(slave); const momEl = document.createElement("p"); momEl.id = _slaveId; momEl.classList.add("possible"); momEl.setAttribute("data-preg-count", slave.womb.length.toString()); momEl.setAttribute("data-reserved-spots", _reservedIncubator.toString()); momEl.setAttribute("data-preg-week", _pregWeek.toString()); momEl.setAttribute("data-name", _slaveName); linkArray = []; const choices = document.createElement("div"); choices.classList.add("choices"); r.push(App.UI.DOM.slaveDescriptionDialog(slave)); r.push(` is ${slave.pregWeek} ${(slave.pregWeek === 1) ? `week` : `weeks`} pregnant with`); if (slave.pregSource === 0 || slave.preg <= 5) { r.push(`someone's${(slave.preg <= 5) ? `, though it is too early to tell whose,` : ``}`); } else if (slave.pregSource === -1) { r.push(`your`); } else if (slave.pregSource === -2) { r.push(`a citizen's`); } else if (slave.pregSource === -3) { r.push(`your Master's`); } else if (slave.pregSource === -4) { r.push(`another arcology owner's`); } else if (slave.pregSource === -5) { r.push(`your client's`); } else if (slave.pregSource === -6) { r.push(`the Societal Elite's`); } else if (slave.pregSource === -7) { r.push(`the lab's`); } else if (slave.pregSource === -9) { r.push(`the Futanari Sisters'`); } else { const father = getSlave(slave.pregSource); if (father) { r.push(`${father.slaveName}'s`); } } if (_WL > 1) { r.push(`${_WL} babies.`); } else { r.push(`baby.`); } if (_reservedIncubator > 0) { childrenReserved = 1; if (_WL === 1) { r.push(`${His} child will be placed in ${V.incubatorName}.`); } else if (_reservedIncubator < _WL) { r.push(`${_reservedIncubator} of ${his} children will be placed in ${V.incubatorName}.`); } else if (_WL === 2) { r.push(`Both of ${his} children will be placed in ${V.incubatorName}.`); } else { r.push(`All ${_reservedIncubator} of ${his} children will be placed in ${V.incubatorName}.`); } if ((_reservedIncubator + _reservedNursery < _WL) && (reservedChildren < freeTanks)) { if (V.pregnancyMonitoringUpgrade === 1) { linkArray.push( App.UI.DOM.link( `Inspect pregnancy`, () => { V.AS = slave.ID; }, [], `Analyze Pregnancy` ) ); } linkArray.push( App.UI.DOM.link( `Keep another child`, () => { WombAddToGenericReserve(slave, 'incubator', 1); refresh(); } ) ); if (_reservedIncubator > 0) { linkArray.push( App.UI.DOM.link( `Keep one less child`, () => { WombCleanGenericReserve(slave, 'incubator', 1); refresh(); } ) ); } if (_reservedIncubator > 1) { linkArray.push( App.UI.DOM.link( `Keep none of ${his} children`, () => { WombCleanGenericReserve(slave, 'incubator', 9999); refresh(); } ) ); } if ((reservedChildren + _WL - _reservedIncubator) <= freeTanks) { linkArray.push( App.UI.DOM.link( `Keep the rest of ${his} children`, () => { WombAddToGenericReserve(slave, 'incubator', 9999); refresh(); } ) ); } } else if ((_reservedIncubator === _WL) || (reservedChildren === freeTanks) || (_reservedIncubator + _reservedNursery === _WL)) { if (V.pregnancyMonitoringUpgrade === 1) { linkArray.push( App.UI.DOM.link( `Inspect pregnancy`, () => { V.AS = slave.ID; }, [], `Analyze Pregnancy` ) ); } linkArray.push( App.UI.DOM.link( `Keep one less child`, () => { WombCleanGenericReserve(slave, 'incubator', 1); refresh(); } ) ); if (_reservedIncubator > 1) { linkArray.push( App.UI.DOM.link( `Keep none of ${his} children`, () => { WombCleanGenericReserve(slave, 'incubator', 9999); refresh(); } ) ); } } } else if ((reservedChildren < freeTanks)) { if (_WL - _reservedNursery === 0) { r.push(App.UI.DOM.makeElement("span", `${His} children are already reserved for V.nurseryName`, "note")); if (V.pregnancyMonitoringUpgrade === 1) { linkArray.push( App.UI.DOM.link( `Inspect pregnancy`, () => { V.AS = slave.ID; }, [], `Analyze Pregnancy` ) ); } linkArray.push( App.UI.DOM.link( `Keep ${his} ${((_WL > 1) ? "children" : "child")} here instead`, () => { WombChangeReserveType(slave, 'nursery', 'incubator'); refresh(); } ) ); } else { r.push(`You have`); if (freeTanks === 1) { r.push(`an <span class="lime"> available aging tank.</span>`); } else { r.push(`<span class="lime"> available aging tanks.</span>`); } if (V.pregnancyMonitoringUpgrade === 1) { if (V.pregnancyMonitoringUpgrade === 1) { linkArray.push( App.UI.DOM.link( `Inspect pregnancy`, () => { V.AS = slave.ID; }, [], `Analyze Pregnancy` ) ); } } linkArray.push( App.UI.DOM.link( `Keep ${(_WL > 1) ? "a" : "the"} child`, () => { WombAddToGenericReserve(slave, 'incubator', 1); refresh(); } ) ); if ((_WL > 1) && (reservedChildren + _WL - _reservedIncubator) <= freeTanks) { linkArray.push( App.UI.DOM.link( `Keep all of ${his} children`, () => { WombAddToGenericReserve(slave, 'incubator', 9999); refresh(); } ) ); } } } else if (reservedChildren === freeTanks) { if (V.pregnancyMonitoringUpgrade === 1) { linkArray.push( App.UI.DOM.link( `Inspect pregnancy`, () => { V.AS = slave.ID; }, [], `Analyze Pregnancy` ) ); } const noRoom = new DocumentFragment(); noRoom.append(`You have `); App.UI.DOM.appendNewElement("span", noRoom, `no room for ${his} offspring.`, "red"); linkArray.push(noRoom); } eligibility = 1; App.Events.addNode(momEl, r, "div"); choices.append(App.UI.DOM.generateLinksStrip(linkArray)); momEl.append(choices); qlIncubator.append(momEl); } } } el.append(qlIncubator); $('div#qlIncubator').ready(sortByPreviousSort); if (eligibility === 0) { App.UI.DOM.appendNewElement("div", el, `You have no pregnant slaves bearing eligible children.`, "note"); } if (reservedChildren !== 0 || childrenReserved === 1) { /* the oops I made it go negative somehow button */ App.UI.DOM.appendNewElement( "div", el, App.UI.DOM.link( "Clear all reserved children", () => { for (const slave of V.slaves) { if (WombReserveCount(slave, "incubator") !== 0) { WombCleanGenericReserve(slave, 'incubator', 9999); } WombCleanGenericReserve(V.PC, 'incubator', 9999); } refresh(); } ) ); } return el; function refresh() { jQuery("#content-mothers").empty().append(mothers()); jQuery("#content-intro").empty().append(intro()); jQuery("#content-tank-babies").empty().append(tankBabies()); } /** * @returns {DocumentFragment} */ function sortingBarFunc(sortingOptions) { const el = new DocumentFragment(); App.UI.DOM.appendNewElement("span", el, "Sorting: ", "note"); const linkArray = []; for (const [title, func] of sortingOptions) { if (V.sortIncubatorList === title) { linkArray.push(App.UI.DOM.makeElement("span", title, "bold")); } else { linkArray.push( App.UI.DOM.link( title, () => { V.sortIncubatorList = title; func(); jQuery("#sorting-bar").empty().append(sortingBarFunc(sortingOptions)); } ) ); } } el.append(App.UI.DOM.generateLinksStrip(linkArray)); return el; } function sortByName() { let $sortedIncubatorPossibles = $('#qlIncubator p.possible').detach(); $sortedIncubatorPossibles = sortDomObjects($sortedIncubatorPossibles, 'data-name'); $($sortedIncubatorPossibles).appendTo($('#qlIncubator')); } function sortByPregnancyWeek() { let $sortedIncubatorPossibles = $('#qlIncubator p.possible').detach(); $sortedIncubatorPossibles = sortDomObjects($sortedIncubatorPossibles, 'data-preg-week'); $($sortedIncubatorPossibles).appendTo($('#qlIncubator')); } function sortByPregnancyCount() { let $sortedIncubatorPossibles = $('#qlIncubator p.possible').detach(); $sortedIncubatorPossibles = sortDomObjects($sortedIncubatorPossibles, 'data-preg-count'); $($sortedIncubatorPossibles).appendTo($('#qlIncubator')); } function sortByReservedSpots() { let $sortedIncubatorPossibles = $('#qlIncubator p.possible').detach(); $sortedIncubatorPossibles = sortDomObjects($sortedIncubatorPossibles, 'data-reserved-spots'); $($sortedIncubatorPossibles).appendTo($('#qlIncubator')); } function sortByPreviousSort() { let sort = V.sortIncubatorList; if (sort !== 'unsorted') { if (sort === 'Name') { sortByName(); } else if (sort === 'Reserved Incubator Spots') { sortByReservedSpots(); } else if (sort === 'Pregnancy Week') { sortByPregnancyWeek(); } else if (sort === 'Number of Children') { sortByPregnancyCount(); } } } } function PC() { const el = new DocumentFragment(); let r = []; let linkArray = []; const reservedChildren = FetusGlobalReserveCount("incubator"); const incubatorSlaves = V.tanks.length; const freeTanks = V.incubator - incubatorSlaves; const _WL = V.PC.womb.length; const _reservedIncubator = WombReserveCount(V.PC, "incubator"); const _reservedNursery = WombReserveCount(V.PC, "nursery"); r.push(App.UI.DOM.makeElement("span", `You're ${V.PC.pregWeek} ${(V.PC.pregWeek === 1) ? `week`:`weeks`}pregnant`, ["pink", "bold"])); if (_WL === 1) { r.push(`a baby.`); } else { r.push(`${pregNumberName(_WL, 2)}.`); } const choices = document.createElement("div"); choices.classList.add("choices"); if (_reservedIncubator > 0) { childrenReserved = 1; if (_WL === 1) { r.push(`Your child will be placed in ${V.incubatorName}.`); } else if (_reservedIncubator < _WL) { r.push(`${_reservedIncubator} of your children will be placed in ${V.incubatorName}.`); } else if (_WL === 2) { r.push(`Both of your children will be placed in ${V.incubatorName}.`); } else { r.push(`All ${_reservedIncubator} of your children will be placed in ${V.incubatorName}.`); } if ((_reservedIncubator < _WL) && (reservedChildren < freeTanks) && (_reservedIncubator - _reservedNursery > 0)) { if (V.pregnancyMonitoringUpgrade === 1) { linkArray.push( App.UI.DOM.link( `Inspect pregnancy`, () => { }, [], `Analyze PC Pregnancy` ) ); } linkArray.push( App.UI.DOM.link( `Keep another child`, () => { WombAddToGenericReserve(V.PC, 'incubator', 1); refresh(); } ) ); if (_reservedIncubator > 0) { linkArray.push( App.UI.DOM.link( `Keep one less child`, () => { WombCleanGenericReserve(V.PC, 'incubator', 1); refresh(); } ) ); } if (_reservedIncubator > 1) { linkArray.push( App.UI.DOM.link( `Keep none of your children`, () => { WombCleanGenericReserve(V.PC, 'incubator', 9999); refresh(); } ) ); } if ((reservedChildren + _WL - _reservedIncubator) <= freeTanks) { linkArray.push( App.UI.DOM.link( `Keep the rest of your children`, () => { WombAddToGenericReserve(V.PC, 'incubator', 9999); refresh(); } ) ); } } else if ((_reservedIncubator === _WL) || (reservedChildren === freeTanks) || (_reservedIncubator - _reservedNursery >= 0)) { if (V.pregnancyMonitoringUpgrade === 1) { linkArray.push( App.UI.DOM.link( `Inspect pregnancy`, () => { }, [], `Analyze PC Pregnancy` ) ); } linkArray.push( App.UI.DOM.link( `Keep one less child`, () => { WombCleanGenericReserve(V.PC, 'incubator', 1); refresh(); } ) ); if (_reservedIncubator > 1) { App.UI.DOM.link( `Keep none of your children`, () => { WombCleanGenericReserve(V.PC, 'incubator', 9999); refresh(); } ); } } } else if (reservedChildren < freeTanks) { if (_WL - _reservedNursery === 0) { r.push( App.UI.DOM.makeElement( "span", `Your ${(_WL === 1) ? `child is` : `children are`} already reserved for ${V.nurseryName}`, "note" ) ); App.UI.DOM.link( `Keep your ${(_WL === 1) ? `child` : `children`} here instead`, () => { WombChangeReserveType(V.PC, 'nursery', 'incubator'); refresh(); } ); } else { r.push(``); if (freeTanks === 1) { r.push(`You have an <span class="lime"> available aging tank.</span>`); } else { r.push(`You have <span class="lime"> available aging tanks.</span>`); } if (V.pregnancyMonitoringUpgrade === 1) { linkArray.push( App.UI.DOM.link( `Inspect pregnancy`, () => { }, [], `Analyze PC Pregnancy` ) ); } App.UI.DOM.link( `Keep ${(_WL > 1) ? `a` : `your`} child`, () => { WombAddToGenericReserve(V.PC, 'incubator', 1); refresh(); } ); if ((_WL > 1) && (reservedChildren + _WL - _reservedIncubator) <= freeTanks) { App.UI.DOM.link( `Keep all of your children|Incubator`, () => { WombAddToGenericReserve(V.PC, 'incubator', 9999); refresh(); } ); } } } else if (reservedChildren === freeTanks) { if (V.pregnancyMonitoringUpgrade === 1) { linkArray.push( App.UI.DOM.link( `Inspect pregnancy`, () => { }, [], `Analyze PC Pregnancy` ) ); } const noRoom = new DocumentFragment(); noRoom.append(`You have `); App.UI.DOM.appendNewElement("span", noRoom, `no room for your offspring.`, "red"); linkArray.push(noRoom); } App.Events.addNode(el, r, "div"); choices.append(App.UI.DOM.generateLinksStrip(linkArray)); el.append(choices); return el; function refresh() { jQuery("#content-pc").empty().append(PC()); jQuery("#content-intro").empty().append(intro()); jQuery("#content-tank-babies").empty().append(tankBabies()); } } function tankBabies() { const el = new DocumentFragment(); let row; let linkArray; const reservedChildren = FetusGlobalReserveCount("incubator"); const incubatorSlaves = V.tanks.length; if (incubatorSlaves > 0) { App.UI.DOM.appendNewElement("h2", el, `Children in ${V.incubatorName}`); for (let i = 0; i < incubatorSlaves; i++) { const p = document.createElement("p"); p.classList.add("incubator-tank"); let r = []; const { He, His, he, him, his } = getPronouns(V.tanks[i]); r.push(App.UI.DOM.makeElement("span", V.tanks[i].slaveName, "pink")); r.push(`occupies this tank.`); if (V.geneticMappingUpgrade >= 1) { r.push(`${He} is a`); if (V.tanks[i].genes === "XX") { r.push(`female`); } else { r.push(`male`); } r.push(`of ${V.tanks[i].race} descent with ${App.Desc.eyesColor(V.tanks[i])}, ${V.tanks[i].hColor} hair and ${V.tanks[i].skin} skin. Given ${his} parentage, ${he} is considered ${V.tanks[i].nationality}.`); } else { r.push(`${He} appears to be`); if (V.tanks[i].genes === "XX") { r.push(`a natural girl,`); } else { r.push(`a natural boy,`); } r.push(`with ${V.tanks[i].hColor}`); if (getBestVision(V.tanks[i]) === 0) { r.push(`hair and ${App.Desc.eyesColor(V.tanks[i])}.`); } else { r.push(`hair. ${He} most likely will be blind.`); } } if (V.tanks[i].preg > 0) { r.push(`<span class="red">Warning! Subject may be pregnant! Unanticipated growth may occur!</span>`); } r.push(`Statistical projections indicates that once released ${he} will be around ${heightToEitherUnit(V.tanks[i].height + random(-5, 5))} tall. Most likely ${he} will be`); if (V.tanks[i].weight <= 30 && V.tanks[i].weight >= -30) { r.push(`at a healthy weight and`); } else if (V.tanks[i].weight >= 31 && V.tanks[i].weight <= 95) { r.push(`quite overweight and`); } else if (V.tanks[i].weight >= 96) { r.push(`very overweight and`); } else if (V.tanks[i].weight <= -31 && V.tanks[i].weight >= -95) { r.push(`quite thin and`); } else if (V.tanks[i].weight <= -96) { r.push(`very thin and`); } if (V.tanks[i].muscles <= 5 && V.tanks[i].muscles >= -5) { r.push(`with a normal musculature.`); } else if (V.tanks[i].muscles >= 6 && V.tanks[i].muscles <= 30) { r.push(`quite toned.`); } else if (V.tanks[i].muscles >= 31 && V.tanks[i].muscles <= 95) { r.push(`quite muscular.`); } else if (V.tanks[i].muscles >= 96) { r.push(`with a powerful musculature.`); } else if (V.tanks[i].muscles <= -6 && V.tanks[i].muscles >= -30) { r.push(`quite weak.`); } else if (V.tanks[i].muscles <= -31 && V.tanks[i].muscles >= -95) { r.push(`very weak.`); } else if (V.tanks[i].muscles <= -96) { r.push(`extremely weak.`); } r.push(`${His} breasts are projected to be`); if (V.tanks[i].boobs <= 299) { r.push(`of small size,`); } else if (V.tanks[i].boobs <= 799) { r.push(`of normal size,`); } else if (V.tanks[i].boobs <= 1799) { r.push(`of generous size,`); } else if (V.tanks[i].boobs <= 3249) { r.push(`of incredible size,`); } else { r.push(`of humongous size,`); } r.push(`while ${his} rear will be`); if (V.tanks[i].butt <= 3) { r.push(`a healthy size.`); } else if (V.tanks[i].butt <= 6) { r.push(`quite impressive.`); } else if (V.tanks[i].butt <= 9) { r.push(`very impressive.`); } else { r.push(`immense.`); } if (V.tanks[i].dick > 0) { if (V.tanks[i].dick <= 3) { r.push(`The latest analysis reported ${his} dick will end up being around the average`); } else if (V.tanks[i].dick >= 4 && V.tanks[i].dick <= 6) { r.push(`The latest analysis reported ${his} dick will end up being above average`); } else if (V.tanks[i].dick >= 7 && V.tanks[i].dick <= 9) { r.push(`The latest analysis reported ${his} dick will end up being far above the average`); } else { r.push(`The latest analysis reported ${his} dick will end up being of monstrous size`); } } if (V.tanks[i].balls > 0) { if (V.tanks[i].balls <= 3) { r.push(`and ${his} testicles will reach a normal size.`); } else if (V.tanks[i].balls >= 4 && V.tanks[i].balls <= 6) { r.push(`and ${his} testicles will be of remarkable size.`); } else if (V.tanks[i].balls >= 7 && V.tanks[i].balls <= 9) { r.push(`and ${his} testicles will reach an impressive size.`); } else { r.push(`and ${his} testicles will reach a monstrous size.`); } } if (V.tanks[i].pubertyXX === 1 && V.tanks[i].ovaries === 1) { r.push(`Scanners report ${his} womb is fertile.`); } else { r.push(`Scanners report ${he} is not fertile,`); if (V.tanks[i].pubertyXX === 0) { r.push(`as ${he} has not yet entered puberty.`); } else { r.push(`as it appears ${his} womb is sterile.`); } } if ((V.incubatorPregAdaptationSetting === 1 && V.tanks[i].genes === "XX") || (V.incubatorPregAdaptationSetting === 2 && V.tanks[i].genes === "XY") || V.incubatorPregAdaptationSetting === 3) { r.push(`There are probes and tubes inserted inside ${his} reproductive organs so ${V.incubatorName} may work on them.`); const _safeCC = (V.tanks[i].pregAdaptation - 5) * 2000; if (_safeCC > 300000) { /* Some bigger size descriptions may be unreachable by normal game mechanics, so they are here just in case.*/ r.push(`${His} bloated form looks more like an overinflated beachball made of the overstretched skin of ${his} belly with ${his} relative tiny body attached to its side. ${He} is completely dominated by it now. The process has gone too far, so ${his} body can't maintain its form with the belly as part of abdominal cavity. Now ${his} skin, tissues and muscles have stretched enough for ${his} belly to expand outside of any physical boundaries and appear more an attachment to ${his} body, rather than part of it.`); } else if (_safeCC > 150000) { r.push(`${His} body looks almost spherical, having been grotesquely inflated with the stimulator sacks inserted into ${his} internals. The incubator constantly maintains high pressure inside ${him}, forcing the displacement of ${his} organs and stretching skin, tissues, and muscles. Even ${his} chest forced to become a part of the top of ${his} belly, having been pushed forward from the overwhelming volume inside.`); } else if (_safeCC > 75000) { r.push(`${His} belly has become so huge that can be easily compared with belly of a woman ready to birth quintuplets. It pulses from the pressure applied within by the incubator probes.`); } else if (_safeCC > 45000) { r.push(`${His} belly, in the current state, would look normal on a woman who was ready to birth triplets. On ${his} still growing form, it's something completely out of the ordinary.`); } else if (_safeCC > 30000) { r.push(`${His} belly looks like it contains full sized twins, ready to be birthed.`); } else if (_safeCC > 15000) { r.push(`${His} belly has reached the size of full term pregnancy.`); } else if (_safeCC > 10000) { r.push(`${His} belly has inflated to the size of late term pregnancy; its skin shines from the tension.`); } else if (_safeCC > 5000) { r.push(`${His} belly resembles a mid term pregnancy; it pulses slightly from the expansion and contraction of expandable sacks tipping the incubator probes.`); } else if (_safeCC > 1500) { r.push(`${His} belly slightly bulges and rhythmically expands and contracts to the cycles of ${his} stimulation as the incubator inflates and deflates expandable sacks on its probes within ${his} body cavity. With the correct serums applied, this should allow it to stretch the skin, tissues, and muscles of ${his} belly to better to tolerate the displacement of internal organs caused by fetal growth.`); } } App.Events.addNode(p, r, "div"); if (V.tanks[i].growTime <= 0) { V.readySlaves = 1; appendRow(p, `${He} is ready to be released from ${his} tank.`); } else { const _weekDisplay = Math.round(V.tanks[i].growTime / V.incubatorUpgradeSpeed); appendRow(p, `${His} growth is currently being accelerated. ${He} will be ready for release in about ${_weekDisplay} ${(_weekDisplay > 1) ? `weeks` : `week`}.`); } if (V.tanks[i].tankBaby !== 3) { r = []; r.push(`The tank is imprinting ${him} with basic life and sexual skills, though ${he} will still be very naïve and inexperienced on release.`); if (V.tanks[i].tankBaby === 2) { r.push(`The majority of ${his} indoctrination involves painting the world as a terrible place where only horror awaits ${him} should ${he} not obey ${his} owner.`); } else { r.push(`The majority of ${his} indoctrination involves painting the world as a wonderful place only if ${he} is unconditionally devoted to, and absolutely trusting of, ${his} owner.`); } App.Events.addNode(p, r, "div"); } else { appendRow(p, `The tank keeps ${him} a braindead husk on a complete life-support.`); } if (V.incubatorUpgradeWeight === 1) { if (V.incubatorWeightSetting === 1) { appendRow(p, `${His} weight is not being properly managed, saving costs but likely causing excessive weight gain.`); } else if (V.incubatorWeightSetting === 2) { appendRow(p, `${His} weight is being carefully managed; ${he} will be released at a healthy weight.`); } else if (V.incubatorWeightSetting === 0) { appendRow(p, `Weight management systems are offline; ${he} will likely be malnourished.`); } } if (V.incubatorUpgradeMuscles === 1) { if (V.incubatorMusclesSetting === 2) { appendRow(p, `${His} strength levels are purposefully set higher than recommended; ${he} is likely to have excessive musculature.`); } else if (V.incubatorMusclesSetting === 1) { appendRow(p, `${His} musculature is being carefully managed; ${he} will be released with near normal strength.`); } else if (V.incubatorMusclesSetting === 0) { appendRow(p, `Strength management systems are offline; ${he} will likely be released extremely weak.`); } } if (V.incubatorUpgradeGrowthStims === 1) { if (V.incubatorGrowthStimsSetting === 2) { appendRow(p, `${He} is being injected with higher than recommended doses of stimulants; ${he} is likely to be much taller than expected.`); } else if (V.incubatorGrowthStimsSetting === 1) { appendRow(p, `${He} is injected with the recommended dosage of stimulants; ${he} will grow to ${his} full expected height.`); } else if (V.incubatorGrowthStimsSetting === 0) { appendRow(p, `Growth stimulant injection systems are offline; ${he} will develop normally.`); } } if (V.incubatorUpgradeReproduction === 1) { if (V.incubatorReproductionSetting === 2) { appendRow(p, `${His} hormone levels are purposefully set higher than recommended; ${his} reproductive systems are likely to be over-active.`); } else if (V.incubatorReproductionSetting === 1) { appendRow(p, `${His} hormone levels are being carefully managed; ${he} will be released with fully functional reproductive organs.`); } else if (V.incubatorReproductionSetting === 0) { appendRow(p, `Reproduction management systems are offline; ${he} will undergo normal puberty.`); } if ((V.incubatorPregAdaptationSetting === 1 && V.tanks[i].genes === "XX") || (V.incubatorPregAdaptationSetting === 2 && V.tanks[i].genes === "XY") || V.incubatorPregAdaptationSetting === 3) { /* Should be visible only after incubatorUpgradeReproduction is installed and activated*/ r = []; r.push(`${His} reproductive organs are getting`); if (V.tanks[i].incubatorPregAdaptationPower === 1) { r.push(`an advanced`); } else if (V.tanks[i].incubatorPregAdaptationPower === 2) { r.push(`an intensive`); } else if (V.tanks[i].incubatorPregAdaptationPower === 3) { r.push(`an extreme`); } else { r.push(`a standard`); } r.push(` course of mechanical and hormonal therapy to become adapted for future use.`); App.Events.addNode(p, r, "div"); } } r = []; r.push(`Rename ${him}:`); r.push( App.UI.DOM.makeTextBox( V.tanks[i].slaveName, (v) => { V.tanks[i].slaveName = v; refresh(); } ) ); r.push(App.UI.DOM.makeElement("span", `Given name only`, `note`)); App.Events.addNode(p, r, "div"); if (V.cheatMode === 1) { row = document.createElement("div"); App.UI.DOM.appendNewElement("span", row, `Cheatmode: `, "bold"); row.append( App.UI.DOM.link( "Retrieve immediately", () => { V.readySlave = V.tanks[i]; V.tanks.splice(i, 1); }, [], "Incubator Retrieval Workaround" ) ); p.append(row); } if ((V.incubatorUpgradeOrgans === 1) && (V.tanks[i].tankBaby !== 3)) { r = []; r.push(`You can extract a sample and prepare a new organ for ${him} to be implanted once ${he} exits ${his} tank.`); tankOrgans = { ovaries: 0, penis: 0, testicles: 0, rightEye: 0, leftEye: 0, voiceBox: 0 }; for (let _i = 0; _i < V.incubatorOrgans.length; _i++) { if (V.tanks[i].ID === V.incubatorOrgans[_i].ID) { if (V.incubatorOrgans[_i].type === "ovaries") { tankOrgans.ovaries = 1; } if (V.incubatorOrgans[_i].type === "testicles") { tankOrgans.testicles = 1; } if (V.incubatorOrgans[_i].type === "penis") { tankOrgans.penis = 1; } if (V.incubatorOrgans[_i].type === "rightEye") { tankOrgans.rightEye = 1; } if (V.incubatorOrgans[_i].type === "leftEye") { tankOrgans.leftEye = 1; } if (V.incubatorOrgans[_i].type === "voicebox") { tankOrgans.voicebox = 1; } } } if (V.tanks[i].genes === "XX") { r.push(`Being a natural girl, ${he} possesses a functional vagina and ovaries. You can:`); } else { r.push(`Being a natural boy, ${he} possesses a functional penis and balls. You can:`); } App.Events.addNode(p, r, "div"); linkArray = []; if (V.tanks[i].ovaries === 0) { if (tankOrgans.ovaries !== 1) { linkArray.push( makeLink( "Prepare ovaries", () => { App.Medicine.OrganFarm.growIncubatorOrgan(V.tanks[i], "ovaries"); }, refresh ) ); } else { linkArray.push(App.UI.DOM.makeElement("span", `Ovaries are already prepared.`, "detail")); } } if (V.tanks[i].dick === 0) { if (tankOrgans.penis !== 1) { linkArray.push( makeLink("Prepare penis", () => { App.Medicine.OrganFarm.growIncubatorOrgan(V.tanks[i], "penis"); }, refresh) ); } else { linkArray.push(App.UI.DOM.makeElement("span", `A penis is already prepared`, "detail")); } } if (V.tanks[i].balls === 0) { if (tankOrgans.testicles !== 1) { linkArray.push(makeLink("Prepare testicles", () => { App.Medicine.OrganFarm.growIncubatorOrgan(V.tanks[i], "testicles"); }, refresh)); } else { linkArray.push(App.UI.DOM.makeElement("span", `Testicles are already prepared.`, "detail")); } } const vision = { left: getLeftEyeVision(V.tanks[i]), right: getRightEyeVision(V.tanks[i]) }; if (vision.left === 0 || vision.right === 0) { if (vision.left === 0 && vision.right === 0) { linkArray.push(App.UI.DOM.makeElement("span", `${He} appears to be blind in both eyes:`)); } else if (vision.left === 0) { linkArray.push(App.UI.DOM.makeElement("span", `${He} appears to be blind in ${his} left eye:`)); } else { linkArray.push(App.UI.DOM.makeElement("span", `${He} appears to be blind in ${his} right eye:`)); } if (vision.left === 0 && tankOrgans.leftEye !== 1) { linkArray.push(makeLink("Prepare left eye", () => { App.Medicine.OrganFarm.growIncubatorOrgan(V.tanks[i], "leftEye"); }, refresh)); } if (vision.right === 0 && tankOrgans.rightEye !== 1) { linkArray.push(makeLink("Prepare right eye", () => { App.Medicine.OrganFarm.growIncubatorOrgan(V.tanks[i], "rightEye"); }, refresh)); } if (vision.left === 0 && vision.right === 0 && linkArray.length === 2) { linkArray.push( makeLink( "Prepare right eye", () => { App.Medicine.OrganFarm.growIncubatorOrgan(V.tanks[i], "rightEye"); App.Medicine.OrganFarm.growIncubatorOrgan(V.tanks[i], "leftEye"); }, refresh ) ); } if (vision.left === 0 && vision.right === 0 && linkArray.length === 0) { linkArray.push(App.UI.DOM.makeElement("span", `Both eyes are already prepared.`, `detail`)); } else if (tankOrgans.leftEye === 1) { linkArray.push(App.UI.DOM.makeElement("span", `A left eye is already prepared.`, `detail`)); } else if (tankOrgans.rightEye === 1) { linkArray.push(App.UI.DOM.makeElement("span", `A right eye is already prepared.`, `detail`)); } } App.UI.DOM.appendNewElement("div", p, App.UI.DOM.generateLinksStrip(linkArray)); if (V.tanks[i].voice === 0) { r = []; r.push(`${He} appears to be mute:`); if (tankOrgans.voicebox !== 1) { r.push(makeLink("Prepare vocal cords", () => { App.Medicine.OrganFarm.growIncubatorOrgan(V.tanks[i], "voicebox"); }, refresh)); } else { r.push(App.UI.DOM.makeElement("span", `Vocal cords are already prepared.`, `detail`)); } App.Events.addNode(p, r, "div"); } } el.append(p); } } for (let i = 0; i < reservedChildren; i++) { const empty = document.createElement("div"); empty.classList.add("incubator-tank"); empty.append("This tank is currently reserved"); el.append(empty); } const freeTanks = V.incubator - incubatorSlaves; const empty = freeTanks - reservedChildren; if (empty) { for (let i = 0; i < empty; i++) { const empty = document.createElement("div"); empty.classList.add("incubator-tank"); empty.append("This tank is currently empty"); empty.append( choice( `Remove incubation tank`, () => { cashX(forceNeg(Math.trunc(10000 * V.upgradeMultiplierArcology)), "capEx"); V.incubator -= 1; refresh(); }, "", `Costs ${cashFormat(Math.trunc(10000 * V.upgradeMultiplierArcology))} and will reduce upkeep costs` ) ); el.append(empty); } } // if (V.incubator > 1 && reservedChildren < freeTanks) return el; function refresh() { jQuery("#content-tank-babies").empty().append(tankBabies()); jQuery("#content-intro").empty().append(intro()); } } function tankSettings() { const el = new DocumentFragment(); let cost; let p; let r = []; let row = document.createElement("div"); let linkArray; r.push("Target age for release:"); r.push( App.UI.DOM.makeTextBox( V.targetAge, (v) => { V.targetAge = v || V.minimumSlaveAge; V.targetAge = Math.clamp(V.targetAge, V.minimumSlaveAge, V.retirementAge); refresh(); }, true ) ); linkArray = []; linkArray.push( App.UI.DOM.link( `Minimum Legal Age`, () => { V.targetAge = V.minimumSlaveAge; refresh(); } ) ); linkArray.push( App.UI.DOM.link( `Average Age of Fertility`, () => { V.targetAge = V.fertilityAge; refresh(); } ) ); linkArray.push( App.UI.DOM.link( `Average Age of Potency`, () => { V.targetAge = V.potencyAge; refresh(); } ) ); linkArray.push( App.UI.DOM.link( `Legal Adulthood`, () => { V.targetAge = 18; refresh(); } ) ); r.push(App.UI.DOM.generateLinksStrip(linkArray)); r.push(App.UI.DOM.makeElement("span", `Setting will not be applied to tanks in use.`, "note")); App.Events.addNode(el, r, "p"); row = document.createElement("p"); if (V.incubatorBulkRelease === 1) { row.append(`Released children will be handled in bulk and not receive personal attention. `); row.append( App.UI.DOM.link( `Individual release`, () => { V.incubatorBulkRelease = 0; refresh(); } ) ); } else { row.append(`Released children will be seen to personally. `); row.append( App.UI.DOM.link( `Bulk release`, () => { V.incubatorBulkRelease = 1; refresh(); } ) ); } el.append(row); row = document.createElement("p"); if (V.incubatorUpgradeSpeed === 52) { row.append(`It has been upgraded with perfected growth accelerants; children grow at the rate of 1 week to 1 year.`); } else if (V.incubatorUpgradeSpeed === 18) { cost = Math.trunc(500000 * V.upgradeMultiplierArcology); row.append(`It has been upgraded with advanced experimental growth accelerants; children grow at the rate of 3 weeks to 1 year. `); row.append( App.UI.DOM.link( `Fund speculative research into maximizing growth rate`, () => { cashX(forceNeg(cost), "capEx"); V.incubatorUpgradeSpeed = 52; refresh(); }, ) ); App.UI.DOM.appendNewElement("span", row, `Costs ${cashFormat(cost)} and will increase upkeep costs`, "note"); } else if (V.incubatorUpgradeSpeed === 9) { cost = Math.trunc(75000 * V.upgradeMultiplierArcology); row.append(`It has been upgraded with advanced growth accelerants; children grow at the rate of 6 weeks to 1 year. `); row.append( App.UI.DOM.link( `Fund research into increasing growth rate even further`, () => { cashX(forceNeg(cost), "capEx"); V.incubatorUpgradeSpeed = 18; refresh(); } ) ); App.UI.DOM.appendNewElement("span", row, `Costs ${cashFormat(cost)} and will increase upkeep costs`, "note"); } else if (V.incubatorUpgradeSpeed === 6) { cost = Math.trunc(30000 * V.upgradeMultiplierArcology); row.append(`It has been upgraded with growth accelerants; children grow at the rate of 9 weeks to 1 year. `); row.append( App.UI.DOM.link( `Further upgrade the incubators with specialized stem cells to speed growth`, () => { cashX(forceNeg(cost), "capEx"); V.incubatorUpgradeSpeed = 9; refresh(); } ) ); App.UI.DOM.appendNewElement("span", row, `Costs ${cashFormat(cost)} and will increase upkeep costs`, "note"); } else if (V.incubatorUpgradeSpeed === 5) { cost = Math.trunc(30000 * V.upgradeMultiplierArcology); row.append(`The incubation tanks are basic; children grow at the rate of 12 weeks to 1 year. `); row.append( App.UI.DOM.link( `Upgrade the incubators with growth accelerating drugs`, () => { cashX(forceNeg(cost), "capEx"); V.incubatorUpgradeSpeed = 6; refresh(); } ) ); App.UI.DOM.appendNewElement("span", row, `Costs ${cashFormat(cost)} and will increase upkeep costs`, "note"); } el.append(row); p = document.createElement("p"); row = document.createElement("div"); if (V.incubatorUpgradeWeight === 1) { row.append(`Advanced caloric monitoring systems have been installed in the tanks to monitor and maintain a developing child's weight.`); p.append(row); row = document.createElement("div"); linkArray = []; if (V.incubatorWeightSetting === 1) { row.append(`Weight is not being properly managed; excessive weight gain is likely. `); } else { linkArray.push(makeLink(`Estimate only`, () => { V.incubatorWeightSetting = 1; }, refresh)); } if (V.incubatorWeightSetting === 2) { row.append(`Weight is being carefully managed; children will be released at a healthy weight. `); } else { linkArray.push(makeLink(`Activate`, () => { V.incubatorWeightSetting = 2; }, refresh)); } if (V.incubatorWeightSetting === 0) { row.append(`Weight management systems are offline; children will likely be malnourished. `); } else { linkArray.push(makeLink(`Disable`, () => { V.incubatorWeightSetting = 0; }, refresh)); } row.append(App.UI.DOM.generateLinksStrip(linkArray)); } else { cost = Math.trunc(20000 * V.upgradeMultiplierArcology); row.append(`There are no systems in place to control a growing child's weight; they will likely come out emaciated from the rapid growth. `); row.append( App.UI.DOM.link( `Upgrade the growth tanks with weight monitoring systems`, () => { cashX(forceNeg(cost), "capEx"); V.incubatorUpgradeWeight = 1; refresh(); } ) ); App.UI.DOM.appendNewElement("span", row, `Costs ${cashFormat(cost)} and will increase upkeep costs`, "note"); } p.append(row); el.append(p); p = document.createElement("p"); row = document.createElement("div"); if (V.incubatorUpgradeMuscles === 1) { row.append(`Advanced monitoring and steroid injection systems have been installed in the tanks to monitor and maintain a developing child's musculature.`); p.append(row); row = document.createElement("div"); linkArray = []; if (V.incubatorMusclesSetting === 2) { row.append(`Strength levels are purposefully set higher than recommended; excessive muscle gain is likely. `); } else { linkArray.push(makeLink(`Overload`, () => { V.incubatorMusclesSetting = 2; }, refresh)); } if (V.incubatorMusclesSetting === 1) { row.append(`Musculature is being carefully managed; children will be released with near normal strength. `); } else { linkArray.push(makeLink(`Activate`, () => { V.incubatorMusclesSetting = 1; }, refresh)); } if (V.incubatorMusclesSetting === 0) { row.append(`Strength management systems are offline; children will likely be released extremely weak. `); } else { linkArray.push(makeLink(`Disable`, () => { V.incubatorMusclesSetting = 0; }, refresh)); } row.append(App.UI.DOM.generateLinksStrip(linkArray)); } else { cost = Math.trunc(20000 * V.upgradeMultiplierArcology); row.append(`There are no systems in place to control a growing child's musculature; they will likely come out frail and weak from the rapid growth. `); row.append( App.UI.DOM.link( `Upgrade the growth tanks with muscle monitoring systems`, () => { cashX(forceNeg(cost), "capEx"); V.incubatorUpgradeMuscles = 1; refresh(); } ) ); App.UI.DOM.appendNewElement("span", row, `Costs ${cashFormat(cost)} and will increase upkeep costs`, "note"); } p.append(row); el.append(p); p = document.createElement("p"); row = document.createElement("div"); if (V.incubatorUpgradeReproduction === 1) { row.append(`Advanced monitoring and hormone injection systems have been installed in the tanks to influence a developing child's reproductive organs.`); p.append(row); row = document.createElement("div"); linkArray = []; if (V.incubatorReproductionSetting === 2) { row.append(`Hormone levels are purposefully set higher than recommended; over-active reproductive systems are likely. `); } else { linkArray.push(makeLink(`Overload`, () => { V.incubatorReproductionSetting = 2; }, refresh)); } if (V.incubatorReproductionSetting === 1) { row.append(`Hormone levels are being carefully managed; children will be released with fully functional reproductive organs. `); } else { linkArray.push(makeLink(`Limit`, () => { V.incubatorReproductionSetting = 1; }, refresh)); } if (V.incubatorReproductionSetting === 0) { row.append(`Reproduction management systems are offline; children will undergo normal puberty. `); } else { linkArray.push(makeLink(`Disable`, () => { V.incubatorReproductionSetting = 0; }, refresh)); } row.append(App.UI.DOM.generateLinksStrip(linkArray)); if (V.incubatorUpgradePregAdaptation === 1) { // Should be visible only after incubatorUpgradeReproduction is installed p.append(row); row = document.createElement("div"); linkArray = []; if (V.incubatorPregAdaptationSetting === 3) { row.append(`Pregnancy adaptation system online: All. `); } else { linkArray.push(makeLink(`All`, () => { V.incubatorPregAdaptationSetting = 3; }, refresh)); } if (V.incubatorPregAdaptationSetting === 2) { row.append(`Pregnancy adaptation system online: Males only. `); } else { linkArray.push(makeLink(`Males`, () => { V.incubatorPregAdaptationSetting = 2; }, refresh)); } if (V.incubatorPregAdaptationSetting === 1) { row.append(`Pregnancy adaptation system online: Females only. `); } else { linkArray.push(makeLink(`Females`, () => { V.incubatorPregAdaptationSetting = 1; }, refresh)); } if (V.incubatorPregAdaptationSetting === 0) { row.append(`Pregnancy adaptation system offline. `); } else { linkArray.push(makeLink(`Disable`, () => { V.incubatorPregAdaptationSetting = 0; }, refresh)); } row.append(App.UI.DOM.generateLinksStrip(linkArray)); } if (V.incubatorUpgradePregAdaptation === 1 && V.incubatorPregAdaptationSetting > 0) { // Should be visible only after incubatorUpgradeReproduction is installed and turned on p.append(row); row = document.createElement("div"); linkArray = []; if (V.incubatorPregAdaptationPower === 1) { row.append(`Pregnancy adaptation programmed to advanced procedures. Up to triplet pregnancy should be safe for the subjects.`); } else { linkArray.push(makeLink(`Advanced`, () => { V.incubatorPregAdaptationSetting = 1; }, refresh)); } if (V.incubatorPregAdaptationPower === 2) { row.append(`Pregnancy adaptation programmed to intensive procedures. Up to octuplet pregnancy should be possible for the subjects. Warning! Side effects may occur to health and mental condition.`); } else { linkArray.push(makeLink(`Intensive`, () => { V.incubatorPregAdaptationSetting = 2; }, refresh)); } if (V.incubatorPregAdaptationPower === 3) { row.append(`Pregnancy adaptation programmed to extreme procedures. Normally unsustainable pregnancies may be possible for some subjects. Actual capacity will vary with genetic and other individual conditions. WARNING! Extreme side effects may occur to health and mental condition!`); } else { linkArray.push(makeLink(`Extreme`, () => { V.incubatorPregAdaptationSetting = 3; }, refresh)); } if (V.incubatorPregAdaptationPower === 0) { row.append(`Pregnancy adaptation programmed to standard procedures. Normal pregnancy should be safe for subjects.`); } else { linkArray.push(makeLink(`Standard`, () => { V.incubatorPregAdaptationSetting = 0; }, refresh)); } row.append(App.UI.DOM.generateLinksStrip(linkArray)); App.UI.DOM.appendNewElement("span", row, `Due to the high complexity and steep risks of the procedure, settings will not be changed on tanks in use.`, "note"); } } else { cost = Math.trunc(50000 * V.upgradeMultiplierArcology); row.append(`There are no systems in place to control a growing child's reproductive capability. `); row.append( App.UI.DOM.link( `Upgrade the growth tanks with hormone monitoring systems`, () => { cashX(forceNeg(cost), "capEx"); V.incubatorUpgradeReproduction = 1; refresh(); } ) ); App.UI.DOM.appendNewElement("span", row, `Costs ${cashFormat(cost)} and will increase upkeep costs`, "note"); } p.append(row); el.append(p); p = document.createElement("p"); row = document.createElement("div"); if (V.incubatorUpgradeOrgans === 1) { row.append(`Surgical tools have been added to the tank to be able to extract tissue samples from the occupant.`); } else if (V.organFarmUpgrade >= 1) { cost = Math.trunc(10000 * V.upgradeMultiplierArcology); row.append(`The tanks lack the ability to extract tissue samples to be used by the organ fabricator. `); row.append( App.UI.DOM.link( `Upgrade the growth tanks with surgical extraction tools`, () => { cashX(forceNeg(cost), "capEx"); V.incubatorUpgradeOrgans = 1; refresh(); } ) ); App.UI.DOM.appendNewElement("span", row, `Costs ${cashFormat(cost)} and will increase upkeep costs`, "note"); } else { row.append(`The tanks lack the ability to extract tissue samples and the dispensary lacks the ability to make use of them to fabricate organs.`); } el.append(row); p = document.createElement("p"); row = document.createElement("div"); if (V.incubatorUpgradeGrowthStims === 1) { row.append(`Advanced monitoring and stimulant injection systems have been installed in the tanks to monitor and maintain a developing child's height.`); row = document.createElement("div"); linkArray = []; if (V.incubatorGrowthStimsSetting === 2) { row.append(`Children are injected with higher than recommended doses of stimulants; exceeding expected final height is likely. `); } else { linkArray.push(makeLink(`Overload`, () => { V.incubatorGrowthStimsSetting = 2; }, refresh)); } if (V.incubatorGrowthStimsSetting === 1) { row.append(`Children are injected with the recommended dosage of stimulants; they will grow to their full expected height. `); } else { linkArray.push(makeLink(`Limit`, () => { V.incubatorGrowthStimsSetting = 1; }, refresh)); } if (V.incubatorGrowthStimsSetting === 0) { row.append(`Growth stimulant injection systems are offline; children will develop normally. `); } else { linkArray.push(makeLink(`Disable`, () => { V.incubatorGrowthStimsSetting = 0; }, refresh)); } row.append(App.UI.DOM.generateLinksStrip(linkArray)); } else if (V.growthStim === 1) { cost = Math.trunc(20000 * V.upgradeMultiplierArcology); row.append(`There are no systems in place to control a growing child's height. `); row.append( App.UI.DOM.link( `Upgrade the growth tanks with stimulants injection systems`, () => { cashX(forceNeg(cost), "capEx"); V.incubatorUpgradeGrowthStims = 1; refresh(); } ) ); App.UI.DOM.appendNewElement("span", row, `Costs ${cashFormat(cost)} and will increase upkeep costs`, "note"); } else { row.append(`There are no systems in place to control a growing child's height and you lack the capability to fabricate growth stimulants.`); } p.append(row); el.append(p); if (V.minimumSlaveAge <= 6 && (V.arcologies[0].FSRepopulationFocus >= 60 || V.BlackmarketPregAdaptation === 1)) { /* Main prerequisite - stable repopulation FS OR documentation purchased from black market. And age gate. */ p = document.createElement("p"); row = document.createElement("div"); if (V.incubatorUpgradePregAdaptation === 1) { row.append(`The incubators have been upgraded with special set of manipulators, probes, nozzles and syringes coupled together with specific programs to take advantage of the accelerated growth to heighten viable reproductive capacity. These include injections of specialized serums and mechanical manipulation of the reproductive system and associated tissues, organs, muscles and bones.`); } else { row.append(`The highly controlled environment inside incubation tube coupled with the greatly accelerated growth process is the perfect opportunity to push the boundaries of a body's ability to sustain pregnancy. This will include injections of specialized serums and mechanical manipulation of their reproductive system through a special set of manipulators, probes, nozzles and syringes supervised by a powerful monitoring program. Costly to maintain.`); p.append(row); row = document.createElement("div"); if (V.incubatorUpgradeReproduction < 1) { /* Now with reports - what is lacking for construction */ row.append(`${_incubatorNameCaps} lacks advanced monitoring and hormone injection systems. Construction not possible.`); } else if (V.incubatorUpgradeOrgans < 1) { row.append(`${_incubatorNameCaps} lacks the ability to extract tissue samples. Construction not possible.`); } else if (V.dispensaryUpgrade < 1) { row.append(`${_incubatorNameCaps} lacks a connection to an advanced pharmaceutical fabricator.Cutting - edge targeted serums production needed as integral part. Construction not possible.`); } else if (V.bellyImplants < 1) { row.append(`${_incubatorNameCaps} lacks a connection with an implant manufacturing to construct fillable abdominal implants to simulate expansion. Construction not possible.`); } else if (V.incubatorUpgradeGrowthStims < 1) { row.append(`${_incubatorNameCaps} lacks advanced monitoring and stimulant injection systems. Construction not possible.`); } else { cost = Math.trunc(2000000 * V.upgradeMultiplierArcology); row.append( choice( `Manufacture and install this subsystem`, () => { cashX(forceNeg(cost), "capEx"); V.incubatorUpgradePregAdaptation = 1; refresh(); }, "", `Costs ${cashFormat(cost)} and will increase upkeep costs` ) ); } } p.append(row); el.append(p); } p = document.createElement("p"); row = document.createElement("div"); if (V.incubatorImprintSetting === "terror") { row.append(`The imprinting system is currently focused on making them devoted but fearful of you. The imprinting cycle is locked upon incubation start. `); App.UI.DOM.appendNewElement("span", row, `Only affects new infants`, "note"); if (V.bodyswapAnnounced === 1) { row.append( choice( `Switch the system to focus on preparation for body-swapping`, () => { V.incubatorImprintSetting = "husk"; } ) ); } row.append( choice( `Switch the system to focus on attachment`, () => { V.incubatorImprintSetting = "trust"; } ) ); } else if (V.incubatorImprintSetting === "trust") { row.append(`The imprinting system is currently focused on making them devoted and trusting of you. The imprinting cycle is locked upon incubation start.`); if (V.bodyswapAnnounced === 1) { row.append( choice( `Switch the system to focus preparation for body-swapping`, () => { V.incubatorImprintSetting = "husk"; } ) ); } row.append( choice( `Switch the system to focus on dependence`, () => { V.incubatorImprintSetting = "terror"; } ) ); } else { row.append(`The imprinting system is currently focused on producing complete vegetables ready to be used as hosts for body swapping. The imprinting cycle is locked upon incubation start.`); row.append( choice( `Switch the system to focus on dependence`, () => { V.incubatorImprintSetting = "terror"; } ) ); row.append( choice( `Switch the system to focus on attachment`, () => { V.incubatorImprintSetting = "trust"; } ) ); } p.append(row); el.append(p); row = document.createElement("div"); row.append(`Rename ${V.incubatorName}: `); row.append( App.UI.DOM.makeTextBox( V.incubatorName, (v) => { V.incubatorName = v; refresh(); } ) ); App.UI.DOM.appendNewElement("span", row, ` Use a noun or similar short phrase`, "note"); el.append(row); return el; function refresh() { jQuery("#content-tank-settings").empty().append(tankSettings()); jQuery("#content-intro").empty().append(intro()); } } function release() { const multiple = (V.incubatorBulkRelease === 1) && V.tanks.filter(t => t.growTime <= 0).length > 1; const singleRelease = () => { const baby = V.tanks.find(t => t.growTime <= 0); V.tanks.delete(baby); V.readySlave = baby; }; const multipleRelease = () => { V.newSlavePool = V.tanks.deleteWith(t => t.growTime <= 0); }; if (V.readySlaves === 1) { if (multiple) { return App.UI.DOM.passageLink(`Release ready tanks`, "Incubator Retrieval Workaround", multipleRelease); } else { return App.UI.DOM.passageLink(`Release ready tank`, "Incubator Retrieval Workaround", singleRelease); } } return new DocumentFragment(); } /** * * @param {string} title * @param {function():void} func * @param {function():void} refresh */ function makeLink(title, func, refresh) { return App.UI.DOM.link( title, () => { func(); refresh(); } ); } /** * * @param {string} title * @param {function():void} func * @param {string} [passage=""] * @param {string} [note] * @returns {HTMLElement} */ function choice(title, func, passage = "", note = "") { const div = document.createElement("div"); div.classList.add("choices"); div.append( App.UI.DOM.link( title, func, [], passage ) ); if (note) { App.UI.DOM.appendNewElement("span", div, ` ${note}`, "note"); } return div; } function appendRow(node, text) { return App.UI.DOM.appendNewElement("div", node, text); } /** * * @param {string} id * @param {Node} element * @returns {HTMLSpanElement} */ function makeSpanIded(id, element) { const span = document.createElement("span"); span.id = id; span.append(element); return span; } };
MonsterMate/fc
src/facilities/incubator/incubatorInteract.js
JavaScript
mit
62,550
:: Incubator Retrieval Workaround [nobr] <<set $returnTo = "Main", $nextLink = "Incubator", $nextButton = "Continue">> <<if $readySlave != 0>> <<setLocalPronouns $readySlave>> $readySlave.slaveName has been discharged from $incubatorName and is ready for $his first ever inspection. <br><br> <<includeDOM App.Desc.longSlave($readySlave)>> <<if $readySlave.tankBaby != 3>> <<if $incubatorOrgans.length > 0>> <<for _irw = 0; _irw < $incubatorOrgans.length; _irw++>> <<if $incubatorOrgans[_irw].ID == $readySlave.ID>> <<set _newOrgan = {type: $incubatorOrgans[_irw].type, weeksToCompletion: $incubatorOrgans[_irw].weeksToCompletion, ID: $readySlave.ID}>> <<if _newOrgan.weeksToCompletion <= 0>> <<set $completedOrgans.push($incubatorOrgans[_irw])>> <<else>> <<set $organs.push(_newOrgan)>> <</if>> <<set $incubatorOrgans.deleteAt(_irw), _irw-->> <</if>> <</for>> <</if>> <<includeDOM App.UI.newChildIntro($readySlave)>> <<else>> <<set $activeSlave = $readySlave>> /* $activeSlave is used by husk Slave Swap Workaround */ A husk is ready to be used. <br> //As expected, $he is a complete vegetable, but that is what you wanted after all. You lack the facilities to care for $him in this state, so you should do what you are planning quickly. Or you could sell $him to the Flesh Heap.// <<set _price = Math.trunc(slaveCost($readySlave)/3)>> <span id="result"> <<if $cash >= $surgeryCost>> <br>[[Contact the bodyswap surgeon.|husk Slave Swap Workaround]] //Will significantly increase the selected slave's upkeep.// <br>[[Sell the husk to Flesh Heap.|Main][cashX(_price, "slaveTransfer")]] //This body can be bought by the Flesh Heap for <<print cashFormat(_price)>>//. <<else>> <<run cashX(_price, "slaveTransfer")>> //You can't sustain $him and thus must sell $him for <<print cashFormat(_price)>>.// <</if>> </span> <</if>> <<else>> The following slaves were discharged from $incubatorName: <<for _irw = 0; _irw < $newSlavePool.length; _irw++>> <br><br> <<set _newSlave = $newSlavePool[_irw]>> Name: <<= SlaveFullName(_newSlave)>> <br>Mother: <<if _newSlave.mother > 0>> <<set _tempMom = getSlave(_newSlave.mother)>> <<if ndef _tempMom>> Unknown. <<else>> <<= SlaveFullName(_tempMom)>> <</if>> <<elseif _newSlave.mother == -1>> <<= PlayerName()>>. <<else>> Your former slave, $missingTable[_newSlave.mother].slaveName. <</if>> <br>Father: <<if _newSlave.father > 0>> <<set _tempDad = getSlave(_newSlave.father)>> <<if ndef _tempDad>> Unknown. <<else>> <<= SlaveFullName(_tempDad)>> <</if>> <<elseif _newSlave.father == -1>> <<= PlayerName()>>. <<elseif _newSlave.father == -2>> Unknown citizen. <<elseif _newSlave.father == -3>> Your former Master. <<elseif _newSlave.father == -4>> Another arcology's owner. <<elseif _newSlave.father == -5>> One of your clients. <<elseif _newSlave.father == -6>> Societal Elite. <<elseif _newSlave.father == -7>> Lab crafted. <<elseif _newSlave.father == -8>> //Error! Animal fathered children shouldn't be here!// <<elseif _newSlave.father == -9>> Futanari Sister. <<else>> <<if def $missingTable[_newSlave.father]>> Your former slave, $missingTable[_newSlave.father].slaveName. <<else>> Unknown. <</if>> <</if>> <<run newSlave(_newSlave)>> <<if $incubatorOrgans.length > 0>> <<for _irw2 = 0; _irw2 < $incubatorOrgans.length; _irw2++>> <<if $incubatorOrgans[_irw2].ID == $newSlavePool[_irw].ID>> <<set _newOrgan = {type: $incubatorOrgans[_irw2].type, weeksToCompletion: $incubatorOrgans[_irw2].weeksToCompletion, ID: _newSlave.ID}>> <<if _newOrgan.weeksToCompletion <= 0>> <<set $completedOrgans.push($incubatorOrgans[_irw2])>> <<else>> <<set $organs.push(_newOrgan)>> <</if>> <<set $incubatorOrgans.deleteAt(_irw2), _irw2-->> <</if>> <</for>> <</if>> <</for>> <<set $newSlavePool = 0>> <</if>>
MonsterMate/fc
src/facilities/incubator/incubatorRetrievalWorkaround.tw
tw
mit
4,028
/** * Sends a child to the Incubator if it has room * @param {App.Entity.SlaveState|App.Entity.InfantState} child */ App.Facilities.Incubator.newChild = function(child) { let fullAdapt; child.growTime = Math.trunc(V.targetAge * 52); child.incubatorPregAdaptationPower = V.incubatorPregAdaptationPower; if (V.incubatorPregAdaptationPower === 1) { fullAdapt = 45000 / 2000; } else if (V.incubatorPregAdaptationPower === 2) { fullAdapt = 100000 / 2000; } else if (V.incubatorPregAdaptationPower === 3) { fullAdapt = 150000 / 2000; } else { fullAdapt = 15000 / 2000; } child.incubatorPregAdaptationInWeek = (fullAdapt - child.pregAdaptation) / child.growTime; V.tanks.push(child); };
MonsterMate/fc
src/facilities/incubator/incubatorUtils.js
JavaScript
mit
701
App.Data.Facilities.masterSuite = { baseName: "masterSuite", genericName: "Master Suite", jobs: { fucktoy: { position: "fucktoy", assignment: Job.MASTERSUITE, publicSexUse: false, fuckdollAccepted: false } }, defaultJob: "fucktoy", manager: { position: "concubine", positionAbbreviation: "C", assignment: Job.CONCUBINE, careers: [], skill: null, publicSexUse: false, fuckdollAccepted: false, broodmotherAccepted: true, shouldWalk: false, shouldHold: false, shouldSee: false, shouldHear: false, shouldTalk: false, shouldThink: false, requiredDevotion: 51 } }; App.Entity.Facilities.MasterSuiteFuckToyJob = class extends App.Entity.Facilities.FacilitySingleJob { /** * @param {App.Entity.SlaveState} slave * @returns {string[]} */ checkRequirements(slave) { let r = super.checkRequirements(slave); if (!App.Entity.Facilities.Job._isBrokenEnough(slave, 20, -51, -21, -50)) { r.push(`${slave.slaveName} is not sufficiently broken for ${this.facility.name}.`); } return r; } /** @override */ get assignment() { return this.facility.name; } }; App.Entity.Facilities.ConcubineJob = class extends App.Entity.Facilities.ManagingJob { checkRequirements(slave) { let r = super.checkRequirements(slave); if (isAmputee(slave)) { r.push(`${slave.slaveName} can't serve as your Concubine without limbs.`); } return r; } }; App.Entity.facilities.masterSuite = new App.Entity.Facilities.SingleJobFacility( App.Data.Facilities.masterSuite, { fucktoy: new App.Entity.Facilities.MasterSuiteFuckToyJob() }, new App.Entity.Facilities.ConcubineJob() );
MonsterMate/fc
src/facilities/masterSuite/masterSuiteFramework.js
JavaScript
mit
1,632
:: AC Dump <<if (ndef $activeChild) || ($activeChild == 0)>> @@.red;ERROR:@@ AC Dump, activeChild invalid, returnTo is '$returnTo', previous passage was '<<print previous()>>'. Please report this. <<link "Continue">><<goto $returnTo>><</link>> | [[Go Back|previous()]] <<else>> <<set _CL = $cribs.length, _ID = $activeChild.ID>> <<if $i >= 0 && $i < _CL && $cribs[$i].ID == _ID>> /* shortcut if $i is already pointing to this slave */ <<set $cribs[$i] = $activeChild>> <<else>> <<set $i = $cribs.findIndex(function(s) { s.ID === _ID; })>> /* find $i if exists */ <<if $i != -1>> /* not found, so new slave */ @@.red;ERROR:@@ $activeChild.slaveName not found! Please report this. <<else>> <<set $cribs[$i] = $activeChild>> <</if>> <</if>> <<goto $returnTo>> <</if>>
MonsterMate/fc
src/facilities/nursery/acDump.tw
tw
mit
796
:: Matron Select [nobr jump-to-safe jump-hidden jump-from-safe] <<set $nextButton = "Back", $nextLink = "Nursery", $encyclopedia = "Matron">> <<if ($MatronID != 0)>> <<setLocalPronouns _S.Matron>> <span class='slave-name'><<= SlaveFullName(_S.Matron)>></span> is serving as your Matron.<br><br>$He will manage the nursery. <<else>> You have not selected a Matron. <</if>> <br><br>''Appoint a Matron from your devoted slaves:'' <br><br>[[None|Nursery][removeJob(_S.Matron, Job.MATRON)]] <br><br> <<includeDOM App.UI.SlaveList.facilityManagerSelection(App.Entity.facilities.nursery, "Nursery")>>
MonsterMate/fc
src/facilities/nursery/matronSelect.tw
tw
mit
599
:: Next Child In Line <<silently>> <<set $i = $cribs.findIndex(function(c) { return c.ID === $activeChild.ID; })>> <<set $cribs[$i] = $activeChild>> /* save changes before switching */ <<if $i == $cribs.length - 1>> <<set $activeChild = $cribs[0]>> <<if $activeChild.actualAge < 3>> <<goto "Infant Interact">> <<else>> <<goto "Child Interact">> <</if>> <<else>> <<set $activeChild = $cribs[$i+1]>> <<if $activeChild.actualAge < 3>> <<goto "Infant Interact">> <<else>> <<goto "Child Interact">> <</if>> <</if>> <</silently>>
MonsterMate/fc
src/facilities/nursery/nextChildInLine.tw
tw
mit
543
/* FEEL FREE TO MOVE */ .child-section { margin-top: 1em; margin-bottom: 1em; }
MonsterMate/fc
src/facilities/nursery/nursery.css
CSS
mit
83
:: Nursery [nobr jump-to-safe jump-from-safe] <<set $nextButton = "Back to Main", $nextLink = "Main", $returnTo = "Nursery", $encyclopedia = "Nursery">> <<set $targetAgeNursery = Number($targetAgeNursery) || $minimumSlaveAge>> <<set $targetAgeNursery = Math.clamp($targetAgeNursery, $minimumSlaveAge, 42)>> <<set $nurseryChildren = $cribs.length, _freecribs = $nursery - $nurseryChildren, _NL = App.Entity.facilities.nursery.employeesIDs().size, _SL = $slaves.length, _eligibility = 0, _reservedChildren = FetusGlobalReserveCount("incubator"), _reservedChildrenNursery = FetusGlobalReserveCount("nursery")>> <p class="scene-intro"> <<set _nurseryNameCaps = capFirstChar($nurseryName)>> _nurseryNameCaps <<switch $nurseryDecoration>> <<case "Roman Revivalist">> is run with the Roman dream in mind, with wide open windows exposing the babies to the elements. The sleek marble halls bring a sense of serenity and duty as wet nurses wander the halls. <<case "Neo Imperialist">> is modeled as an ultra high-tech nursing area, with omnipresent advanced machinery monitoring every heartbeat of the babies within, the soft glow of machines pulsating against the banners of your family crest lining the walls. <<case "Aztec Revivalist">> is lined head to toe in illustrious Aztec gold. Tiny but notable subscripts lay in plaques to honor the mothers who died giving birth, the children of said mothers, alive or dead, are tirelessly watched over to tend to their every need. <<case "Egyptian Revivalist">> is decorated by sleek, sandstone tablets, golden statues, and even grander Egyptian wall sculptures, many of them depicting the conception, birth, and raising of a child. Each babe is reverently wrapped in linen covers as they drift to sleep to the stories of mighty pharaohs and prosperous palaces. <<case "Edo Revivalist">> is minimalistic in nature, but the errant paintings of cherry blossoms and vibrant Japanese maples give a certain peaceful air as the caretakers do their duties. <<case "Arabian Revivalist">> is decorated wall to wall with splendorous carvings and religious Hamsas meant to protect the fostering children. <<case "Chinese Revivalist">> is ripe with Chinese spirit. Depictions of colorful dragons and oriental designs grace the halls, rooms, and cribs of the babies who reside inside. <<case "Chattel Religionist">> is decorated with childish religious cartoons and artistic tapestries of slaves bowing in submission, their themes always subsiding varying degrees of sexual worship. The caretakers that wander the halls obediently wear their habits, and never waste a moment to tenderly lull the children to sleep with stories of their prophet. <<case "Degradationist">> is bare and sullen. The cries of the neglected children destined for slavery trying to find comfort in their burlap coverings echo the halls, while those that await freedom are raised among luxury and are taught to look down on their less fortunate peers. <<case "Repopulation Focus">> is designed to be very open and public; a showing testament to your arcology's repopulation efforts. For those old enough to support them, they are strapped with big, but body warming, empathy bellies as to remind them of their destiny. <<case "Eugenics">> is of utmost quality without a single pleasantry missing — if the parents are of the elite blood of course. While there are rare stragglers of unworthy genes, the child populace overall is pampered with warm rooms and plentiful small toys. <<case "Asset Expansionist">> is not so much decorated as it is intelligently staffed. Every passerby, slave or not, burns the image of their jiggling asses and huge, wobbling tits into the minds of the children. <<case "Transformation Fetishist">> is kept simple and clean. From their toys down to the nursemaids, the babies are exposed to the wonders of body transformation whenever possible. <<case "Gender Radicalist">> is decorated by cheery cartoon depictions of slaves of many shapes, sizes, and genitals, all of them undeniably feminine. The elated smiles and yips of the nurses getting reamed constantly instill the appreciation of nice, pliable buttholes. <<case "Gender Fundamentalist">> is simply designed and painted with soft feminine colors. The staff heavily encourage the children to play dress up and house, subtly sculpting their minds to proper gender norms and properly put them in line if they try to do otherwise. <<case "Physical Idealist">> is furnished with kiddy health books and posters; their caretakers making painstakingly sure that the importance is drilled into their heads at a young age. Their food is often littered with vitamins and supplements to keep the children growing strong. <<case "Supremacist">> is designed and structured to give those of $arcologies[0].FSSupremacistRace ethnicity the limelight of the nursery, while the others stay sectioned off and neglected to the world. <<case "Subjugationist">> is made to foster and raise the young children of $arcologies[0].FSSubjugationistRace ethnicity. They are reminded of their place with every failure and are encouraged to submissively follow their stereotypes at a ripe young age. <<case "Paternalist">> is well-stocked and by Paternalistic customs, constantly swaddle the children with love and attention. With the warm colors and sound of child laughter, to the untrained eye, the children actually seem free. <<case "Pastoralist">> is decorated to make the children grow up thinking that a life focused on breast milk, cum, and other human secretions are part of the norm. The milky tits swaying above their cow-patterned cribs certainly help with that. <<case "Maturity Preferentialist">> decorations remind the kids to respect those curvy and mature. The older nurserymaids are always flattered whenever the children try to act like adults and take care of the younger toddlers for them. <<case "Youth Preferentialist">> is making young children the center of attention, their rooms supplied with plenty of toys, blankets, and surrogate mothers at their beck and call. <<case "Body Purist">> is decorated to be very clean cut and sterilized with perfect corners and curves; symbolic of the human figure. Nursery maids are encouraged to show off their natural assets to show the children what the appropriate body should be. <<case "Slimness Enthusiast">> constantly encourages the kids to try and keep their slim and cute physiques. They are given perfectly metered meals to make this possible. /* TODO: tie this in to food system */ <<case "Hedonistic">> would make any toddler drool in amazement. Meals and naps every other hour, cribs stalked with toys and blankets, and plush slaves carry them to and fro without preamble. A delicious layer of baby fat is the ideal figure of a baby, and they couldn't be happier. <<case "Intellectual Dependency">> /* TODO: */ <<case "Slave Professionalism">> /* TODO: */ <<case "Petite Admiration">> has large photos and paintings on the walls depicting small, petite children enjoying $nurseryName's amenities and having fun together. <<case "Statuesque Glorification">> has large photos and paintings on the walls depicting tall children enjoying $nurseryName's amenities and having fun together. /* TODO: rewrite so it's not so similar? */ <<default>> is as comfortable and child-friendly as it needs to be. They have everything they need to grow into a proper slave. <</switch>> <<if $MatronID>> <<setLocalPronouns _S.Matron>> <</if>> <<if _NL > 2>> _nurseryNameCaps is bustling with activity. Nannies are busily moving about, feeding babies and changing diapers. <<elseif _NL > 0>> _nurseryNameCaps is working steadily. Nannies are moving about, cleaning up and feeding hungry children. <<set $nannyInfluence = 1>> <<elseif $MatronID>> _S.Matron.slaveName is alone in $nurseryName, and keeps the place clean and looks after the children $himself. <<elseif (_NL <= 0) && ($nurseryChildren <= 0)>> _nurseryNameCaps is empty and quiet. <div class="choices" style="font-style:normal"> <<link "Decommission the Nursery" "Main">> <<set $nursery = 0, $nurseryNannies = 0, $nannyInfluence = 0, $nurseryDecoration = "standard", $cribs = [], _reservedChildrenNursery = 0>> <<for _i = 0; _i < $slaves.length; _i++>> <<run WombCleanGenericReserve($slaves[_i], "nursery", 9999)>> <</for>> <</link>> </div> <</if>> </p> <div class="tab-bar"> /* <button class="tab-links" onclick="App.UI.tabBar.openTab(event, 'nannies')" id="tab nannies">Nannies</button> */ <button class="tab-links" onclick="App.UI.tabBar.openTab(event, 'pregnant-slaves')" id="tab pregnant-slaves">Pregnant Slaves</button> <button class="tab-links" onclick="App.UI.tabBar.openTab(event, 'children')" id="tab children">Children</button> </div> /* <div id="nannies" class="tab-content"> <div id="content"> */ <<set _Tmult0 = Math.trunc($nurseryNannies*1000*$upgradeMultiplierArcology)>> <br>It can support $nurseryNannies <<if $nurseryNannies != 1>>nannies<<else>>nanny<</if>>. There <<if _NL == 1>>is<<else>>are<</if>> _NL <<if _NL != 1>>nannies<<else>>nanny<</if>> in $nurseryName. <<if $nurseryChildren > 0 && _NL < 1 && (!_S.Matron)>> <div class="note"> You must have a Matron or at least one nanny to be able to influence the children's upbringing </div> <</if>> <<if $nurseryNannies < 5>> <div class="choices"> [[Expand the nursery|Nursery][cashX(forceNeg(_Tmult0), "capEx"), $nurseryNannies += 1, $PC.skill.engineering += .1]] <span class="note"> Costs <<print cashFormat(_Tmult0)>> and will increase upkeep costs </span> </div> <<else>> <span class="note"> _nurseryNameCaps can support a maximum of 5 slaves </span> <</if>> <div class="choices"> <<if _NL > 0>> <<includeDOM removeFacilityWorkers("nursery", "rest", "rest")>> <</if>> </div> <div> <<if _S.Matron>> <<if $MatronIgnoresFlaws != 1>> _S.Matron.slaveName will attempt to fix flaws in nannies serving under $him. <div class="choices"> [[Ignore flaws|Nursery][$MatronIgnoresFlaws = 1]] </div> <<else>> _S.Matron.slaveName has been instructed to ignore flaws in the nannies serving under $him. <div class="choices"> [[Fix flaws|Nursery][$MatronIgnoresFlaws = 0]] </div> <</if>> <</if>> </div> <p> <<includeDOM App.UI.SlaveList.stdFacilityPage(App.Entity.facilities.nursery)>> </p> /* </div> </div> */ <div id="pregnant-slaves" class="tab-content"> <div id="content"> <br><br> Reserve an eligible mother-to-be's child to be placed in a room upon birth. Of $nursery rooms, <<print _freecribs>> <<if _freecribs == 1>>is<<else>>are<</if>> unoccupied. Of those, _reservedChildrenNursery room<<if _reservedChildrenNursery == 1>> is<<else>>s are<</if>> reserved. <<if (0 < _SL)>> <<set $sortNurseryList = $sortNurseryList || 'Unsorted'>> <br> <span class="note"> Sorting: </span> ''<span id="ql-nursery-sort">$sortNurseryList</span>.'' <<link "Sort by Name">> <<set $sortNurseryList = 'Name'>> <<replace "#ql-nursery-sort">>$sortNurseryList<</replace>> <<script>> sortNurseryPossiblesByName(); <</script>> <</link>> | <<link "Sort by Reserved Nursery Spots">> <<set $sortNurseryList = 'Reserved Nursery Spots'>> <<replace "#ql-nursery-sort">>$sortNurseryList<</replace>> <<script>> sortNurseryPossiblesByReservedSpots(); <</script>> <</link>> | <<link "Sort by Pregnancy Week">> <<set $sortNurseryList = 'Pregnancy Week'>> <<replace "#ql-nursery-sort">>$sortNurseryList<</replace>> <<script>> sortNurseryPossiblesByPregnancyWeek(); <</script>> <</link>> | <<link "Sort by Number of Children">> <<set $sortNurseryList = 'Number of Children'>> <<replace "#ql-nursery-sort">>$sortNurseryList<</replace>> <<script>> sortNurseryPossiblesByPregnancyCount(); <</script>> <</link>> <br> <</if>> <div id="ql-nursery"> <<for _u = 0; _u < _SL; _u++>> <<setLocalPronouns $slaves[_u]>> <<if $slaves[_u].preg > 0 && $slaves[_u].broodmother == 0 && $slaves[_u].pregKnown == 1 && $slaves[_u].eggType == "human">> <<if $slaves[_u].assignment == "work in the dairy" && $dairyPregSetting > 0>> <<else>> <<set _slaveId = "slave-" + $slaves[_u].ID>> <<set _WL = $slaves[_u].womb.length>> <<set _reservedNursery = WombReserveCount($slaves[_u], "nursery")>> <<set _reservedIncubator = WombReserveCount($slaves[_u], "incubator")>> <<set _pregWeek = $slaves[_u].pregWeek>> <<set _slaveName = SlaveFullName($slaves[_u])>> <div class="possible" @id="_slaveId" @data-preg-count="_WL" @data-reserved-spots="_reservedNursery" @data-preg-week="_pregWeek" @data-name="_slaveName"> <<print "[[_slaveName|Slave Interact][$AS = $slaves[" + _u + "].ID, $nextLink = passage()]]">> is <<= numberWithPluralOne($slaves[_u].pregWeek, "week")>> pregnant with <<if $slaves[_u].pregSource == 0 || $slaves[_u].preg <= 5>>someone's<<if $slaves[_u].preg <= 5>>, though it is too early to tell whose,<</if>> <<elseif $slaves[_u].pregSource == -1>>your <<elseif $slaves[_u].pregSource == -2>>a citizen's <<elseif $slaves[_u].pregSource == -3>>your Master's <<elseif $slaves[_u].pregSource == -4>>another arcology owner's <<elseif $slaves[_u].pregSource == -5>>your client's <<elseif $slaves[_u].pregSource == -6>>the Societal Elite's <<elseif $slaves[_u].pregSource == -7>>the lab's <<elseif $slaves[_u].pregSource == -9>>the Futanari Sisters' <<else>> <<set _t = $slaveIndices[$slaves[_u].pregSource]>> <<if def _t>> <<print $slaves[_t].slaveName>>'s <</if>> <</if>> <<if _WL > 1>>_WL babies<<else>>baby<</if>>. <<if _reservedNursery > 0>> <<set _childrenReservedNursery = 1>> <<if _WL == 1>> $His child will be placed in $nurseryName. <<elseif _reservedNursery < _WL>> _reservedNursery of $his children will be placed in $nurseryName. <<elseif _WL == 2>> Both of $his children will be placed in $nurseryName. <<else>> All _reservedNursery of $his children will be placed in $nurseryName. <</if>> <<if (_reservedIncubator + _reservedNursery < _WL) && (_reservedChildrenNursery < _freecribs)>> <br>&nbsp;&nbsp;&nbsp;&nbsp; <<print "[[Keep another child|Nursery][WombAddToGenericReserve($slaves[" + _u + "], 'nursery', 1)]]">> <<if _reservedNursery > 0>> | <<print "[[Keep one less child|Nursery][WombCleanGenericReserve($slaves[" + _u + "], 'nursery', 1)]]">> <</if>> <<if _reservedNursery > 1>> | <<print "[[Keep none of " + $his + " children|Nursery][WombCleanGenericReserve($slaves[" + _u + "], 'nursery', 9999)]]">> <</if>> <<if (_reservedChildrenNursery + _WL - _reservedNursery) <= _freecribs>> | <<print "[[Keep the rest of " + $his + " children|Nursery][WombAddToGenericReserve($slaves[" + _u + "], 'nursery', 9999)]]">> <</if>> <<elseif (_reservedNursery == _WL) || (_reservedChildrenNursery == _freecribs) || (_reservedIncubator + _reservedNursery == _WL)>> <br>&nbsp;&nbsp;&nbsp;&nbsp; <<print "[[Keep one less child|Nursery][WombCleanGenericReserve($slaves[" + _u + "], 'nursery', 1)]]">> <<if _reservedNursery > 1>> | <<print "[[Keep none of " + $his + " children|Nursery][WombCleanGenericReserve($slaves[" + _u + "], 'nursery', 9999)]]">> <</if>> <</if>> <<elseif (_reservedChildrenNursery < _freecribs) && (_freecribs > _WL)>> <<if _WL - _reservedIncubator == 0>> <span class="note"> $His children are already reserved for $incubatorName </span> <br>&nbsp;&nbsp;&nbsp;&nbsp; <<print "[[Keep " + $his + " " + ((_WL > 1) ? "children" : "child") + " here instead|Nursery][WombChangeReserveType($slaves[" + _u + "], 'incubator', 'nursery')]]">> <<else>> You have <<if _freecribs == 1>>an<</if>> @@.lime;available room<<if _freecribs > 1>>s<</if>>.@@ <br>&nbsp;&nbsp;&nbsp;&nbsp; <<print "[[Keep "+ ((_WL > 1) ? "a" : "the") +" child|Nursery][WombAddToGenericReserve($slaves[" + _u + "], 'nursery', 1)]]">> <<if (_WL > 1) && (_reservedChildrenNursery + _WL - _reservedNursery) <= _freecribs>> | <<print "[[Keep all of " + $his + " children|Nursery][WombAddToGenericReserve($slaves[" + _u + "], 'nursery', 9999)]]">> <</if>> <</if>> <<elseif _reservedChildrenNursery == _freecribs>> <br>&nbsp;&nbsp;&nbsp;&nbsp; You have @@.red;no room for $his offspring.@@ <</if>> <<set _eligibility = 1>> </div> <</if>> <</if>> <</for>> </div> <<script>> $('div#ql-nursery').ready(sortNurseryPossiblesByPreviousSort); <</script>> </div> </div> <div id="children" class="tab-content"> <div id="content"> <p> Target age for release: <<textbox "$targetAgeNursery" $targetAgeNursery "Nursery">> [[Minimum Legal Age|Nursery][$targetAgeNursery = $minimumSlaveAge]] | [[Average Age of Fertility|Nursery][$targetAgeNursery = $fertilityAge]] | [[Average Age of Potency|Nursery][$targetAgeNursery = $potencyAge]] | [[Legal Adulthood|Nursery][$targetAgeNursery = 18]] <span class="note"> Setting will not be applied to rooms in use. </span> </p> It can support $nursery child<<if $nursery != 1>>ren<</if>>. There <<if $nurseryChildren == 1>>is<<else>>are<</if>> currently $nurseryChildren room<<if $nurseryChildren != 1>>s<</if>> in use in $nurseryName. <<if $nursery < 50>> <div class="choices"> [[Add another room|Nursery][cashX(forceNeg(Math.trunc(5000*$upgradeMultiplierArcology)), "nursery"), $nursery += 5]] <span class="note"> Costs <<print cashFormat(Math.trunc(5000*$upgradeMultiplierArcology))>> and will increase upkeep costs </span> <<if _freecribs == 0>> All of the rooms are currently occupied by growing children. <</if>> </div> <<else>> <span class="note"> _nurseryNameCaps can support a maximum of 50 children </span> <</if>> <<if $nursery > 1 && _reservedChildrenNursery < _freecribs>> <div class="choices"> [[Remove a room|Nursery][cashX(forceNeg(Math.trunc(1000*$upgradeMultiplierArcology)), "nursery"), $nursery -= 5]] <span class="note"> Costs <<print cashFormat(Math.trunc(1000*$upgradeMultiplierArcology))>> and will reduce upkeep costs </span> </div> <</if>> <br> <h3>Rules</h3> <hr style="margin:0"> <<if $extremeUnderage>> <<if $nurserySex>> _nurseryNameCaps staff are ''allowed'' to molest the children. [[Forbid|Nursery][$nurserySex = 0]] <<else>> _nurseryNameCaps staff are ''not allowed'' to molest the children. [[Allow|Nursery][$nurserySex = 1]] <</if>> <</if>> <br> <<if $nurseryWeight>> <<if $nurseryWeightSetting>> Food intake ''is'' being managed; children will be raised at a healthy weight. [[End managing|Nursery][$nurseryWeightSetting = 0]] <<else>> Food intake ''is not'' being managed; children may end up malnourished. [[Begin managing|Nursery][$nurseryWeightSetting = 1]] <</if>> <<else>> The amount of food the children eat ''is not'' being monitored, meaning they may end up becoming malnourished. [[Monitor the amount of food the children eat|Nursery][cashX(forceNeg(Math.trunc(1000*$upgradeMultiplierArcology)), "nursery"), $nurseryWeight = 1]] <span class="note"> Requires a Matron or at least one nanny and costs <<print cashFormat(Math.trunc(1000*$upgradeMultiplierArcology))>> and will increase upkeep costs </span> <</if>> <br> <<if $nurseryMuscles>> <<if $nurseryMusclesSetting>> Exercise ''is'' being managed; children will be raised with average fitness. [[End managing|Nursery][$nurseryMusclesSetting = 0]] <<else>> Children ''are not'' getting any exercise; they may end up quite weak and frail. [[Begin managing|Nursery][$nurseryMusclesSetting = 1]] <</if>> <<else>> The children ''are not'' getting any exercise, meaning they will likely end up becoming fairly weak and frail. [[Allow the children to remain active|Nursery][cashX(forceNeg(Math.trunc(1000*$upgradeMultiplierArcology)), "nursery"), $nurseryMuscles = 1]] <span class="note"> Requires a Matron or at least one nanny and costs <<print cashFormat(Math.trunc(1000*$upgradeMultiplierArcology))>> and will increase upkeep costs </span> <</if>> <br> <<if $nurseryUpgradeHormones>> <<if $nurseryHormonesSetting>> Artificial hormone levels ''are'' being managed; children may experience precocious puberty. [[Disable|Nursery][$nurseryHormonesSetting = 0]] <<else>> Artificial hormones ''are not'' being given; children will undergo normal puberty. [[Activate|Nursery][$nurseryHormonesSetting = 1]] <</if>> <<else>> The children ''are not'' being given any artificial hormones. [[Give the children growth hormones|Nursery][cashX(forceNeg(Math.trunc(1000*$upgradeMultiplierArcology)), "nursery"), $nurseryUpgradeHormones = 1, $nurseryHormonesSetting = 0]] <span class="note"> Requires a Matron or at least one nanny and costs <<print cashFormat(Math.trunc(1000*$upgradeMultiplierArcology))>> and will increase upkeep costs </span> <</if>> <br> <<includeDOM App.Facilities.Nursery.childList()>> </div> </div> <p> Rename $nurseryName: <<textbox "$nurseryName" $nurseryName "Nursery">> <span class="note"> Use a noun or similar short phrase </span> </p> <<run App.UI.SlaveList.ScrollPosition.restore()>>
MonsterMate/fc
src/facilities/nursery/nursery.tw
tw
mit
21,876
App.Facilities.Nursery.ChildDatatypeCleanup = function(child) { childAgeDatatypeCleanup(child); childPhysicalDatatypeCleanup(child); childFaceDatatypeCleanup(child); childHairDatatypeCleanup(child); childBoobsDatatypeCleanup(child); childButtDatatypeCleanup(child); childPregnancyDatatypeCleanup(child); childBellyDatatypeCleanup(child); childGenitaliaDatatypeCleanup(child); childImplantsDatatypeCleanup(child); childPiercingsDatatypeCleanup(child); childTattooDatatypeCleanup(child); childCosmeticsDatatypeCleanup(child); childDietDatatypeCleanup(child); childPornDatatypeCleanup(child); childRelationDatatypeCleanup(child); childSkillsDatatypeCleanup(child); childStatCountDatatypeCleanup(child); childPreferencesDatatypeCleanup(child); childRulesDatatypeCleanup(child); childCustomStatsDatatypeCleanup(child); childMiscellaneousDatatypeCleanup(child); generatePronouns(child); function childAgeDatatypeCleanup(child) { child.birthWeek = Math.clamp(+child.birthWeek, 0, 51) || 0; if (child.age > 0) { child.actualAge = Math.clamp(+child.actualAge, V.minimumChildAge, Infinity) || child.age; /* if undefined, this sets to child.age */ delete child.age; } else { child.actualAge = Math.clamp(+child.actualAge, V.minimumChildAge, Infinity) || 3; } child.visualAge = Math.max(+child.visualAge, 0) || child.actualAge; child.physicalAge = Math.max(+child.physicalAge, 0) || child.actualAge; child.ovaryAge = Math.max(+child.ovaryAge, 0) || child.physicalAge; child.pubertyAgeXX = Math.max(+child.pubertyAgeXX, 0) || V.fertilityAge; child.pubertyAgeXY = Math.max(+child.pubertyAgeXY, 0) || V.potencyAge; } function childPhysicalDatatypeCleanup(child) { if (typeof child.nationality !== "string") { child.nationality = "child"; } if (typeof child.race !== "string") { nationalityToRace(child); } if (typeof child.origRace !== "string") { child.origRace = child.race; } if (typeof child.skin !== "string") { child.skin = "light"; } if (typeof child.origSkin !== "string") { child.origSkin = child.skin; } if (typeof child.minorInjury !== "string") { child.minorInjury = 0; } if (typeof child.health === "number") { const condition = child.health; child.health = {}; child.health.condition = condition; } child.health.condition = Math.clamp(+child.health.condition, -100, 100) || 0; child.health.shortDamage = Math.max(+child.health.shortDamage, 0) || 0; child.health.longDamage = Math.max(+child.health.longDamage, 0) || 0; child.health.illness = Math.max(+child.health.illness, 0) || 0; child.health.tired = Math.clamp(+child.health.tired, 0, 100) || 0; child.muscles = Math.clamp(+child.muscles, -100, 100) || 0; child.weight = Math.clamp(+child.weight, -100, 200) || 0; child.waist = Math.clamp(+child.waist, -100, 100) || 0; child.height = Math.round(Math.max(+child.height, 0)) || Math.round(Height.mean(child)); child.shoulders = Math.clamp(+child.shoulders, -2, 2) || 0; child.hips = Math.clamp(+child.hips, -2, 3) || 0; } function childFaceDatatypeCleanup(child) { child.face = Math.clamp(+child.face, -100, 100) || 0; if (typeof child.faceShape !== "string") { child.faceShape = "normal"; } if (child.lips !== 0) { child.lips = Math.clamp(+child.lips, 0, 100) || 15; } } function childHairDatatypeCleanup(child) { if (typeof child.hColor !== "string") { child.hColor = "brown"; } if (typeof child.origHColor !== "string") { child.origHColor = child.hColor; } if (child.hLength !== 0) { child.hLength = Math.clamp(+child.hLength, 0, 300) || 60; } if (typeof child.hStyle !== "string") { child.hStyle = "long"; } child.haircuts = Math.clamp(+child.haircuts, 0, 1) || 0; child.bald = Math.clamp(+child.bald, 0, 1) || 0; if (typeof child.pubicHColor !== "string") { child.pubicHColor = child.hColor; } if (typeof child.pubicHStyle !== "string") { child.pubicHStyle = "neat"; } if (typeof child.underArmHColor !== "string") { child.underArmHColor = child.hColor; } if (typeof child.underArmHStyle !== "string") { child.underArmHStyle = "waxed"; } if (typeof child.eyebrowHColor !== "string") { child.eyebrowHColor = child.hColor; } if (typeof child.eyebrowHStyle !== "string") { child.eyebrowHStyle = "natural"; } if (typeof child.eyebrowFullness !== "string") { child.eyebrowFullness = "natural"; } } function childBoobsDatatypeCleanup(child) { child.boobs = Math.max(+child.boobs, 100) || 200; if (typeof child.boobShape !== "string") { child.boobShape = "normal"; } if (typeof child.nipples !== "string") { child.nipples = "cute"; } if (typeof child.nipplesAccessory !== "string") { child.nipplesAccessory = "none"; } child.areolae = Math.clamp(+child.areolae, 0, 4) || 0; if (typeof child.areolaeShape !== "string") { child.areolaeShape = "circle"; } child.lactation = Math.clamp(+child.lactation, 0, 2) || 0; child.lactationAdaptation = Math.clamp(+child.lactationAdaptation, 0, 100) || 0; } function childButtDatatypeCleanup(child) { if (child.butt !== 0) { child.butt = Math.clamp(+child.butt, 0, 20) || 1; } child.anus = Math.clamp(+child.anus, 0, 4) || 0; child.analArea = Math.max(+child.analArea, 0) || 0; } function childPregnancyDatatypeCleanup(child) { child.induce = Math.clamp(+child.induce, 0, 1) || 0; child.labor = Math.clamp(+child.labor, 0, 1) || 0; if (child.hasOwnProperty("cSec")) { if (child.cSec > 0) { App.Medicine.Modification.addScar(child, "belly", "c-section"); } delete child.cSec; } child.prematureBirth = Math.clamp(+child.prematureBirth, 0, 1) || 0; child.ovaries = Math.clamp(+child.ovaries, 0, 1) || 0; child.vasectomy = Math.clamp(+child.vasectomy, 0, 1) || 0; child.mpreg = Math.clamp(+child.mpreg, 0, 1) || 0; if (child.pregAdaptation !== 0) { child.pregAdaptation = Math.max(+child.pregAdaptation, 0) || 50; } child.pregSource = +child.pregSource || 0; if (typeof child.pregControl !== "string") { child.pregControl = "none"; } child.fertPeak = Math.clamp(+child.fertPeak, 0, 4) || 0; WombNormalizePreg(child); } function childBellyDatatypeCleanup(child) { child.bellySag = Math.max(+child.bellySag, 0) || 0; child.bellySagPreg = Math.max(+child.bellySagPreg, 0) || child.bellySag; SetBellySize(child); } function childGenitaliaDatatypeCleanup(child) { child.vagina = Math.clamp(+child.vagina, -1, 10) || 0; child.vaginaLube = Math.clamp(+child.vaginaLube, 0, 2) || 0; child.labia = Math.clamp(+child.labia, 0, 3) || 0; child.clit = Math.clamp(+child.clit, 0, 5) || 0; child.foreskin = Math.max(+child.foreskin, 0) || 0; child.dick = Math.max(+child.dick, 0) || 0; if (child.dick && child.prostate !== 0) { child.prostate = Math.clamp(+child.prostate, 0, 3) || 1; } else { child.prostate = Math.clamp(+child.prostate, 0, 3) || 0; } child.balls = Math.max(+child.balls, 0) || 0; if (child.scrotum !== 0) { child.scrotum = Math.max(+child.scrotum, 0) || child.balls; } } function childImplantsDatatypeCleanup(child) { child.ageImplant = Math.clamp(+child.ageImplant, 0, 1) || 0; child.faceImplant = Math.clamp(+child.faceImplant, 0, 100) || 0; child.lipsImplant = Math.clamp(+child.lipsImplant, 0, 100) || 0; child.voiceImplant = Math.clamp(+child.voiceImplant, -1, 1) || 0; child.boobsImplant = Math.max(+child.boobsImplant, 0) || 0; if (child.boobsImplant === 0) { child.boobsImplantType = "none"; } else if (child.boobsImplantType === "none") { child.boobsImplantType = "normal"; } child.breastMesh = Math.clamp(+child.breastMesh, 0, 1) || 0; child.buttImplant = Math.clamp(+child.buttImplant, 0, 3) || 0; if (child.buttImplant === 0) { child.buttImplantType = "none"; } else if (child.buttImplantType === "none") { child.buttImplantType = "normal"; } child.earImplant = Math.clamp(+child.earImplant, 0, 1) || 0; } function childPiercingsDatatypeCleanup(child) { child.earPiercing = Math.clamp(+child.earPiercing, 0, 2) || 0; child.nosePiercing = Math.clamp(+child.nosePiercing, 0, 2) || 0; child.eyebrowPiercing = Math.clamp(+child.eyebrowPiercing, 0, 2) || 0; child.lipsPiercing = Math.clamp(+child.lipsPiercing, 0, 2) || 0; child.tonguePiercing = Math.clamp(+child.tonguePiercing, 0, 2) || 0; child.nipplesPiercing = Math.clamp(+child.nipplesPiercing, 0, 2) || 0; child.areolaePiercing = Math.clamp(+child.areolaePiercing, 0, 2) || 0; child.corsetPiercing = Math.clamp(+child.corsetPiercing, 0, 1) || 0; child.navelPiercing = Math.clamp(+child.navelPiercing, 0, 2) || 0; child.clitPiercing = Math.clamp(+child.clitPiercing, 0, 3) || 0; child.vaginaPiercing = Math.clamp(+child.vaginaPiercing, 0, 2) || 0; child.dickPiercing = Math.clamp(+child.dickPiercing, 0, 2) || 0; child.anusPiercing = Math.clamp(+child.anusPiercing, 0, 2) || 0; } function childTattooDatatypeCleanup(child) { if (typeof child.shouldersTat !== "string") { child.shouldersTat = 0; } if (typeof child.lipsTat !== "string") { child.lipsTat = 0; } if (typeof child.boobsTat !== "string") { child.boobsTat = 0; } if (typeof child.armsTat !== "string") { child.armsTat = 0; } if (typeof child.backTat !== "string") { child.backTat = 0; } if (typeof child.stampTat !== "string") { child.stampTat = 0; } if (typeof child.buttTat !== "string") { child.buttTat = 0; } if (typeof child.vaginaTat !== "string") { child.vaginaTat = 0; } if (typeof child.dickTat !== "string") { child.dickTat = 0; } if (typeof child.anusTat !== "string") { child.anusTat = 0; } if (typeof child.legsTat !== "string") { child.legsTat = 0; } if (typeof child.bellyTat !== "string") { child.bellyTat = 0; } if (typeof child.custom.tattoo !== "string") { child.custom.tattoo = ""; } } function childCosmeticsDatatypeCleanup(child) { child.makeup = Math.clamp(+child.makeup, 0, 8) || 0; child.nails = Math.clamp(+child.nails, 0, 9) || 0; child.scars = Math.clamp(+child.scars, 0, 6) || 0; child.chastityAnus = Math.clamp(+child.chastityAnus, 0, 1) || 0; child.chastityPenis = Math.clamp(+child.chastityPenis, 0, 1) || 0; child.chastityVagina = Math.clamp(+child.chastityVagina, 0, 1) || 0; child.choosesOwnClothes = Math.clamp(+child.choosesOwnClothes, 0, 1) || 0; if (typeof child.clothes !== "string") { child.clothes = "no clothing"; } if (typeof child.collar !== "string") { child.collar = "none"; } if (typeof child.shoes !== "string") { child.shoes = "none"; } if (typeof child.eyewear !== "string") { child.eyewear = "none"; } if (typeof child.brand !== "object") { let brand = {}; if (child.brand !== 0) { brand["left buttock"] = child.brand; } child.brand = brand; } else if (typeof child.brand === "object") { // Make sure key and value are strings for (let [key, value] of Object.entries(child.brand)) { if (typeof key !== "string" || typeof value !== "string") { delete child.brand[key]; } } } if (typeof child.markings !== "string") { child.markings = "none"; } if (typeof child.bellyAccessory !== "string") { child.bellyAccessory = "none"; } if (typeof child.vaginalAccessory !== "string") { child.vaginalAccessory = "none"; } if (typeof child.vaginalAttachment !== "string") { child.vaginalAttachment = "none"; } if (typeof child.dickAccessory !== "string") { child.dickAccessory = "none"; } if (typeof child.legAccessory !== "string") { child.legAccessory = "none"; } if (typeof child.buttplug !== "string") { child.buttplug = "none"; } if (typeof child.buttplugAttachment !== "string") { child.buttplugAttachment = "none"; } if (typeof child.headAccessory !== "string") { child.headAccessory = "none"; } if (typeof child.rearAccessory !== "string") { child.rearAccessory = "none"; } if (typeof child.backAccessory !== "string") { child.backAccessory = "none"; } if (typeof child.faceAccessory !== "string") { child.faceAccessory = "none"; } if (typeof child.mouthAccessory !== "string") { child.mouthAccessory = "none"; } switch(child.collar) { case "porcelain mask": child.faceAccessory = child.collar; child.collar = "none"; break; case "bit gag": case "dildo gag": case "massive dildo gag": case "ball gag": case "ring gag": child.mouthAccessory = child.collar; child.collar = "none"; break; } } function childDietDatatypeCleanup(child) { if (typeof child.diet !== "string") { child.diet = "healthy"; } child.dietCum = Math.clamp(+child.dietCum, 0, 2) || 0; child.dietMilk = Math.clamp(+child.dietMilk, 0, 2) || 0; child.onDiet = Math.clamp(+child.onDiet, 0, 1) || 0; child.hormones = Math.clamp(+child.hormones, -2, 2) || 0; child.hormoneBalance = Math.clamp(+child.hormoneBalance, -400, 400) || 0; if (typeof child.drugs !== "string") { child.drugs = "no drugs"; } child.aphrodisiacs = Math.clamp(+child.aphrodisiacs, 0, 2) || 0; child.curatives = Math.clamp(+child.curatives, 0, 2) || 0; } function childPornDatatypeCleanup(child) { child.porn.feed = Math.clamp(+child.porn.feed, 0, 1) || 0; child.porn.viewerCount = Math.max(+child.porn.viewerCount, 0) || 0; child.porn.spending = Math.max(+child.porn.spending, 0) || 0; child.porn.prestige = Math.clamp(+child.porn.prestige, 0, 3) || 0; if (typeof child.porn.prestigeDesc !== "string") { child.porn.prestigeDesc = 0; } if (typeof child.porn.fameType !== "string") { child.porn.fameType = "none"; } if (typeof child.porn.focus !== "string") { child.porn.focus = "none"; } for (const genre of App.Porn.getAllGenres()) { child.porn.fame[genre.fameVar] = Math.max(+child.porn.fame[genre.fameVar], 0) || 0; } } function childRelationDatatypeCleanup(child) { child.mother = +child.mother || 0; child.father = +child.father || 0; child.canRecruit = Math.clamp(+child.canRecruit, 0, 1) || 0; child.relationship = Math.clamp(+child.relationship, -3, 5) || 0; child.relationshipTarget = Math.max(+child.relationshipTarget, 0) || 0; child.rivalryTarget = Math.max(+child.rivalryTarget, 0) || 0; child.rivalry = Math.clamp(+child.rivalry, 0, 3) || 0; } function childSkillsDatatypeCleanup(child) { child.skill.oral = Math.clamp(+child.skill.oral, 0, 100) || 0; child.skill.vaginal = Math.clamp(+child.skill.vaginal, 0, 100) || 0; child.skill.anal = Math.clamp(+child.skill.anal, 0, 100) || 0; child.skill.whoring = Math.clamp(+child.skill.whoring, 0, 100) || 0; child.skill.entertainment = Math.clamp(+child.skill.entertainment, 0, 100) || 0; child.skill.combat = Math.clamp(+child.skill.combat, 0, 1) || 0; child.skill.headGirl = Math.clamp(+child.skill.headGirl, 0, 200) || 0; child.skill.recruiter = Math.clamp(+child.skill.recruiter, 0, 200) || 0; child.skill.bodyguard = Math.clamp(+child.skill.bodyguard, 0, 200) || 0; child.skill.madam = Math.clamp(+child.skill.madam, 0, 200) || 0; child.skill.DJ = Math.clamp(+child.skill.DJ, 0, 200) || 0; child.skill.nurse = Math.clamp(+child.skill.nurse, 0, 200) || 0; child.skill.teacher = Math.clamp(+child.skill.teacher, 0, 200) || 0; child.skill.attendant = Math.clamp(+child.skill.attendant, 0, 200) || 0; child.skill.matron = Math.clamp(+child.skill.matron, 0, 200) || 0; child.skill.stewardess = Math.clamp(+child.skill.stewardess, 0, 200) || 0; child.skill.milkmaid = Math.clamp(+child.skill.milkmaid, 0, 200) || 0; child.skill.farmer = Math.clamp(+child.skill.farmer, 0, 200) || 0; child.skill.wardeness = Math.clamp(+child.skill.wardeness, 0, 200) || 0; child.skill.servant = Math.clamp(+child.skill.servant, 0, 200) || 0; child.skill.entertainer = Math.clamp(+child.skill.entertainer, 0, 200) || 0; child.skill.whore = Math.clamp(+child.skill.whore, 0, 200) || 0; } function childStatCountDatatypeCleanup(child) { child.counter.oral = Math.max(+child.counter.oral, 0) || 0; child.counter.vaginal = Math.max(+child.counter.vaginal, 0) || 0; child.counter.anal = Math.max(+child.counter.anal, 0) || 0; child.counter.publicUse = Math.max(+child.counter.publicUse, 0) || 0; child.counter.mammary = Math.max(+child.counter.mammary, 0) || 0; child.counter.penetrative = Math.max(+child.counter.penetrative, 0) || 0; child.counter.pitKills = Math.max(+child.counter.pitKills, 0) || 0; child.counter.milk = Math.max(+child.counter.milk, 0) || 0; child.counter.cum = Math.max(+child.counter.cum, 0) || 0; child.counter.births = Math.max(+child.counter.births, 0) || 0; child.counter.birthsTotal = Math.max(+child.counter.birthsTotal, 0) || child.counter.births; child.counter.laborCount = Math.max(+child.counter.laborCount, 0) || child.counter.birthsTotal; child.counter.PCChildrenFathered = Math.max(+child.counter.PCChildrenFathered, 0) || 0; child.counter.PCKnockedUp = Math.max(+child.counter.PCKnockedUp, 0) || 0; child.bodySwap = Math.max(+child.bodySwap, 0) || 0; } function childPreferencesDatatypeCleanup(child) { child.energy = Math.clamp(+child.energy, 0, 100) || 0; child.need = Math.max(+child.need, 0) || 0; child.attrXY = Math.clamp(+child.attrXY, 0, 100) || 0; child.attrXX = Math.clamp(+child.attrXX, 0, 100) || 0; child.attrKnown = Math.clamp(+child.attrKnown, 0, 1) || 0; child.fetishStrength = Math.clamp(+child.fetishStrength, 0, 100) || 0; child.fetishKnown = Math.clamp(+child.fetishKnown, 0, 1) || 0; } function childRulesDatatypeCleanup(child) { child.breedingMark = Math.clamp(+child.breedingMark, 0, 1) || 0; child.rudeTitle = Math.clamp(+child.rudeTitle, 0, 1) || 0; } function childCustomStatsDatatypeCleanup(child) { if (typeof child.custom.label !== "string") { child.custom.label = ""; } if (typeof child.custom.desc !== "string") { child.custom.desc = ""; } if (typeof child.custom.title !== "string") { child.custom.title = ""; } if (typeof child.custom.titleLisp !== "string") { child.custom.titleLisp = ""; } if (child.custom.image !== null) { if (typeof child.custom.image.filename !== "string") { child.custom.image = null; } } } function childMiscellaneousDatatypeCleanup(child) { child.weekAcquired = Math.max(+child.weekAcquired, 0) || 0; child.prestige = Math.clamp(+child.prestige, 0, 3) || 0; child.devotion = Math.clamp(+child.devotion, -100, 100) || 0; child.oldDevotion = Math.clamp(+child.oldDevotion, -100, 100) || 0; child.trust = Math.clamp(+child.trust, -100, 100) || 0; child.oldTrust = Math.clamp(+child.oldTrust, -100, 100) || 0; child.chem = Math.max(+child.chem, 0) || 0; child.addict = Math.max(+child.addict, 0) || 0; child.intelligence = Math.clamp(+child.intelligence, -100, 100) || 0; child.intelligenceImplant = Math.clamp(+child.intelligenceImplant, 0, 30) || 0; child.premature = Math.clamp(+child.premature, 0, 1) || 0; child.training = Math.clamp(+child.training, 0, 150) || 0; child.hears = Math.clamp(+child.hears, -2, 0) || 0; child.smells = Math.clamp(+child.smells, -1, 0) || 0; child.tastes = Math.clamp(+child.tastes, -1, 0) || 0; if (typeof child.earwear !== "string") { child.earwear = "none"; } if (child.voice !== 0) { child.voice = Math.clamp(+child.voice, 0, 3) || 1; } child.electrolarynx = Math.clamp(+child.electrolarynx, 0, 1) || 0; child.accent = Math.clamp(+child.accent, 0, 3) || 0; } }; App.Facilities.Nursery.InfantDatatypeCleanup = function(child) { "use strict"; ageDatatypeCleanup(child); physicalDatatypeCleanup(child); faceDatatypeCleanup(child); hairDatatypeCleanup(child); relationDatatypeCleanup(child); originDatatypeCleanup(child); generatePronouns(child); // old versions of FC assign overlapping IDs to infants and other slaves, which needs to be fixed // deconflict IDs between infants and older children/tank babies/adults by reassigning the infant's ID if (V.cribs.find((s) => s.ID === child.ID && (s.birthWeek !== child.birthWeek || s.actualAge !== child.actualAge)) !== undefined || V.slaves.find((s) => s.ID === child.ID) !== undefined || V.tanks.find((s) => s.ID === child.ID) !== undefined) { child.ID = generateSlaveID(); } function ageDatatypeCleanup(child) { child.birthWeek = Math.clamp(+child.birthWeek, 0, 51) || 0; child.actualAge = Math.clamp(+child.actualAge, V.minimumChildAge, Infinity) || 0; } function physicalDatatypeCleanup(child) { if (typeof child.nationality !== "string") { child.nationality = "child"; } if (typeof child.race !== "string") { nationalityToRace(child); } if (typeof child.skin !== "string") { child.skin = "light"; } child.weight = Math.clamp(+child.weight, -100, 200) || 0; } function faceDatatypeCleanup(child) { child.face = Math.clamp(+child.face, -100, 100) || 0; if (typeof child.faceShape !== "string") { child.faceShape = "normal"; } } function hairDatatypeCleanup(child) { if (typeof child.hColor !== "string") { child.hColor = "brown"; } if (typeof child.pubicHStyle !== "string") { child.pubicHStyle = "neat"; } if (typeof child.eyebrowHColor !== "string") { child.eyebrowHColor = child.hColor; } } function relationDatatypeCleanup(child) { child.mother = +child.mother || 0; child.father = +child.father || 0; } function originDatatypeCleanup(child) { if (typeof child.origin !== "string") { child.origin = `${capFirstChar(child.pronoun)} was born and raised in your arcology. `; } } };
MonsterMate/fc
src/facilities/nursery/nurseryDatatypeCleanup.js
JavaScript
mit
21,602
:: Nursery Discard Workaround [nobr] $activeSlave.slaveName has been given away to another arcology to be raised, never to be seen again. <br><br> <<set $returnTo = "Main">>
MonsterMate/fc
src/facilities/nursery/nurseryDiscardWorkaround.tw
tw
mit
176
App.Data.Facilities.nursery = { baseName: "nursery", genericName: null, jobs: { nanny: { position: "nanny", assignment: Job.NURSERY, publicSexUse: false, fuckdollAccepted: false } }, defaultJob: "nanny", manager: { position: "matron", assignment: Job.MATRON, careers: App.Data.misc.matronCareers, skill: "matron", publicSexUse: false, fuckdollAccepted: false, broodmotherAccepted: false, shouldWalk: true, shouldHold: true, shouldSee: true, shouldHear: true, shouldTalk: true, shouldThink: true, requiredDevotion: 51 } }; App.Entity.Facilities.NurseryNannyJob = class extends App.Entity.Facilities.FacilitySingleJob { /** * @param {App.Entity.SlaveState} slave * @returns {string[]} */ checkRequirements(slave) { let r = super.checkRequirements(slave); if (!App.Entity.Facilities.Job._isBrokenEnough(slave, 51, 21, -20, -95)) { r.push(App.Entity.Facilities.Job._stdBreakageMessage(slave)); } return r; } /** * @override */ get assignment() { return `work in ${this.facility.name}`; } }; App.Entity.Facilities.Nursery = class extends App.Entity.Facilities.SingleJobFacility { constructor() { super(App.Data.Facilities.nursery, { nanny: new App.Entity.Facilities.NurseryNannyJob() }); } // get capacity() { // return State.Variables.nurseryNannies; // } /** @override */ occupancyReport(long) { return long ? `${V.nurseryChildren}/${V.nursery} babies, ${this.hostedSlaves}/${V.nurseryNannies} nannies${this.manager.currentEmployee ? `, ${this.manager.desc.position}` : ""}` : `${V.nurseryChildren}/${V.nursery}, ${this.hostedSlaves}/${V.nurseryNannies}${this.manager.currentEmployee ? ", L" : ""}`; } }; App.Entity.facilities.nursery = new App.Entity.Facilities.Nursery();
MonsterMate/fc
src/facilities/nursery/nurseryFramework.js
JavaScript
mit
1,788
:: Nursery Report [nobr] <<includeDOM App.Facilities.Nursery.nurseryReport()>>
MonsterMate/fc
src/facilities/nursery/nurseryReport.tw
tw
mit
80
:: Nursery Retrieval Workaround [nobr] $readySlave.slaveName has been discharged from $nurseryName and is ready to become your slave. <br><br> <<set $nurseryChildren-->> <<includeDOM App.Desc.longSlave($readySlave)>> <<run newSlave($readySlave)>> <<set $nextLink = "AS Dump">> <<set $returnTo = "Main">> /* TODO: <<if $nurseryOrgans.length > 0>> <<for _i = 0; _i < $nurseryOrgans.length; _i++>> <<if $nurseryOrgans[_i].ID == $activeSlave.ID>> <<set _newOrgan = {type: $nurseryOrgans[_i].type, weeksToCompletion: $nurseryOrgans[_i].weeksToCompletion, ID: $activeSlave.ID}>> <<if _newOrgan.weeksToCompletion <= 0>> <<set $completedOrgans.push($nurseryOrgans[_i])>> <<else>> <<set $organs.push(_newOrgan)>> <</if>> <<set $nurseryOrgans.deleteAt(_i), _i-->> <</if>> <</for>> <</if>> */
MonsterMate/fc
src/facilities/nursery/nurseryRetrievalWorkaround.tw
tw
mit
814
:: Previous Child In Line <<silently>> <<set $i = $cribs.findIndex(function(c) { return c.ID === $activeChild.ID; })>> <<set $cribs[$i] = $activeChild>> /* save changes before switching */ <<if $i == 0>> <<set $activeChild = $cribs[$cribs.length - 1]>> <<if $activeChild.actualAge < 3>> <<goto "Infant Interact">> <<else>> <<goto "Child Interact">> <</if>> <<else>> <<set $activeChild = $cribs[$i-1]>> <<if $activeChild.actualAge < 3>> <<goto "Infant Interact">> <<else>> <<goto "Child Interact">> <</if>> <</if>> <</silently>>
MonsterMate/fc
src/facilities/nursery/previousChildInLine.tw
tw
mit
547
App.Facilities.Nursery.fChildOral = function fChildOral(child) { "use strict"; let r = ``; actX(child, "oral");// TODO: will this counts towards the total count? // TODO: all of this return r; }; App.Facilities.Nursery.fChildVaginal = function fChildVaginal(child) { "use strict"; let r = ``; actX(child, "vaginal");// TODO: will this counts towards the total count? // TODO: all of this return r; }; App.Facilities.Nursery.fChildAnal = function fChildAnal(child) { "use strict"; let r = ``; actX(child, "anal"); // TODO: all of this return r; }; App.Facilities.Nursery.fChildImpreg = function fChildImpreg(child) { const bonus = jsRandom(6, 20); let r = ``; if (child.mpreg) { actX(child, "anal", (bonus + 1)); } else { actX(child, "vaginal", (bonus + 1)); } // TODO: all of this return r; };
MonsterMate/fc
src/facilities/nursery/scenes/fChildWidgets.js
JavaScript
mit
839
/** * Displays a list of the children in the Nursery * @returns {DocumentFragment} */ App.Facilities.Nursery.childList = function childList() { const cribs = V.cribs; let frag = document.createDocumentFragment(); let r = []; if (V.nurseryChildren) { App.UI.DOM.appendNewElement("h3", frag, `Children in ${V.nurseryName}`, "indent"); const list = App.UI.DOM.appendNewElement("p", frag, '', "indent"); for (const child of cribs) { const weeksOwned = V.week - child.weekAcquired; const weeksLeft = (V.targetAgeNursery * 52) - weeksOwned; const {he, him, He} = getPronouns(child); const hr = document.createElement("hr"); hr.style.margin = "0"; list.appendChild(hr); if (child.actualAge < 3) { $(list).append(App.UI.DOM.link(SlaveFullName(child), (id) => V.activeChild = getChild(id), [child.ID], "Infant Interact")); $(list).append(App.Facilities.Nursery.InfantSummary(child)); } else { $(list).append(App.UI.DOM.link(SlaveFullName(child), (id) => V.activeChild = getChild(id), [child.ID], "Child Interact")); $(list).append(App.Facilities.Nursery.ChildSummary(child)); } if (child.actualAge >= 18) { if (child.targetLocation === "freedom") { V.freedSlaves.push(child); } V.readySlave = cribs.pluck(); r.push(`<<goto "Nursery Retrieval Workaround">>`); return r; } if (child.growTime <= 0 || child.actualAge >= V.targetAgeNursery) { const targetText = child.targetLocation === "slavery" ? `"Introduce ${him} to life as a slave"` : `"Set ${him} free"`; list.appendChild(document.createElement("br")); r.push(`${He} is ready to leave ${V.nurseryName} and ${child.targetLocation === "slavery" ? `join your ménage` : `become a free citizen`}. `); $(list).append(App.UI.DOM.passageLink(targetText, "Nursery Retrieval Workaround", () => { V.readySlave = child; })); } else { list.appendChild(document.createElement("br")); r.push(`${He} is to continue staying in ${V.nurseryName} for another ${years(weeksLeft)}. ${He} is destined for ${child.targetLocation} once ${he} is of age.`); } $(list).append(r.join(' ')); r = []; // reset for next child } } return frag; }; /** * Converts the infant object into a new child object * @param {object} child * @returns {object} */ App.Facilities.Nursery.infantToChild = function infantToChild(child) { child.abortionTat = -1; child.accent = 0; child.addict = 0; child.ageImplant = 0; child.arm = { left: new App.Entity.LimbState(), right: new App.Entity.LimbState() }; child.leg = { left: new App.Entity.LimbState(), right: new App.Entity.LimbState() }; child.analArea = 0; child.anus = 0; child.anusPiercing = 0; child.anusTat = 0; child.aphrodisiacs = 0; child.areolae = 0; child.areolaePiercing = 0; child.areolaeShape = "circle"; child.armAccessory = "none"; child.armsTat = 0; child.attrKnown = 0; child.attrXX = 0; child.attrXY = 0; child.backAccessory = "none"; child.backTat = 0; child.bald = 0; child.balls = 0; child.behavioralFlaw = "none"; child.belly = 0; child.bellyAccessory = "none"; child.bellyFluid = 0; child.bellyImplant = -1; child.bellyPreg = 0; child.bellySag = 0; child.bellySagPreg = 0; child.bellyTat = 0; child.bodySwap = 0; child.boobShape = "normal"; child.boobs = jsRandom(200, 500); child.boobsImplant = 0; child.boobsImplantType = "none"; child.boobsTat = 0; child.brand = {}; child.breastMesh = 0; child.breedingMark = 0; child.butt = jsRandom(0, 3); child.buttImplant = 0; child.buttImplantType = "none"; child.buttTat = 0; child.buttplug = "none"; child.buttplugAttachment = "none"; child.canRecruit = 0; child.chastityAnus = 0; child.chastityPenis = 0; child.chastityVagina = 0; child.chem = 0; child.choosesOwnClothes = 0; child.clit = jsRandom(0, 2); child.clitPiercing = 0; child.clone = 0; child.clothes = "no clothing"; child.collar = "none"; child.corsetPiercing = 0; child.counter = { PCChildrenFathered: 0, PCKnockedUp: 0, anal: 0, births: 0, birthsTotal: 0, cum: 0, laborCount: 0, mammary: 0, milk: 0, oral: 0, penetrative: 0, pitKills: 0, publicUse: 0, slavesFathered: 0, slavesKnockedUp: 0, vaginal: 0 }; child.curatives = 0; child.custom = { desc: "", hairVector: "", image: null, label: "", tattoo: "", title: "", titleLisp: "" }; child.daughters = 0; child.devotion = 40; // TODO: child.dick = 0; child.dickAccessory = "none"; child.dickPiercing = 0; child.dickTat = 0; child.diet = "healthy"; child.dietCum = 0; child.dietMilk = 0; child.drugs = "no drugs"; child.earImplant = 0; child.earPiercing = 0; child.earShape = "normal"; child.earT = "none"; child.earTColor = "hairless"; child.earwear = "none"; child.electrolarynx = 0; child.energy = 0; child.eyebrowFullness = "natural"; child.eyebrowHStyle = "natural"; child.eyebrowPiercing = 0; child.eyewear = "none"; child.faceImplant = 0; child.fertKnown = 1; child.fertPeak = 0; child.fetishKnown = 0; child.fetishStrength = 0; child.foreskin = 0; child.geneMods = { NCS: 0, rapidCellGrowth: 0 }; child.hLength = jsRandom(30, 70); child.hStyle = "long"; child.haircuts = 0; child.headAccessory = "none"; child.health = {}; setHealth(child, jsRandom(80, 100), 0, 0, 0, 0); child.hears = 0; child.heels = 0; child.height = jsRandom(85, 105); child.hips = 0; child.hormoneBalance = 0; child.hormones = 0; child.horn = "none"; child.hornColor = "none"; child.induce = 0; child.induceLactation = 0; child.intelligence = 100; child.intelligenceImplant = 0; child.labia = jsRandom(0, 2); child.labor = 0; child.lactation = 0; child.lactationAdaptation = 0; child.lactationDuration = 0; child.rules = new App.Entity.RuleState(); child.rules.lactation = "none"; child.legAccessory = "none"; child.legsTat = 0; child.lips = jsRandom(10, 30); child.lipsImplant = 0; child.lipsPiercing = 0; child.lipsTat = 0; child.rules.living = "normal"; child.makeup = 0; child.markings = "none"; child.minorInjury = 0; child.mpreg = 0; child.muscles = jsRandom(-10, 10); child.nails = 0; child.navelPiercing = 0; child.need = 0; child.nipples = "cute"; child.nipplesAccessory = "none"; child.nipplesPiercing = 0; child.nosePiercing = 0; child.oldDevotion = 0; child.oldTrust = 0; child.onDiet = 0; child.origRace = child.race; child.eye = new App.Entity.EyeState(); child.eye.origColor = child.eyeColor; child.origHColor = child.hColor; child.origSkin = child.skin; child.ovaries = child.genes === "XX" ? 1 : 0; child.ovaryAge = child.actualAge; /* eslint-disable camelcase */ child.override_Arm_H_Color = 0; child.override_Brow_H_Color = 0; child.override_Eye_Color = 0; child.override_H_Color = 0; child.override_Pubic_H_Color = 0; child.override_Race = 0; child.override_Skin = 0; /* eslint-enable camelcase */ child.physicalAge = child.actualAge; child.porn = new App.Entity.SlavePornPerformanceState(); child.pregAdaptation = 50; child.pregControl = "none"; child.pregData = { drugsEffect: 1, fetusRate: [1, 1, 1, 0.64, 0.6513, 0.6459, 0.644, 0.6393, 0.58, 0.51], fetusSize: [1, 3, 16, 25.6, 51, 60, 67.5, 71.6, 129.5, 130], fetusWeek: [0, 9, 20, 20, 40, 52, 64, 80, 384, 99999], minLiveBirth: 32, normalBirth: 40, normalOvaMax: 1, normalOvaMin: 1, sizeType: 0, type: "human" }; child.pregKnown = 0; child.pregSource = 0; child.pregType = 0; child.pregWeek = 0; child.premature = 0; child.prematureBirth = 0; child.prestige = 0; child.prostate = 0; child.pubertyAgeXX = 10; child.pubertyAgeXY = 12; child.pubertyXX = 1; child.pubicHColor = "black"; child.pubicHStyle = "bushy"; child.readyOva = 0; child.rearAccessory = "none"; child.relationship = 0; child.rules.relationship = "restrictive"; child.relationshipTarget = 0; child.rules.release = new App.Entity.ReleaseRulesState(); child.rivalry = 0; child.rivalryTarget = 0; child.rudeTitle = 0; child.scar = {}; child.scrotum = 0; child.shoes = "none"; child.shoulders = 0; child.shouldersTat = 0; child.sisters = 0; child.skill = { DJ: 0, anal: 0, attendant: 0, bodyguard: 0, combat: 0, entertainer: 0, entertainment: 0, farmer: 0, headGirl: 0, madam: 0, matron: 0, milkmaid: 0, nurse: 0, oral: 0, recruiter: 0, servant: 0, stewardess: 0, teacher: 0, vaginal: 0, wardeness: 0, whore: 0, whoring: 8 }; child.smells = 0; child.rules.speech = "restrictive"; child.stampTat = 0; child.rules.punishment = "situational"; child.rules.reward = "situational"; child.tail = "none"; child.tailColor = "none"; child.tailShape = "none"; child.tastes = 0; child.teeth = "baby"; child.tonguePiercing = 0; child.training = 0; child.trust = 0; child.underArmHStyle = "natural"; child.vagina = child.genes === "XX" ? 0 : -1; child.vaginaLube = 0; child.vaginaPiercing = 0; child.vaginaTat = 0; child.vaginalAccessory = "none"; child.vaginalAttachment = "none"; child.vasectomy = 0; child.visualAge = child.actualAge; child.voice = 1; child.voiceImplant = 0; child.waist = 0; child.weeksLeft = 0; child.weight = jsRandom(-10, 10); child.womb = []; child.wombImplant = "none"; resetEyeColor(child, "both"); generatePronouns(child); return child; }; /** * Allows the player to name the infant * FIXME: Does not currently work * @param {object} child * @returns {string} */ App.Facilities.Nursery.nameChild = function nameChild(child) { const PC = V.PC; const arcology = V.arcologies[0]; const girl = child.genes === "XX" ? "girl" : "boy"; let r = ``; /** @type {App.Entity.SlaveState} */ let father = 0; /** @type {App.Entity.SlaveState} */ let mother = 0; const {him, his, he} = getPronouns(child); if (child.father === -1 && child.mother === -1) { father = PC; mother = PC; } else { if (child.father === -1) { father = PC; mother = getSlave(child.mother); } else if (child.mother === -1) { father = getSlave(child.father); mother = PC; } else { father = getSlave(child.father); mother = getSlave(child.mother); } } function newChildName(child) { child.birthName = generateName(child.nationality, child.race, child.genes === "XY"); if (child.genes === "XY" && !V.allowMaleSlaveNames && isMaleName(child.birthName, child.nationality, child.race)) { child.slaveName = generateName(child.nationality, child.race, false); } else { child.slaveName = child.birthName; } } r += `You can name the new child, if you so desire. `; r += `<br><<textbox "${child.slaveName}" ${child.slaveName}>>`; r += App.UI.passageLink("Commit name", "Nursery Workaround", `${child.birthName = child.slaveName}, ${App.UI.replace("#naming", `You instruct ${V.assistant.name} to register the new ${girl} as "${child.slaveName}" in the slave registry.`)}`); r += `<br>`; r += App.UI.passageLink(`Have your PA assign ${him} a random name`, "Nursery Workaround", `${App.UI.replace("#naming", `${newChildName(child)}<br>${V.assistant.name} registers the new ${girl} as "${child.slaveName}" in your registry.`)}`); if (arcology.FSPastoralist !== "unset") { if (child.lactation > 0) { r += `<br> <<link "Have your PA assign ${him} a random cow name">> <<replace "#naming">>`; child.slaveName = setup.cowSlaveNames.random(); child.birthName = child.slaveName; r += `${V.assistant.name} registers the new ${girl} as "${child.slaveName}" in your registry. <</replace>> <</link>>`; } } if (arcology.FSChattelReligionist !== "unset") { r += `<br> <<link "Have your PA assign ${him} a random devotional name">> <<replace "#naming">>`; child.slaveName = setup.chattelReligionistSlaveNames.random(); child.birthName = child.slaveName; r += `${V.assistant.name} registers the new ${girl} as "${child.slaveName}" in your registry. <</replace>> <</link>>`; } if (arcology.FSRomanRevivalist !== "unset") { r += `<br> <<link "Have your PA assign ${him} a random Roman name">> <<replace "#naming">>`; child.slaveName = setup.romanSlaveNames.random(); child.birthName = child.slaveName; r += `${V.assistant.name} registers the new ${girl} as "${child.slaveName}" in your registry. <</replace>> <</link>>`; } else if (arcology.FSAztecRevivalist !== "unset") { r += `<br> <<link "Have your PA assign ${him} a random Aztec name">> <<replace "#naming">>`; child.slaveName = setup.aztecSlaveNames.random(); child.birthName = child.slaveName; r += `${V.assistant.name} registers the new ${girl} as "${child.slaveName}" in your registry. <</replace>> <</link>>`; } else if (arcology.FSEgyptianRevivalist !== "unset") { r += `<br> <<link "Have your PA assign ${him} a random ancient Egyptian name">> <<replace "#naming">>`; child.slaveName = setup.ancientEgyptianSlaveNames.random(); child.birthName = child.slaveName; r += `${V.assistant.name} registers the new ${girl} as "${child.slaveName}" in your registry. <</replace>> <</link>>`; } else if (arcology.FSEdoRevivalist !== "unset") { r += `<br> <<link "Have your PA assign ${him} a random feudal Japanese name">> <<replace "#naming">>`; child.slaveName = setup.edoSlaveNames.random(); child.birthName = child.slaveName; r += `${V.assistant.name} registers the new ${girl} as "${child.slaveName}" in your registry. <</replace>> <</link>>`; } if (arcology.FSDegradationist !== "unset") { r += `<br> <<link "Have your PA assign ${him} a degrading name">> <<replace "#naming">>`; DegradingName(child); child.birthName = child.slaveName; r += `${V.assistant.name} registers the new ${girl} as "${child.slaveName}" in your registry. <</replace>> <</link>>`; } if (mother !== PC && mother !== 0) { const {He2, he2, his2} = getPronouns(mother).appendSuffix('2'); if (mother.ID === V.ConcubineID) { r += `<br> <<link "Permit your Concubine to name _his2 daughter">> <<replace "#naming">>`; parentNames(mother, child); child.birthName = child.slaveName; r += `After some careful consideration, ${mother.slaveName} picks a name ${he2} thinks you might find attractive; from now on ${his2} daughter will be known as "${child.slaveName}". <</replace>> <</link>>`; } else if (mother.relationship === -3 && mother.devotion >= -20) { r += `<br> <<link "Permit your wife to name ${his2} daughter">> <<replace "#naming">>`; parentNames(mother, child); child.birthName = child.slaveName; r += `After some careful consideration, ${mother.slaveName} picks a name suitable for your daughter; from now on ${he2} will be known as "${child.slaveName}". <</replace>> <</link>>`; } else if (mother.ID === V.BodyguardID) { r += `<br> <<link "Permit your bodyguard to name ${his2} daughter">> <<replace "#naming">>`; parentNames(mother, child); child.birthName = child.slaveName; r += `After some careful consideration, ${mother.slaveName} decides on "${child.slaveName}" for ${his2} daughter. ${He2} hopes you'll find it fitting ${his} station. <</replace>> <</link>>`; } else if (mother.ID === V.HeadGirlID) { r += `<br> <<link "Permit your Head Girl to name ${his2} daughter">> <<replace "#naming">>`; parentNames(mother, child); child.birthName = child.slaveName; r += `After some careful consideration, ${mother.slaveName} decides on "${child.slaveName}" for ${his2} daughter, and hopes it will be a name your other slaves will learn to respect. <</replace>> <</link>>`; } else if (mother.devotion > 50 && mother.trust > 50) { r += `<br> <<link "Permit ${his} devoted mother to name ${his2} daughter">> <<replace "#naming">>`; parentNames(mother, child); child.birthName = child.slaveName; r += `After some careful consideration, ${mother.slaveName} picks a name ${he2} hopes you'll like; from now on ${his2} daughter will be known as "${child.slaveName}". <</replace>> <</link>>`; } } if (father !== PC && father !== 0 && father !== mother) { const {He2, he2, his2} = getPronouns(father).appendSuffix('2'); if (father.ID === V.ConcubineID) { r += `<br> <<link "Permit your Concubine to name ${his2} daughter">> <<replace "#naming">>`; parentNames(father, child); child.birthName = child.slaveName; r += `After some careful consideration, ${father.slaveName} picks a name ${he2} thinks you might find attractive; from now on ${his2} daughter will be known as "${child.slaveName}". <</replace>> <</link>>`; } else if (father.relationship === -3 && father.devotion >= -20) { r += `<br> <<link "Permit your wife to name ${his2} daughter">> <<replace "#naming">>`; parentNames(father, child); child.birthName = child.slaveName; r += `After some careful consideration, ${father.slaveName} picks a name suitable for your daughter; from now on ${he} will be known as "${child.slaveName}". <</replace>> <</link>>`; } else if (father.ID === V.BodyguardID) { r += `<br> <<link "Permit your bodyguard to name ${his2} daughter">> <<replace "#naming">>`; parentNames(father, child); child.birthName = child.slaveName; r += `After some careful consideration, ${father.slaveName} decides on "${child.slaveName}" for ${his2} daughter. ${He2} hopes you'll find it fitting ${his} station. <</replace>> <</link>>`; } else if (father.ID === V.HeadGirlID) { r += `<br> <<link "Permit your Head Girl to name ${his2} daughter">> <<replace "#naming">>`; parentNames(father, child); child.birthName = child.slaveName; r += `After some careful consideration, ${father.slaveName} decides on "${child.slaveName}" for ${his2} daughter, and hopes it will be a name your other slaves will learn to respect. <</replace>> <</link>>`; } else if (father.devotion > 50 && father.trust > 50) { r += `<br> <<link "Permit ${his} devoted father to name ${his2} daughter">> <<replace "#naming">>`; parentNames(father, child); child.birthName = child.slaveName; r += `After some careful consideration, ${father.slaveName} picks a name ${he2} hopes you'll like; from now on ${his2} daughter will be known as "${child.slaveName}". <</replace>> <</link>>`; } } return r; }; /** * Adds an infant to a the cribs * @param {App.Entity.InfantState} child */ App.Facilities.Nursery.newChild = function newChild(child) { child.ID = generateSlaveID(); child.actualAge = 0; child.birthWeek = 0; if (child.override_Race !== 1) { child.origRace = child.race; } if (child.override_H_Color !== 1) { child.hColor = getGeneticHairColor(child); } if (child.override_Arm_H_Color !== 1) { child.underArmHColor = getGeneticHairColor(child); } if (child.override_Pubic_H_Color !== 1) { child.pubicHColor = getGeneticHairColor(child); } if (child.override_Brow_H_Color !== 1) { child.eyebrowHColor = getGeneticHairColor(child); } if (child.override_Skin !== 1) { child.origSkin = getGeneticSkinColor(child); } /* eslint-disable camelcase*/ child.override_Race = 0; child.override_H_Color = 0; child.override_Arm_H_Color = 0; child.override_Pubic_H_Color = 0; child.override_Brow_H_Color = 0; child.override_Skin = 0; child.override_Eye_Color = 0; /* eslint-enable */ child.arm = { left: new App.Entity.LimbState(), right: new App.Entity.LimbState() }; child.leg = { left: new App.Entity.LimbState(), right: new App.Entity.LimbState() }; if (V.surnamesForbidden === 1) { child.slaveSurname = 0; } if (child.clone !== 0) { child.canRecruit = 0; } generatePronouns(child); child.origin = `$He was born and raised in your arcology. `; child.targetLocation = "slavery"; child.growTime = V.targetAgeNursery * 52; V.cribs.push(child); V.cribsIndices = App.Facilities.Nursery.cribsToIndices(); V.nurseryChildren++; }; /** * @param {App.Entity.ChildState[]} [cribs] * @returns {object.<number, number>} */ App.Facilities.Nursery.cribsToIndices = function cribsToIndices(cribs = V.cribs) { return cribs.reduce((acc, child, i) => { acc[child.ID] = i; return acc; }, {}); }; /** * Returns index in the children array for the given ID * @param {number} id child's ID * @returns {number} */ App.Facilities.Nursery.childIndexForID = function childIndexForID(id) { return V.cribsIndices[id]; }; /** * Removes the child using the child's ID * @param {number} index * @returns {Array} */ App.Facilities.Nursery.removeChild = function removeChild(index) { return V.cribs.deleteAt(index); }; /** * Displays a list of slaves with children eligible for the Nursery * FIXME: Does not currently work * @returns {string} */ App.Facilities.Nursery.nurserySort = function nurserySort() { const PC = V.PC; const SL = V.slaves.length; const arcology = V.arcologies[0]; const freeCribs = (V.nursery - V.cribs.length); let r = ``; let eligibility = 0; let sortNurseryList = V.sortNurseryList || "Unsorted"; let nurseryHasReservedChildren = false; let reservedChildrenNursery = FetusGlobalReserveCount("nursery"); r += `<br><i>Sorting:</i> <b><span id="ql-nursery-sort">${sortNurseryList}</span>.</b> `; r += `${App.UI.passageLink("Sort by Name", "Nursery", `${sortNurseryList = "Name"}, ${App.UI.replace(`#ql-nursery-sort`, sortNurseryList)}, ${byName()}`)} | `; r += `${App.UI.passageLink("Sort by Reserved Nursery Spots", "Nursery", `${sortNurseryList = "Reserved Nursery Spots"}, ${App.UI.replace(`#ql-nursery-sort`)} ${sortNurseryList}, ${byReservedSpots()}`)} | `; r += `${App.UI.passageLink("Sort by Pregnancy Week", "Nursery", `${sortNurseryList = "Pregnancy Week"}, ${App.UI.replace(`#ql-nursery-sort`, sortNurseryList)}, ${byPregnancyWeek()}`)} | `; r += `${App.UI.passageLink("Sort by Number of Children", "Nursery", `${sortNurseryList = "Number of Children"}, ${App.UI.replace(`#ql-nursery-sort`, sortNurseryList)}, ${byPregnancyCount()}`)}`; r += `<br>`; r += `<div id="ql-nursery">`; for (let i = 0; i < SL; i++) { const slave = V.slaves[i]; const {His, his} = getPronouns(slave); App.Utils.setLocalPronouns(slave); if (slave.preg > 0 && !slave.broodmother && slave.pregKnown && slave.eggType === "human") { if (slave.assignment !== Job.DAIRY && V.dairyPregSetting <= 0) { const slaveID = "slave-" + slave.ID; const WL = slave.womb.length; const reservedNursery = WombReserveCount(slave, "nursery"); const reservedIncubator = WombReserveCount(slave, "incubator"); const pregWeek = slave.pregWeek; const slaveName = SlaveFullName(slave); r += `<div class="possible" @id="${slaveID}" @data-preg-count="${WL}" @data-reserved-spots="${reservedNursery}" @data-preg-week="${pregWeek}" @data-name="${slaveName}">`; r += `${App.UI.SlaveDescriptionDialog(slave)} is ${pregWeek} weeks pregnant with `; switch (slave.pregSource) { case 0: r += `someone's${slave.preg <= 5 ? `, though it is too early to tell whose,` : ``}`; break; case -1: r += `your`; break; case -2: r += `a citizen's`; break; case -3: r += `your Master's`; break; case -4: r += `another arcology owner's`; break; case -5: r += `your client's`; break; case -6: r += `the Societal Elite's`; break; case -7: r += `the lab's`; break; case -9: r += `the Futanari Sister's`; break; default: if (slave.preg <= 5) { r += `someone's, though it is too early to tell whose,`; } else { let t = V.slaveIndices[slave.pregSource]; if (jsDef(t)) { r += `${V.slaves[t].slaveName}'s`; } } break; } r += ` ${WL > 1 ? `babies` : `baby`}. `; if (reservedNursery > 0) { nurseryHasReservedChildren = true; if (WL === 1) { r += `${His} child will be placed in ${V.nurseryName}. `; } else if (reservedNursery < WL) { r += `${reservedNursery} of ${his} children will be placed in ${V.nurseryName}. `; } else if (WL === 2) { r += `Both of ${his} children will be placed in ${V.nurseryName}. `; } else { r += `All ${reservedNursery} of ${his} children will be placed in ${V.nurseryName}. `; } if ((reservedIncubator + reservedNursery < WL) && (reservedChildrenNursery < freeCribs)) { r += `<br>&nbsp;&nbsp;&nbsp;&nbsp;`; r += App.UI.passageLink("Keep another child", "Nursery", `${WombAddToGenericReserve(slave, "nursery", 1)}`); if (reservedNursery > 0) { r += ` | ${App.UI.passageLink("Keep one less child", "Nursery", `${WombCleanGenericReserve(slave, "nursery", 1)}`)}`; } if (reservedNursery > 1) { r += ` | ${App.UI.passageLink(`Keep none of ${his} children`, "Nursery", `${WombCleanGenericReserve(slave, "nursery", 9999)}`)}`; } if (reservedChildrenNursery + WL - reservedNursery <= freeCribs) { r += ` | ${App.UI.passageLink(`Keep the rest of ${his} children`, "Nursery", `${WombAddToGenericReserve(slave, "nursery", 9999)}`)}`; } } else if (reservedNursery === WL || reservedChildrenNursery === freeCribs || reservedIncubator + reservedNursery === WL) { r += `<br>&nbsp;&nbsp;&nbsp;&nbsp;`; r += App.UI.passageLink("Keep one less child", "Nursery", `${WombCleanGenericReserve(slave, "nursery", 1)}`); if (reservedNursery > 1) { r += ` | ${App.UI.passageLink(`Keep none of ${his} children`, "Nursery", `${WombCleanGenericReserve(slave, "nursery", 9999)}`)}`; } } } else if (reservedChildrenNursery < freeCribs && freeCribs > WL) { if (WL - reservedIncubator === 0) { r += `<i>${His} children are already reserved for ${V.incubatorName}</i>`; r += `<br>&nbsp;&nbsp;&nbsp;&nbsp;`; r += App.UI.passageLink(`Keep ${his} child${WL > 1 ? `ren` : ``} here instead`, "Nursery", `${WombAddToGenericReserve(slave, "nursery", 1)}`); } else { r += `You have ${freeCribs === 1 ? `an ` : ``}<span class="lime">available room${freeCribs > 1 ? `s` : ``}.</span> `; r += `<br>&nbsp;&nbsp;&nbsp;&nbsp;`; r += App.UI.passageLink(`Keep ${WL > 1 ? `a` : `the`} child`, "Nursery", `${WombAddToGenericReserve(slave, "nursery", 1)}`); if (WL > 1 && (reservedChildrenNursery + WL - reservedNursery <= freeCribs)) { r += ` | ${App.UI.passageLink(`Keep all of ${his} children`, "Nursery", `${WombAddToGenericReserve(slave, "nursery", 9999)}`)}`; } } } else if (reservedChildrenNursery === freeCribs) { r += `<br>&nbsp;&nbsp;&nbsp;&nbsp;`; r += `You have <span class="red">no room for ${his} offspring.</span> `; } eligibility = 1; r += `</div>`; } } } r += `</div>`; $('div#ql-nursery').ready(byPreviousSort); if (!eligibility) { r += `<br>`; r += `<i>You have no pregnant slave bearing eligible children</i>`; } if (PC.pregKnown && (arcology.FSRestart === "unset" || V.eugenicsFullControl || (PC.pregSource !== -1 && PC.pregSource !== -6))) { const WL = PC.womb.length; let reservedIncubator = WombReserveCount(PC, "incubator"); let reservedNursery = WombReserveCount(PC, "nursery"); r += `<br><b><span class="pink">You're pregnant</span></b> and going to have ${WL === 1 ? `a baby. ` : pregNumberName(WL, 1)} `; if (reservedNursery > 0) { nurseryHasReservedChildren = true; if (WL === 1) { r += `Your child will be placed in ${V.nurseryName}.`; } else if (reservedNursery < WL) { r += `${reservedNursery} of your children will be placed in ${V.nurseryName}.`; } else if (WL === 2) { r += `Both of your children will be placed in ${V.nurseryName}.`; } else { r += `All ${reservedNursery} of your children will be placed in ${V.nurseryName}.`; } if (reservedNursery < WL && reservedChildrenNursery < freeCribs && reservedNursery - reservedIncubator > 0) { r += `<br>&nbsp;&nbsp;&nbsp;&nbsp;`; r += App.UI.passageLink("Keep another child", "Nursery", `${reservedNursery += 1}, ${reservedChildrenNursery += 1}`); if (reservedNursery > 0) { r += ` | ${App.UI.passageLink("Keep one less child", "Nursery", `${reservedNursery -= 1}, ${reservedChildrenNursery -= 1}`)}`; } if (reservedNursery > 1) { r += ` | ${App.UI.passageLink("Keep none of your children", "Nursery", `${reservedChildrenNursery -= reservedNursery}, ${reservedChildrenNursery = 0}`)}`; } if (reservedChildrenNursery + WL - reservedNursery <= freeCribs) { r += ` | ${App.UI.passageLink("Keep the rest of your children", "Nursery", `${reservedChildrenNursery += (WL - reservedNursery)}, ${reservedNursery += (WL - reservedNursery)}`)}`; } } else if (reservedNursery === WL || reservedChildrenNursery === freeCribs || reservedNursery - reservedIncubator >= 0) { r += `<br>&nbsp;&nbsp;&nbsp;&nbsp;`; r += App.UI.passageLink("Keep one less child", "Nursery", `${reservedNursery -= 1}, ${reservedChildrenNursery -= 1}`); if (reservedNursery > 1) { r += App.UI.passageLink("Keep none of your children", "Nursery", `${reservedChildrenNursery -= reservedNursery}, ${reservedNursery = 0}`); } } } else if (reservedChildrenNursery < freeCribs) { if (WL - reservedIncubator === 0) { r += `<i>Your child${WL > 1 ? `ren are` : ` is`} already reserved for ${V.incubatorName}</i>`; r += App.UI.passageLink(`Keep your child${WL > 1 ? `ren` : ``} here instead`, "Nursery", `${reservedNursery += WL}, ${reservedIncubator = 0}`); } else { r += `You have ${freeCribs === 1 ? `an ` : ``}<span class="lime">available room${freeCribs > 1 ? `s` : ``}. `; r += `<br>&nbsp;&nbsp;&nbsp;&nbsp;`; r += App.UI.passageLink(`Keep ${WL > 1 ? `a` : `your`} child`, "Nursery", `${reservedNursery += 1}, ${reservedChildrenNursery += 1}`); if (WL > 1 && (reservedChildrenNursery + WL - reservedNursery <= freeCribs)) { r += ` | ${App.UI.passageLink("Keep all of your children", "Nursery", `${reservedChildrenNursery += WL}, ${reservedNursery += WL}`)}`; } } } else if (reservedChildrenNursery === freeCribs) { r += `<br>&nbsp;&nbsp;&nbsp;&nbsp;`; r += `You have <span class="red">no room for your offspring.</span> `; } } if (reservedChildrenNursery || nurseryHasReservedChildren) { r += `<br>`; r += App.UI.passageLink("Clear all reserved children", "Nursery", `${V.slaves.forEach((slave) => WombCleanGenericReserve(slave, "nursery", 9999))}, ${WombCleanGenericReserve(PC, "nursery", 9999)}`); } function byName() { let sortedNurseryPossibles = $('#ql-nursery div.possible').detach(); sortedNurseryPossibles = sortDomObjects(sortedNurseryPossibles, 'data-name'); $(sortedNurseryPossibles).appendTo($('#ql-nursery')); } function byReservedSpots() { let sortedNurseryPossibles = $('#ql-nursery div.possible').detach(); sortedNurseryPossibles = sortDomObjects(sortedNurseryPossibles, 'data-reserved-spots'); $(sortedNurseryPossibles).appendTo($('#ql-nursery')); } function byPregnancyWeek() { let sortedNurseryPossibles = $('#ql-nursery div.possible').detach(); sortedNurseryPossibles = sortDomObjects(sortedNurseryPossibles, 'data-preg-week'); $(sortedNurseryPossibles).appendTo($('#ql-nursery')); } function byPregnancyCount() { let sortedNurseryPossibles = $('#ql-nursery div.possible').detach(); sortedNurseryPossibles = sortDomObjects(sortedNurseryPossibles, 'data-preg-count'); $(sortedNurseryPossibles).appendTo($('#ql-nursery')); } function byPreviousSort() { let sort = V.sortNurseryList; if (sort !== 'unsorted') { if (sort === 'Name') { sortNurseryPossiblesByName(); } else if (sort === 'Reserved Nursery Spots') { sortNurseryPossiblesByReservedSpots(); } else if (sort === 'Pregnancy Week') { sortNurseryPossiblesByPregnancyWeek(); } else if (sort === 'Number of Children') { sortNurseryPossiblesByPregnancyCount(); } } } return r; };
MonsterMate/fc
src/facilities/nursery/utils/nurseryUtils.js
JavaScript
mit
31,894
App.Data.Facilities.penthouse = { baseName: "penthouse", genericName: "Penthouse", jobs: { rest: { position: "Rest", assignment: Job.REST, publicSexUse: false, fuckdollAccepted: true }, chooseOwn: { position: "Choose own", assignment: Job.CHOICE, publicSexUse: false, fuckdollAccepted: false }, fucktoy: { position: "Fucktoy", assignment: Job.FUCKTOY, publicSexUse: false, fuckdollAccepted: true }, classes: { position: "Classes", assignment: Job.CLASSES, publicSexUse: false, fuckdollAccepted: false }, houseServant: { position: "House Servant", assignment: Job.HOUSE, publicSexUse: false, fuckdollAccepted: false }, whore: { position: "Whore", assignment: Job.WHORE, publicSexUse: true, fuckdollAccepted: false }, publicServant: { position: "Public Servant", assignment: Job.PUBLIC, publicSexUse: true, fuckdollAccepted: false }, subordinateSlave: { position: "Subordinate slave", assignment: Job.SUBORDINATE, publicSexUse: false, fuckdollAccepted: false }, cow: { position: "Milked", assignment: Job.MILKED, publicSexUse: false, fuckdollAccepted: false }, gloryhole: { position: "Gloryhole", assignment: Job.GLORYHOLE, publicSexUse: false, fuckdollAccepted: true }, confinement: { position: "Confinement", assignment: Job.CONFINEMENT, publicSexUse: false, fuckdollAccepted: true } }, defaultJob: "rest", manager: { position: "Recruiter", assignment: Job.RECRUITER, careers: App.Data.misc.recruiterCareers, skill: "recruiter", publicSexUse: false, fuckdollAccepted: false, broodmotherAccepted: false, shouldWalk: true, shouldHold: false, shouldSee: true, shouldHear: true, shouldTalk: true, shouldThink: true, requiredDevotion: 51 } }; App.Entity.Facilities.PenthouseJobs = { Classes: class extends App.Entity.Facilities.Job { checkRequirements(slave) { let r = super.checkRequirements(slave); if (slave.intelligenceImplant >= 15) { r.push(`${slave.slaveName} already has a basic education.`); } if (!App.Entity.Facilities.Job._isBrokenEnough(slave, -20, -50, -20, -51)) { r.push(`${slave.slaveName} is too resistant to learn.`); } if (slave.fetish === "mindbroken") { r.push(`${slave.slaveName}'s mind is fundamentally broken and can't learn.`); } return r; } }, HouseServant: class extends App.Entity.Facilities.Job { checkRequirements(slave) { let r = super.checkRequirements(slave); if (!App.Entity.Facilities.Job._isBrokenEnough(slave, -20, -50, -19, -51)) { r.push(App.Entity.Facilities.Job._stdBreakageMessage(slave)); } if (!canWalk(slave)) { r.push(`${slave.slaveName} can't walk and would be unable to properly clean.`); } if (!canSee(slave)) { r.push(`${slave.slaveName} is blind and would be unable to properly clean.`); } return r; } }, SubordinateSlave: class extends App.Entity.Facilities.Job { checkRequirements(slave) { let r = super.checkRequirements(slave); if (!App.Entity.Facilities.Job._isBrokenEnough(slave, -20, -50, -19, -51)) { r.push(App.Entity.Facilities.Job._stdBreakageMessage(slave)); } return r; } assignmentLinkElement(ID, passage, callback, linkText) { linkText = linkText || this.desc.position; return App.UI.DOM.assignmentLink(slaveStateById(ID), this.desc.assignment, "Subordinate Targeting", (slave, assignment) => { if (callback) { callback(slave, assignment); } V.AS = ID; V.returnTo = passage; }, linkText); } }, Cow: class extends App.Entity.Facilities.Job { checkRequirements(slave) { let r = super.checkRequirements(slave); if ((slave.lactation <= 0) && (slave.balls <= 0)) { r.push(`${slave.slaveName} is not lactating` + ((V.seeDicks > 0) ? ' or producing semen.' : '.')); } return r; } }, }; App.Entity.Facilities.Penthouse = class extends App.Entity.Facilities.Facility { constructor() { super(App.Data.Facilities.penthouse, { classes: new App.Entity.Facilities.PenthouseJobs.Classes(), houseServant: new App.Entity.Facilities.PenthouseJobs.HouseServant(), subordinateSlave: new App.Entity.Facilities.PenthouseJobs.SubordinateSlave(), cow: new App.Entity.Facilities.PenthouseJobs.Cow(), }); } /** Facility slave capacity * @override * @returns {number} */ get capacity() { return V.dormitory; } /** Number of already hosted slaves * @returns {number} */ get hostedSlaves() { return V.dormitoryPopulation; } /** Penthouse can be overcrowded, so it always has free space * @returns {boolean} */ get hasFreeSpace() { return true; } }; App.Entity.facilities.penthouse = new App.Entity.Facilities.Penthouse();
MonsterMate/fc
src/facilities/penthouse/penthouseFramework.js
JavaScript
mit
4,792
.pit-intro, .pit-section { margin-bottom: 1em; } .kill-slave-options, .kill-slave-relations, .kill-slave-cancel, .pit-assign, .pit-rename { margin-top: 1em; }
MonsterMate/fc
src/facilities/pit/pit.css
CSS
mit
162
App.Facilities.Pit.pit = function() { const frag = new DocumentFragment(); const nameCaps = capFirstChar(V.pit.name); V.nextButton = "Back to Main"; V.nextLink = "Main"; V.returnTo = "Pit"; V.encyclopedia = "Pit"; App.UI.DOM.appendNewElement("div", frag, intro(), "pit-intro"); frag.appendChild(audience()); if (V.pit.slaveFightingBodyguard) { App.UI.DOM.appendNewElement("div", frag, scheduled()); } else { frag.append(fighters(), lethality()); App.UI.DOM.appendNewElement("div", frag, App.UI.SlaveList.listSJFacilitySlaves(App.Entity.facilities.pit, passage(), false, {assign: "Select a slave to fight", remove: "Cancel a slave's fight", transfer: ""}), "pit-assign"); } App.UI.DOM.appendNewElement("div", frag, rename(), "pit-rename"); App.UI.SlaveList.ScrollPosition.restore(); return frag; function intro() { const frag = new DocumentFragment(); const desc = App.UI.DOM.appendNewElement("div", frag); const link = App.UI.DOM.makeElement("div", '', "indent"); const note = App.UI.DOM.makeElement("div", '', "note"); const count = App.Entity.facilities.pit.totalEmployeesCount; desc.append(`${nameCaps} is clean and ready, `); if (count > 2) { desc.append(`with a pool of slaves assigned to fight in the next week's bout.`); } else if (count === 1) { desc.append(`but only one slave is assigned to the week's bout.`); } else if (count > 0) { desc.append(`with slaves assigned to the week's bout.`); } else { desc.append(`but no slaves are assigned to fight.`); } link.append(App.UI.DOM.passageLink(`Decommission ${V.pit.name}`, "Main", () => { V.pit = null; // FIXME: fix this // @ts-ignore App.Arcology.cellUpgrade(V.building, App.Arcology.Cell.Market, "Pit", "Markets"); })); note.append(`${properTitle()}, slaves assigned here can continue their usual duties.`); desc.appendChild(link); desc.appendChild(note); return frag; } function audience() { const mainDiv = document.createElement("div"); const linkSpan = document.createElement("span"); const links = []; if (V.pit.audience === "none") { mainDiv.append(`Fights here are strictly private.`); links.push( App.UI.DOM.link("Open them for free", () => { V.pit.audience = "free"; App.UI.DOM.replace(mainDiv, audience); }), App.UI.DOM.link("Open them and charge admission", () => { V.pit.audience = "paid"; App.UI.DOM.replace(mainDiv, audience); }) ); } else if (V.pit.audience === "free") { mainDiv.append(`Fights here are free and open to the public.`); links.push( App.UI.DOM.link("Close them", () => { V.pit.audience = "none"; App.UI.DOM.replace(mainDiv, audience); }), App.UI.DOM.link("Charge admission", () => { V.pit.audience = "paid"; App.UI.DOM.replace(mainDiv, audience); }) ); } else { mainDiv.append(`Admission is charged to the fights here.`); links.push( App.UI.DOM.link("Close them", () => { V.pit.audience = "none"; App.UI.DOM.replace(mainDiv, audience); }), App.UI.DOM.link("Stop charging admission", () => { V.pit.audience = "free"; App.UI.DOM.replace(mainDiv, audience); }) ); } linkSpan.append(App.UI.DOM.generateLinksStrip(links)); mainDiv.appendChild(linkSpan); return mainDiv; } function fighters() { const mainDiv = document.createElement("div"); const linkSpan = document.createElement("span"); const links = []; if (S.Bodyguard || V.activeCanine || V.activeHooved || V.activeFeline) { if (V.pit.bodyguardFights) { mainDiv.append(`Your bodyguard ${S.Bodyguard.slaveName} will fight a slave selected from the pool at random.`); links.push(App.UI.DOM.link("Make both slots random", () => { V.pit.bodyguardFights = false; V.pit.animal = null; if (V.pit.fighterIDs.includes(V.BodyguardID)) { V.pit.fighterIDs.delete(V.BodyguardID); } App.UI.DOM.replace(mainDiv, fighters); })); // if (V.activeCanine || V.activeHooved || V.activeFeline) { // links.push(App.UI.DOM.link("Have a slave fight an animal", () => { // V.pit.bodyguardFights = false; // V.pit.animal = null; // if (V.pit.fighterIDs.includes(V.BodyguardID)) { // V.pit.fighterIDs.delete(V.BodyguardID); // } // App.UI.DOM.replace(mainDiv, fighters); // })); // } } else { if (V.pit.animal) { mainDiv.append(`A random slave will fight an animal.`); links.push( App.UI.DOM.link("Have them fight another slave", () => { V.pit.bodyguardFights = false; V.pit.animal = null; App.UI.DOM.replace(mainDiv, fighters); }), App.UI.DOM.link("Have them fight your bodyguard", () => { V.pit.bodyguardFights = true; V.pit.animal = null; App.UI.DOM.replace(mainDiv, fighters); })); } else { mainDiv.append(`Two fighters will be selected from the pool at random.`); if (S.Bodyguard) { links.push( App.UI.DOM.link("Guarantee your bodyguard a slot", () => { V.pit.bodyguardFights = true; V.pit.animal = null; App.UI.DOM.replace(mainDiv, fighters); }) ); } // if (V.activeCanine || V.activeHooved || V.activeFeline) { // links.push( // App.UI.DOM.link("Have a slave fight an animal", () => { // V.pit.bodyguardFights = false; // V.pit.animal = new FC.Facilities.Animal(); // App.UI.DOM.replace(mainDiv, fighters); // }) // ); // } } } } else { mainDiv.append(`Two fighters will be selected from the pool at random.`); } linkSpan.append(App.UI.DOM.generateLinksStrip(links)); mainDiv.append(linkSpan); return mainDiv; } function lethality() { const mainDiv = document.createElement("div"); const linkSpan = document.createElement("span"); if (V.pit.lethal) { if (V.pit.animal) { mainDiv.append(`The fighter will be armed with a sword and will fight to the death. `); linkSpan.append( App.UI.DOM.link("Nonlethal", () => { V.pit.lethal = false; App.UI.DOM.replace(mainDiv, lethality); }) ); } else { mainDiv.append(`Fighters will be armed with swords, and fights will be to the death. `); linkSpan.append( App.UI.DOM.link("Nonlethal", () => { V.pit.lethal = false; App.UI.DOM.replace(mainDiv, lethality); }) ); } } else { if (V.pit.animal) { mainDiv.append(`The slave will be restrained and will try to avoid becoming the animal's plaything. `); linkSpan.append( App.UI.DOM.link("Lethal", () => { V.pit.lethal = true; App.UI.DOM.replace(mainDiv, lethality); }) ); } else { mainDiv.append(`Fighters will use their fists and feet, and fights will be to submission. `); linkSpan.append( App.UI.DOM.link("Lethal", () => { V.pit.lethal = true; App.UI.DOM.replace(mainDiv, lethality); }) ); } } mainDiv.appendChild(linkSpan); if (!V.pit.lethal && !V.pit.animal) { mainDiv.appendChild(virginities()); } function virginities() { const mainDiv = document.createElement("div"); const boldSpan = App.UI.DOM.makeElement("span", ``, "bold"); const linkSpan = document.createElement("span"); const links = []; if (V.pit.virginities === "neither") { boldSpan.append(`No`); mainDiv.append(boldSpan, ` virginities of the loser will be respected.`); links.push( App.UI.DOM.link("Vaginal", () => { V.pit.virginities = "vaginal"; App.UI.DOM.replace(mainDiv, virginities); }), App.UI.DOM.link("Anal", () => { V.pit.virginities = "anal"; App.UI.DOM.replace(mainDiv, virginities); }), App.UI.DOM.link("All", () => { V.pit.virginities = "all"; App.UI.DOM.replace(mainDiv, virginities); }) ); } else if (V.pit.virginities === "vaginal") { boldSpan.append(`Vaginal`); mainDiv.append(boldSpan, ` virginity of the loser will be respected.`); links.push( App.UI.DOM.link("Neither", () => { V.pit.virginities = "neither"; App.UI.DOM.replace(mainDiv, virginities); }), App.UI.DOM.link("Anal", () => { V.pit.virginities = "anal"; App.UI.DOM.replace(mainDiv, virginities); }), App.UI.DOM.link("All", () => { V.pit.virginities = "all"; App.UI.DOM.replace(mainDiv, virginities); }) ); } else if (V.pit.virginities === "anal") { boldSpan.append(`Anal`); mainDiv.append(boldSpan, ` virginity of the loser will be respected.`); links.push( App.UI.DOM.link("Neither", () => { V.pit.virginities = "neither"; App.UI.DOM.replace(mainDiv, virginities); }), App.UI.DOM.link("Vaginal", () => { V.pit.virginities = "vaginal"; App.UI.DOM.replace(mainDiv, virginities); }), App.UI.DOM.link("All", () => { V.pit.virginities = "all"; App.UI.DOM.replace(mainDiv, virginities); }) ); } else { boldSpan.append(`All`); mainDiv.append(boldSpan, ` virginities of the loser will be respected.`); links.push( App.UI.DOM.link("Neither", () => { V.pit.virginities = "neither"; App.UI.DOM.replace(mainDiv, virginities); }), App.UI.DOM.link("Vaginal", () => { V.pit.virginities = "vaginal"; App.UI.DOM.replace(mainDiv, virginities); }), App.UI.DOM.link("Anal", () => { V.pit.virginities = "anal"; App.UI.DOM.replace(mainDiv, virginities); }) ); } linkSpan.append(App.UI.DOM.generateLinksStrip(links)); mainDiv.appendChild(linkSpan); return mainDiv; } return mainDiv; } function scheduled() { const mainDiv = document.createElement("div"); const linkSpan = document.createElement("span"); mainDiv.append(`You have scheduled one of your slaves to fight to the death this week. `, linkSpan); linkSpan.append(App.UI.DOM.link("Cancel it", () => { V.pit.slaveFightingBodyguard = null; App.UI.DOM.replace(mainDiv, scheduled); })); mainDiv.appendChild(linkSpan); return mainDiv; } function rename() { const frag = new DocumentFragment(); const renameDiv = App.UI.DOM.makeElement("div", '', "pit-rename"); const renameNote = App.UI.DOM.makeElement("span", '', "note"); renameDiv.append(`Rename ${V.pit.name}: `); renameNote.append(` Use a noun or similar short phrase`); renameDiv.append(App.UI.DOM.makeTextBox(V.pit.name, newName => { V.pit.name = newName; })); renameDiv.append(renameNote); frag.append(renameDiv); return frag; } }; App.Facilities.Pit.init = function() { /** @type {FC.Facilities.Pit} */ V.pit = { name: "the Pit", animal: null, audience: "free", bodyguardFights: false, fighterIDs: [], fought: false, lethal: false, slaveFightingBodyguard: null, virginities: "neither", }; };
MonsterMate/fc
src/facilities/pit/pit.js
JavaScript
mit
10,931
:: Pit [nobr jump-to-safe jump-from-safe] <<includeDOM App.Facilities.Pit.pit()>> /* <<if $activeCanine != 0 || $activeHooved != 0 || $activeFeline != 0>> <<switch $activeCanine.breed>> <<case "Beagle" "French Bulldog" "Poodle" "Yorkshire Terrier">> <<set _animalEligible = 0>> <<default>> <<set _animalEligible = 1>> <</switch>> <<if $pit.animalFights == 1>> <br> <<if $pit.lethal == 1>> <<if $pit.animalType == $activeCanine.type>> <<if $activeCanine.species != "dog">> Your slave will fight a ''$activeCanine.species''. $activeCanine.speciesCap <<if _HL > 0>> | [["" + $activeHooved.speciesCap + ""|Pit][$pit.animalType = "hooved"]]<</if>> <<if _FL > 0>> | <<if $activeFeline.species != "cat">> [["" + $activeFeline.speciesCap + ""|Pit][$pit.animalType = "feline"]] <<else>> //House cats are too small for your slave to fight// <</if>> <</if>> <<else>> <<if _animalEligible == 1>> Your slave will fight a ''$activeCanine.breed''. $activeCanine.breed <<if _HL > 0>> | [["" + $activeHooved.speciesCap + ""|Pit][$pit.animalType = "hooved"]]<</if>> <<if _FL > 0>> | <<if $activeFeline.species != "cat">> [["" + $activeFeline.speciesCap + ""|Pit][$pit.animalType = "feline"]] <<else>> //House cats are too small for your slave to fight// <</if>> <</if>> <<else>> //<<print $activeCanine.breed>>s are too small for your slave to fight// <<if _HL > 0>> | [["" + $activeHooved.speciesCap + ""|Pit][$pit.animalType = "hooved"]]<</if>> <<if _FL > 0>> | <<if $activeFeline.species != "cat">> [["" + $activeFeline.speciesCap + ""|Pit][$pit.animalType = "feline"]] <<else>> //House cats are too small for your slave to fight// <</if>> <</if>> <</if>> <</if>> <<elseif $pit.animalType == $activeHooved.type>> Your slave will fight a ''$activeHooved.species''. <<if _CL > 0>> <<if $activeCanine.species != "dog">> [["" + $activeCanine.speciesCap + ""|Pit][$pit.animalType = "canine"]] | <<else>> <<if _animalEligible == 1>> [["" + $activeCanine.breed + ""|Pit][$pit.animalType = "canine"]] | <<else>> //<<print $activeCanine.breed>>s are too small for your slave to fight// | <</if>> <</if>> <</if>> $activeHooved.speciesCap <<if _FL > 0>> | <<if $activeFeline.species != "cat">> [["" + $activeFeline.speciesCap + ""|Pit][$pit.animalType = "feline"]] <<else>> //House cats are too small for your slave to fight// <</if>> <</if>> <<elseif $pit.animalType == $activeFeline.type>> <<if $activeFeline.species != "cat">> Your slave will fight a ''$activeFeline.species''. <<else>> //House cats are too small for your slave to fight// <</if>> <<if _CL > 0>> <<if $activeCanine.species != "dog">> [["" + $activeCanine.speciesCap + ""|Pit][$pit.animalType = "canine"]] <<else>> <<if _animalEligible == 1>> [["" + $activeCanine.breed + ""|Pit][$pit.animalType = "canine"]] <<else>> //<<print $activeCanine.breed>>s are too small for your slave to fight// <</if>> <</if>> <</if>> <<if _HL > 0>> | [["" + $activeHooved.speciesCap + ""|Pit][$pit.animalType = "hooved"]] | <</if>> <<if $activeFeline.species != "cat">> $activeFeline.speciesCap <<else>> //House cats are too small for your slave to fight// <</if>> <<else>> Select an animal for your slave to fight. <<if _CL > 0>> <<if $activeCanine.species != "dog">> [["" + $activeCanine.speciesCap + ""|Pit][$pit.animalType = "canine"]] <<else>> <<if _animalEligible == 1>> [["" + $activeCanine.breed + ""|Pit][$pit.animalType = "canine"]] <<else>> //<<print $activeCanine.breed>>s are too small for your slave to fight// <</if>> <</if>> <</if>> <<if (_CL > 0 && _HL > 0) || (_CL > 0 && _FL > 0) || (_HL > 0 && _FL > 0)>> | <</if>> <<if _HL > 0>> [["" + $activeHooved.speciesCap + ""|Pit][$pit.animalType = "hooved"]] <</if>> <<if (_HL > 0 && _FL > 0)>> | <</if>> <<if _FL > 0>> <<if $activeFeline.species != "cat">> [["" + $activeFeline.speciesCap + ""|Pit][$pit.animalType = "feline"]] <<else>> //House cats are too small for your slave to fight// <</if>> <</if>> <</if>> <<elseif $pit.lethal == 0>> <<if $pit.animalType == $activeCanine.type>> <<if $activeCanine.species != "dog">> Your slave will try to avoid being used by a ''$activeCanine.species''. $activeCanine.speciesCap <<else>> <<if _animalEligible == 1>> Your slave will try to avoid being used by a ''$activeCanine.breed''. $activeCanine.breed <<if _HL > 0>> | [["" + $activeHooved.speciesCap + ""|Pit][$pit.animalType = "hooved"]]<</if>> <<if _FL > 0>> | <<if $activeFeline.species != "cat">> [["" + $activeFeline.speciesCap + ""|Pit][$pit.animalType = "feline"]] <<else>> //House cats are too small to use your slave// <</if>> <</if>> <<else>> //<<print $activeCanine.breed>>s are too small to use your slave// <<if _HL > 0>> | [["" + $activeHooved.speciesCap + ""|Pit][$pit.animalType = "hooved"]]<</if>> <<if _FL > 0>> | <<if $activeFeline.species != "cat">> [["" + $activeFeline.speciesCap + ""|Pit][$pit.animalType = "feline"]] <<else>> //House cats are too small to use your slave// <</if>> <</if>> <</if>> <</if>> <<if _HL > 0>> | [["" + $activeHooved.speciesCap + ""|Pit][$pit.animalType = "hooved"]]<</if>> <<if _FL > 0>> | <<if $activeFeline.species != "cat">> [["" + $activeFeline.speciesCap + ""|Pit][$pit.animalType = "feline"]] <<else>> //House cats are too small to use your slave// <</if>> <</if>> <<elseif $pit.animalType == $activeHooved.type>> Your slave will try to avoid being used by a ''$activeHooved.species''. <<if _CL > 0>> <<if $activeCanine.species != "dog">> [["" + $activeCanine.speciesCap + ""|Pit][$pit.animalType = "canine"]] | <<else>> <<if _animalEligible == 1>> [["" + $activeCanine.breed + ""|Pit][$pit.animalType = "canine"]] | <<else>> //<<print $activeCanine.breed>>s are too small for your slave to fight// | <</if>> <</if>> <</if>> $activeHooved.speciesCap <<if _FL > 0>> | <<if $activeFeline.species != "cat">> [["" + $activeFeline.speciesCap + ""|Pit][$pit.animalType = "feline"]] <<else>> //House cats are too small to use your slave// <</if>> <</if>> <<elseif $pit.animalType == $activeFeline.type>> <<if $activeFeline.species != "cat">> Your slave will try to avoid being used by a ''$activeFeline.species''. <<else>> //House cats are too small to use your slave// <</if>> <<if _CL > 0>> <<if $activeCanine.species != "dog">> [["" + $activeCanine.speciesCap + ""|Pit][$pit.animalType = "canine"]] <<else>> <<if _animalEligible == 1>> [["" + $activeCanine.breed + ""|Pit][$pit.animalType = "canine"]] <<else>> //<<print $activeCanine.breed>>s are too small for your slave to fight// <</if>> <</if>> <</if>> <<if _HL > 0>> | [["" + $activeHooved.speciesCap + ""|Pit][$pit.animalType = "hooved"]] | <</if>> <<if $activeFeline.species != "cat">> $activeFeline.speciesCap <<else>> //House cats are too small to use your slave// <</if>> <<else>> Select an animal for your slave to try to avoid. <<if _CL > 0>> <<if $activeCanine.species != "dog">> [["" + $activeCanine.speciesCap + ""|Pit][$pit.animalType = "canine"]] <<else>> <<if _animalEligible == 1>> [["" + $activeCanine.breed + ""|Pit][$pit.animalType = "canine"]] <<else>> //<<print $activeCanine.breed>>s are too small for your slave to fight// <</if>> <</if>> <</if>> <<if (_CL > 0 && _HL > 0) || (_CL > 0 && _FL > 0) || (_HL > 0 && _FL > 0)>> | <</if>> <<if _HL > 0>> [["" + $activeHooved.speciesCap + ""|Pit][$pit.animalType = "hooved"]] <</if>> <<if (_HL > 0 && _FL > 0)>> | <</if>> <<if _FL > 0>> <<if $activeFeline.species != "cat">> [["" + $activeFeline.speciesCap + ""|Pit][$pit.animalType = "feline"]] <<else>> //House cats are too small to use your slave// <</if>> <</if>> <</if>> <</if>> <<else>> <<set $pit.animalType = 0>> <</if>> <</if>> */
MonsterMate/fc
src/facilities/pit/pit.tw
tw
mit
8,686
App.Data.Facilities.pit = { baseName: "pit", genericName: null, jobs: { fighter: { position: "fighter", assignment: Job.PIT, /* pseudo-assignment for assignmentTransition/assignJob/removeJob */ publicSexUse: false, fuckdollAccepted: false, partTime: true } }, defaultJob: "fighter", manager: null }; App.Entity.Facilities.PitFighterJob = class extends App.Entity.Facilities.FacilitySingleJob { /** * @param {App.Entity.SlaveState} slave * @returns {string[]} */ checkRequirements(slave) { let r = super.checkRequirements(slave); if (slave.breedingMark === 1 && V.propOutcome === 1 && V.eugenicsFullControl !== 1 && V.arcologies[0].FSRestart !== "unset") { r.push(`${slave.slaveName} may not participate in combat.`); } if (slave.indentureRestrictions > 1) { r.push(`${slave.slaveName}'s indenture forbids fighting.`); } if ((slave.indentureRestrictions > 0) && (this.facility.option("lethal"))) { r.push(`${slave.slaveName}'s indenture forbids lethal fights.`); } return r; } /** * @param {App.Entity.SlaveState} slave * @returns {string[]} */ canEmploy(slave) { if (this.isEmployed(slave)) { return [`${slave.slaveName} is already assigned to fight in ${this.facility.name}.`]; } if (!this._facilityHasFreeSpace) { return [`Capacity of ${this.facility.name} exceeded.`]; } return this.checkRequirements(slave); } }; App.Entity.Facilities.Pit = class extends App.Entity.Facilities.SingleJobFacility { constructor() { super(App.Data.Facilities.pit, { fighter: new App.Entity.Facilities.PitFighterJob() }); } get capacity() { return V.pit ? Number.MAX_VALUE : null; } /** @override */ occupancyReport(long) { return `${this.hostedSlaves}${long ? ` ${this.job().desc.position}s` : ""}`; } }; App.Entity.facilities.pit = new App.Entity.Facilities.Pit();
MonsterMate/fc
src/facilities/pit/pitFramework.js
JavaScript
mit
1,864
App.Data.Facilities.schoolroom = { baseName: "schoolroom", genericName: null, jobs: { student: { position: "student", assignment: Job.SCHOOL, publicSexUse: false, fuckdollAccepted: false } }, defaultJob: "student", manager: { position: "schoolteacher", assignment: Job.TEACHER, careers: App.Data.misc.schoolteacherCareers, skill: "teacher", publicSexUse: false, fuckdollAccepted: false, broodmotherAccepted: false, shouldWalk: false, shouldHold: false, shouldSee: true, shouldHear: true, shouldTalk: true, shouldThink: true, requiredDevotion: 51 } }; App.Entity.Facilities.SchoolroomStudentJob = class extends App.Entity.Facilities.FacilitySingleJob { /** * @param {App.Entity.SlaveState} slave * @returns {string[]} */ checkRequirements(slave) { let r = super.checkRequirements(slave); if (!App.Entity.Facilities.Job._isBrokenEnough(slave, -20, -50, -20, -51)) { r.push(`${slave.slaveName} is too resistant to learn.`); } const maxSkill = 10 + this.facility.upgrade("Skills") * 20; // maximal skill value the school can teach if (((slave.intelligenceImplant >= 30 && V.schoolroomRemodelBimbo !== 1) || (slave.intelligenceImplant <= -15 && V.schoolroomRemodelBimbo === 1)) && (slave.voice === 0 || slave.accent + this.facility.upgrade("Language") <= 2) && (slave.skill.oral > maxSkill) && (slave.skill.whoring > maxSkill) && (slave.skill.entertainment > maxSkill) && (slave.skill.anal > maxSkill) && ((slave.vagina < 0) || (slave.skill.vaginal > maxSkill)) && ((tutorForSlave(slave) === null) || (V.tutorGraduate.includes(slave.ID)))) { r.push(`${slave.slaveName} has nothing left to learn.`); } if (slave.fetish === "mindbroken") { r.push(`${slave.slaveName}'s mind is fundamentally broken and can't learn`); } return r; } /** * @override */ get assignment() { return `study in ${this.facility.name}`; } }; App.Entity.Facilities.Schoolroom = class extends App.Entity.Facilities.SingleJobFacility { constructor() { super(App.Data.Facilities.schoolroom, { student: new App.Entity.Facilities.SchoolroomStudentJob() }); } /** Does the schoolroom decoration impart a language-learning bonus? * @returns {boolean} */ revivalistLanguageDecorationBonus() { const decorationBonus = { "Latin": "Roman Revivalist", "Nahuatl": "Aztec Revivalist", "Ancient Egyptian": "Egyptian Revivalist", "Japanese": "Edo Revivalist", "Arabic": "Arabian Revivalist", "Chinese": "Chinese Revivalist" }; const bonusDeco = decorationBonus[V.language]; return bonusDeco && V.schoolroomDecoration === bonusDeco; } }; App.Entity.facilities.schoolroom = new App.Entity.Facilities.Schoolroom();
MonsterMate/fc
src/facilities/schoolroom/schoolroomFramework.js
JavaScript
mit
2,720
App.Data.Facilities.servantsQuarters = { baseName: "servantsQuarters", genericName: "Servants' Quarters", jobs: { servant: { position: "servant", assignment: Job.QUARTER, publicSexUse: false, fuckdollAccepted: false } }, defaultJob: "servant", manager: { position: "stewardess", assignment: Job.STEWARD, careers: App.Data.misc.stewardessCareers, skill: "stewardess", publicSexUse: false, fuckdollAccepted: false, broodmotherAccepted: false, shouldWalk: true, shouldHold: true, shouldSee: true, shouldHear: true, shouldTalk: true, shouldThink: true, requiredDevotion: 51 } }; App.Entity.Facilities.ServantsQuartersServantJob = class extends App.Entity.Facilities.FacilitySingleJob { /** * @param {App.Entity.SlaveState} slave * @returns {string[]} */ checkRequirements(slave) { let r = super.checkRequirements(slave); if (!App.Entity.Facilities.Job._isBrokenEnough(slave, -20, -50, 20, -21)) { r.push(App.Entity.Facilities.Job._stdBreakageMessage(slave)); } if (!canWalk(slave)) { r.push(`${slave.slaveName} can't walk and would be unable to properly clean.`); } if (!canSee(slave)) { r.push(`${slave.slaveName} is blind and would be unable to properly clean.`); } return r; } /** * @override */ get assignment() { return `work in ${this.facility.name}`; } }; App.Entity.Facilities.ServantsQuartersStewardessJob = class extends App.Entity.Facilities.ManagingJob { /** * @param {App.Entity.SlaveState} slave * @returns {string[]} */ checkRequirements(slave) { let r = super.checkRequirements(slave); if (slave.intelligence + slave.intelligenceImplant < -50) { r.push(`${slave.slaveName} is not intelligent enough.`); } return r; } }; App.Entity.facilities.servantsQuarters = new App.Entity.Facilities.SingleJobFacility( App.Data.Facilities.servantsQuarters, { servant: new App.Entity.Facilities.ServantsQuartersServantJob() }, new App.Entity.Facilities.ServantsQuartersStewardessJob() );
MonsterMate/fc
src/facilities/servantsQuarters/servantsQuartersFramework.js
JavaScript
mit
2,011
App.Data.Facilities.spa = { baseName: "spa", genericName: null, jobs: { assignee: { position: "bather", assignment: Job.SPA, publicSexUse: false, fuckdollAccepted: false } }, defaultJob: "assignee", manager: { position: "attendant", assignment: Job.ATTENDANT, careers: App.Data.misc.attendantCareers, skill: "attendant", publicSexUse: false, fuckdollAccepted: false, broodmotherAccepted: false, shouldWalk: true, shouldHold: true, shouldSee: false, shouldHear: true, shouldTalk: false, shouldThink: true, requiredDevotion: 51 } }; App.Entity.Facilities.SpaAssigneeJob = class extends App.Entity.Facilities.FacilitySingleJob { /** * @param {App.Entity.SlaveState} slave * @returns {string[]} */ checkRequirements(slave) { let r = super.checkRequirements(slave); if ( slave.fetish !== "mindbroken" && ( slave.devotion < -20 || ( slave.health.tired <= 30 && slave.trust > 60 && slave.devotion > 60 && slave.sexualFlaw === "none" && slave.behavioralFlaw === "none" ) ) ) { r.push(`${slave.slaveName} will not benefit from time at ${this.facility.name}.`); } return r; } }; App.Entity.facilities.spa = new App.Entity.Facilities.SingleJobFacility( App.Data.Facilities.spa, { assignee: new App.Entity.Facilities.SpaAssigneeJob() } );
MonsterMate/fc
src/facilities/spa/spaFramework.js
JavaScript
mit
1,355
table.stats { width: 100%; padding-left: 20px; padding-right: 20px; } table.stats > tr.header { border-bottom: 2px solid white; } table.stats > tr.total { border-top: 1px solid white; } table.stats > tr > th.narrow { width: 10em; text-align: right; } table.stats > tr > th.wide { width: 20em; text-align: right; } table.stats-slave { width: 100%; font-size: 90%; line-height: 110%; } table.stats-slave > tr { border-bottom: 1px solid #aaa; border-left: none; border-right: none; border-top: none } table.stats-slave > tr > th.narrow { width: 11em; text-align: right; } table.stats-slave > tr > th.wide { width: 22em; text-align: right; } td.value { padding-right: 3px; text-align: right; } .decimalZero { opacity: 0.3; }
MonsterMate/fc
src/facilities/statistics.css
CSS
mit
753
App.Facilities.StatsHelper = class { /** Make a statistics table with given column labels * @param {string[]} columns - Array of four labels for data columns. The first is wider than the others (typically used for facility revenue). * @returns {HTMLTableElement} */ makeStatsTable(columns) { const table = document.createElement("table"); table.border = "1"; table.className = "stats"; const header = App.UI.DOM.appendNewElement("tr", table, "", "header"); App.UI.DOM.appendNewElement("th", header, "Items"); // first column, flexible width App.UI.DOM.appendNewElement("th", header, columns[0], "wide"); // "revenue" column, wider for (let i = 1; i < 4; ++i) { App.UI.DOM.appendNewElement("th", header, columns[i], "narrow"); // three additional narrow columns } return table; } /** Adds a value row to a stats table, with the given label and value cells * @param {HTMLTableElement} table * @param {string|Node} label * @param {HTMLTableCellElement[]} valueCells * @param {boolean} [totals] */ addValueRow(table, label, valueCells, totals) { const row = App.UI.DOM.appendNewElement("tr", table, undefined, totals ? "total" : undefined); const labelCell = App.UI.DOM.appendNewElement("td", row, label); if (totals) { labelCell.style.fontWeight = "bold"; } for (const cell of valueCells) { row.appendChild(cell); } } /** Makes a slave label * @param {string} slaveName * @param {string} customLabel * @returns {Node} */ makeSlaveLabel(slaveName, customLabel) { if (!customLabel) { return document.createTextNode(slaveName); } else { const frag = document.createDocumentFragment(); const label = App.UI.DOM.appendNewElement("span", frag, `(${customLabel}) `, "custom-label"); frag.appendChild(label); frag.appendChild(document.createTextNode(slaveName)); return frag; } } /** Makes a value cell * @param {string} type - "reputation" or "cash" * @param {number} value - numeric value * @param {object} [flags] * @param {boolean} [flags.forceNeg] - treat nonzero positive values as negative * @param {boolean} [flags.showSign] - display the sign * @param {boolean} [flags.showZero] - show the value, even if it's zero * @param {boolean} [flags.bold] - style in bold * @returns {HTMLTableCellElement} */ makeValueCell(type, value, flags = {}) { const cell = document.createElement("td"); cell.classList.add("value"); if (value !== 0 || flags.showZero) { // style appropriately if (value < 0 || flags.forceNeg) { cell.classList.add(type); // reputation or cash cell.classList.add("dec"); // loss } else if (value > 0) { cell.classList.add(type); // reputation or cash cell.classList.add("inc"); // gain } if (flags.bold) { cell.style.fontWeight = "bold"; } // set contents let prefix = ''; if (type === "cash") { prefix += '¤'; } if (flags.showSign) { if (flags.forceNeg) { // if the real value is negative, - sign will come from value.toFixed prefix += '-'; } else if (value > 0) { prefix += '+'; } else if (value === 0) { prefix += '±'; } } const fixedPrecision = type === "cash" ? 2 : 1; const parts = value.toFixed(fixedPrecision).split('.'); cell.appendChild(document.createTextNode(prefix + parts[0])); App.UI.DOM.appendNewElement("span", cell, '.' + parts[1], /^0+$/.test(parts[1]) ? "decimalZero" : undefined); } return cell; } /** Make an empty cell (for parity) * @returns {HTMLTableCellElement} */ makeEmptyCell() { return document.createElement("td"); } /** Make the customer cell (for the facility-specific slave details column) * @param {number} value * @returns {HTMLTableCellElement} */ makeCustomersCell(value) { const cell = document.createElement("td"); cell.classList.add("value"); if (value <= 0) { cell.textContent = "none"; cell.classList.add("red"); } else { cell.textContent = value.toString(); } return cell; } /** Make the production cell (for the facility-specific slave details column) * @param {number} milk * @param {number} cum * @param {number} fluid * @returns {HTMLTableCellElement} */ makeProductionCell(milk, cum, fluid) { const cell = document.createElement("td"); cell.classList.add("value"); if (milk || cum || fluid) { cell.textContent = `${milk}/${cum}/${fluid}`; } else { cell.textContent = `0/0/0`; } return cell; } /** Appends the slave stats row to the main stats table, and returns a reference to the slave stats table for later use. * @param {HTMLTableElement} statsTable * @param {string} caption * @param {string[]} columns - six column labels - slave type, facility-specific output details column, wide column, then three narrow columns * @returns {HTMLTableElement} */ makeSlaveStatsTable(statsTable, caption, columns) { const row = App.UI.DOM.appendNewElement("tr", statsTable); const bigCell = document.createElement("td"); bigCell.colSpan = 5; const label = App.UI.DOM.appendNewElement("span", bigCell, caption); label.style.fontWeight = "bold"; row.appendChild(bigCell); const table = document.createElement("table"); table.className = "stats-slave"; const header = App.UI.DOM.appendNewElement("tr", table, "", "header"); App.UI.DOM.appendNewElement("th", header, columns[0]); // first column, flexible width App.UI.DOM.appendNewElement("th", header, columns[1], "narrow"); // facility-specific output details App.UI.DOM.appendNewElement("th", header, columns[2], "wide"); // "revenue" column, wider for (let i = 3; i < 6; ++i) { App.UI.DOM.appendNewElement("th", header, columns[i], "narrow"); // three additional narrow columns } bigCell.appendChild(table); statsTable.appendChild(bigCell); return table; } }; App.Facilities.Brothel.Stats = (function() { const H = new App.Facilities.StatsHelper(); const assureList = [ "whoreIncome", "rep", "whoreCosts", "adsIncome", "maintenance", "adsCosts", "totalIncome", "totalExpenses", "profit" ]; /** Make the brothel slave revenue cell * @param {number} revenue * @param {number} adsIncome * @returns {HTMLTableCellElement} */ function makeRevenueCell(revenue, adsIncome) { function printCash(value, cell) { const parts = value.toFixed(2).split('.'); App.UI.DOM.appendNewElement("span", cell, '¤' + parts[0], ["cash", "inc"]); App.UI.DOM.appendNewElement("span", cell, '.' + parts[1], ["cash", "inc", "decimalPart"]); } const cell = document.createElement("td"); cell.classList.add("value"); printCash(revenue, cell); if (adsIncome > 0) { cell.appendChild(document.createTextNode(" (")); printCash(adsIncome, cell); cell.appendChild(document.createTextNode(" due to advertising)")); } return cell; } /** Generate the brothel statistics table * @param {boolean} showDetails * @returns {HTMLElement|DocumentFragment} */ function output(showDetails) { if (!V.showEconomicDetails) { return document.createDocumentFragment(); } else if (!V.facility || !V.facility.brothel) { return App.UI.DOM.makeElement("h4", `- No statistics for ${V.brothelName} gathered this week -`); } const b = V.facility.brothel; for (const prop of assureList) { b[prop] = b[prop] || 0; } const stats = H.makeStatsTable(["Revenue", "Expenses", "Net Income", "Rep. Change"]); H.addValueRow(stats, "Total whoring income", [ H.makeValueCell("cash", b.whoreIncome), H.makeEmptyCell(), H.makeValueCell("cash", b.whoreIncome), H.makeValueCell("reputation", b.rep, {showSign: true}) ]); H.addValueRow(stats, "Total whore living costs", [ H.makeEmptyCell(), H.makeValueCell("cash", b.whoreCosts, {forceNeg: true}), H.makeValueCell("cash", b.whoreCosts, {forceNeg: true, showSign: true}), H.makeEmptyCell() ]); if (showDetails) { const slaveStats = H.makeSlaveStatsTable(stats, "Whore details", ["Whore", "Customers", "Revenue", "Expenses", "Net Income", "Rep. Change"]); for (const record of b.income.values()) { const revenue = record.income + record.adsIncome; const netIncome = revenue - record.cost; H.addValueRow(slaveStats, H.makeSlaveLabel(record.slaveName, record.customLabel), [ H.makeCustomersCell(record.customers), makeRevenueCell(revenue, record.adsIncome), H.makeValueCell("cash", record.cost, {forceNeg: true}), H.makeValueCell("cash", netIncome), H.makeValueCell("reputation", record.rep, {showSign: true}) ]); } } if (b.adsIncome > 0) { H.addValueRow(stats, "Additional income", [ H.makeValueCell("cash", b.adsIncome), H.makeEmptyCell(), H.makeValueCell("cash", b.adsIncome), H.makeEmptyCell() ]); } H.addValueRow(stats, "Brothel maintenance", [ H.makeEmptyCell(), H.makeValueCell("cash", b.maintenance, {forceNeg: true}), H.makeValueCell("cash", b.maintenance, {forceNeg: true, showSign: true}), H.makeEmptyCell() ]); if (b.adsCosts > 0) { H.addValueRow(stats, "Advertising program", [ H.makeEmptyCell(), H.makeValueCell("cash", b.adsCosts, {forceNeg: true}), H.makeValueCell("cash", b.adsCosts, {forceNeg: true, showSign: true}), H.makeEmptyCell() ]); } H.addValueRow(stats, "Total", [ H.makeValueCell("cash", b.totalIncome), H.makeValueCell("cash", b.totalExpenses, {forceNeg: true}), H.makeValueCell("cash", b.profit, {bold: true}), H.makeValueCell("reputation", b.rep, {showSign: true, bold: true}) ], true); return stats; } return output; })(); App.Facilities.Club.Stats = (function() { const H = new App.Facilities.StatsHelper(); const assureList = [ "whoreIncome", "rep", "whoreCosts", "adsIncome", "maintenance", "adsCosts", "totalIncome", "totalExpenses", "profit" ]; /** Make the slut efficiency cell * @param {number} efficiency * @param {boolean} [bold] * @returns {HTMLTableCellElement} */ function makeEfficiencyCell(efficiency, bold) { const cell = document.createElement("td"); cell.classList.add("value"); if (bold) { cell.style.fontWeight = "bold"; } const parts = efficiency.toFixed(2).split('.'); const val = App.UI.DOM.appendNewElement("span", cell, parts[0], ["reputation", "inc"]); App.UI.DOM.appendNewElement("span", val, '.' + parts[1], /^0+$/.test(parts[1]) ? "decimalZero" : undefined); cell.appendChild(document.createTextNode(" rep/¤")); return cell; } /** Generate the Club statistics table * @param {boolean} showDetails * @returns {HTMLElement|DocumentFragment} */ function output(showDetails) { if (!V.showEconomicDetails) { return document.createDocumentFragment(); } else if (!V.facility || !V.facility.club) { return App.UI.DOM.makeElement("h4", `- No statistics for ${V.clubName} gathered this week -`); } const b = V.facility.club; for (const prop of assureList) { b[prop] = b[prop] || 0; } const stats = H.makeStatsTable(["Rep. Gain", "Expenses", "Rep/Expenses", "Extra Income"]); H.addValueRow(stats, "Total slut rep gain", [ H.makeValueCell("reputation", b.whoreIncome, {showSign: true}), H.makeEmptyCell(), H.makeEmptyCell(), H.makeValueCell("cash", b.rep) ]); H.addValueRow(stats, "Total slut living costs", [ H.makeEmptyCell(), H.makeValueCell("cash", b.whoreCosts, {forceNeg: true}), H.makeEmptyCell(), H.makeEmptyCell() ]); if (showDetails) { const slaveStats = H.makeSlaveStatsTable(stats, "Public slut details", ["Slut", "Customers", "Rep. Gain", "Expenses", "Rep/Expenses", "Extra Income"]); for (const record of b.income.values()) { const netIncome = record.income / record.cost; H.addValueRow(slaveStats, H.makeSlaveLabel(record.slaveName, record.customLabel), [ H.makeCustomersCell(record.customers), H.makeValueCell("reputation", record.income, {showSign: true, showZero: true}), H.makeValueCell("cash", record.cost, {forceNeg: true}), makeEfficiencyCell(netIncome), H.makeValueCell("cash", record.rep, {showZero: true}) ]); } } if (b.adsIncome > 0) { H.addValueRow(stats, "Additional rep gain", [ H.makeValueCell("reputation", b.adsIncome), H.makeEmptyCell(), H.makeEmptyCell(), H.makeEmptyCell() ]); } H.addValueRow(stats, "Club maintenance", [ H.makeEmptyCell(), H.makeValueCell("cash", b.maintenance, {forceNeg: true}), H.makeEmptyCell(), H.makeEmptyCell() ]); if (b.adsCosts > 0) { H.addValueRow(stats, "Advertising program", [ H.makeEmptyCell(), H.makeValueCell("cash", b.adsCosts, {forceNeg: true}), H.makeEmptyCell(), H.makeEmptyCell() ]); } H.addValueRow(stats, "Total", [ H.makeValueCell("reputation", b.totalIncome, {showSign: true}), H.makeValueCell("cash", b.totalExpenses, {forceNeg: true}), makeEfficiencyCell(b.profit, true), H.makeValueCell("cash", b.rep, {bold: true, showZero: true}) ], true); return stats; } return output; })(); App.Facilities.Arcade.Stats = (function() { const H = new App.Facilities.StatsHelper(); const assureList = [ "whoreIncome", "rep", "whoreCosts", "maintenance", "totalIncome", "totalExpenses", "profit" ]; /** Generate the arcade statistics table * @param {boolean} showDetails * @returns {HTMLElement|DocumentFragment} */ function output(showDetails) { if (!V.showEconomicDetails) { return document.createDocumentFragment(); } else if (!V.facility || !V.facility.arcade) { return App.UI.DOM.makeElement("h4", `- No statistics for ${V.arcadeName} gathered this week -`); } const b = V.facility.arcade; for (const prop of assureList) { b[prop] = b[prop] || 0; } const stats = H.makeStatsTable(["Revenue", "Expenses", "Net Income", "Rep. Change"]); H.addValueRow(stats, "Total arcade income", [ H.makeValueCell("cash", b.whoreIncome), H.makeEmptyCell(), H.makeValueCell("cash", b.whoreIncome), H.makeValueCell("reputation", b.rep, {showSign: true}) ]); H.addValueRow(stats, "Total fuckmeat living costs", [ H.makeEmptyCell(), H.makeValueCell("cash", b.whoreCosts, {forceNeg: true}), H.makeValueCell("cash", b.whoreCosts, {forceNeg: true, showSign: true}), H.makeEmptyCell() ]); if (showDetails) { const slaveStats = H.makeSlaveStatsTable(stats, "Fuckmeat details", ["Fuckmeat", "Customers", "Revenue", "Expenses", "Net Income", "Rep. Change"]); for (const record of b.income.values()) { const revenue = record.income + record.adsIncome; const netIncome = revenue - record.cost; H.addValueRow(slaveStats, H.makeSlaveLabel(record.slaveName, record.customLabel), [ H.makeCustomersCell(record.customers), H.makeValueCell("cash", revenue), H.makeValueCell("cash", record.cost, {forceNeg: true}), H.makeValueCell("cash", netIncome), H.makeValueCell("reputation", record.rep, {showSign: true}) ]); } } H.addValueRow(stats, "Arcade maintenance", [ H.makeEmptyCell(), H.makeValueCell("cash", b.maintenance, {forceNeg: true}), H.makeValueCell("cash", b.maintenance, {forceNeg: true, showSign: true}), H.makeEmptyCell() ]); H.addValueRow(stats, "Total", [ H.makeValueCell("cash", b.totalIncome), H.makeValueCell("cash", b.totalExpenses, {forceNeg: true}), H.makeValueCell("cash", b.profit, {bold: true}), H.makeValueCell("reputation", b.rep, {showSign: true, bold: true}) ], true); return stats; } return output; })(); App.Facilities.Dairy.Stats = (function() { const H = new App.Facilities.StatsHelper(); const assureList = [ "whoreIncome", "whoreCosts", "maintenance", "totalIncome", "totalExpenses", "profit" ]; /** Generate the arcade statistics table * @param {boolean} showDetails * @returns {HTMLElement|DocumentFragment} */ function output(showDetails) { if (!V.showEconomicDetails) { return document.createDocumentFragment(); } else if (!V.facility || !V.facility.dairy) { return App.UI.DOM.makeElement("h4", `- No statistics for ${V.dairyName} gathered this week -`); } const b = V.facility.dairy; for (const prop of assureList) { b[prop] = b[prop] || 0; } const stats = H.makeStatsTable(["Revenue", "Expenses", "Net Income", "Rep. Change"]); H.addValueRow(stats, "Total cow income", [ H.makeValueCell("cash", b.whoreIncome), H.makeEmptyCell(), H.makeValueCell("cash", b.whoreIncome), H.makeEmptyCell(), ]); H.addValueRow(stats, "Total cow living costs", [ H.makeEmptyCell(), H.makeValueCell("cash", b.whoreCosts, {forceNeg: true}), H.makeValueCell("cash", b.whoreCosts, {forceNeg: true, showSign: true}), H.makeEmptyCell() ]); if (showDetails) { const slaveStats = H.makeSlaveStatsTable(stats, "Cow details", ["Cow", "Milk/Cum/Fluids", "Revenue", "Expenses", "Net Income", "Rep. Change"]); for (const record of b.income.values()) { const netIncome = record.income - record.cost; H.addValueRow(slaveStats, H.makeSlaveLabel(record.slaveName, record.customLabel), [ H.makeProductionCell(record.milk, record.cum, record.fluid), H.makeValueCell("cash", record.income), H.makeValueCell("cash", record.cost, {forceNeg: true}), H.makeValueCell("cash", netIncome), H.makeEmptyCell() ]); } } H.addValueRow(stats, "Dairy maintenance", [ H.makeEmptyCell(), H.makeValueCell("cash", b.maintenance, {forceNeg: true}), H.makeValueCell("cash", b.maintenance, {forceNeg: true, showSign: true}), H.makeEmptyCell() ]); H.addValueRow(stats, "Total", [ H.makeValueCell("cash", b.totalIncome), H.makeValueCell("cash", b.totalExpenses, {forceNeg: true}), H.makeValueCell("cash", b.profit, {bold: true}), H.makeEmptyCell() ], true); return stats; } return output; })(); App.Facilities.Farmyard.Stats = (function() { const H = new App.Facilities.StatsHelper(); const assureList = [ "farmhandIncome", "farmhandCosts", "maintenance", "totalIncome", "totalExpenses", "food", "profit" ]; /** Generate the Farmyard statistics table * @param {boolean} showDetails * @returns {HTMLElement|DocumentFragment} */ function output(showDetails) { if (!V.showEconomicDetails) { return document.createDocumentFragment(); } else if (!V.facility || !V.facility.farmyard) { return App.UI.DOM.makeElement("h4", `- No statistics for ${V.farmyardName} gathered this week -`); } const b = V.facility.farmyard; for (const prop of assureList) { b[prop] = b[prop] || 0; } const stats = H.makeStatsTable(["Revenue", "Expenses", "Net Income", "Rep. Change"]); H.addValueRow(stats, "Total farmhand income", [ H.makeValueCell("cash", b.farmhandIncome), H.makeEmptyCell(), H.makeValueCell("cash", b.farmhandIncome), H.makeEmptyCell(), ]); H.addValueRow(stats, "Total farmhand living costs", [ H.makeEmptyCell(), H.makeValueCell("cash", b.farmhandCosts, {forceNeg: true}), H.makeValueCell("cash", b.farmhandCosts, {forceNeg: true, showSign: true}), H.makeEmptyCell() ]); if (showDetails) { const slaveStats = H.makeSlaveStatsTable(stats, "Farmhand details", ["Farmhand", "Milk/Cum/Fluids", "Revenue", "Expenses", "Net Income", "Rep. Change"]); for (const record of b.income.values()) { const netIncome = record.income - record.cost; H.addValueRow(slaveStats, H.makeSlaveLabel(record.slaveName, record.customLabel), [ H.makeProductionCell(record.milk, record.cum, record.fluid), H.makeValueCell("cash", record.income), H.makeValueCell("cash", record.cost, {forceNeg: true}), H.makeValueCell("cash", netIncome), H.makeEmptyCell() ]); } } H.addValueRow(stats, "Farmyard maintenance", [ H.makeEmptyCell(), H.makeValueCell("cash", b.maintenance, {forceNeg: true}), H.makeValueCell("cash", b.maintenance, {forceNeg: true, showSign: true}), H.makeEmptyCell() ]); H.addValueRow(stats, "Total", [ H.makeValueCell("cash", b.totalIncome), H.makeValueCell("cash", b.totalExpenses, {forceNeg: true}), H.makeValueCell("cash", b.profit, {bold: true}), H.makeEmptyCell() ], true); return stats; } return output; })();
MonsterMate/fc
src/facilities/statistics.js
JavaScript
mit
20,061
:: Wardrobe [nobr jump-to-safe jump-from-safe] <<set $nextButton = "Back", $nextLink = "Manage Penthouse">> <<includeDOM App.UI.WardrobeShopping("FS")>>
MonsterMate/fc
src/facilities/wardrobe/wardrobe.tw
tw
mit
155
.wardrobe-shopping-block { display: flex; flex-wrap: wrap; } .wardrobe-shopping-cell { display: inline-block; width: 20em; border: 1px solid var(--button-border-color); } .wardrobe-shopping-cell:hover { background: var(--button-hover-color) }
MonsterMate/fc
src/facilities/wardrobe/wardrobeShopping.css
CSS
mit
261
App.UI.WardrobeShopping = function() { const el = document.createElement("p"); let p; el.id = "wardrobe-shopping"; App.UI.DOM.appendNewElement("h1", el, `Slave Wardrobe`); let r = []; r.push(`The room containing all the clothes and accessories you have available to dress your slaves in, as well as the supplies and tools your tailor needs to resize them to better fit your slaves. Several mirrors are set up for a slave to try on outfits should they be allowed to dress themselves. The selection includes`); const ownItAll = ( App.Data.slaveWear.niceClothes.every((i) => isItemAccessible.entry(i.value, "clothing")) && App.Data.slaveWear.harshClothes.every((i) => isItemAccessible.entry(i.value, "clothing")) ); if (ownItAll) { r.push(`outfits from all manner of cultures and societies; not a single style eludes you.`); } else { r.push(`many styles of clothing ranging from exciting to mundane and sexy to practical.`); } if (V.boughtItem.shoes.heels === 1) { r.push(`A large variety of shoes are available to select from.`); } if (V.boughtItem.clothing.dildos === 1 && V.boughtItem.toys.gags === 1 && V.boughtItem.clothing.buttPlugs === 1) { r.push(`Sex toys of all kinds and shapes line the shelves.`); } else if (V.boughtItem.clothing.dildos === 1 || V.boughtItem.toys.gags === 1 || V.boughtItem.clothing.buttPlugs === 1 || V.boughtItem.clothing.buttPlugTails === 1 || V.boughtItem.clothing.vaginalAttachments === 1) { r.push(`Some sex toys line the shelves.`); } if (V.boughtItem.toys.buckets === 1) { r.push(`Several buckets of various sizes and a sturdy cup have been set aside for you in feeding slaves to their limit.`); } if (V.boughtItem.toys.enema === 1) { r.push(`A number of drums of specially formulated water for use in enemas line one of the walls.`); } if (V.boughtItem.toys.medicalEnema === 1) { r.push(`Alongside them, multiple drums of mixtures for use in medical enemas.`); } App.UI.DOM.appendNewElement("p", el, r.join(" "), "scene-intro"); App.UI.DOM.appendNewElement("h2", el, `Future Society styles`); el.append(categoryBlock("FS")); App.UI.DOM.appendNewElement("h2", el, `Future Society Revivalist styles`); el.append(categoryBlock("FSrevivalist")); App.UI.DOM.appendNewElement("h2", el, `Other`); el.append(categoryBlock("other")); App.UI.DOM.appendNewElement("h2", el, `Accessories`); p = document.createElement("p"); p.id = "accessory-block"; p.append(accessoryBlock()); el.append(p); return el; /** * * @param {*} category FS, FSrevivalist, or "other" */ function categoryBlock(category) { const data = App.Data.WardrobeShopping.Clothing[category]; const model = (V.seeDicks === 100) ? GenerateNewSlave("XY") : GenerateNewSlave("XX"); const el = document.createElement("p"); el.classList.add("wardrobe-shopping-block"); el.id = `id${category}`; Object.keys(data).forEach( (clothing) => { const cell = document.createElement("span"); cell.id = clothing; cell.append(createCell(clothing)); el.append(cell); }); return el; /** * Create individual cell for a piece of clothing, including the display model * @param {string} clothing * @param {string} oldOutfit The outfit last worn by the slave. This means that on cycling outfits, we won't immediately repeat */ function createCell(clothing, oldOutfit = "") { const el = document.createElement("div"); el.classList.add("wardrobe-shopping-cell"); el.onclick = () => { // Randomize devotion and trust a bit, so the model moves their arms and "poses" for the player. model.devotion = random(-10, 70); model.trust = random(30, 100); jQuery(`#${clothing}`).empty().append(createCell(clothing, model.clothes)); }; /** @type {wardrobeItem} */ const clothingObj = App.Data.WardrobeShopping.Clothing[category][clothing]; const cost = Math.trunc(clothingObj.cost * V.upgradeMultiplierTrade); let div; // If we have more than one possible outfit to showcase, make sure not to show the outfit we did last time. const clothesArray = clothingObj.contains.length > 1 ? clothingObj.contains.filter(item => item !== oldOutfit) : clothingObj.contains; // Get a randomly chosen piece of clothing from the set to display // This piece will also later be checked to see if we can purchase it or not. model.clothes = clothesArray[Math.floor(Math.random() * clothesArray.length)]; if (V.seeImages === 1) { // Some clothing is weird (looking at you, Egyptian necklace) if (clothingObj.hasOwnProperty("modelUpdate")) { Object.assign(model, clothingObj.modelUpdate); } App.UI.DOM.appendNewElement("div", el, App.Art.SlaveArtElement(model, 1, 0), ["imageRef", "smlImg"]); // Clean up our model. Fuck you, Egypt. if (clothingObj.hasOwnProperty("modelUpdate")) { for (const prop in clothingObj.modelUpdate) { model[prop] = "none"; } } } if (clothing !== "egypt" && !isItemAccessible.entry(model.clothes, "clothing") || (clothing === "egypt" && !isItemAccessible.entry("ancient Egyptian", "collar")) // Fuck Egypt ) { if (cost < V.cash) { App.UI.DOM.appendNewElement( "div", el, App.UI.DOM.link( `Order ${clothingObj.title}`, () => { if (cost < V.cash) { // Check again on click in case the link has become stale cashX(forceNeg(cost), "capEx"); V.boughtItem.clothing[clothing] = 1; } } ) ); App.UI.DOM.appendNewElement("div", el, ` Costs ¤${cost}`, "detail"); } else { div = App.UI.DOM.disabledLink( `Order ${clothingObj.title}`, [`Cannot afford ¤${cost}`] ); div.style.display = "inline"; // Fixes disabledLink el.append(div); App.UI.DOM.appendNewElement("div", el, `Costs ¤${cost}`, ["red", "detail"]); } } else { App.UI.DOM.appendNewElement("div", el, clothingObj.owned); } return el; } } function accessoryBlock() { const el = document.createElement("p"); for (const name in App.Data.WardrobeShopping.Accessories) { el.append(createLine(name)); } return el; function createLine(name) { const line = document.createElement("div"); const purchased = _.get(V.boughtItem, name); const obj = (App.Data.WardrobeShopping.Accessories[name]); const cost = Math.trunc(obj.cost * V.upgradeMultiplierTrade); let div = document.createElement("div"); if (purchased !== 0 && purchased !== 1) { throw `${name} set incorrectly or not found`; } if (obj.hasOwnProperty("requirements") && obj.requirements !== true) { return line; } if (!purchased) { if (cost < V.cash) { div.append( App.UI.DOM.link( `Order ${obj.title}`, () => { if (cost < V.cash) { // Check again on click in case the link has become stale cashX(forceNeg(cost), "capEx"); _.set(V.boughtItem, name, 1); } jQuery(`#accessory-block`).empty().append(accessoryBlock()); } ) ); if (cost > 0) { App.UI.DOM.appendNewElement("span", div, ` Costs ¤${cost}`, "detail"); } } else { div.append( App.UI.DOM.disabledLink( `Order ${obj.title}`, [`Cannot afford ¤${cost}`] ) ); App.UI.DOM.appendNewElement("span", div, ` Costs ¤${cost}`, ["red", "detail"]); } if (obj.hasOwnProperty("note")) { App.UI.DOM.appendNewElement("span", div, ` ${obj.note}`, "note"); } } else { div.append(obj.owned); } line.append(div); return line; } } };
MonsterMate/fc
src/facilities/wardrobe/wardrobeShopping.js
JavaScript
mit
7,587
App.Data.WardrobeShopping = {}; App.Data.WardrobeShopping.Clothing = { /** * @typedef {object} wardrobeItem * @property {string} title * @property {number} cost * @property {string} [note] italicize note about a purchase * @property {string[]} contains * @property {string} owned * @property {object} [modelUpdate] * @property {boolean} [requirements] requirements met */ /** * @type {Object.<string, wardrobeItem>} String will be the property checked to see if the item is owned. So for "bunny", it will check V.boughtItem.clothing["bunny"]. */ FS: { "bunny": { title: "a shipment of bunny suits", cost: 7500, contains: ["a bunny outfit"], owned: "You are well stocked with classic bunny suits and bowties.", }, "conservative": { title: "a shipment of conservative clothes", cost: 7500, contains: ["conservative clothing"], owned: "You are well stocked with modest outfits.", }, "bimbo": { title: "a shipment of outfits suitable for bimbos", cost: 7500, contains: ["a bimbo outfit"], owned: "You are well stocked with bimbo attire.", }, "courtesan": { title: "a shipment of courtesan dresses", cost: 7500, contains: ["a courtesan dress"], owned: "You are well stocked with courtesan dresses.", }, "chains": { title: "a shipment of chains", cost: 7500, contains: ["chains"], owned: "You are well stocked with various lengths of binding chains.", }, "western": { title: "a shipment of western outfits", cost: 7500, contains: ["Western clothing"], owned: "You are well stocked with cowgirl outfits.", }, "oil": { title: "a shipment of body oil", cost: 7500, contains: ["body oil"], owned: "You are well stocked with various body oils.", }, "lazyClothes": { title: "a shipment of comfortable, rather stretchy, clothes", cost: 7500, contains: ["stretch pants and a crop-top"], owned: "You are well stocked with various comfy pants and rather tight crop-tops.", }, "habit": { title: "a shipment of chattel habits", cost: 7500, contains: ["a chattel habit"], owned: "You are well stocked with habits from the chattel religion.", }, "maternityDress": { title: "a shipment of maternity dresses", cost: 7500, contains: ["a maternity dress"], owned: "You are well stocked with dresses specially tailored for pregnant women.", }, "maternityLingerie": { title: "a shipment of maternity lingerie", cost: 7500, contains: ["attractive lingerie for a pregnant woman"], owned: "You are well stocked with sexy silken lingerie designed for pregnant women.", }, }, FSrevivalist: { "egypt": { title: "a shipment of Egyptian necklaces", cost: 7500, contains: ["no clothing"], owned: "You are well stocked with ancient Egyptian necklaces.", modelUpdate: {collar: "ancient Egyptian"} }, "toga": { title: "a shipment of togas and stolas", cost: 7500, contains: ["a toga"], owned: "You are well stocked with fine roman-styled togas and stolas.", }, "huipil": { title: "a shipment of huipil", cost: 7500, contains: ["a huipil"], owned: "You are well stocked with exquisite Aztec huipils.", }, "kimono": { title: "a shipment of kimonos", cost: 7500, contains: ["a kimono"], owned: "You are well stocked with elegant Japanese kimonos.", }, "harem": { title: "a shipment of harem outfits", cost: 7500, contains: ["harem gauze"], owned: "You are well stocked with Arabic harem garb made from the finest available silks.", }, "qipao": { title: "a shipment of qipaos", cost: 7500, contains: ["a slutty qipao"], owned: "You are well stocked with slutty Chinese qipaos.", }, "imperialarmor": { title: "a shipment of bulky Imperial armor", cost: 12500, contains: ["Imperial Plate"], owned: "You are well stocked with spare sets of bulky powered armor of the same kind worn by your Imperial Knights.", }, "imperialsuit": { title: "a shipment of tight Imperial bodysuits", cost: 7500, contains: ["a tight Imperial bodysuit"], owned: "You are well stocked with tight-fitting cybernetic bodysuits clearly bearing your family crest.", }, }, other: { "military": { title: "a shipment of military themed clothing", cost: 5000, contains: ["a military uniform", "a red army uniform", "battlearmor", "battledress"], owned: "You are well stocked with a variety of military themed garb.", }, "cultural": { title: "a shipment of cultural outfits", cost: 15000, contains: ["a biyelgee costume", "a dirndl", "a hanbok", "a mounty outfit", "lederhosen"], owned: "You are well stocked with a variety of signature outfits from a variety of countries.", }, "middleEastern": { title: "a shipment of burqas and similar garb", cost: 5000, contains: ["a burqa", "a niqab and abaya"], owned: "You are well stocked with a number of burqas and similar clothing.", }, "casual": { title: "an extra large shipment of casual clothing", cost: 5000, contains: ["a button-up shirt and panties", "a button-up shirt", "a sweater and cutoffs", "a sweater and panties", "a sweater", "a t-shirt and jeans", "a t-shirt and panties", "a t-shirt", "a tank-top and panties", "a tank-top", "a tube top", "an oversized t-shirt", "cutoffs", "jeans", "leather pants and a tube top", "leather pants"], owned: "You are well stocked with casual clothing.", }, "career": { title: "a shipment of professional garments", cost: 2500, contains: ["a nice nurse outfit", "a police uniform", "nice business attire"], owned: "You are well stocked with a selection of professional outfits.", }, "dresses": { title: "a shipment of professionally tailored dresses", cost: 15000, contains: ["a ball gown", "a gothic lolita dress"], owned: "You are well stocked with a selection of fine dresses.", }, "bodysuits": { title: "a shipment of exotic bodysuits", cost: 7500, contains: ["a cybersuit", "a latex catsuit"], owned: "You are well stocked with a selection of bodysuits.", }, "underwear": { title: "a shipment of undergarments", cost: 5000, contains: ["a bra", "a skimpy loincloth", "a thong", "boyshorts", "kitty lingerie", "panties and pasties", "pasties"], owned: "You are well stocked with underwear.", }, "sports": { title: "a shipment of exercise wear", cost: 2500, contains: ["a sports bra", "sport shorts and a sports bra", "sport shorts"], owned: "You are well stocked with exercise wear.", }, "swimwear": { title: "a shipment of swimwear", cost: 3500, contains: ["a monokini", "a one-piece swimsuit"], owned: "You are well stocked with swimwear.", }, "pony": { title: "a shipment of specialized latex ponygirl outfits", cost: 10000, contains: ["a nice pony outfit", "a slutty pony outfit"], owned: "You are well stocked with ponygirl bodysuits.", }, "pol": { title: "a shipment of politically incorrect clothing", cost: 15000, contains: ["a klan robe", "a schutzstaffel uniform", "a slutty klan robe", "a slutty schutzstaffel uniform"], owned: "You are well stocked with a selection of outfits once considered distasteful.", }, "costume": { title: "a shipment of colorful and revealing costumes", cost: 15000, contains: ["a Santa dress"], owned: "You are well stocked with a variety of costume party supplies.", }, "pantsu": { title: "a large crate of panties from Japan", cost: 2500, contains: ["a striped bra", "striped panties", "striped underwear"], owned: "You have an impressive stash of panties and other striped underwear that may or may not be have at one point been used.", }, } }; /** * @type {Object.<string, wardrobeItem>} String will be the property checked to see if the item is owned. So for "bunny", it will check V.boughtItem.clothing["bunny"]. */ App.Data.WardrobeShopping.Accessories = { "shoes.heels": { title: "a shipment of platform shoes", cost: 7500, contains: ["platform heels"], owned: "You have shelves dedicated to your collection of platform shoes.", }, "clothing.belly": { title: "a shipment of fake pregnancy bellies", cost: 15000, contains: ["a small empathy belly"], owned: "You are well stocked with silicone pregnancy bellies modeled after variously sized women.", }, "toys.dildos": { title: "a shipment of extra long dildos and bullet vibes", cost: 10000, contains: ["long dildo"], owned: "You are well stocked with extra long dildos in a variety of sizes, as well as a good amount of bullet vibrators.", }, "toys.smartVibes": { title: `the "smart" variant of the bullet vibrators`, cost: 5000, contains: ["long dildo"], get requirements() { return V.boughtItem.toys.dildos !== 0; }, owned: `Some of the bullet vibes are of the "smart" variety, interfaced to the arcology's systems.`, }, "toys.vaginalAttachments": { title: "a shipment of vibrating dildo attachments", cost: 10000, contains: [], owned: "You are well stocked with attachments that allow dildos to vibrate.", }, "toys.smartVaginalAttachments": { title: `the "smart" variant of the vibrating dildo attachments`, cost: 5000, contains: [], get requirements() { return V.boughtItem.toys.vaginalAttachments !== 0; }, owned: `Some of the vibrating dildo attachments are of the "smart" variety, interfaced to the arcology's systems.`, }, "toys.buttPlugs": { title: "a shipment of extra long buttplugs", cost: 10000, contains: [], owned: "You are well stocked with extra long buttplugs in a variety of sizes.", }, "toys.buttPlugTails": { title: "a shipment of attachable tails", cost: 5000, contains: [], owned: "You are well stocked with tails to attach to your buttplugs.", }, "toys.gags": { title: "a shipment of massive dildo gags", cost: 5000, contains: [], owned: "You are well stocked with massive dildo gags.", }, "toys.buckets": { title: "everything you need to force-feed slaves", note: `Some supplies from the cafeteria and a slight adjustment to the feeder settings is all it would take.`, cost: 0, contains: [], owned: "You have everything you need in one place to force-feed slaves. You've also adjusted the feeders to cheaply produce filler food to save on money. However, said food is just empty calories and probably bad for a slave's waistline.", }, "toys.enema": { title: "enema supplies", cost: 5000, contains: [], owned: "You are well stocked with specially formulated liquids to be used safely for long term enemas along with the tools needed to keep a slave bloated for extended periods of time", }, "toys.medicalEnema": { title: `medical enema supplies`, cost: 5000, contains: [], get requirements() { return (V.boughtItem.toys.enema !== 0); }, owned: "You are also well stocked with drugs to be mixed with the enema water for use in medical enemas.", }, };
MonsterMate/fc
src/facilities/wardrobe/wardrobeShoppingData.js
JavaScript
mit
10,988
.encyclopedia.topic { font-weight: bold; }
MonsterMate/fc
src/gui/Encyclopedia/encyclopedia.css
CSS
mit
44
App.Encyclopedia.Dialog = (function() { /** Create a link to an encyclopedia dialog for a given article with the given text * @param {string} text Text for link * @param {string} article Encyclopedia article to link to * @returns {string} SugarCube link markup */ function makeLinkSC(text, article) { return App.UI.link(text, () => showArticleInDialog(article)); } /** Create a link to an encyclopedia dialog for a given article with the given text * @param {string} text Text for link * @param {string} article Encyclopedia article to link to * @returns {HTMLElement} DOM link element */ function makeLinkDOM(text, article) { return App.UI.DOM.link(text, () => showArticleInDialog(article)); } /** Show a given encyclopedia article in the encyclopedia dialog * @param {string} article */ function showArticleInDialog(article) { let origEncyclopedia = V.encyclopedia; if (Dialog.isOpen()) { Dialog.close(); } Dialog.setup("Encyclopedia", "encyclopedia"); V.encyclopedia = article; $(Dialog.body()).empty().wiki(jsInclude("Encyclopedia")); Dialog.open(); V.encyclopedia = origEncyclopedia; } return { linkSC: makeLinkSC, linkDOM: makeLinkDOM }; })();
MonsterMate/fc
src/gui/Encyclopedia/encyclopediaDialog.js
JavaScript
mit
1,211
/* TODO: add entries for Nursery */ App.Encyclopedia.Entries = (function() { /** * @param {string} topic * @returns {HTMLElement} */ function topic(topic) { return App.UI.DOM.makeElement("span", topic, ["encyclopedia", "topic"]); } /** * @param {string} linkText * @param {string} topic * @returns {HTMLElement} */ function encyLink(linkText, topic) { return App.Encyclopedia.Dialog.linkDOM(linkText, topic); } const entries = {}; entries.attendingClasses = () => App.UI.DOM.combineNodes(topic("Attending classes"), " is an assignment which educates the slave, raising intelligence if possible. Being educated raises value and is useful for some jobs and leadership positions."); entries.confinement = () => App.UI.DOM.combineNodes(topic("Confinement"), " is an assignment which accelerates breaking for disobedient slaves. If a slave isn't obedient enough to work and isn't ", encyLink("unhealthy", "Health"), " enough to need rest, this will make them useful sooner."); entries.fucktoy = () => App.UI.DOM.combineNodes(topic("Fucktoy service"), " is an assignment which keeps the slave close and under the player's eye. It's mostly just for fun, but fucktoys can improve reputation based on their beauty, and the player character's attention can be targeted to areas of the slave's body with possible fetish effects on happy slaves."); entries.gloryHole = () => App.UI.DOM.combineNodes(topic("Occupying a glory hole"), " is an assignment which makes money off of slaves regardless of their beauty, skills, or feelings; it's not fun or ", encyLink("healthy", "Health"), " but very powerful for extracting ¤ out of otherwise useless slaves."); entries.milking = () => { const fragment = document.createDocumentFragment(); fragment.append(topic("Getting milked"), " is an assignment which makes money from lactation based on a slave's breasts, ", encyLink("health", "Health"), " and hormonal status."); if (V.seeDicks > 0) { fragment.append(" Cows with balls will also give semen."); } fragment.append(` Creates profit quickly from slaves with big tits${V.seeDicks ? " or balls" : ""}.`); return fragment; }; entries.farming = function() { const fragment = document.createDocumentFragment(); fragment.append(topic("Farming"), " is an assignment which produces ", encyLink("food", "Food"), " from your slaves' hard work"); if (V.seeBestiality) { fragment.append(" and allows you to breed slaves with animals"); } fragment.append(". Can also reduce arcology upkeep with upgrades in the ", encyLink("Farmyard", "Farmyard")); return fragment; }; entries.publicService = () => App.UI.DOM.combineNodes(topic("Public Service"), " is an assignment which increases reputation based on a slave's beauty, sexual appeal, and skills. Very similar to whoring, but for reputation rather than money."); entries.rest = () => App.UI.DOM.combineNodes(topic("Rest"), " is an assignment mostly used to improve ", encyLink("health", "Health"), ". It can be useful to order slaves you wish to intensively modify to rest, since most modifications damage health. It will synergize with curative treatments, providing bonus healing when both are simultaneously applied."); entries.sexualServitude = () => App.UI.DOM.combineNodes(topic("Sexual servitude"), " is an assignment which pleases other slaves by forcing the slave to service them sexually. Useful for driving the targeted slave's ", encyLink("devotion", "Devotion"), " up quickly."); entries.servitude = () => App.UI.DOM.combineNodes(topic("Servitude"), " is an assignment which reduces your upkeep based on the slave's ", encyLink("devotion", "Devotion"), " Available at lower obedience than other jobs, is insensitive to the quality of a slave's body, and doesn't require skills; a good transitional assignment. Unusually, low sex drive is advantageous as a servant, since it reduces distraction. Lactating slaves are slightly better at this job, since they can contribute to their fellow slaves' nutrition."); entries.whoring = () => App.UI.DOM.combineNodes(topic("Whoring"), " is an assignment which makes money based on a slave's beauty, sexual appeal, and skills. Good whores take a long time to train and beautify but become very profitable."); return entries; })();
MonsterMate/fc
src/gui/Encyclopedia/encyclopediaEntries.js
JavaScript
mit
4,359
:: Related Links [nobr] /* pages asking the player to click a link for more information have no section heading */ <<if !["Being in Charge", "Body", "Fetishes", "Game Mods", "Inflation", "Leadership Positions", "Lolimod", "Lore", "Obtaining Slaves", "Paraphilias", "Playing Free Cities", "Skills", "Slave Assignments", "Slave Modification", "Slaves", "Terrain Types", "The X-Series Arcology"].includes($encyclopedia)>> <br><h3>Related Links</h3> <</if>> <<switch $encyclopedia>> /********** PLAYING FREE CITIES **********/ <<case "Design Your Master" "First Game Guide" "How to Play" "Keyboard Shortcuts" "Playing Free Cities" "The Arcology Interface" "Tips and Tricks">> <<= App.Encyclopedia.Dialog.linkSC("First Game Guide", "First Game Guide")>> | <<= App.Encyclopedia.Dialog.linkSC("How to Play", "How to Play")>> | <<= App.Encyclopedia.Dialog.linkSC("Keyboard Shortcuts", "Keyboard Shortcuts")>> | <<= App.Encyclopedia.Dialog.linkSC("The Arcology Interface", "The Arcology Interface")>> | <<= App.Encyclopedia.Dialog.linkSC("Tips and Tricks", "Tips and Tricks")>> | <<= App.Encyclopedia.Dialog.linkSC("Design Your Master", "Design Your Master")>> /********** BEING IN CHARGE **********/ <<case "Arcologies and Reputation" "Being in Charge" "Costs Summary" "PC Skills" "Random Events" "Rules Assistant" "Sexual Energy" "The Corporation">> <<= App.Encyclopedia.Dialog.linkSC("Arcologies and Reputation", "Arcologies and Reputation")>> | <<= App.Encyclopedia.Dialog.linkSC("Random Events", "Random Events")>> | <<= App.Encyclopedia.Dialog.linkSC("Costs Summary", "Costs Summary")>> | <<= App.Encyclopedia.Dialog.linkSC("Rules Assistant", "Rules Assistant")>> | <<= App.Encyclopedia.Dialog.linkSC("The Corporation", "The Corporation")>> | <<= App.Encyclopedia.Dialog.linkSC("Sexual Energy", "Sexual Energy")>> | <<= App.Encyclopedia.Dialog.linkSC("PC Skills", "PC Skills")>> /********** SLAVES **********/ <<case "Demand for Sex" "Devotion" "Drugs and Their Effects" "Enslaving People" "From Rebellious to Devoted" "Fuckdolls" "Gender" "Health" "Indentured Servants" "Lingua Franca" "Living Conditions" "Menial Slaves" "Nymphomania" "Slave Score (Attractiveness)" "Slave Score (Sexual)" "Slaves" "Trust">> <<= App.Encyclopedia.Dialog.linkSC("Enslaving People", "Enslaving People")>> | <<= App.Encyclopedia.Dialog.linkSC("Living Conditions", "Living Conditions")>> | <<= App.Encyclopedia.Dialog.linkSC("Health", "Health")>> | @@.hotpink;<<= App.Encyclopedia.Dialog.linkSC("Devotion", "From Rebellious to Devoted")>>@@ | @@.mediumaquamarine;<<= App.Encyclopedia.Dialog.linkSC("Trust", "Trust")>>@@ | <<= App.Encyclopedia.Dialog.linkSC("Drugs and Their Effects", "Drugs and Their Effects")>> | <<= App.Encyclopedia.Dialog.linkSC("Gender", "Gender")>> | <<= App.Encyclopedia.Dialog.linkSC("Nymphomania", "Nymphomania")>> | <<= App.Encyclopedia.Dialog.linkSC("Indentured Servants", "Indentured Servants")>> | <<= App.Encyclopedia.Dialog.linkSC("Menial Slaves", "Menial Slaves")>> | <<= App.Encyclopedia.Dialog.linkSC("Fuckdolls", "Fuckdolls")>> | <<= App.Encyclopedia.Dialog.linkSC("Lingua Franca", "Lingua Franca")>> | <<= App.Encyclopedia.Dialog.linkSC("Slave Score (Attractiveness)", "Slave Score (Attractiveness)")>> | <<= App.Encyclopedia.Dialog.linkSC("Slave Score (Sexual)", "Slave Score (Sexual)")>> | <<= App.Encyclopedia.Dialog.linkSC("Demand for Sex", "Demand for Sex")>> /********** OBTAINING SLAVES **********/ <<case "Direct Sales" "Household Liquidations" "Kidnapped Slaves" "Obtaining Slaves" "Pre-Owned Slaves" "Slave Schools" "Stables" "The Flesh Heap" "The Job Fulfillment Center">> <<= App.Encyclopedia.Dialog.linkSC("Kidnapped Slaves", "Kidnapped Slaves")>> | <<= App.Encyclopedia.Dialog.linkSC("Slave Schools", "Slave Schools")>> | <<= App.Encyclopedia.Dialog.linkSC("Stables", "Stables")>> | <<= App.Encyclopedia.Dialog.linkSC("Household Liquidations", "Household Liquidations")>> | <<= App.Encyclopedia.Dialog.linkSC("Direct Sales", "Direct Sales")>> | <<= App.Encyclopedia.Dialog.linkSC("Pre-Owned Slaves", "Pre-Owned Slaves")>> | <<= App.Encyclopedia.Dialog.linkSC("Random Events", "Random Events")>> | <<= App.Encyclopedia.Dialog.linkSC("The Flesh Heap", "The Flesh Heap")>> | <<= App.Encyclopedia.Dialog.linkSC("The Job Fulfillment Center", "The Job Fulfillment Center")>> | <<= App.Encyclopedia.Dialog.linkSC("Wetware CPUs", "Wetware CPUs")>> | <<= App.Encyclopedia.Dialog.linkSC("The Corporation", "The Corporation")>> /********** SLAVE LEADERS: **********/ <<case "Attendant" "Bodyguard" "Career Experience" "Concubine" "DJ" "Farmer" "Head Girl" "Leadership Positions" "Madam" "Matron" "Milkmaid" "Nurse" "Recruiter" "Schoolteacher" "Stewardess" "Wardeness">> <<= App.Encyclopedia.Dialog.linkSC("Leadership Positions", "Leadership Positions")>> | <<= App.Encyclopedia.Dialog.linkSC("Career Experience", "Career Experience")>> | <<= App.Encyclopedia.Dialog.linkSC("Attendant", "Attendant")>> | <<= App.Encyclopedia.Dialog.linkSC("Bodyguard", "Bodyguard")>> | <<= App.Encyclopedia.Dialog.linkSC("Concubine", "Concubine")>> | <<= App.Encyclopedia.Dialog.linkSC("DJ", "DJ")>> | <<= App.Encyclopedia.Dialog.linkSC("Farmer", "Farmer")>> | <<= App.Encyclopedia.Dialog.linkSC("Head Girl", "Head Girl")>> | <<= App.Encyclopedia.Dialog.linkSC("Madam", "Madam")>> | <<= App.Encyclopedia.Dialog.linkSC("Matron", "Matron")>> | <<= App.Encyclopedia.Dialog.linkSC("Milkmaid", "Milkmaid")>> | <<= App.Encyclopedia.Dialog.linkSC("Nurse", "Nurse")>> | <<= App.Encyclopedia.Dialog.linkSC("Recruiter", "Recruiter")>> | <<= App.Encyclopedia.Dialog.linkSC("Schoolteacher", "Schoolteacher")>> | <<= App.Encyclopedia.Dialog.linkSC("Stewardess", "Stewardess")>> | <<= App.Encyclopedia.Dialog.linkSC("Wardeness", "Wardeness")>> /********** SLAVE ASSIGNMENTS (COMMON): **********/ <<case "Attending Classes" "Confinement" "Fucktoy" "Glory Hole" "Milking" "Farming" "Public Service" "Rest" "Sexual Servitude" "Servitude" "Slave Assignments" "Whoring">> <<= App.Encyclopedia.Dialog.linkSC("Common Assignments", "Slave Assignments")>> | <<= App.Encyclopedia.Dialog.linkSC("Career Experience", "Career Experience")>> | <<= App.Encyclopedia.Dialog.linkSC("Attending Classes", "Attending Classes")>> | <<= App.Encyclopedia.Dialog.linkSC("Confinement", "Confinement")>> | <<= App.Encyclopedia.Dialog.linkSC("Farming", "Farming")>> | <<= App.Encyclopedia.Dialog.linkSC("Fucktoy", "Fucktoy")>> | <<= App.Encyclopedia.Dialog.linkSC("Glory Hole", "Glory Hole")>> | <<= App.Encyclopedia.Dialog.linkSC("Milking", "Milking")>> | <<= App.Encyclopedia.Dialog.linkSC("Public Service", "Public Service")>> | <<= App.Encyclopedia.Dialog.linkSC("Rest", "Rest")>> | <<= App.Encyclopedia.Dialog.linkSC("Servitude, Sexual", "Sexual Servitude")>> | <<= App.Encyclopedia.Dialog.linkSC("Servitude", "Servitude")>> | <<= App.Encyclopedia.Dialog.linkSC("Whoring", "Whoring")>> /********** SLAVE BODY: **********/ <<case "Anuses" "Areolae" "Body" "Breasts" "Butts" "Clits" "Dicks" "Ethnicity" "Faces" "Height" "Hips" "Lactation" "Lips" "Musculature" "Nipples" "Ovaries" "Skin Distinctions" "Teeth" "Testicles" "Vaginas" "Waist" "Weight" "Hormones (XX)" "Hormones (XY)">> <<= App.Encyclopedia.Dialog.linkSC("Anuses", "Anuses")>> | <<= App.Encyclopedia.Dialog.linkSC("Areolae", "Areolae")>> | <<= App.Encyclopedia.Dialog.linkSC("Breasts", "Breasts")>> | <<= App.Encyclopedia.Dialog.linkSC("Butts", "Butts")>> | <<= App.Encyclopedia.Dialog.linkSC("Clits", "Clits")>> | <<= App.Encyclopedia.Dialog.linkSC("Dicks", "Dicks")>> | <<= App.Encyclopedia.Dialog.linkSC("Ethnicity", "Ethnicity")>> | <<= App.Encyclopedia.Dialog.linkSC("Faces", "Faces")>> | <<= App.Encyclopedia.Dialog.linkSC("Height", "Height")>> | <<= App.Encyclopedia.Dialog.linkSC("Hips", "Hips")>> | <<= App.Encyclopedia.Dialog.linkSC("Lactation", "Lactation")>> | <<= App.Encyclopedia.Dialog.linkSC("Lips", "Lips")>> | <<= App.Encyclopedia.Dialog.linkSC("Musculature", "Musculature")>> | <<= App.Encyclopedia.Dialog.linkSC("Nipples", "Nipples")>> | <<= App.Encyclopedia.Dialog.linkSC("Ovaries", "Ovaries")>> | <<= App.Encyclopedia.Dialog.linkSC("Pregnancy", "Pregnancy")>> | <<= App.Encyclopedia.Dialog.linkSC("Skin Distinctions", "Skin Distinctions")>> | <<= App.Encyclopedia.Dialog.linkSC("Teeth", "Teeth")>> | <<= App.Encyclopedia.Dialog.linkSC("Testicles", "Testicles")>> | <<= App.Encyclopedia.Dialog.linkSC("Vaginas", "Vaginas")>> | <<= App.Encyclopedia.Dialog.linkSC("Waist", "Waist")>> | <<= App.Encyclopedia.Dialog.linkSC("Weight", "Weight")>> | <<= App.Encyclopedia.Dialog.linkSC("XX", "Hormones (XX)")>> | <<= App.Encyclopedia.Dialog.linkSC("XY", "Hormones (XY)")>> /********** SLAVE SKILLS **********/ <<case "Anal Skill" "Combat Skill" "Entertainment Skill" "Oral Skill" "Skills" "Vaginal Skill" "Whoring Skill">> <<= App.Encyclopedia.Dialog.linkSC("Anal Skill", "Anal Skill")>> | <<= App.Encyclopedia.Dialog.linkSC("Combat Skill", "Combat Skill")>> | <<= App.Encyclopedia.Dialog.linkSC("Entertainment Skill", "Entertainment Skill")>> | <<= App.Encyclopedia.Dialog.linkSC("Oral Skill", "Oral Skill")>> | <<= App.Encyclopedia.Dialog.linkSC("Vaginal Skill", "Vaginal Skill")>> | <<= App.Encyclopedia.Dialog.linkSC("Whoring Skill", "Whoring Skill")>> | <<= App.Encyclopedia.Dialog.linkSC("Career Experience", "Career Experience")>> /********** SLAVE FETISHES: **********/ <<case "Boob Fetishists" "Buttsluts" "Cumsluts" "Doms" "Fetishes" "Humiliation Fetishists" "Masochists" "Pregnancy Fetishists" "Sadists" "Submissives">> <<= App.Encyclopedia.Dialog.linkSC("Boob Fetishists", "Boob Fetishists")>> | <<= App.Encyclopedia.Dialog.linkSC("Buttsluts", "Buttsluts")>> | <<= App.Encyclopedia.Dialog.linkSC("Cumsluts", "Cumsluts")>> | <<= App.Encyclopedia.Dialog.linkSC("Doms", "Doms")>> | <<= App.Encyclopedia.Dialog.linkSC("Humiliation Fetishists", "Humiliation Fetishists")>> | <<= App.Encyclopedia.Dialog.linkSC("Masochists", "Masochists")>> | <<= App.Encyclopedia.Dialog.linkSC("Pregnancy Fetishists", "Pregnancy Fetishists")>> | <<= App.Encyclopedia.Dialog.linkSC("Sadists", "Sadists")>> | <<= App.Encyclopedia.Dialog.linkSC("Submissives", "Submissives")>> /********** SLAVE PARAPHILIAS **********/ <<case "Abusiveness" "Anal Addicts" "Attention Whores" "Breast Obsession" "Breeding Obsession" "Cum Addicts" "Maliciousness" "Paraphilias" "Self Hatred" "Self Neglect">> <<= App.Encyclopedia.Dialog.linkSC("Abusiveness", "Abusiveness")>> | <<= App.Encyclopedia.Dialog.linkSC("Anal Addicts", "Anal Addicts")>> | <<= App.Encyclopedia.Dialog.linkSC("Attention Whores", "Attention Whores")>> | <<= App.Encyclopedia.Dialog.linkSC("Breast Obsession", "Breast Obsession")>> | <<= App.Encyclopedia.Dialog.linkSC("Breeding Obsession", "Breeding Obsession")>> | <<= App.Encyclopedia.Dialog.linkSC("Cum Addicts", "Cum Addicts")>> | <<= App.Encyclopedia.Dialog.linkSC("Maliciousness", "Maliciousness")>> | <<= App.Encyclopedia.Dialog.linkSC("Self Hatred", "Self Hatred")>> | <<= App.Encyclopedia.Dialog.linkSC("Self Neglect", "Self Neglect")>> | <<= App.Encyclopedia.Dialog.linkSC("Fetishes", "Fetishes")>> /********** SLAVE QUIRKS **********/ <<case "Adores Men" "Adores Women" "Advocate" "Confident" "Cutting" "Fitness" "Funny" "Insecure" "Sinful" "Caring" "Gagfuck Queen" "Painal Queen" "Perverted" "Quirks" "Romantic" "Size Queen" "Strugglefuck Queen" "Tease" "Unflinching">> //Behavioral <<= App.Encyclopedia.Dialog.linkSC("Quirks", "Quirks")>>:// <<= App.Encyclopedia.Dialog.linkSC("Adores men", "Adores Men")>> | <<= App.Encyclopedia.Dialog.linkSC("Adores women", "Adores Women")>> | <<= App.Encyclopedia.Dialog.linkSC("Advocate", "Advocate")>> | <<= App.Encyclopedia.Dialog.linkSC("Confident", "Confident")>> | <<= App.Encyclopedia.Dialog.linkSC("Cutting", "Cutting")>> | <<= App.Encyclopedia.Dialog.linkSC("Fitness", "Fitness")>> | <<= App.Encyclopedia.Dialog.linkSC("Funny", "Funny")>> | <<= App.Encyclopedia.Dialog.linkSC("Insecure", "Insecure")>> | <<= App.Encyclopedia.Dialog.linkSC("Sinful", "Sinful")>> <br> //Sexual <<= App.Encyclopedia.Dialog.linkSC("Quirks", "Quirks")>>:// <<= App.Encyclopedia.Dialog.linkSC("Caring", "Caring")>> | <<= App.Encyclopedia.Dialog.linkSC("Gagfuck Queen", "Gagfuck Queen")>> | <<= App.Encyclopedia.Dialog.linkSC("Painal Queen", "Painal Queen")>> | <<= App.Encyclopedia.Dialog.linkSC("Perverted", "Perverted")>> | <<= App.Encyclopedia.Dialog.linkSC("Romantic", "Romantic")>> | <<= App.Encyclopedia.Dialog.linkSC("Size Queen", "Size Queen")>> | <<= App.Encyclopedia.Dialog.linkSC("Strugglefuck Queen", "Strugglefuck Queen")>> | <<= App.Encyclopedia.Dialog.linkSC("Tease", "Tease")>> | <<= App.Encyclopedia.Dialog.linkSC("Unflinching", "Unflinching")>> /********** SLAVE FLAWS **********/ <<case "Anorexic" "Arrogant" "Bitchy" "Devout" "Flaws" "Gluttonous" "Hates Men" "Hates Women" "Liberated" "Odd" "Apathetic" "Crude" "Hates Anal" "Hates Oral" "Hates Penetration" "Idealistic" "Judgemental" "Repressed" "Shamefast">> //Behavioral <<= App.Encyclopedia.Dialog.linkSC("Flaws", "Flaws")>>:// <<= App.Encyclopedia.Dialog.linkSC("Anorexic", "Anorexic")>> | <<= App.Encyclopedia.Dialog.linkSC("Arrogant", "Arrogant")>> | <<= App.Encyclopedia.Dialog.linkSC("Bitchy", "Bitchy")>> | <<= App.Encyclopedia.Dialog.linkSC("Devout", "Devout")>> | <<= App.Encyclopedia.Dialog.linkSC("Gluttonous", "Gluttonous")>> | <<= App.Encyclopedia.Dialog.linkSC("Hates men", "Hates Men")>> | <<= App.Encyclopedia.Dialog.linkSC("Hates women", "Hates Women")>> | <<= App.Encyclopedia.Dialog.linkSC("Liberated", "Liberated")>> | <<= App.Encyclopedia.Dialog.linkSC("Odd", "Odd")>> <br> //Sexual <<= App.Encyclopedia.Dialog.linkSC("Flaws", "Flaws")>>:// <<= App.Encyclopedia.Dialog.linkSC("Apathetic", "Apathetic")>> | <<= App.Encyclopedia.Dialog.linkSC("Crude", "Crude")>> | <<= App.Encyclopedia.Dialog.linkSC("Hates anal", "Hates Anal")>> | <<= App.Encyclopedia.Dialog.linkSC("Hates oral", "Hates Oral")>> | <<= App.Encyclopedia.Dialog.linkSC("Hates penetration", "Hates Penetration")>> | <<= App.Encyclopedia.Dialog.linkSC("Idealistic", "Idealistic")>> | <<= App.Encyclopedia.Dialog.linkSC("Judgemental", "Judgemental")>> | <<= App.Encyclopedia.Dialog.linkSC("Repressed", "Repressed")>> | <<= App.Encyclopedia.Dialog.linkSC("Shamefast", "Shamefast")>> /********** SLAVE RELATIONSHIPS **********/ <<case "Emotional Slut" "Emotionally Bonded" "Relationships" "Rivalries" "Romances" "Slave Marriages" "Slaveowner Marriages">> <<= App.Encyclopedia.Dialog.linkSC("Relationships", "Relationships")>> | <<= App.Encyclopedia.Dialog.linkSC("Rivalries", "Rivalries")>> | <<= App.Encyclopedia.Dialog.linkSC("Romances", "Romances")>> | <<= App.Encyclopedia.Dialog.linkSC("Emotionally Bonded", "Emotionally Bonded")>> | <<= App.Encyclopedia.Dialog.linkSC("Emotional Slut", "Emotional Slut")>> | <<= App.Encyclopedia.Dialog.linkSC("Slave Marriages", "Slave Marriages")>> | <<= App.Encyclopedia.Dialog.linkSC("Slaveowner Marriages", "Slaveowner Marriages")>> /********** PREGNANCY **********/ <<case "Artificial Insemination" "Breeders Dietary Blend" "Childbirth and C-Secs" "Cloning" "Fertility Mix" "Gestation Drugs and Labor Suppressants" "Hyper-Pregnancy" "Ova Transplantation" "Player Pregnancy" "Pregnancy" "Pregnancy Generator" "Slave Fertility" "Super Fertility Drugs" "Surrogacy" "Inbreeding">> <<= App.Encyclopedia.Dialog.linkSC("Pregnancy", "Pregnancy")>> | <<= App.Encyclopedia.Dialog.linkSC("Slave Fertility", "Slave Fertility")>> | <<= App.Encyclopedia.Dialog.linkSC("Player Pregnancy", "Player Pregnancy")>> | <<= App.Encyclopedia.Dialog.linkSC("Hyper-Pregnancy", "Hyper-Pregnancy")>> | <<= App.Encyclopedia.Dialog.linkSC("Super Fertility Drugs", "Super Fertility Drugs")>> | <<= App.Encyclopedia.Dialog.linkSC("Fertility Mix", "Fertility Mix")>> | <<= App.Encyclopedia.Dialog.linkSC("Breeders Dietary Blend", "Breeders Dietary Blend")>> | <<= App.Encyclopedia.Dialog.linkSC("Pregnancy Generator", "Pregnancy Generator")>> | <<= App.Encyclopedia.Dialog.linkSC("Childbirth and C-Secs", "Childbirth and C-Secs")>> | <<= App.Encyclopedia.Dialog.linkSC("Gestation Drugs and Labor Suppressants", "Gestation Drugs and Labor Suppressants")>> | <<= App.Encyclopedia.Dialog.linkSC("Artificial Insemination", "Artificial Insemination")>> | <<= App.Encyclopedia.Dialog.linkSC("Surrogacy", "Surrogacy")>> | <<= App.Encyclopedia.Dialog.linkSC("Cloning", "Cloning")>> | <<= App.Encyclopedia.Dialog.linkSC("Ova Transplantation", "Ova Transplantation")>> | <<= App.Encyclopedia.Dialog.linkSC("Eugenics Breeding Proposal", "Eugenics Breeding Proposal")>> | <<= App.Encyclopedia.Dialog.linkSC("Repopulationist Breeding School", "Repopulationist Breeding School")>> | <<= App.Encyclopedia.Dialog.linkSC("Inbreeding", "Inbreeding")>> /********** INFLATION **********/ <<case "Belly Implants" "Cervix Micropump Filter" "Enemas and Force-Feeding" "Inflation" "Organic Mesh Breast Implant">> <<= App.Encyclopedia.Dialog.linkSC("Inflation", "Inflation")>> | <<= App.Encyclopedia.Dialog.linkSC("Enemas and Force-Feeding", "Enemas and Force-Feeding")>> | <<= App.Encyclopedia.Dialog.linkSC("Belly Implants", "Belly Implants")>> | <<= App.Encyclopedia.Dialog.linkSC("Cervix Micropump Filter", "Cervix Micropump Filter")>> | <<= App.Encyclopedia.Dialog.linkSC("Organic Mesh Breast Implant", "Organic Mesh Breast Implant")>> /********** SLAVE MODIFICATION **********/ <<case "Slave Modification">> <<= App.Encyclopedia.Dialog.linkSC("Slave Modification", "Slave Modification")>> | <<= App.Encyclopedia.Dialog.linkSC("Corrective Diet", "Corrective Diet")>> | <<= App.Encyclopedia.Dialog.linkSC("Nipple Conversion — Penetratable", "Nipple Conversion — Penetratable")>> | <<= App.Encyclopedia.Dialog.linkSC("Ejaculation Boosting Prostate Implant", "Ejaculation Boosting Prostate Implant")>> /********** THE X-SERIES ARCOLOGY **********/ <<case "Personal Assistant" "Security Drones" "Slave Nutrition" "The Auto Salon" "The Pharmaceutical Fab." "The Remote Surgery" "The Studio" "The Wardrobe" "The X-Series Arcology" "Water Filtration" "What the Upgrades Do">> <<= App.Encyclopedia.Dialog.linkSC("What the Upgrades Do", "What the Upgrades Do")>> | <<= App.Encyclopedia.Dialog.linkSC("Personal Assistant", "Personal Assistant")>> | <<= App.Encyclopedia.Dialog.linkSC("The Wardrobe", "The Wardrobe")>> | <<= App.Encyclopedia.Dialog.linkSC("The Auto Salon", "The Auto Salon")>> | <<= App.Encyclopedia.Dialog.linkSC("The Body Mod Studio", "The Studio")>> | <<= App.Encyclopedia.Dialog.linkSC("The Remote Surgery", "The Remote Surgery")>> | <<= App.Encyclopedia.Dialog.linkSC("The Pharmaceutical Fab.", "The Pharmaceutical Fab.")>> | <<= App.Encyclopedia.Dialog.linkSC("Security Drones", "Security Drones")>> | <<= App.Encyclopedia.Dialog.linkSC("Water Filtration", "Water Filtration")>> | <<= App.Encyclopedia.Dialog.linkSC("Slave Nutrition", "Slave Nutrition")>> /********** ARCOLOGY FACILITIES **********/ <<case "Advertising" "Arcade" "Brothel" "Cellblock" "Clinic" "Club" "Dairy" "Facilities" "Farmyard" "Head Girl Suite" "Master Suite" "Nursery" "Pit" "Schoolroom" "Servants' Quarters" "Spa" "The Incubation Facility" "Variety">> //Arcology <<= App.Encyclopedia.Dialog.linkSC("Facilities", "Facilities")>>:// <<= App.Encyclopedia.Dialog.linkSC("Arcade", "Arcade")>> | <<= App.Encyclopedia.Dialog.linkSC("Brothel", "Brothel")>> | <<= App.Encyclopedia.Dialog.linkSC("Cellblock", "Cellblock")>> | <<= App.Encyclopedia.Dialog.linkSC("Clinic", "Clinic")>> | <<= App.Encyclopedia.Dialog.linkSC("Club", "Club")>> | <<= App.Encyclopedia.Dialog.linkSC("Dairy", "Dairy")>> | <<= App.Encyclopedia.Dialog.linkSC("Head Girl Suite", "Head Girl Suite")>> | <<= App.Encyclopedia.Dialog.linkSC("Master Suite", "Master Suite")>> | <<= App.Encyclopedia.Dialog.linkSC("Pit", "Pit")>> | <<= App.Encyclopedia.Dialog.linkSC("Schoolroom", "Schoolroom")>> | <<= App.Encyclopedia.Dialog.linkSC("Servants' Quarters", "Servants' Quarters")>> | <<= App.Encyclopedia.Dialog.linkSC("Spa", "Spa")>> | <<= App.Encyclopedia.Dialog.linkSC("Nursery", "Nursery")>> | <<= App.Encyclopedia.Dialog.linkSC("Farmyard", "Farmyard")>> | <<= App.Encyclopedia.Dialog.linkSC("The Incubation Facility ", "The Incubation Facility")>> <br> //Facility Bonuses:// <<= App.Encyclopedia.Dialog.linkSC("Advertising", "Advertising")>> | <<= App.Encyclopedia.Dialog.linkSC("Variety", "Variety")>> /********** TERRAIN TYPES **********/ <<case "Terrain Types" "Urban Terrain" "Rural Terrain" "Marine Terrain" "Oceanic Terrain">> <<= App.Encyclopedia.Dialog.linkSC("Urban", "Urban Terrain")>> | <<= App.Encyclopedia.Dialog.linkSC("Rural", "Rural Terrain")>> | <<= App.Encyclopedia.Dialog.linkSC("Marine", "Marine Terrain")>> | <<= App.Encyclopedia.Dialog.linkSC("Oceanic", "Oceanic Terrain")>> /********** FUTURE SOCIETIES **********/ <<case "Arabian Revivalism" "Asset Expansionism" "Aztec Revivalism" "Body Purism" "Chattel Religionism" "Chinese Revivalism" "Degradationism" "Edo Revivalism" "Egyptian Revivalism" "Ethnic Subjugationism" "Ethnic Supremacy" "Eugenics Focus" "Future Societies" "Gender Fundamentalism" "Gender Radicalism" "Hedonistic Decadence" "Intellectual Dependency" "Maturity Preferentialism" "Multiculturalism" "Pastoralism" "Paternalism" "Petite Admiration" "Physical Idealism" "Repopulationism" "Roman Revivalism" "Slave Professionalism" "Slimness Enthusiasm" "Statuesque Glorification" "Transformation Fetishism" "Youth Preferentialism" "Neo-Imperialism">> //Vanilla Future Societies:// <<= App.Encyclopedia.Dialog.linkSC("Ethnic Supremacy", "Ethnic Supremacy")>> | <<= App.Encyclopedia.Dialog.linkSC("Ethnic Subjugationism", "Ethnic Subjugationism")>> | <<= App.Encyclopedia.Dialog.linkSC("Gender Radicalism", "Gender Radicalism")>> | <<= App.Encyclopedia.Dialog.linkSC("Gender Fundamentalism", "Gender Fundamentalism")>> | <<= App.Encyclopedia.Dialog.linkSC("Paternalism", "Paternalism")>> | <<= App.Encyclopedia.Dialog.linkSC("Degradationism", "Degradationism")>> | <<= App.Encyclopedia.Dialog.linkSC("Body Purism", "Body Purism")>> | <<= App.Encyclopedia.Dialog.linkSC("Transformation Fetishism", "Transformation Fetishism")>> | <<= App.Encyclopedia.Dialog.linkSC("Maturity Preferentialism", "Maturity Preferentialism")>> | <<= App.Encyclopedia.Dialog.linkSC("Youth Preferentialism", "Youth Preferentialism")>> | <<= App.Encyclopedia.Dialog.linkSC("Slimness Enthusiasm", "Slimness Enthusiasm")>> | <<= App.Encyclopedia.Dialog.linkSC("Asset Expansionism", "Asset Expansionism")>> | <<= App.Encyclopedia.Dialog.linkSC("Pastoralism", "Pastoralism")>> | <<= App.Encyclopedia.Dialog.linkSC("Physical Idealism", "Physical Idealism")>> | <<= App.Encyclopedia.Dialog.linkSC("Chattel Religionism", "Chattel Religionism")>> | <<= App.Encyclopedia.Dialog.linkSC("Multiculturalism", "Multiculturalism")>> | <<= App.Encyclopedia.Dialog.linkSC("Roman Revivalism", "Roman Revivalism")>> | <<= App.Encyclopedia.Dialog.linkSC("Egyptian Revivalism", "Egyptian Revivalism")>> | <<= App.Encyclopedia.Dialog.linkSC("Edo Revivalism", "Edo Revivalism")>> | <<= App.Encyclopedia.Dialog.linkSC("Arabian Revivalism", "Arabian Revivalism")>> | <<= App.Encyclopedia.Dialog.linkSC("Chinese Revivalism", "Chinese Revivalism")>> <br> //Modded Future Societies:// <<= App.Encyclopedia.Dialog.linkSC("Repopulationism", "Repopulationism")>> | <<= App.Encyclopedia.Dialog.linkSC("Eugenics Focus", "Eugenics Focus")>> | <<= App.Encyclopedia.Dialog.linkSC("Slave Professionalism", "Slave Professionalism")>> | <<= App.Encyclopedia.Dialog.linkSC("Intellectual Dependency", "Intellectual Dependency")>> | <<= App.Encyclopedia.Dialog.linkSC("Petite Admiration", "Petite Admiration")>> | <<= App.Encyclopedia.Dialog.linkSC("Statuesque Glorification", "Statuesque Glorification")>> | <<= App.Encyclopedia.Dialog.linkSC("Hedonistic Decadence", "Hedonistic Decadence")>> | <<= App.Encyclopedia.Dialog.linkSC("Aztec Revivalism", "Aztec Revivalism")>> | <<= App.Encyclopedia.Dialog.linkSC("Neo-Imperialism", "Neo-Imperialism")>> /********** LORE: THE FREE CITIES TODAY **********/ <<case "Lore" "Money" "Food" "Disease in the Free Cities" "Free Cities Justice" "Modern Anal" "Slave Couture" "Slave Marriage" "The Ejaculate Market" "Gingering" "Dyes" /********** LORE: FREE CITIES CULTURE TOMORROW **********/ "The New Rome" "The Return of Feudalism" "Naked, Barefoot, and Pregnant" "The Top" "The Bottom" "The Purity of the Human Form" "A World Built on Implants" "Slaves as Stock" "Slavery and the Physical Ideal" "Faith in the Free Cities" /********** LORE: INTERVIEWS **********/ "Slave Whore, Arcology K-2" "Slave Acolyte, Arcology V-7" "Public Slave, Arcology A-3" "Mercenary, Arcology B-2" "Slave Trainer, Arcology D-10" "Monarch, Arcology F-8">> //The Free Cities today:// @@.yellowgreen; <<= App.Encyclopedia.Dialog.linkSC("Money", "Money")>>@@ | <<= App.Encyclopedia.Dialog.linkSC("Disease in the Free Cities", "Disease in the Free Cities")>> | <<= App.Encyclopedia.Dialog.linkSC("Free Cities Justice", "Free Cities Justice")>> | <<= App.Encyclopedia.Dialog.linkSC("Modern Anal", "Modern Anal")>> | <<= App.Encyclopedia.Dialog.linkSC("Slave Couture", "Slave Couture")>> | <<= App.Encyclopedia.Dialog.linkSC("Slave Marriage", "Slave Marriage")>> | <<= App.Encyclopedia.Dialog.linkSC("The Ejaculate Market", "The Ejaculate Market")>> | <<= App.Encyclopedia.Dialog.linkSC("Gingering", "Gingering")>> | <<= App.Encyclopedia.Dialog.linkSC("Dyes", "Dyes")>> <br>//Free Cities culture tomorrow:// <<= App.Encyclopedia.Dialog.linkSC("The New Rome", "The New Rome")>> | <<= App.Encyclopedia.Dialog.linkSC("The Return of Feudalism", "The Return of Feudalism")>> | <<= App.Encyclopedia.Dialog.linkSC("Naked, Barefoot, and Pregnant", "Naked, Barefoot, and Pregnant")>> | <<= App.Encyclopedia.Dialog.linkSC("The Top", "The Top")>> | <<= App.Encyclopedia.Dialog.linkSC("The Bottom", "The Bottom")>> | <<= App.Encyclopedia.Dialog.linkSC("The Purity of the Human Form", "The Purity of the Human Form")>> | <<= App.Encyclopedia.Dialog.linkSC("A World Built on Implants", "A World Built on Implants")>> | <<= App.Encyclopedia.Dialog.linkSC("Slaves as Stock", "Slaves as Stock")>> | <<= App.Encyclopedia.Dialog.linkSC("Slavery and the Physical Ideal", "Slavery and the Physical Ideal")>> | <<= App.Encyclopedia.Dialog.linkSC("Faith in the Free Cities", "Faith in the Free Cities")>> <br>//Interviews:// <<= App.Encyclopedia.Dialog.linkSC("Slave Whore, Arcology K-2", "Slave Whore, Arcology K-2")>> | <<= App.Encyclopedia.Dialog.linkSC("Slave Acolyte, Arcology V-7", "Slave Acolyte, Arcology V-7")>> <<if $seeExtreme != 0>> | <<= App.Encyclopedia.Dialog.linkSC("Public Slave, Arcology A-3", "Public Slave, Arcology A-3")>> <</if>> | <<= App.Encyclopedia.Dialog.linkSC("Mercenary, Arcology B-2", "Mercenary, Arcology B-2")>> | <<= App.Encyclopedia.Dialog.linkSC("Slave Trainer, Arcology D-10", "Slave Trainer, Arcology D-10")>> | <<= App.Encyclopedia.Dialog.linkSC("Monarch, Arcology F-8", "Monarch, Arcology F-8")>> /********** BLACK MARKET **********/ <<case "The Black Market" "Contraband and Illegal Goods" "Gender Radicalism Research" "Slave Professionalism Research" "Transformation Fetishism Research" "Asset Expansionist Research" "Slimness Enthusiast Research" "Hedonistic Decadence Research" "Eugenics Breeding Proposal" "Youth Preferentialism Research" "Repopulationist Breeding School">> <<= App.Encyclopedia.Dialog.linkSC("The Black Market", "The Black Market")>> | <<= App.Encyclopedia.Dialog.linkSC("Contraband and Illegal Goods", "Contraband and Illegal Goods")>> | <<= App.Encyclopedia.Dialog.linkSC("Gender Radicalism Research", "Gender Radicalism Research")>> | <<= App.Encyclopedia.Dialog.linkSC("Slave Professionalism Research", "Slave Professionalism Research")>> | <<= App.Encyclopedia.Dialog.linkSC("Transformation Fetishism Research", "Transformation Fetishism Research")>> | <<= App.Encyclopedia.Dialog.linkSC("Asset Expansionist Research", "Asset Expansionist Research")>> | <<= App.Encyclopedia.Dialog.linkSC("Slimness Enthusiast Research", "Slimness Enthusiast Research")>> | <<= App.Encyclopedia.Dialog.linkSC("Youth Preferentialism Research", "Youth Preferentialism Research")>> | <<= App.Encyclopedia.Dialog.linkSC("Hedonistic Decadence Research", "Hedonistic Decadence Research")>> | <<= App.Encyclopedia.Dialog.linkSC("Childhood Fertility Induced NCS", "Childhood Fertility Induced NCS")>> /********** MODS **********/ <<case "Game Mods">> <<= App.Encyclopedia.Dialog.linkSC("Lolimod", "Lolimod")>> | <<= App.Encyclopedia.Dialog.linkSC("The Special Force Mod", "Special Force")>> | <<= App.Encyclopedia.Dialog.linkSC("The Security Expansion Mod", "Security Expansion")>> | <<= App.Encyclopedia.Dialog.linkSC("FCTV", "FCTV")>> <<case "Lolimod" "Lolis and the Free Cities" "Fertility Age" "Male Fertility" "Cradle Robbers" "Precocious Puberty" "Childhood Fertility Induced NCS">> <<= App.Encyclopedia.Dialog.linkSC("Lolis and the Free Cities", "Lolis and the Free Cities")>> | <<= App.Encyclopedia.Dialog.linkSC("Fertility Age", "Fertility Age")>> | <<= App.Encyclopedia.Dialog.linkSC("Male Fertility", "Male Fertility")>> | <<= App.Encyclopedia.Dialog.linkSC("Precocious Puberty", "Precocious Puberty")>> | <<= App.Encyclopedia.Dialog.linkSC("Cradle Robbers", "Cradle Robbers")>> | <<= App.Encyclopedia.Dialog.linkSC("The Incubation Facility", "The Incubation Facility")>> | <<= App.Encyclopedia.Dialog.linkSC("Childhood Fertility Induced NCS", "Childhood Fertility Induced NCS")>> <<case "Security Expansion" "Battles">> <<= App.Encyclopedia.Dialog.linkSC("The Security Expansion Mod", "Security Expansion")>> | <<= App.Encyclopedia.Dialog.linkSC("Battles", "Battles")>> <<case "FCTV" "FCTVReceiver">> <<= App.Encyclopedia.Dialog.linkSC("FCTV", "FCTV")>> | <<= App.Encyclopedia.Dialog.linkSC("FCTVReceiver", "FCTVReceiver")>> <</switch>>
MonsterMate/fc
src/gui/Encyclopedia/encyclopediaRelatedLinks.tw
tw
mit
30,055
:: PassageDone <<if window.savedColorMap>> <<addclass "body" "lightTheme">> <</if>>
MonsterMate/fc
src/gui/PassageDone.tw
tw
mit
87
/* --- base functionality --- */ .accordion-content.hidden { display: none; } /* --- no button case --- */ :not(button).accordion { cursor: pointer; } /* --- button/div case --- */ /* style button */ button.accordion { width: 100%; margin: 5px 0; border: 2px solid var(--button-border-color); padding: 10px; padding-left: 2.2em; background-color: var(--button-selected-color); /* to position the open/close symbol */ position: relative; } button.accordion.closed { background-color: var(--button-color); } button.accordion.empty { background-color: var(--button-disabled-color); cursor: default; } button.accordion:hover:not(.empty) { background-color: var(--button-hover-color); } /* open/close symbol */ button.accordion::before { font-family: "tme-fa-icons"; position: absolute; left: 10px; content: "\e81c"; } button.accordion.closed::before { content: "\e81e"; } button.accordion.empty::before { content: none; } /* hide content */ div.accordion-content { margin: 0 15px; } /* modifiers for the toggle button */ button.accordion span.title { float: left; } button.accordion span.info { float: right; }
MonsterMate/fc
src/gui/css/accordion.css
CSS
mit
1,144
#graph .linage { fill: none; stroke: white; } #graph .marriage { fill: none; stroke: white; } #graph .node { background-color: lightblue; border-style: solid; border-width: 1px; } #graph .nodeText{ font: 10px sans-serif; margin: 0; padding: 0; color: black; } #graph { font: 10px sans-serif; margin: -20px 0; padding: 0; color: black; } #graph div { border-style: solid; border-width: 1px; } #graph .XY { background-color: lightblue; } #graph div.XX { background-color: pink; } #graph div.unknown { background-color: gray; } #graph div.unknownXY { background-color: #808080; } #graph div.unknownXX { background-color: #808080; } #graph .you { background-color: red; } #graph .emphasis { font-style: italic; font-weight: bold; margin: 0; background: #ffffff88; border: 2px solid Gold; white-space: nowrap; } #edit-family { display: flex; flex-wrap: wrap; align-items: center; } #edit-family #family-table { }
MonsterMate/fc
src/gui/css/familyTree.css
CSS
mit
951
body { overflow-x: hidden; } /* makes HR colorflip compatible */ hr { background:#ccc; border:0; } /* clears SugarCube's default transition */ .passage { transition: none; -webkit-transition: none; } .passage-in { opacity: 1 !important; } /* default is 54em */ #passages { max-width: 100%; } /* small trick to hide broken images */ img { text-indent: -10000px; } .imageColumn { /* TODO: this is mostly a copy of imageRef to get its flex features working properly. They can probably be removed from imageRef at some point */ display: flex; flex-direction: column; flex-wrap: wrap; align-items: flex-start; position: relative; float: right; } .imageRef { display: flex; flex-direction: column; flex-wrap: wrap; align-items: flex-start; position: relative; background-color: rgba(80, 80, 80, 0.5); margin: 2px; } .tinyImg { height: 120px; width: 120px; float: left; } .smlImg { height: 150px; width: 150px; float: left; } .smlImg > img, .smlImg > video { height: auto; } .medImg { height: 300px; width: 300px; float: right; } .medImg > img, .medImg > video { height: auto; } .lrgRender { height: 531px; width: 531px; margin-right: -50px; margin-left: -50px; float: right; z-index: -1; } .lrgVector { height: 600px; width: 600px; margin-right: -125px; margin-left: -125px; float: right; z-index: -1; } .lrgRender > div.mask { width: 150px; height: 100%; background: linear-gradient(90deg, rgba(17,17,17,1), rgba(17,17,17,0.8) 60%, rgba(17,17,17,0)); z-index: 1; /*position: absolute;*/ } .lrgRender > img, .lrgRender > video { margin-left: -150px; height: 531px; width: auto; } .lrgVector > div.mask { width: 150px; height: 100%; background: linear-gradient(90deg, rgba(17,17,17,1), rgba(17,17,17,0.8) 60%, rgba(17,17,17,0)); z-index: 1; } .lrgVector > img, .lrgVector > video { margin-left: -150px; height: 600px; width: auto; } .lrgVector svg { width: 336px; } object { object-fit: scale-down; position: absolute; top: 0; left: 0; } img.paperdoll { position: absolute; top: 0; left: 0; margin-left: 0; } /* Colors are made as css classes, to allow them to be changed for a light color scheme (for example). */ /* a version is for this case: <span class="-.."><a>text</a></span> */ .link, .link a { color: var(--link-color) } /* link color */ .aquamarine, .aquamarine a, .skill, .skill a { color: aquamarine } .coral, .coral a, .fetish.loss, .fetish.loss a { color: coral } .cyan, .cyan a, .hotkey { color: cyan } /* used for aphrodisiac & neighbor arcs */ .darkgoldenrod, .darkgoldenrod a, .trust.extremely-terrified, .trust.extremely-terrified a { color: darkgoldenrod } .darkred, .darkred a, .defiant.full, .defiant.full a { color: darkred } .darkviolet, .darkviolet a, .devotion.hateful, .devotion.hateful a { color: darkviolet } .deeppink, .deeppink a, .devotion.devoted, .devotion.devoted a { color: deeppink } /* used for devotion once & agent */ .steelblue, .steelblue a { color: steelblue } .deepskyblue, .deepskyblue a, .intelligent, .intelligent a { color: deepskyblue } .dodgerblue, .dodgerblue a { color: dodgerblue } .blue, .blue a { color: blue } .gold, .gold a, .trust.dec, .trust.dec a, .trust.frightened, .trust.frightened a { color: gold } .goldenrod, .goldenrod a, .trust.terrified, .trust.terrified a { color: goldenrod } .gray, .gray a { color: gray } .green, .green a, .reputation.inc, .reputation.inc a, .improvement, .improvement a, .flaw.break, .flaw.break a, .skill.inc, .skill.inc a, .fuckdoll, .fuckdoll a, .positive, .positive a, .health.inc, .health.inc a { color: green } .hotpink, .hotpink a, .devotion.inc, .devotion.inc a, .devotion.accept, .devotion.accept a { color: hotpink } .lawngreen, .lawngreen a { color: lawngreen } .lightblue, .lightblue a { color: lightblue } .lightcoral, .lightcoral a, .fetish.gain, .fetish.gain a { color: lightcoral } /* compare pink for fetish */ .lightgreen, .lightgreen a, .relationship, .relationship a, .rivalry.dec, .rivalry.dec a { color: lightgreen } .lightpink, .lightpink a { color: lightpink } .lightsalmon, .lightsalmon a, .fetish.inc, .fetish.inc a, .rivalry.inc, .rivalry.inc a, .relationship.dec, .relationship.dec a { color: lightsalmon } .lime, .lime a, .change.positive, .change.positive a, .virginity.loss, .virginity.loss a, .puberty, .puberty a, .pregnant, .pregnant a { color: lime } /* tight orifices, breast changes, take virginity, not sure on good aliases */ .limegreen, .limegreen a { color: limegreen } /* multiple questionable uses */ .magenta, .magenta a, .devotion.worship, .devotion.worship a { color: magenta } .mediumaquamarine, .mediumaquamarine a, .trust.inc, .trust.inc a, .trust.careful, .trust.careful a { color: mediumaquamarine } .mediumorchid, .mediumorchid a, .devotion.dec, .devotion.dec a, .devotion.resistant, .devotion.resistant a { color: mediumorchid } .mediumseagreen, .mediumseagreen a, .trust.trusting, .trust.trusting a { color: mediumseagreen } .orange, .orange a, .stupid, .stupid a, .change.negative, .change.negative a, .defiant.careful, .defiant.careful a, .ncs, .ncs a, .miscarriage, .miscarriage a, .intro.question { color: orange } /* generally between red and green, and a lot of other places */ .orangered, .orangered a, .defiant.inc, .defiant.inc a, .defiant.bold, .defiant.bold, .education.neg a { color: orangered } .orchid, .orchid a { color: orchid } /* used once (wrong? */ .pink, .pink a, .slave.name.simple { color: pink } /* also fetish start ??? , and a lot of other stuff */ .red, .red a, .health.dec, .health.dec a, .cash.dec, .cash.dec a, .stat.drop, .stat.drop a, .flaw.gain, .flaw.gain a, .mindbreak, .mindbreak a, .error, .error a, .elites.loss, .elites.loss a, .reputation.dec, .reputation.dec a, .warning, .warning a { color: red } /* also generally bad stuff */ /* note: .error is for unexpected behavior, .warning for player feedback */ .seagreen, .seagreen a, .trust.prof-trusting, .trust.prof-trusting a { color: seagreen } .springgreen, .springgreen a, .skill.player, .skill.player a { color: springgreen } .tan, .tan a { color: tan } /* some ethnicity */ .chocolate, .chocolate a { color: chocolate } .saddlebrown, .saddlebrown a { color: saddlebrown } .teal, .teal a { color: teal } .yellow, .yellow a, .noteworthy, .noteworthy a, .paraphilia.gain, .paraphilia.gain a, .devotion.ambivalent, .devotion.ambivalent a, .trust.fearful, .trust.fearful a { color: yellow } .yellowgreen, .yellowgreen a, .cash.inc, .cash.inc a, .cash, .cash a { color: yellowgreen } .white a { color: white } /*! <<checkvars>> macro for SugarCube 2.x */ #ui-dialog-body.checkvars{padding:1em}#ui-dialog-body.checkvars h1{font-size:1em;margin-top:0}#ui-dialog-body.checkvars table{border-collapse:collapse;border-spacing:0}#ui-dialog-body.checkvars thead tr{border-bottom:2px solid #444}#ui-dialog-body.checkvars tr:not(:first-child){border-top:1px solid #444}#ui-dialog-body.checkvars td,#ui-dialog-body.checkvars th{padding:.25em 1em}#ui-dialog-body.checkvars td:first-child,#ui-dialog-body.checkvars th:first-child{padding-left:.5em;border-right:1px solid #444}#ui-dialog-body.checkvars td:last-child,#ui-dialog-body.checkvars th:last-child{padding-right:.5em}#ui-dialog-body.checkvars th:first-child{text-align:center}#ui-dialog-body.checkvars td:first-child{font-weight:700;text-align:right}#ui-dialog-body.checkvars td{font-family:monospace,monospace;vertical-align:top;white-space:pre-wrap}#ui-dialog-body.checkvars .scroll-pad{margin:0;padding:0} div.output{ width: 100%; width: 100vw; max-width: 100%; word-break: break-all; white-space: normal; } /* css rules for rules assistant */ .rajs-list-item { display: inline-block; color: var(--link-color); margin-right: 1em; } .rajs-list-item.selected { color: gray; text-decoration: none; } .rajs-list-item:last-of-type { margin-right: 0; } .rajs-list-item:hover { cursor: pointer; text-decoration: underline; } .rajs-list-item.selected:hover { cursor: default; text-decoration: none; } .rajs-list strong:first-of-type, .rajs-list input { margin-right: 2em; } .rajs-list-item input { margin: 0.25em; } .rajs-section h1 { border-bottom: 1px solid white; cursor: pointer; } .rajs-section h1:hover { text-decoration: underline; } .scroll { overflow: auto; } h1, h2, h3 { margin-bottom: 0; margin-top: 0.25em; } .founding { font-size: 0.8em; margin-top: -0.8em; margin-left: 0.5em; font-style: italic; } table.corporate { border: 3px darkgreen double; border-collapse: collapse; min-width: 33%; } table.corporate tbody tr:nth-child(even) { background-color: rgb(0, 30, 0); } table.corporate tbody tr:nth-child(odd) { background-color: rgb(15, 40, 15); } table.corporate td { vertical-align: top; } table.corporate tbody th, table.corporate thead th { background-color: black; font-weight: bold; } .minor-note { font-size: 0.75em; font-style: italic; } .majorText { margin-top: 0.5em; margin-bottom: 1.5em; } .tab { margin-left: 2em; } div.slave-report { margin-top: 1em; margin-bottom: 1em; } div.indent, p.indent { text-indent: 2em; } div.double-indent, p.double-indent { text-indent: 4em; } div.choices, p.choices { margin-left: 2em; } div.double-choices, p.double-choices { margin-left: 4em; } /* setting at the beginning of a scene / subscene */ .scene-intro { font-style: italic; } /* adds detail to an option: Do something. <span class="detail">Sentence that explains the effect/conditions */ .detail { font-style: italic; } /* additional information not related to a specific option */ .note { font-style: italic; } .story-label, .underline { text-decoration: underline; } /* Note: Do not do a linebreak after span in HTML, because it will underline the automatic space it inserts: "Matilda_is a cow" */ .slave-name { color: pink; font-weight: bold; text-decoration: underline; text-decoration-color: white; } .name { font-weight: bold; } .custom-label { color: yellow; font-weight: bold; } div.cheat-menu { font-style: italic; position: absolute; right: 50px; } h1 + p { margin-top: 0; } h2 + p { margin-top: 0; } h3 + p { margin-top: 0; } .main-fcnn { text-align: center; margin: 0 auto; } .major-link, .bold { font-weight: bold; } .clear-formatting { color: white; font-weight: normal; font-style: normal; } .major-warning { font-weight: bold; color: red; } div.center, p.center { margin-left: auto; margin-right: auto; text-align: center; } div.flex-container { display: flex; } /* TODO unify tooltip systems */ .hasTooltip { text-decoration: underline; } /* interactable tooltip-like container - created/destroyed dynamically */ .details-overlay { display: inline-block; font-size: smaller; width: max-content; height: max-content; border-style: solid; border-color: slategray; border-width: 2px; border-radius: 3px; background-color: rgb(17, 17, 17); padding: 3px; position: absolute; z-index: 2; text-indent: 0; } /* make cheat textboxes fit in sidebar */ #story-caption input { min-width: 0; width: calc(100% - 0.8em - 2px); } /* slave interact navigation */ .adjacent-slave { font-weight: bold; } .interact-name { margin: 0 2em; } .icons { font-family: 'tme-fa-icons'; } .favorite, .favorite:hover { color: yellow; text-decoration: none; } .not-favorite, .not-favorite:hover { color: grey; text-decoration: none; }
MonsterMate/fc
src/gui/css/mainStyleSheet.css
CSS
mit
11,316
div.options-group { display: grid; grid-template-columns: max-content auto; align-items: center; } @media only screen and (min-width: 1600px) { div.options-group.double { grid-template-columns: max-content auto max-content auto; } } /* left side */ div.options-group div.description { margin-right: 10px; } /* right side */ div.options-group div.button-group { margin: 6px 0; } div.options-group span.comment { color: gray; font-style: italic; margin-left: 10px; } div.options-group button { color: var(--link-color); background-color: var(--button-color); border: none; /* outline instead of border */ /* left & right outline overlap each other so we don't have a double border */ outline: solid 2px var(--button-border-color); margin-left: 2px; } div.options-group button:hover { background-color: var(--button-hover-color); } div.options-group button.selected { background-color: var(--button-selected-color); } div.options-group button.disabled { color: white; pointer-events: none; cursor: default; } div.options-group button.selected.on { background-color: #103d10; } div.options-group button.on:hover { background-color: #1b651b; } div.options-group button.selected.off { background-color: #40100d; } div.options-group button.off:hover { background-color: #6a1b16; } div.options-group button.selected.neutral { background-color: #4d4d00; } div.options-group button.neutral:hover { background-color: #666600; } /* input box */ div.options-group input { border: 2px solid var(--button-border-color); min-width: unset; /* remove SC styling */ width: 140px; } div.options-group input.number { width: 50px; }
MonsterMate/fc
src/gui/css/options.css
CSS
mit
1,663
.ql-hidden { display:none; } div.quick-list.devotion button.mindbroken { background-color:red; } div.quick-list.devotion button.very-hateful { background-color:darkviolet; } div.quick-list.devotion button.hateful { background-color:darkviolet; } div.quick-list.devotion button.resistant { background-color:mediumorchid; } div.quick-list.devotion button.ambivalent { background-color: yellow; color: #444444; } div.quick-list.devotion button.accepting { background-color: hotpink; } div.quick-list.devotion button.devoted { background-color: deeppink; } div.quick-list.devotion button.worshipful { background-color: magenta; } div.quick-list.trust button.mindbroken { background-color:red; } div.quick-list.trust button.extremely-terrified { background-color: darkgoldenrod; } div.quick-list.trust button.terrified { background-color: goldenrod; } div.quick-list.trust button.frightened { background-color: gold; color: coral; } div.quick-list.trust button.fearful { background-color: yellow; color: green; } div.quick-list.trust button.hate-careful { background-color: orange; } div.quick-list.trust button.careful { background-color: mediumaquamarine; color: forestgreen; } div.quick-list.trust button.bold { background-color: orangered; } div.quick-list.trust button.trusting { background-color: mediumseagreen; } div.quick-list.trust button.defiant { background-color: darkred; } div.quick-list.trust button.profoundly-trusting { background-color: seagreen; } div.quick-list { table-layout: fixed; text-align: center; border-collapse: separate; border-spacing: 2px; border-style: hidden; empty-cells: hide; width: 70%; } div.quick-list button { margin-top: 15px; margin-right: 20px; white-space: nowrap; }
MonsterMate/fc
src/gui/css/quickListCSS.css
CSS
mit
1,744
/* Style sheet for WardrobeUse.tw */ #passage-wardrobe-use .optionMacro { display: inline; } #passage-wardrobe-use .optionDescription { width: unset; text-align: left; } #passage-wardrobe-use .optionValue { display: flex; } #passage-wardrobe-use .optionMacroOption { flex-grow: 1; } /* Last line shouldn't grow */ #passage-wardrobe-use .optionValue::after { flex-grow: 1000000000; content: ''; }
MonsterMate/fc
src/gui/css/wardrobeUse.css
CSS
mit
408
/** * Displays a value that you can click on to get some details in an overlay */ App.UI.DOM.InteractiveDetails = class { /** * @param {string} linkText text to use for the show/hide link * @param {function(): HTMLElement|DocumentFragment} [detailsGenerator] function which generates the contents of the details overlay (omit to disable details) * @param {string[]} [linkClasses=[]] list of extra CSS classes to apply to the link */ constructor(linkText, detailsGenerator, linkClasses=[]) { this.span = App.UI.DOM.makeElement("span", "", "details-overlay"); this.span.style.visibility = "hidden"; this.link = detailsGenerator ? App.UI.DOM.link(linkText, () => this.toggle()) : App.UI.DOM.makeElement("span", linkText); this.link.classList.add(...linkClasses); this.func = detailsGenerator; this.shown = false; } /** * Toggle the visibility of the overlay (changing the render state) */ toggle() { this.shown = !this.shown; if (this.shown) { $(this.span).empty().append(this.func()); // by default, the CSS will try to show it as inline-block on the right this.span.style.removeProperty("right"); // reset style in case we'd moved it last time it was shown const overlayRect = this.span.getBoundingClientRect(); const linkRect = this.link.getBoundingClientRect(); if (overlayRect.right > window.innerWidth) { if (overlayRect.width < linkRect.left) { // if it won't fit in the default position, but it *will* fit on the left, force it to move over to the left side of the link this.span.style.right = "100%"; } // if it won't fit on either side, give up and leave it where it is. TODO: maybe do something smarter? } this.span.style.visibility = "visible"; } else { $(this.span).empty(); this.span.style.visibility = "hidden"; } } /** * Render the object to the page * @returns {HTMLSpanElement} */ render() { const containingSpan = document.createElement("span"); containingSpan.style.position = "relative"; // required for absolute positioning to work correctly later containingSpan.append(this.link, this.span); return containingSpan; } };
MonsterMate/fc
src/gui/interactiveDetails.js
JavaScript
mit
2,152
:: Alpha disclaimer [nobr] <h2>Warning</h2> <p class="yellow"> This is a text-based game that includes descriptions of sexual activity, graphic violence, drug use, and other subjects not suitable for persons under the age of 18. This is a work of fiction; any resemblance to actual persons, places, or events is unintended. </p> <h2>Welcome!</h2> <p> An in-game encyclopedia is available from the sidebar, with answers to most basic gameplay questions. </p> <p> <span style="font-weight:Bold"> Important info for new players, and a reminder for FC veterans: </span> when the player is offered a set of choices, the <span style="font-weight:Bold"> Continue </span> button at the top of the left sidebar will almost always remain available. Using this to decline all the options presented is <span style="font-style:italic">not cheating.</span> If it's available, it's supposed to be available. It represents the player character politely bowing out of the situation. </p> <h2>Please note</h2> <p> <span style="font-weight:Bold"> This is an alpha. </span> That means the game is missing content, is full of bugs, is imbalanced, and is generally in an incomplete state. The game will keep a start of turn autosave. If you encounter a bug, we strongly recommend you reload your start of turn autosave immediately. Please submit your feedback and bug reports at https://gitgud.io/pregmodfan/fc-pregmod/issues/. Consider attaching a save file and screenshot of the problem. <div> Pregmod is a modification of the original <i>Free Cities</i> created by FCdev, which can be seen at https://freecitiesblog.blogspot.com/. </div> <div class="note"> version: $ver, mod version: $pmodVer, build: $releaseID<<if App.Version.commitHash>>, commit: <<= App.Version.commitHash>><</if>> </div> <div id="version"> <<link "More version info">> <<replace "#version">> <div> <span class="green note"> Mod: expanded age ranges and other tweaks 2016-08-30 </span> <span class="darkred"> +SV </span> </div> <div> <span class="green note"> Mod: extra preg content and other crap </span> </div> <p style="font-weight:Bold"> Saves from versions prior to 0.6 are not compatible. </p> <</replace>> <</link>> </div> </p> <p> [[I am 18 or more years of age, I understand, and I wish to continue|Economy Intro]] </p>
MonsterMate/fc
src/gui/mainMenu/AlphaDisclaimer.tw
tw
mit
2,404
App.UI.MultipleInspect = (function() { /** * Provide a mechanism to inspect multiple slaves at once (for example, for Household Liquidators and recETS). * Intended for use from DOM passages. * @param {Array<App.Entity.SlaveState>} slaves * @param {boolean} showFamilyTree * @param {string} [market] * @returns {DocumentFragment} */ function MultipleInspectDOM(slaves, showFamilyTree, market) { const frag = document.createDocumentFragment(); const tabBar = App.UI.DOM.appendNewElement("div", frag, "", "tab-bar"); for (const slave of slaves) { tabBar.append(App.UI.tabBar.tabButton(`slave${slave.ID}`, slave.slaveName)); frag.append(App.UI.tabBar.makeTab(`slave${slave.ID}`, App.Desc.longSlave(slave, {market: market}))); } if (slaves.length > 1 && showFamilyTree) { const button = App.UI.tabBar.tabButton(`familyTreeTab`, "Family Tree"); button.addEventListener('click', event => { renderFamilyTree(slaves, slaves[0].ID); }); tabBar.append(button); const ftTarget = document.createElement("div"); ftTarget.setAttribute("id", "family-tree"); frag.append(App.UI.tabBar.makeTab(`familyTreeTab`, ftTarget)); } App.UI.tabBar.handlePreSelectedTab(`slave${slaves[0].ID}`); return frag; } return MultipleInspectDOM; })();
MonsterMate/fc
src/gui/multipleInspect.js
JavaScript
mit
1,285
:: Description Options [nobr jump-to-safe jump-from-safe] <<set $nextButton = "Back">> <<if $storedLink !== "Slave Interact">> <<if lastVisited("Slave Interact") === 1>> <<set $storedLink = "Slave Interact">> <<else>> <<set $storedLink = "Options">> <</if>> <</if>> <<set $nextLink = $storedLink>> <h1>Description Options</h1> //These options will affect both the long form description of each slave and the miniscenes available from the main menu.// <<set _options = new App.UI.OptionsGroup()>> <<run _options.addOption("", "surnameOrder") .addValue("Allow nationality name order", 0).customDescription("Order names ''based on country of origin''.") .addValue("Force name surname", 1).customDescription("Names will always be ''Name Surname''.") .addValue("Force surname name", 2).customDescription("Names will always be ''Surname Name''.")>> <<run _options.addOption("", "seeRace") .addValue("Disable most mentions of race", 0).off().customDescription("Ethnicity will ''almost never'' be mentioned.") .addValue("Enable mentions of race", 1).on().customDescription("Ethnicity will ''occasionally'' be mentioned.")>> <<run _options.addOption("", "seeNationality") .addValue("Disable most mentions of nationality", 0).off().customDescription("Nationality will ''almost never'' be mentioned.") .addValue("Enable mentions of nationality", 1).on().customDescription("Nationality will ''occasionally'' be mentioned.")>> <<run _options.addOption("The effects of implants are", "showImplantEffects") .addValue("Shown", 1).on().addValue("Hidden", 0).off()>> <<run _options.addOption("Clothing is mostly", "showClothing") .addValue("Shown", 1).on().addValue("Hidden", 0).off()>> <<run _options.addOption("Detailed slave age information is", "showAgeDetail") .addValue("Shown", 1).on().addValue("Hidden", 0).off()>> <<run _options.addOption("Approximate height is", "showHeightCMs") .addValue("Shown", 1).on().addValue("Hidden", 0).off()>> <<run _options.addOption("Cosmetic body mods are", "showBodyMods") .addValue("Shown", 1).on().addValue("Hidden", 0).off()>> <<run _options.addOption("Sexual histories are", "showSexualHistory") .addValue("Shown", 1).on().addValue("Hidden", 0).off()>> <<run _options.addOption("Attractiveness and Sexual scores are", "showScores") .addValue("Shown", 1).on().addValue("Hidden", 0).off()>> <<run _options.addOption("Volume, in CCs, of breasts is", "showBoobCCs") .addValue("Shown", 1).on().addValue("Hidden", 0).off()>> <<run _options.addOption("Height and length units are in", "showInches") .addValueList([["Metric", 0], ["Both", 1], ["Imperial", 2]])>> <<if $seeDicks > 0>> <br> <<run _options.addOption("Approximate sizes of dicks and balls are", "showDickCMs") .addValue("Shown", 1).on().addValue("Hidden", 0).off()>> <</if>> <<run _options.addOption("Numbers are displayed as", "showNumbers") .addValueList([["Integers", 2], ["Both", 1], ["Words", 0]])>> <<if $showNumbers === 1>> <<run _options.addOption("Only numbers up to $showNumbersMax are displayed as words", "showNumbersMax") .addValue("Default (20)", 20).showTextBox()>> <</if>> <<includeDOM _options.render()>>
MonsterMate/fc
src/gui/options/descriptionOptions.tw
tw
mit
3,137
div.hotkey-settings { display: grid; grid-template-columns: repeat(3, max-content) auto; } @media only screen and (min-width: 1600px) { div.hotkey-settings { grid-template-columns: repeat(3, max-content) auto repeat(3, max-content) auto; } } div.hotkey-settings div.description { margin-right: 10px; /* center text vertically */ display: flex; justify-content: center; flex-direction: column; } div.hotkey-settings button { margin: 5px; border-width: 2px; background-color: var(--button-color); border-color: var(--button-border-color); width: 70px; } div.hotkey-settings button.combination { min-width: 150px; border-width: 0; } div.hotkey-settings button.inactive, div.hotkey-settings button.inactive:hover { background-color: var(--button-selected-color); cursor: default; } div.hotkey-settings button:hover { background-color: var(--button-hover-color); border-color: var(--button-border-color); }
MonsterMate/fc
src/gui/options/hotkeySettings.css
CSS
mit
997
:: Hotkey Settings [nobr jump-to-safe jump-from-safe] <<set $nextButton = "Back", $nextLink = "Main">> <h1>Hotkey Settings</h1> <p> <ul> <li> On keyboard layouts other than the <a href="https://en.wikipedia.org/wiki/File:KB_United_States.svg" target="_blank">US-QWERTY layout</a> there may be keys or combinations of keys where the recorded key is different from the key used to listen to key events. You will have to find these keys yourself through trial and error. </li> <li> Custom hotkeys are browser specific and are not part of your save. </li> <li> While we try not to overwrite browser or OS level key combinations it is possible to do so with custom hotkeys. This also means that during recording of custom hotkeys no browser or OS level key combinations are available. There are however keys that cannot be overwritten, the <code>Win key</code> on Windows is an example for this. </li> </ul> </p> <<includeDOM App.UI.Hotkeys.settings()>>
MonsterMate/fc
src/gui/options/hotkeySettings.tw
tw
mit
1,118
App.UI.OptionsGroup = (function() { /** * @typedef value * @property {*} value * @property {string} [name] * @property {string} mode * @property {number} [compareValue] * @property {string} [descAppend] can be SC markup * @property {boolean} [on] * @property {boolean} [off] * @property {boolean} [neutral] * @property {Function} [callback] */ const Option = class { /** * @param {string} description can be SC markup * @param {string} property * @param {object} [object=V] */ constructor(description, property, object = V) { this.description = description; this.property = property; this.object = object; /** * @type {Array<value>} */ this.valuePairs = []; } /** * @param {*} name * @param {*} [value=name] * @param {Function} [callback] * @returns {Option} */ addValue(name, value = name, callback = undefined) { this.valuePairs.push({ name: name, value: value, mode: "=", callback: callback }); return this; } /** * @param {Array<*|Array>} values * @returns {Option} */ addValueList(values) { for (const value of values) { if (Array.isArray(value)) { this.addValue(value[0], value[1]); } else { this.addValue(value); } } return this; } /** * @param {*} value * @param {number} compareValue * @param {string} mode on of: "<", "<=", ">", ">=" * @param {string} [name=value] */ addRange(value, compareValue, mode, name = value) { this.valuePairs.push({ name: name, value: value, mode: mode, compareValue: compareValue }); return this; } /** * @param {string} [unit] * @returns {Option} */ showTextBox(unit) { this.textbox = true; if (unit) { this.unit = unit; } return this; } /** * @param {string} comment can be SC markup * @returns {Option} */ addComment(comment) { this.comment = comment; return this; } /** * Adds a button that executes the callback when clicked AND reloads the passage * * @param {string} name * @param {Function} callback * @param {string} passage */ customButton(name, callback, passage) { this.valuePairs.push({ name: name, value: passage, callback: callback, mode: "custom" }); return this; } /** * @param {string} element can be SC markup * @returns {Option} */ addCustomElement(element) { this.valuePairs.push({ value: element, mode: "plain" }); return this; } /* modify last added option */ /** * Added to the description if last added value is selected. * example use: addValue(...).customDescription(...).addValue(...).customDescription(...) * @param {string} description can be SC markup */ customDescription(description) { this.valuePairs.last().descAppend = description; return this; } /** * @param {Function} callback gets executed on every button click. Selected value is given as argument. */ addCallback(callback) { this.valuePairs.last().callback = callback; return this; } /** * Mark option as on to style differently. * @returns {Option} */ on() { this.valuePairs.last().on = true; return this; } /** * Mark option as off to style differently. * @returns {Option} */ off() { this.valuePairs.last().off = true; return this; } /** * Mark option as neutral to style differently. * @returns {Option} */ neutral() { this.valuePairs.last().neutral = true; return this; } }; return class { constructor() { /** * @type {Array<Option>} */ this.options = []; } /** * @returns {App.UI.OptionsGroup} */ enableDoubleColumn() { this.doubleColumn = true; return this; } addOption(name, property, object = V) { const option = new Option(name, property, object); this.options.push(option); return option; } render() { const container = document.createElement("div"); container.className = "options-group"; if (this.doubleColumn) { container.classList.add("double"); } for (/** @type {Option} */ const option of this.options) { /* left side */ const desc = document.createElement("div"); desc.className = "description"; $(desc).wiki(option.description); container.append(desc); /* right side */ const currentValue = option.object[option.property]; let anySelected = false; const buttonGroup = document.createElement("div"); buttonGroup.classList.add("button-group"); for (const value of option.valuePairs) { if (value.mode === "plain") { /* insert custom SC markup and go to next element */ $(buttonGroup).wiki(value.value); continue; } const button = document.createElement("button"); button.append(value.name); if (value.on) { button.classList.add("on"); } else if (value.off) { button.classList.add("off"); } else if (value.neutral) { button.classList.add("neutral"); } if (value.mode === "custom") { button.onclick = () => { value.callback(); if (value.value) { Engine.play(value.value); } else { App.UI.reload(); } }; } else { if (value.mode === "=" && currentValue === value.value) { button.classList.add("selected", "disabled"); anySelected = true; if (value.descAppend !== undefined) { desc.append(" "); $(desc).wiki(value.descAppend); } } else if (!anySelected && inRange(value.mode, value.compareValue, currentValue)) { button.classList.add("selected"); // disable the button if clicking it won't change the variable value if (currentValue === value.value) { button.classList.add("disabled"); } anySelected = true; if (value.descAppend !== undefined) { desc.append(" "); $(desc).wiki(value.descAppend); } } button.onclick = () => { option.object[option.property] = value.value; if (value.callback) { value.callback(); } App.UI.reload(); }; } buttonGroup.append(button); } if (option.textbox) { const isNumber = typeof currentValue === "number"; const textbox = App.UI.DOM.makeTextBox(currentValue, input => { option.object[option.property] = input; App.UI.reload(); }, isNumber); if (isNumber) { textbox.classList.add("number"); } buttonGroup.append(textbox); if (option.unit) { buttonGroup.append(" ", option.unit); } } if (option.comment) { const comment = document.createElement("span"); comment.classList.add("comment"); $(comment).wiki(option.comment); buttonGroup.append(comment); } container.append(buttonGroup); } return container; function inRange(mode, compareValue, value) { if (mode === "<") { return value < compareValue; } else if (mode === "<=") { return value <= compareValue; } else if (mode === ">") { return value > compareValue; } else if (mode === ">=") { return value >= compareValue; } return false; } } }; })();
MonsterMate/fc
src/gui/options/options.js
JavaScript
mit
7,213
:: Options [nobr jump-to-safe jump-from-safe] <style> .subHeading { width: 85%; text-align: center; margin-top: 1.5em; } .scLink { width: 85%; text-align: center; } .scLink2 { width: 73%; text-align: center; } </style> <<if lastVisited("Slave Interact") === 1>> <<set $storedLink = "Slave Interact">> <<else>> <<set $storedLink = "Main">> <</if>> <<set $nextButton = "Back", $nextLink = $storedLink, $encyclopedia = "How to Play">> <<set $passageSwitchHandler = App.EventHandlers.optionsChanged>> <<set _options = new App.UI.OptionsGroup()>> <<run _options.addOption("End of week autosaving is currently", "autosave") .addValue("Enabled", 1).on().addValue("Disabled", 0).off()>> <<includeDOM _options.render()>> <div> This save was created using FC version $ver build $releaseID. You are currently playing version: <<= App.Version.base>>, mod version: <<= App.Version.pmod>>, build: <<= App.Version.release>><<if App.Version.commitHash>>, commit: <<= App.Version.commitHash>><</if>> </div> <div class="indent"> [[Apply Backwards Compatibility Update|Backwards Compatibility]] </div> <<link "Reset extended family mode controllers">> <<run resetFamilyCounters()>> <<replace "#family-hint">>//@@.lightgreen;Done:@@ all family relations flushed and rebuilt.//<</replace>> <</link>> <span id="family-hint">//Clears and rebuilds .sister and .daughter tracking.//</span> <<if isNaN($rep)>> <br>[[Reset Reputation|Options][$rep = 0]] <</if>> <<if isNaN($cash)>> <br>[[Reset Money|Options][$cash = 500]] <</if>> <<if $releaseID == 1057>> <br>[[Free male anatomy removal due to accidentally flawed updater|Options][$PC.dick = 0, $PC.balls = 0, $PC.prostate = 0, $PC.scrotum = 0, $PC.ballsImplant = 0]] //Use this if your female PC picked up a few extra parts during the conversion process.// <</if>> <<if ($releaseID >= 1000) || $ver.startsWith("0.9") || $ver.startsWith("0.8") || $ver.startsWith("0.7") || $ver.startsWith("0.6")>> <br><br> ''NEW GAME PLUS'' <br> //You can begin a new game with up to five (or more) of your current slaves, although starting resources other than these slaves will be reduced. New Game Plus @@.yellow;MAY@@ work across versions. To attempt to migrate a save across versions:// <br>&nbsp;&nbsp;&nbsp;&nbsp;//1) Save on this screen// <br>&nbsp;&nbsp;&nbsp;&nbsp;//2) Re-open the .html in a new tab then load the above save.// <br>&nbsp;&nbsp;&nbsp;&nbsp;//3) [[Activate New Game Plus.|New Game Plus][$ui = "start"]] <<else>> //New Game Plus is not available because this game was not started with a compatible version.// <</if>> <br> <<run App.UI.tabBar.handlePreSelectedTab($tabChoice.Options)>> <div class="tab-bar"> <button class="tab-links" onclick="App.UI.tabBar.openTab(event, 'display')" id="tab display">Display</button> <button class="tab-links" onclick="App.UI.tabBar.openTab(event, 'content&flavor')" id="tab content&flavor">Content & flavour</button> <button class="tab-links" onclick="App.UI.tabBar.openTab(event, 'mods')" id="tab mods">Mods</button> <button class="tab-links" onclick="App.UI.tabBar.openTab(event, 'debug&cheating')" id="tab debug&cheating">Debug/cheating</button> <button class="tab-links" onclick="App.UI.tabBar.openTab(event, 'experimental')" id="tab experimental">Experimental</button> </div> <div id="display" class="tab-content"> <div class="content"> <h2>Reports</h2> <<set _options = new App.UI.OptionsGroup()>> <<run _options.addOption("End week report descriptive details are", "showEWD") .addValue("Enabled", 1).on().addValue("Disabled", 0).off()>> <<run _options.addOption("End week report performance details are", "showEWM") .addValue("Enabled", 1).on().addValue("Disabled", 0).off()>> <<run _options.addOption("Master Suite report details such as slave changes are", "verboseDescriptions") .addValue("Enabled", 1).on().addValue("Disabled", 0).off()>> <<run _options.addOption("End week societal effects from slaves are", "compressSocialEffects", $UI) .addValue("Expanded", 0).on().addValue("Compacted", 1).off()>> <<run _options.addOption("Accordion on week end defaults to", "useAccordion") .addValue("Open", 0).on().addValue("Collapsed", 1).off()>> <<run _options.addOption("Economic Tabs on weekly reports are", "useTabs") .addValue("Enabled", 1).on().addValue("Disabled", 0).off()>> <<run _options.addOption("Economic detail sheets for facilities are", "showEconomicDetails") .addValue("Enabled", 1).on().addValue("Disabled", 0).off()>> <<run _options.addOption("Economic report neighbor details such as trade impacts on culture are", "showNeighborDetails") .addValue("Enabled", 1).on().addValue("Disabled", 0).off()>> <<run _options.addOption("Numeric formatting is currently", "formatNumbers") .addValue("Enabled", 1).on().addValue("Disabled", 0).off() .addComment("This will comma-format numbers in some areas.")>> <<includeDOM _options.render()>> <h2>General</h2> <<set _options = new App.UI.OptionsGroup()>> <<run _options.addOption("Main menu leadership controls displayed", "positionMainLinks") .addValueList([["Above", 1], ["Above and below", 0], ["Below", -1]])>> <<run _options.addOption("New Model UI", "newModelUI") .addValue("Enabled", 1).on().addValue("Disabled", 0).off()>> <<run _options.addOption("Penthouse Facility Display", "verticalizeArcologyLinks") .addValueList([["Triple column", 3], ["Double Coloumn", 2], ["Single Column", 1], ["Collapsed", 0]])>> <<run _options.addOption("Main menu arcology description", "seeArcology") .addValue("Enabled", 1).on().addValue("Disabled", 0).off()>> <<run _options.addOption("Main menu desk description", "seeDesk") .addValue("Enabled", 1).on().addValue("Disabled", 0).off()>> <<run _options.addOption("Main menu newsfeed", "seeFCNN") .addValue("Enabled", 1).on().addValue("Disabled", 0).off()>> <<run _options.addOption("Tips from the Encyclopedia are", "showTipsFromEncy") .addValue("Enabled", 1).on().addValue("Disabled", 0).off()>> <<run _options.addOption("Help tooltips are", "tooltipsEnabled") .addValue("Enabled", 1).on().addValue("Disabled", 0).off() .addComment("This is mostly for new players. @@.exampleTooltip.noteworthy;Colored text@@ can have tooltips.")>> <<run _options.addOption("Main menu slave tabs are", "useSlaveSummaryTabs") .addValue("Enabled", 1).on().addValue("CardStyle", 2).on().addValue("Disabled", 0).off()>> <<run _options.addOption("The slave Quick list in-page scroll-to is", "useSlaveListInPageJSNavigation") .addValue("Enabled", 1).on().addValue("Disabled", 0).off()>> <<run _options.addOption("Condense special slaves into their own tab", "useSlaveSummaryOverviewTab") .addValue("Enabled", 1).on().addValue("Disabled", 0).off()>> <<run _options.addOption("Interactions with your fucktoys are", "fucktoyInteractionsPosition") .addValueList([["next to them", 1], ["at page bottom", 0]])>> <<run _options.addOption("Hide tabs in Slave Interact", "slaveInteractLongForm") .addValue("Enabled", true).on().addValue("Disabled", false).off()>> <<run _options.addOption("Line separations are", "lineSeparations") .addValue("Shown", 1).on().addValue("Hidden", 0).off()>> <<includeDOM _options.render()>> <p> UI theme selector. Allows to select a single CSS file to be loaded. <span class="red">The file has to be located in the same directory as the HTML file otherwise it will simply not load at all.</span> <<includeDOM App.UI.Theme.selector()>> </p> <h2>Sidebar</h2> <<set _options = new App.UI.OptionsGroup()>> <<run _options.addOption("Cash is", "Cash", $sideBarOptions) .addValue("Shown", 1).on().addValue("Hidden", 0).off()>> <<run _options.addOption("Upkeep is", "Upkeep", $sideBarOptions) .addValue("Shown", 1).on().addValue("Hidden", 0).off()>> <<run _options.addOption("Sex slave count is", "SexSlaveCount", $sideBarOptions) .addValue("Shown", 1).on().addValue("Hidden", 0).off()>> <<run _options.addOption("Room population is", "roomPop", $sideBarOptions) .addValue("Shown", 1).on().addValue("Hidden", 0).off()>> <<run _options.addOption("GSP is", "GSP", $sideBarOptions) .addValue("Shown", 1).on().addValue("Hidden", 0).off()>> <<run _options.addOption("Rep is", "Rep", $sideBarOptions) .addValue("Shown", 1).on().addValue("Hidden", 0).off()>> <<run _options.addOption("Confirmation before ending a week is", "confirmWeekEnd", $sideBarOptions) .addValue("Enabled", 1).on().addValue("Disabled", 0).off() .addComment("Enabling this will open a dialog box to confirm you meant to end a week.")>> <<if $secExpEnabled > 0>> <<run _options.addOption("Authority is", "Authority", $sideBarOptions) .addValue("Shown", 1).on().addValue("Hidden", 0).off()>> <<run _options.addOption("Security is", "Security", $sideBarOptions) .addValue("Shown", 1).on().addValue("Hidden", 0).off()>> <<run _options.addOption("Crime is", "Crime", $sideBarOptions) .addValue("Shown", 1).on().addValue("Hidden", 0).off()>> <</if>> <<includeDOM _options.render()>> <h2>Images</h2> <<set _options = new App.UI.OptionsGroup()>> <<run _options.addOption("Images are", "seeImages") .addValue("Enabled", 1).on().addValue("Disabled", 0).off()>> <<includeDOM _options.render()>> <<if $seeImages > 0>> <div class="imageRef" style="width:200px;height:200px;margin-left:50px;"> <<= SlaveArt(BaseSlave(), 0, 0)>> </div> <<set _options = new App.UI.OptionsGroup()>> <<run _options.addOption("", "imageChoice") .addValueList([["Revamped embedded vector art", 3], ["Non-embedded vector art", 2], ["NoX/Deepmurk's vector art", 1], ["Shokushu's rendered imagepack", 0]])>> <<if $imageChoice === 1>> <<run _options.addOption("").addComment('<span class="warning">Git compiled only, no exceptions.</span>')>> <<run _options.addOption("Face artwork is", "seeFaces") .addValue("Enabled", 1).on().addValue("Disabled", 0).off()>> <<run _options.addOption("Highlights on shiny clothing are", "seeVectorArtHighlights") .addValue("Enabled", 1).on().addValue("Disabled", 0).off()>> <<run _options.addOption("Height scaling", "seeHeight") .addValue("All images", 2).on().addValue("Small images", 1).neutral().addValue("Disabled", 0).off()>> <<run _options.addOption("Clothing erection bulges are", "showClothingErection") .addValue("Enabled", true).on().addValue("Disabled", false).off()>> <<elseif $imageChoice === 0>> <<run _options.addOption("").addComment(`You need """to""" <a href="https://mega.nz/#!upoAlBaZ!EbZ5wCixxZxBhMN_ireJTXt0SIPOywO2JW9XzTIPhe0">download the image pack</a> """and""" put the 'renders' folder into the resources/ folder where this html file is.` )>> <<run _options.addOption("Slave summary fetish images are", "seeMainFetishes") .addValue("Enabled", 1).on().addValue("Disabled", 0).off()>> <<elseif $imageChoice === 3>> <<run _options.addOption("").addComment('<span class="warning">Git compiled only, no exceptions.</span>')>> <<run _options.addOption("Clothing erection bulges are", "showClothingErection") .addValue("Enabled", true).on().addValue("Disabled", false).off()>> <</if>> <<run _options.addOption("PA avatar art is", "seeAvatar") .addValue("Enabled", 1).on().addValue("Disabled", 0).off()>> <<run _options.addOption("Slave images in lists are", "seeSummaryImages") .addValue("Enabled", 1).on().addValue("Disabled", 0).off()>> <<run _options.addOption("Slave images in the weekly report are", "seeReportImages") .addValue("Enabled", 1).on().addValue("Disabled", 0).off()>> <<includeDOM _options.render()>> <</if>> </div> </div> <div id="content&flavor" class="tab-content"> <div class="content"> <h2>Content</h2> //More granular control of what appears is in [[Description Options]].// <<set _options = new App.UI.OptionsGroup()>> <<run _options.addOption("The difficulty setting is currently set to", "baseDifficulty") .addValueList([["Very easy", 1], ["Easy", 2], ["Default", 3], ["Hard", 4], ["Very hard", 5]])>> <<run _options.addOption("Slaves falling ill is currently", "seeIllness") .addValue("Enabled", 1).on().addValue("Disabled", 0).off() .addComment("Will not affect existing ill slaves already in-game.")>> <<run _options.addOption("Extreme content like amputation is currently", "seeExtreme") .addValue("Enabled", 1).on().addValue("Disabled", 0).off() .addComment("Will not affect extreme surgeries already applied in-game.")>> <<run _options.addOption("Bestiality related content is currently", "seeBestiality") .addValue("Enabled", 1).on().addValue("Disabled", 0).off()>> <<run _options.addOption("Watersports related content is currently", "seePee") .addValue("Enabled", 1).on().addValue("Disabled", 0).off()>> <<run _options.addOption("Incest content is currently", "seeIncest") .addValue("Enabled", 1).on().addValue("Disabled", 0).off()>> <<run _options.addOption("Pregnancy related content is currently", "seePreg") .addValue("Enabled", 1).on().addValue("Disabled", 0).off() .addComment("Will not affect existing pregnancies already in-game.")>> <<run _options.addOption("Child gender to be generated based off dick content settings", "seeDicksAffectsPregnancy") .addValue("Enabled", 1).on().addValue("Disabled", 0).off() .addComment("<<if $seeDicksAffectsPregnancy === 1>>Currently <<print $seeDicks>>% of children will be born male. <</if>>Will not affect existing pregnancies already in-game.")>> <<if $seeDicksAffectsPregnancy === 0>> <<run _options.addOption("XX slaves only father daughters", "adamPrinciple") .addValue("Enabled", 1).on().addValue("Disabled", 0).off() .addComment("Will not affect existing pregnancies already in-game.")>> <</if>> <<run _options.addOption("Extreme pregnancy content like broodmothers is currently", "seeHyperPreg") .addValue("Enabled", 1).on().addValue("Disabled", 0).off() .addComment("Will not affect existing hyperpregnancies already in-game.")>> <<run _options.addOption("Pregnancy complications due to multiples and body size are currently", "dangerousPregnancy") .addValue("Enabled", 1).on().addValue("Disabled", 0).off()>> <<run _options.addOption("Precocious puberty (pregnancy younger than $fertilityAge)", "precociousPuberty") .addValue("Enabled", 1).on().addValue("Disabled", 0).off() .addComment("Will not affect existing precocious puberty cases already in-game.")>> <<run _options.addOption("Slaves with fat lips or heavy oral piercings may lisp", "disableLisping") .addValue("Yes", 0).on().addValue("No", 1).off()>> <<run _options.addOption("Disables the long term damage mechanic. //Temp option//", "disableLongDamage") .addValue("Enabled", 0).on().addValue("Disabled", 1).off()>> <<run _options.addOption("Experimental male pronouns are currently", "diversePronouns") .addValue("Enabled", 1).on().addValue("Disabled", 0).off() .addComment("Apply Backwards Compatibility after changing to update slave's pronouns. Not all scenes support male pronouns and this is not yet incorporated into the lore or mechanics.")>> <<run _options.addOption("Male slave names are currently", "allowMaleSlaveNames") .addValue("Enabled", true).on().addValue("Disabled", false).off() .addComment("This only affects slave generation and not your ability to name your slaves.")>> <<run _options.addOption("Missing slave names are currently", "showMissingSlaves") .addValue("Enabled", true).on().addValue("Disabled", false).off()>> <<includeDOM _options.render()>> <h2>Intersecting mechanics</h2> <<set _options = new App.UI.OptionsGroup()>> <<run _options.addOption("Slave assets affected by weight is", "weightAffectsAssets") .addValue("Enabled", 1).on().addValue("Disabled", 0).off() .addComment("Diet will still affect asset size.")>> <<run _options.addOption("Curative side effects are", "curativeSideEffects") .addValue("Enabled", 1).on().addValue("Disabled", 0).off() .addComment("If enabled, curatives have a chance to give slaves harmful side effects.")>> <<includeDOM _options.render()>> <h2>Flavour</h2> <<set _options = new App.UI.OptionsGroup()>> <<run _options.addOption("Slave reactions to facility assignments are", "showAssignToScenes") .addValue("Enabled", 1).on().addValue("Disabled", 0).off()>> <<run _options.addOption("Post sex clean up", "postSexCleanUp") .addValue("Enabled", 1).on().addValue("Disabled", 0).off()>> <<run _options.addOption("Appraisal miniscenes on slave sale are", "showAppraisal") .addValue("Enabled", 1).on().addValue("Disabled", 0).off()>> <<run _options.addOption("Assignment performance vignettes on the end week report are", "showVignettes") .addValue("Enabled", 1).on().addValue("Disabled", 0).off()>> <<run _options.addOption("Slaves can have alternate titles", "newDescriptions") .addValue("Enabled", 1).on().addValue("Disabled", 0).off()>> <<run _options.addOption("Family titles for relatives", "allowFamilyTitles") .addValue("Enabled", 1).on().addValue("Disabled", 0).off()>> <<run _options.addOption("Limit family growth", "limitFamilies") .addValue("Enabled", 1).on().addValue("Disabled", 0).off() .addComment("Restricts acquisition of additional relatives, by means other than birth, for slaves with families.")>> <<run _options.addOption("Distant relatives such as aunts, nieces and cousins are", "showDistantRelatives") .addValue("Enabled", 1).on().addValue("Disabled", 0).off()>> <<includeDOM _options.render()>> </div> </div> <div id="mods" class="tab-content"> <div class="content"> <<set _options = new App.UI.OptionsGroup()>> <<run _options.addOption("The Special Force Mod is currently", "Toggle", $SF) .addValue("Enabled", 1).on().addValue("Disabled", 0).off() .addComment("<div>This mod is triggered after week 72. It is non-canon where it conflicts with canonical updates to the base game.</div>")>> <<run _options.addOption("The Security Expansion mod is", "secExpEnabled") .addValue("Enabled", 1).on().addValue("Disabled", 0).off() .addComment("<div>The mod can be activated in any moment, but it may result in unbalanced gameplay if activated very late in the game.</div>")>> <<includeDOM _options.render()>> <<if $secExpEnabled > 0>> <<if Object.values(V.SecExp).length === 0>> <<include "SecExpBackwardCompatibility">> <<goto "Options">> <</if>> <h2>Security Expansion mod options</h2> <<if $terrain === "oceanic">> <div>Oceanic arcologies are not by default subject to external attacks. You can however allow them to happen anyway. If you choose to do so please keep in mind that descriptions and mechanics are not intended for naval combat but land combat.</div> <</if>> <<set _options = new App.UI.OptionsGroup()>> <<if $SecExp.settings.battle.enabled > 0 || $SecExp.settings.rebellion.enabled > 0>> <<run _options.addOption("Detailed battle statistics are", "showStats", $SecExp.settings) .addValue("Shown", 1).on().addValue("Hidden", 0).off() .addComment("Visibility of detailed statistics and battle turns.")>> <<run _options.addOption("Difficulty is", "difficulty", $SecExp.settings) .addValueList([["Extremely hard", 2], ["Very hard", 1.5], ["Hard", 1.25], ["Normal", 1], ["Easy", 0.75], ["Very easy", 0.5]])>> <<run _options.addOption("Unit descriptions are", "unitDescriptions", $SecExp.settings) .addValue("Abbreviated", 1).addValue("Summarized", 0)>> <</if>> <<run _options.addOption("Battles are", "enabled", $SecExp.settings.battle) .addValue("Enabled", 1).on().addValue("Disabled", 0).off()>> <<run _options.addOption("Rebellions are", "enabled", $SecExp.settings.rebellion) .addValue("Enabled", 1).on().addValue("Disabled", 0).off()>> <<if $SecExp.settings.battle.enabled > 0>> <<run _options.addOption("Battle frequency", "frequency", $SecExp.settings.battle) .addValueList([["Extremely high", 2], ["Very high", 1.5], ["High", 1.25], ["Normal", 1], ["Low", 0.75], ["Very low", 0.5]])>> <</if>> <<if $SecExp.settings.rebellion.enabled > 0>> <<run _options.addOption("Rebellion buildup", "speed", $SecExp.settings.rebellion) .addValueList([["Extremely fast", 2], ["Very fast", 1.5], ["Fast", 1.25], ["Normal", 1], ["Slow", 0.75], ["Very slow", 0.5]])>> <</if>> <<if $SecExp.settings.battle.enabled > 0>> <<run _options.addOption("Commanders gain a prestige rank every 10 victories", "allowSlavePrestige", $SecExp.settings.battle) .addValue("Yes", 1).on().addValue("No", 0).off()>> <</if>> <<if $SecExp.settings.battle.enabled > 0>> <<run _options.addOption("Force battles", "force", $SecExp.settings.battle) .addValue("Yes", 1).on().addValue("No", 0).off()>> <</if>> <<if $SecExp.settings.rebellion.enabled > 0>> <<run _options.addOption("Force rebellions", "force", $SecExp.settings.rebellion) .addValue("Yes", 1).on().addValue("No", 0).off() .addComment("Rebellions take precedence over Battles.")>> <</if>> <<if $SecExp.settings.battle.enabled > 0>> <<run _options.addOption("Late game major battles are", "enabled", $SecExp.settings.battle.major) .addValue("Enabled", 1).on().addValue("Disabled", 0).off()>> <</if>> <<if $SecExp.settings.battle.enabled > 0 && $SecExp.settings.battle.major.enabled > 0>> <<run _options.addOption("Multiplier is", "mult", $SecExp.settings.battle.major) .addValueList([["Extremely high", 2], ["Very high", 1.5], ["High", 1.25], ["Normal", 1], ["Low", 0.75], ["Very low", 0.5]])>> <<run _options.addOption("This week a major battle is", "force", $SecExp.settings.battle.major) .addValue("Guaranteed", 1).on().addValue("Not guaranteed", 0).off()>> <</if>> <<if $SecExp.settings.battle.enabled > 0 && $SecExp.settings.battle.major.enabled > 0>> <<run _options.addOption("Gameover on battle loss", "gameOver", $SecExp.settings.battle.major) .addValue("Yes", 1).on().addValue("No", 0).off()>> <</if>> <<if $SecExp.settings.rebellion.enabled > 0>> <<run _options.addOption("Gameover on rebellion loss", "gameOver", $SecExp.settings.rebellion) .addValue("Yes", 1).on().addValue("No", 0).off()>> <</if>> <<includeDOM _options.render()>> <div class="subHeading"> <<if $debugMode || $cheatMode || $cheatModeM>> ''Debug/cheat'' <<set _popCap = menialPopCap()>> <style> table.invisible { table-layout: fixed; border-collapse: separate; border-spacing: 5px; margin:1em auto; } </style> <table class="invisible"> <tr style="text-align:center"> <td colspan="2" > <<link "Set loyalty high" "Options">> <<for _i = 0; _i < $militiaUnits.length; _i++>> <<set $militiaUnits[_i].loyalty = random(80,100)>> <</for>> <<for _i = 0; _i < $slaveUnits.length; _i++>> <<set $slaveUnits[_i].loyalty = random(80,100)>> <</for>> <<for _i = 0; _i < $mercUnits.length; _i++>> <<set $mercUnits[_i].loyalty = random(80,100)>> <</for>> <</link>> | <<link "Set loyalty average" "Options">> <<for _i = 0; _i < $militiaUnits.length; _i++>> <<set $militiaUnits[_i].loyalty = random(40,60)>> <</for>> <<for _i = 0; _i < $slaveUnits.length; _i++>> <<set $slaveUnits[_i].loyalty = random(40,60)>> <</for>> <<for _i = 0; _i < $mercUnits.length; _i++>> <<set $mercUnits[_i].loyalty = random(40,60)>> <</for>> <</link>> | <<link "Set loyalty low" "Options">> <<for _i = 0; _i < $militiaUnits.length; _i++>> <<set $militiaUnits[_i].loyalty = random(20)>> <</for>> <<for _i = 0; _i < $slaveUnits.length; _i++>> <<set $slaveUnits[_i].loyalty = random(20)>> <</for>> <<for _i = 0; _i < $mercUnits.length; _i++>> <<set $mercUnits[_i].loyalty = random(20)>> <</for>> <</link>> | <<link "Randomize loyalty" "Options">> <<for _i = 0; _i < $militiaUnits.length; _i++>> <<set $militiaUnits[_i].loyalty = random(100)>> <</for>> <<for _i = 0; _i < $slaveUnits.length; _i++>> <<set $slaveUnits[_i].loyalty = random(100)>> <</for>> <<for _i = 0; _i < $mercUnits.length; _i++>> <<set $mercUnits[_i].loyalty = random(100)>> <</for>> <</link>> </td> </tr> <tr style="text-align:center"> <td colspan="2"> <<link "Give Authority" "Options">> <<set $SecExp.core.authority = Math.clamp($SecExp.core.authority + 1000, 0, 20000)>> <</link>> | <<link "Remove Authority" "Options">> <<set $SecExp.core.authority = Math.clamp($SecExp.core.authority - 1000, 0, 20000)>> <</link>> </td> </tr> <tr> <td style="text-align:right"> <<link "Raise security" "Options">> <<set $SecExp.core.security = Math.clamp($SecExp.core.security + 5, 0, 100)>> <</link>> | <<link "Lower security" "Options">> <<set $SecExp.core.security = Math.clamp($SecExp.core.security - 5, 0, 100)>> <</link>> </td> <td style="text-align:left"> <<link "Raise crime" "Options">> <<set $SecExp.core.crimeLow = Math.clamp($SecExp.core.crimeLow + 5, 0, 100)>> <</link>> | <<link "Lower crime" "Options">> <<set $SecExp.core.crimeLow = Math.clamp($SecExp.core.crimeLow - 5, 0, 100)>> <</link>> </td> </tr> <tr> <td style="text-align:right"> <<link "Give militia manpower" "Options">> <<set $militiaFreeManpower += 30>> <</link>> | <<link "Remove militia manpower" "Options">> <<set $militiaFreeManpower = Math.max($militiaFreeManpower - 30, 0)>> <</link>> </td> <td style="text-align:left"> <<link "Give mercs manpower" "Options">> <<set $mercFreeManpower += 30>> <</link>> | <<link "Remove mercs manpower" "Options">> <<set $mercFreeManpower = Math.max($mercFreeManpower - 30, 0)>> <</link>> </td> </tr> </table> <</if>> /* closes cheatmode check */ </div> <</if>> /* closes SecExp check*/ </div> </div> <div id="debug&cheating" class="tab-content"> <div class="content"> <h2>Debug</h2> <<set _options = new App.UI.OptionsGroup()>> <<run _options.addOption("DebugMode is", "debugMode") .addValue("Enabled", 1).on().addValue("Disabled", 0).off() .addComment("This will add a Display Variables and Bug Report passage to the sidebar.")>> <<if $debugMode > 0>> <<run _options.addOption("The custom function part of debug mode is", "debugModeCustomFunction") .addValue("Enabled", 1).on().addValue("Disabled", 0).off()>> <</if>> <<set _option = _options.addOption("Genetics array") .customButton("Run test", () => Engine.play("test genetics"))>> <<if $cheatMode == 1>> <<run _option.customButton("Edit Genetics", () => Engine.play("Edit Genetics"))>> <<else>> <<run _option.addComment("Enable cheat mode to edit genetics.")>> <</if>> <<run _options.addOption("Rules Assistant").addCustomElement('<<button "Reset Rules">><<run initRules()>><<goto "Rules Assistant">><</button>>')>> <<run _options.addOption("Passage Profiler is", "profiler") .addValue("Enabled", 1).on().addValue("Disabled", 0).off() .addComment("Outputs performance data at the bottom of every passage.")>> <<includeDOM _options.render()>> <h2>Cheating</h2> <<set _options = new App.UI.OptionsGroup()>> <<run _options.addOption("CheatMode is", "cheatMode") .addValue("Enabled", 1).on().addValue("Disabled", 0).off() .addComment("This will allow manual selection of events and unlock some options that would usually be restricted by progress.")>> <<if $cheatMode === 0>> <<includeDOM _options.render()>> <<else>> <<run _options.addOption("Sidebar Cheats are currently", "cheatModeM") .addValue("Shown", 1).on().addValue("Hidden", 0).off()>> <<run _options.addOption("Slave aging", "seeAge") .addValue("Enabled", 1).on().addValue("Celebrate birthdays, but don't age.", 2).neutral().addValue("Disabled", 0).off()>> <<includeDOM _options.render()>> <div class="scLink2"> [[Add 100000 money|Options][$cheater = 1, cashX(100000, "cheating")]] | [[Add 10000 rep|Options][$cheater = 1, repX(10000, "cheating")]] //Cheating will be flagged in your save// </div> <div class="scLink2"> <<= SectorCounts()>> <<link "Raise prosperity cap" "Options">> <<set $AProsperityCapModified += 10>> <</link>> | <<link "Lower prosperity cap" "Options">> <<set $AProsperityCapModified -= 10>> <</link>> <br> <<link "Raise prosperity" "Options">> <<set $arcologies[0].prosperity = Math.clamp($arcologies[0].prosperity + 10, 0, $AProsperityCap)>> <</link>> | <<link "Lower prosperity" "Options">> <<set $arcologies[0].prosperity = Math.clamp($arcologies[0].prosperity - 10, 0, $AProsperityCap)>> <</link>> <br> <<link "Give menial slaves" "Options">> <<set $menials = Math.clamp($menials + 30, 0, _popCap.value)>> <</link>> | <<link "Remove menial slaves" "Options">> <<set $menials = Math.clamp($menials - 30, 0, _popCap.value)>> <</link>> </div> /% <br>Thanks for making this a right pain twine <br> <<link "Add citizens" "Options">> /*Will no longer work as intended due to population changes*/ <<set $lowerClass = Math.max($lowerClass + 200, 0)>> <</link>> | <<link "Remove citizens" "Options">> /*also no longer properly functional*/ <<set $lowerClass = Math.max($lowerClass - 200, 0)>> <</link>> <br> <<link "Add slaves" "Options">> /*Will work to a limited degree, minimums and maximums for slaves are set through population*/ <<set $NPCSlaves = Math.max($NPCSlaves + 200, 0)>> <</link>> | <<link "Remove slaves" "Options">> /*Will work to a limited degree*/ <<set $NPCSlaves = Math.max($NPCSlaves - 200, 0)>> <</link>> %/ <</if>> </div> </div> <div id="experimental" class="tab-content"> <div style="fontWeight:bold"> Experimental means just that: experimental. Options below are likely to be in an <span class="yellow">even more incomplete or broken state than usual.</span> <span class="red">THEY MAY NOT WORK AT ALL.</span> Make sure you back up your save before enabling any of these, and if you are that interested, consider helping to improve them. </div> <<set _options = new App.UI.OptionsGroup()>> <<if $seePreg !== 0>> <<run _options.addOption("Nursery is", "nursery", $experimental) .addValue("Enabled", 1).on().addValue("Disabled", 0).off() .addComment("This will enable the experimental nursery, which allows players to interact with growing slave children. An alternative to the incubator.")>> <</if>> <<run _options.addOption("Food is", "food", $experimental) .addValue("Enabled", 1).on().addValue("Disabled", 0).off() .addComment("This will enable the experimental food supply and demand system, as well as a new farmyard building and assignments.")>> <<if $seeExtreme === 1 && $seeBestiality === 1>> <<run _options.addOption("Animal Ovaries are", "animalOvaries", $experimental) .addValue("Enabled", 1).on().addValue("Disabled", 0).off() .addComment("This will allow slaves to be impregnated by animals.")>> <</if>> <<if $seeExtreme === 1>> <<run _options.addOption("Dinner party", "dinnerParty", $experimental) .addValue("Enabled", 1).on().addValue("Disabled", 0).off() .addComment("This will enable a controversial but very broken event. Warning: Snuff, cannibalism.")>> <</if>> <<run _options.addOption("New event", "tempEventToggle") .addValue("Enabled", 1).on().addValue("Disabled", 0).off()>> <<includeDOM _options.render()>> </div>
MonsterMate/fc
src/gui/options/options.tw
tw
mit
31,698
:: Summary Options [nobr jump-to-safe jump-from-safe] <<set $nextButton = "Back">> <<if $storedLink !== "Slave Interact" && $storedLink !== "Main">> <<if lastVisited("Main") === 1>> <<set $storedLink = "Main">> <<else>> <<set $storedLink = "Options">> <</if>> <</if>> <<set $nextLink = $storedLink>> <<set $passageSwitchHandler = App.EventHandlers.optionsChanged>> <h1>Summary Options</h1> <p class="scene-intro"> These options will affect the short slave summaries that appear on the main menu and the facility management screens. </p> <h2>Main menu features</h2> <<set _options = new App.UI.OptionsGroup()>> <<run _options.addOption("Rules Assistant visibility", "rulesAssistantMain") .addValue("Shown", 1).on().addValue("Hidden", 0).off()>> <<run _options.addOption("Facilities in the sidebar are", "abbreviateSidebar") .addValueList([["Summarized", 2], ["Abbreviated", 1]])>> <<run _options.addOption("Sorting main menu options are", "sortSlavesMain") .addValue("Shown", 1).on().addValue("Hidden", 0).off()>> <<if $sortSlavesMain > 0>> <<run _options.addOption("Sorting direction", "sortSlavesOrder") .addValueList([["Ascending", "ascending"], ["Descending", "descending"]])>> <<run _options.addOption("Slaves are sorted by", "sortSlavesBy") .addValueList([["Devotion", "devotion"], ["Name", "name"], ["Date purchased", "seniority"], ["Age", "actualAge"], ["How old they look", "visualAge"], ["Age of their body", "physicalAge"], ["Assignment", "assignment"], ["Weekly Income", "weeklyIncome"]])>> <</if>> <<includeDOM _options.render()>> <h2>Individual panels</h2> Sample summary: <<includeDOM App.UI.SlaveList.render([$slaves.random().ID], new Array(), App.UI.SlaveList.SlaveInteract.stdInteract)>> <<set _options = (new App.UI.OptionsGroup()).enableDoubleColumn()>> <<run _options.addOption("Panel style is", "slavePanelStyle") .addValueList([["None", 0], ["Line Separator", 1], ["Card", 2]])>> <<run App.UI.SlaveSummary.addOptions(_options)>> <<run _options.addOption("Granular slave stat numbers are", "summaryStats") .addValue("Shown", 1).on().addValue("Hidden", 0).off()>> <<run _options.addOption("Main menu assignment shortcuts are", "displayAssignments") .addValue("Shown", 1).on().addValue("Hidden", 0).off()>> <<if $showMissingSlaves>> <<run _options.addOption("Missing slave parents are", "showMissingSlavesSD") .addValue("Shown", true).on().addValue("Hidden", false).off()>> <</if>> <<includeDOM _options.render()>> <p style="font-style:italic"> [[FC Dev's preferred options|Summary Options ][$seeDesk = 0, $seeFCNN = 0, $sortSlavesBy = "devotion",$sortSlavesOrder = "descending",$sortSlavesMain = 0,$rulesAssistantMain = 1, $UI.slaveSummary.abbreviation = {devotion: 1, mental: 1, rules: 1, clothes: 2, health: 1, diet: 1, drugs: 1, hormoneBalance: 1, race: 1, genitalia: 1, physicals: 1, skills: 1, nationality: 1, rulesets: 1, clothes: 0, origins: 0} ,$abbreviateSidebar = 1]] </p>
MonsterMate/fc
src/gui/options/summaryOptions.tw
tw
mit
2,939
/** * Generate a list of links the player can safely jump to. * * Tags are: * jump-to-safe: Allow to jump to this passage from anywhere * jump-from-safe: Allow to jump from this passage to anywhere * hidden: Allows to jump to via history, but does not show up in the quick links menu; use together with jump-to-safe * no-history: Do not record history for this passage, act as if was never opened; mutually exclusive with the jump tags * * @returns {DocumentFragment} */ App.UI.quickMenu = (function() { // setup passage lists const jumpFrom = Story.lookup("tags", "jump-from-safe").map(passage => passage.title); const jumpTo = Story.lookup("tags", "jump-to-safe").map(passage => passage.title); const hidden = Story.lookup("tags", "jump-hidden").map(passage => passage.title); const noHistory = Story.lookup("tags", "no-history").map(passage => passage.title); // if property name is a passage name, then it's a link, otherwise only text. // category titles are never links to passages // Only two values are allowed: true or an object following the same rules const layout = addOtherCategory({ Main: true, Manage: { "Manage Penthouse": true, "Manage Arcology": true, "Manage Personal Affairs": true, "Manage Corporation": true, "Personal assistant options":true, Firebase: true, propagandaHub: true, securityHQ: true, secBarracks: true, riotControlCenter: true, }, Social: { "Future Society": true, Policies: true, edicts: true, "Universal Rules": true, "Neighbor Interact": true, }, Facilities: { "Head Girl Suite": true, "BG Select": true, Brothel: true, Club: true, Arcade: true, Dairy: true, Farmyard: true, "Servants' Quarters": true, "Master Suite": true, Schoolroom: true, Spa: true, Nursery: true, Clinic: true, Cellblock: true, Incubator: true, Pit: true, }, Locations: { "Gene Lab": true, Dispensary: true, "Organ Farm": true, "Implant Manufactory": true, "Prosthetic Lab": true, Wardrobe: true, "The Black Market": true, }, Tools: { "Find Slave": true, "Underperforming Slaves": true, "Rules Assistant": true, "Personal Attention Select": true, }, Options: { Options: true, "Summary Options": true, "Description Options": true, "Hotkey Settings": true, } }); // true means hidden const hiddenPassages = cleanPassageMapping({ Arcade: () => !V.arcade, "BG Select": () => V.dojo <= 1, Brothel: () => !V.brothel, Cellblock: () => !V.cellblock, Clinic: () => !V.clinic, Club: () => !V.club, Dairy: () => !V.dairy, Dispensary: () => !V.dispensary, edicts: () => V.secExpEnabled <= 0, Farmyard: () => !V.farmyard, Firebase: () => !V.SF.Toggle || V.SF.Toggle < 1 || V.SF.Active < 1, "Future Society": () => !V.FSAnnounced, "Gene Lab": () => !V.geneticMappingUpgrade, "Head Girl Suite": () => !V.HGSuite, "Implant Manufactory": () => !V.ImplantProductionUpgrade, Incubator: () => !V.incubator, "Manage Corporation": () => V.corp.Announced !== 1, "Master Suite": () => !V.masterSuite, "Neighbor Interact": () => V.arcologies.length === 0, Nursery: () => !V.nursery, "Organ Farm": () => !V.organFarmUpgrade, Pit: () => !V.pit, propagandaHub: () => V.secExpEnabled === 0 || !V.SecExp.buildings.propHub, "Prosthetic Lab": () => V.researchLab.level === 0, riotControlCenter: () => V.secExpEnabled === 0 || !V.SecExp.buildings.riotCenter, Schoolroom: () => !V.schoolroom, secBarracks: () => V.secExpEnabled === 0 || !V.SecExp.buildings.barracks, securityHQ: () => V.secExpEnabled === 0 || !V.SecExp.buildings.secHub, "Servants' Quarters": () => !V.servantsQuarters, Spa: () => !V.spa, "The Black Market": () => V.rep < 10000, }); // show different names than the actual passage name, can be a function const uiNames = cleanPassageMapping({ Arcade: () => App.Entity.facilities.arcade.UIName, "BG Select": "Armory", Brothel: () => App.Entity.facilities.brothel.UIName, Cellblock: () => App.Entity.facilities.cellblock.UIName, Clinic: () => App.Entity.facilities.clinic.UIName, Club: () => App.Entity.facilities.club.UIName, Dairy: () => App.Entity.facilities.dairy.UIName, Dispensary: "Pharmaceutical Fabricator", edicts: "Edicts", Farmyard: () => App.Entity.facilities.farmyard.UIName, "Find Slave": "Locate Slave", Firebase: () => `${capFirstChar(V.SF.Lower || "No one")}'s Firebase`, "Future Society": "Future Societies", "Head Girl Suite": () => App.Entity.facilities.headGirlSuite.UIName, Incubator: () => App.Entity.facilities.incubator.UIName, "Master Suite": () => App.Entity.facilities.masterSuite.UIName, "Neighbor Interact": "Diplomacy", Nursery: () => App.Entity.facilities.nursery.UIName, Options: "Game Options", "Personal assistant options": "Personal Assistant", "Personal Attention Select":"Personal Attention", Pit: () => App.Entity.facilities.pit.UIName, propagandaHub: "Manage PR", riotControlCenter: "Manage Rebels", Schoolroom: () => App.Entity.facilities.schoolroom.UIName, secBarracks: "Manage Military", securityHQ: "Manage Security", "Servants' Quarters": () => App.Entity.facilities.servantsQuarters.UIName, Spa: () => App.Entity.facilities.spa.UIName, "The Black Market": "Black Market", }); // extra information behind the link, is a function const f = App.Entity.facilities; const extraInfo = cleanPassageMapping({ Arcade: () => occupancy(f.arcade), "BG Select": () => occupancy(f.armory), Brothel: () => occupancy(f.brothel), Cellblock: () => occupancy(f.cellblock), Clinic: () => occupancy(f.clinic), Club: () => occupancy(f.club), Dairy: () => occupancy(f.dairy), Farmyard: () => occupancy(f.farmyard), "Head Girl Suite": () => occupancy(f.headGirlSuite), Incubator: () => occupancy(f.incubator), "Master Suite": () => occupancy(f.masterSuite), Nursery: () => occupancy(f.nursery), Pit: () => occupancy(f.pit), Schoolroom: () => occupancy(f.schoolroom), "Servants' Quarters": () => occupancy(f.servantsQuarters), Spa: () => occupancy(f.spa), }); // true shows a notification symbol const notifications = cleanPassageMapping({ "Future Society": () => FutureSocieties.availCredits() > 0 || V.FSReminder, Incubator: () => V.readySlaves > 0, "Manage Corporation": () => V.corp.SpecToken > 0 && V.corp.SpecTimer === 0, }); /** * The DOM element of name of the currently played passage or any of it's parents. Used during generation to * uncollapse the category with the current passage. * @type {HTMLElement} */ let currentPassage; /** * DOM elements that have a notification. Used to traverse upwards to give the categories notifications too. * @type {Array<HTMLElement>} */ let notificationPassages; let hotkeysEnabled = false; // register hotkeys // this is in it's own scope as we can forget the hotkeys object immediately afterwards { // setup hotkeys list, upper/lower case is important! const hotkeys = cleanPassageMapping({ "BG Select": "b", "Buy Slaves": "s", edicts: "shift+e", Firebase: "z", "Future Society": "f", Main: "m", "Manage Arcology": "c", "Manage Corporation": "shift+c", "Manage Penthouse": "p", "Manage Personal Affairs": "x", "Neighbor Interact": "d", Options: "o", "Personal assistant options": "t", "Personal Attention Select": "a", Policies: "y", propagandaHub: "shift+h", "Recruiter Select": "u", riotControlCenter: "shift+r", "Rules Assistant": "r", secBarracks: "shift+a", securityHQ: "shift+s", "Universal Rules": "v", // Facilities Brothel: "1", Club: "2", Arcade: "3", Dairy: "4", Farmyard: "5", "Servants' Quarters": "6", "Master Suite": "7", Schoolroom: "8", Spa: "9", Nursery: "0", Clinic: "shift+1", Cellblock: "shift+2", Incubator: "shift+3", Pit: "shift+4", }); // register for (const passage of jumpTo) { if (!hidden.includes(passage)) { const action = { callback: () => { if (hotkeysEnabled // we are not already on the passage && State.passage !== passage // the passage is accessible && !(hiddenPassages[passage] && hiddenPassages[passage]())) { Engine.play(passage); } }, combinations: [], }; // add hotkey if there is one if (hotkeys[passage]) { action.combinations.push(hotkeys[passage]); } // custom ui text if (uiNames[passage]) { action.uiName = uiNames[passage]; } App.UI.Hotkeys.add(passage, action); } } } // setup history let history = []; let historyNavigation = false; $(document).on(':passageinit', event => { // if navigated here normally, add passage to history, otherwise remove last entry from history if (!historyNavigation) { if (State.passage === event.passage.title // reloaded || noHistory.includes(State.passage) // came from a no-history passage || noHistory.includes(event.passage.title) // no history for this passage ) { return; } // if last passage can be jumped to add passage to history, otherwise clear history if (jumpTo.includes(State.passage)) { history.unshift(State.passage); } else { history = []; } } else { historyNavigation = false; history.shift(); } }); App.UI.Hotkeys.add("historyBack", {callback: goBack, combinations: ["backspace"], uiName: "Back in history"}); /** * Goes back in history if possible. */ function goBack() { if (history.length > 0 && jumpFrom.includes(State.passage)) { historyNavigation = true; Engine.play(history[0]); } } /** * Add a "Return" link at second position if there is a history. * @param {Array<HTMLElement>} linkList */ function addBackLink(linkList) { if (history.length > 0) { const div = document.createElement("div"); div.classList.add("menu-link"); const a = document.createElement("a"); a.append("Return"); a.onclick = goBack; const hotkey = App.UI.Hotkeys.hotkeys("historyBack"); if (hotkey !== "") { div.append(a, " ", App.UI.DOM.makeElement("span", hotkey, "hotkey")); } // insert at second position linkList.splice(1, 0, div); } } /** * Generate a quick menu * @returns {string|HTMLDivElement} */ function generateMenu() { if (!jumpFrom.includes(State.passage)) { hotkeysEnabled = false; return ""; } hotkeysEnabled = true; currentPassage = null; notificationPassages = []; const div = document.createElement("div"); div.classList.add("quick-links"); try { // quick menu const links = generateLinkList(layout); if (V.debugMode) { addCategory(links, "Hidden", hidden.reduce((acc, cur) => { acc[cur] = true; return acc; }, {})); } addBackLink(links); div.append(...links); // traverse from current passage up to uncollapse. if (currentPassage !== null) { while (!currentPassage.classList.contains("quick-links")) { currentPassage.classList.remove("collapsed"); currentPassage = currentPassage.parentElement; } } // traverse from notifications up to add icon for (let i = 0; i < notificationPassages.length; i++) { while (!notificationPassages[i].classList.contains("quick-links")) { if (notificationPassages[i].classList.contains("category")) { notificationPassages[i].classList.add("notification"); } notificationPassages[i] = notificationPassages[i].parentElement; } } } catch (e) { console.error(e); div.append("Quick Links generation failed. Please run ", App.UI.DOM.passageLink("Backwards Compatibility", "Backwards Compatibility")); } return div; } /** * Create a list of links and/or categories based on the given category * * @param {object} category * @returns {Array<HTMLElement>} */ function generateLinkList(category) { /** @type {Array<HTMLElement>} */ const links = []; for (const passage in category) { if (category[passage] === true) { addMenuLink(links, passage); } else { addCategory(links, passage, category[passage]); } } return links; } /** * Add a category to a link list * * @param {Array<HTMLElement>} outerLinkList * @param {string} name * @param {object} category */ function addCategory(outerLinkList, name, category) { const innerLinkList = generateLinkList(category); if (innerLinkList.length === 0) { // category is empty return; } const toggle = document.createElement("div"); toggle.classList.add("toggle"); toggle.append(name); const content = document.createElement("div"); content.classList.add("content"); content.append(...innerLinkList); // wrap everything in one div, so we can control collapsing by changing only one class const wrapper = document.createElement("div"); wrapper.classList.add("category", "collapsed"); toggle.onclick = () => { wrapper.classList.toggle("collapsed"); }; wrapper.append(toggle, content); outerLinkList.push(wrapper); } /** * Create a link to the given passage and add it to the link list if link is accessible. * * @param {Array<HTMLElement>} linkList * @param {string} passage */ function addMenuLink(linkList, passage) { // passage is hidden if (hiddenPassages.hasOwnProperty(passage) && hiddenPassages[passage]()) { return; } // we show some kind of text/link const div = document.createElement("div"); linkList.push(div); div.classList.add("menu-link"); // this passage has a notification if (notifications[passage] && notifications[passage]()) { notificationPassages.push(div); div.classList.add("notification"); } // there is additional non-link info if (extraInfo[passage]) { div.append(" ", extraInfo[passage]()); } // we are already on this passage if (State.passage === passage) { div.prepend(uiName(passage)); currentPassage = div; return; } // That is not a passage we can safely jump to, it's a deco element if (!jumpTo.includes(passage)) { div.prepend(uiName(passage)); return; } // Create link const a = document.createElement("a"); a.append(uiName(passage)); a.onclick = () => { Engine.play(passage); }; div.prepend(a); const hotkeyString = App.UI.Hotkeys.hotkeys(passage); if (hotkeyString !== "") { div.append(" ", App.UI.DOM.makeElement("span", hotkeyString, "hotkey")); } } /** * Gives back the proper name for the passage or the passage title itself if there is none * * @param {string} passage * @returns {string} */ function uiName(passage) { if (uiNames[passage]) { if (typeof uiNames[passage] === "function") { return uiNames[passage](); } return uiNames[passage]; } return passage; } /** * Adds an "Other" category to a given layout consisting of passages that can be jumped to not sorted into the * existing layout. * * @param {object} layout * @returns {object} */ function addOtherCategory(layout) { const passages = jumpTo.slice(); // filter out passages used in layout filterPassages(passages, layout); // filter out hidden passages for (let i = 0; i < hidden.length; i++) { const index = passages.indexOf(hidden[i]); if (index > -1) { passages.splice(index, 1); } } // Other category if (passages.length > 0) { const other = {}; for (let i = 0; i < passages.length; i++) { other[passages[i]] = true; } layout.Other = other; } return layout; } /** * Remove all entries from a given list that exist as keys in a given layout. * * @param {Array<string>} passages * @param {object} layout */ function filterPassages(passages, layout) { for (const category in layout) { if (layout[category] === true) { const index = passages.indexOf(category); if (index > -1) { passages.splice(index, 1); } } else { filterPassages(passages, layout[category]); } } } /** * @param {App.Entity.Facilities.Facility} facility * @returns {string} */ function occupancy(facility) { const desc = facility.occupancyReport(V.abbreviateSidebar === 2); if (desc === "") { return ""; } return `(${desc})`; } /** * Cleans out all mappings that are not contained in jumpTo and therefore not considered safe. * * @param {object} keys * @returns {object} */ function cleanPassageMapping(keys) { const result = {}; for (const key in keys) { if (jumpTo.includes(key)) { result[key] = keys[key]; } else { console.log("Found mapping to unsafe passage: " + key + " to " + keys[key]); } } return result; } return generateMenu; })();
MonsterMate/fc
src/gui/quicklinks.js
JavaScript
mit
16,666
App.UI.storyCaption = function() { const pass = passage(); const fragment = document.createDocumentFragment(); if (V.ui !== "start") { App.UI.DOM.appendNewElement("p", fragment, App.Utils.userButton()); if (V.cheatMode || V.debugMode) { App.UI.DOM.appendNewElement("div", fragment, pass); if (pass === "JS Random Event") { App.UI.DOM.appendNewElement("div", fragment, V.event.eventName); } } fragment.append(week()); fragment.append(weather()); if (V.sideBarOptions.Cash > 0) { fragment.append(cash()); } if (V.foodMarket > 0) { fragment.append(food()); } if (V.sideBarOptions.Upkeep > 0) { fragment.append(upkeep()); } if (V.sideBarOptions.SexSlaveCount > 0) { fragment.append(slaves()); } if (V.sideBarOptions.roomPop > 0) { fragment.append(rooms()); } if (pass !== "Manage Penthouse") { if (V.sideBarOptions.GSP > 0 && pass !== "Neighbor Interact") { fragment.append(economy()); } if (V.sideBarOptions.Rep > 0) { fragment.append(reputation()); } if (V.secExpEnabled > 0) { if (V.sideBarOptions.Authority > 0) { fragment.append(authority()); } if (V.sideBarOptions.Security > 0) { fragment.append(security()); } if (V.sideBarOptions.Crime > 0) { fragment.append(crime()); } } } App.UI.DOM.appendNewElement("p", fragment, App.UI.quickMenu()); if (V.nextButton !== "Continue" && V.nextButton !== " ") { if (pass === "Rules Assistant") { App.UI.DOM.appendNewElement("p", fragment, App.UI.DOM.passageLink("Rules Assistant Summary", "Rules Assistant Summary")); } if (V.debugMode > 0) { fragment.append(debug()); } /* Closes nextButton != "Continue" && nextButton != " " */ } } else if (pass === "Starting Girls") { fragment.append(startingGirls()); } const p = document.createElement("p"); p.append(App.UI.DOM.makeElement("span", "FCE", "bold"), ": ", App.Encyclopedia.Dialog.linkDOM(V.encyclopedia, V.encyclopedia)); fragment.append(p); return fragment; function week() { const fragment = document.createDocumentFragment(); const div = document.createElement("div"); App.UI.DOM.appendNewElement("span", div, `Week ${V.week}`, "bold"); if (V.week > 52) { div.append(` (${years(V.week)})`); } fragment.append(div); App.UI.DOM.appendNewElement("div", fragment, `Week of ${asDateString(V.week)}`); if (showCheats()) { fragment.append(App.UI.DOM.makeTextBox(V.week, week => { week = Math.trunc(week); V.week = week > 0 ? week : V.week; App.Utils.scheduleSidebarRefresh(); }, true)); } return fragment; } function weather() { const div = App.UI.DOM.appendNewElement("div", fragment, V.weatherToday.name, "note"); if (V.weatherToday.severity === 1) { div.classList.add("cyan"); } else if (V.weatherToday.severity === 2) { div.classList.add("yellow"); } else if (V.weatherToday.severity === 3) { div.classList.add("orange"); } else { div.classList.add("red"); } return div; } function cash() { const fragment = document.createDocumentFragment(); V.cash = Math.trunc(V.cash); const css = ["cash"]; if (V.cash <= 0) { css.push("dec"); } const cashDiv = document.createElement("div"); App.UI.DOM.appendNewElement("span", cashDiv, "Cash", css); cashDiv.append(" | "); App.UI.DOM.appendNewElement("span", cashDiv, cashFormat(V.cash), css); fragment.append(cashDiv); if (pass === "Main") { const div = document.createElement("div"); div.append("("); let cashDiff = V.cash - V.cashLastWeek; if (cashDiff > 0) { App.UI.DOM.appendNewElement("span", div, cashFormat(cashDiff), "green"); } else { App.UI.DOM.appendNewElement("span", div, cashFormat(cashDiff), ["cash", "dec"]); } div.append(" since last week)"); fragment.append(div); } if (showCheats()) { fragment.append(App.UI.DOM.makeTextBox(V.cash, cash => { V.cash = Math.trunc(cash); V.cheater = 1; App.Utils.scheduleSidebarRefresh(); }, true)); } return fragment; } function food() { const fragment = document.createDocumentFragment(); const foodDiv = document.createElement("div"); V.food = Math.trunc(V.food); V.foodConsumption = Math.trunc((V.lowerClass * V.foodRate.lower) + (V.middleClass * V.foodRate.middle) + (V.upperClass * V.foodRate.upper) + (V.topClass * V.foodRate.top)); /* check if there is enough food for the next week */ if (V.food > V.foodConsumption) { App.UI.DOM.appendNewElement("span", foodDiv, "Food", "chocolate"); } else { App.UI.DOM.appendNewElement("span", foodDiv, "Food", "red"); } if (V.food < 0) { V.food = 0; } foodDiv.append(" | "); App.UI.DOM.appendNewElement("span", foodDiv, massFormat(V.food), "chocolate"); fragment.append(foodDiv); if (pass === "Main") { const foodDiv2 = document.createElement("div"); foodDiv2.append("("); const foodDiff = (V.food - V.foodLastWeek); App.UI.DOM.appendNewElement("span", foodDiv2, massFormat(foodDiff), foodDiff < 0 ? "red" : "chocolate"); foodDiv2.append(" since last week)"); fragment.append(foodDiv2); } if (showCheats()) { fragment.append(App.UI.DOM.makeTextBox(V.food, food => { food = Math.trunc(food); V.food = food > 0 ? food : 0; App.Utils.scheduleSidebarRefresh(); }, true)); } return fragment; } function upkeep() { const div = document.createElement("div"); if (pass === "Main") { div.append(App.UI.DOM.passageLink("Upkeep", "Costs Budget"), " | "); } else { div.append(" Upkeep | "); } App.UI.DOM.appendNewElement("span", div, cashFormat(V.costs), ["cash", "dec"]); return div; } function slaves() { const div = document.createElement("div"); App.UI.DOM.appendNewElement("span", div, "Total Sex Slaves", "pink"); div.append(` | ${V.slaves.length}`); return div; } function rooms() { const fragment = document.createDocumentFragment(); fragment.append(roomRow("Penthouse Beds", V.dormitoryPopulation + V.roomsPopulation, V.dormitory + V.rooms)); fragment.append(roomRow("Dormitory Beds", V.dormitoryPopulation, V.dormitory)); fragment.append(roomRow("Luxury Rooms", V.roomsPopulation, V.rooms)); return fragment; } /** * @param {string} name * @param {number} pops * @param {number} cap * @returns {HTMLDivElement} */ function roomRow(name, pops, cap) { const div = document.createElement("div"); App.UI.DOM.appendNewElement("span", div, name, "pink"); div.append(" | "); if (pops > cap) { App.UI.DOM.appendNewElement("span", div, pops, "warning"); } else { div.append(pops); } div.append(`/${cap}`); return div; } function economy() { const div = document.createElement("div"); App.UI.DOM.appendNewElement("span", div, "GSP", "yellowgreen"); div.append(` | ${num(Math.trunc(0.1 * V.arcologies[0].prosperity))}`); if (V.showNumbers === 2 || (V.showNumbers === 1 && Math.trunc(0.1 * V.arcologies[0].prosperity) > V.showNumbersMax)) { div.append("m"); } else { div.append(" million"); } div.append(" ", ownershipReport(true)); return div; } function reputation() { const div = document.createElement("div"); if (pass === "Main") { div.append(App.UI.DOM.passageLink("Rep", "Rep Budget")); } else { App.UI.DOM.appendNewElement("span", div, "Rep", ["reputation", "inc"]); } div.append(" | "); if (V.rep > 19000) { App.UI.DOM.appendNewElement("span", div, "worshipped").style.color = "rgb(0,145,0)"; } else if (V.rep > 18000) { App.UI.DOM.appendNewElement("span", div, "great").style.color = "rgb(0,150,0)"; } else if (V.rep > 17000) { App.UI.DOM.appendNewElement("span", div, "exalted").style.color = "rgb(0,155,0)"; } else if (V.rep > 16000) { App.UI.DOM.appendNewElement("span", div, "illustrious").style.color = "rgb(0,160,0)"; } else if (V.rep > 15000) { App.UI.DOM.appendNewElement("span", div, "prestigious").style.color = "rgb(0,165,0)"; } else if (V.rep > 14000) { App.UI.DOM.appendNewElement("span", div, "renowned").style.color = "rgb(0,170,0)"; } else if (V.rep > 13000) { App.UI.DOM.appendNewElement("span", div, "famed").style.color = "rgb(0,175,0)"; } else if (V.rep > 12000) { App.UI.DOM.appendNewElement("span", div, "celebrated").style.color = "rgb(0,180,0)"; } else if (V.rep > 11000) { App.UI.DOM.appendNewElement("span", div, "honored").style.color = "rgb(0,185,0)"; } else if (V.rep > 10000) { App.UI.DOM.appendNewElement("span", div, "acclaimed").style.color = "rgb(0,190,0)"; } else if (V.rep > 9000) { App.UI.DOM.appendNewElement("span", div, "eminent").style.color = "rgb(0,195,0)"; } else if (V.rep > 8250) { App.UI.DOM.appendNewElement("span", div, "prominent").style.color = "rgb(0,200,0)"; } else if (V.rep > 7500) { App.UI.DOM.appendNewElement("span", div, "distinguished").style.color = "rgb(0,205,0)"; } else if (V.rep > 6750) { App.UI.DOM.appendNewElement("span", div, "admired").style.color = "rgb(0,210,0)"; } else if (V.rep > 6000) { App.UI.DOM.appendNewElement("span", div, "esteemed").style.color = "rgb(0,215,0)"; } else if (V.rep > 5250) { App.UI.DOM.appendNewElement("span", div, "respected").style.color = "rgb(0,220,0)"; } else if (V.rep > 4500) { App.UI.DOM.appendNewElement("span", div, "known").style.color = "rgb(0,225,0)"; } else if (V.rep > 3750) { App.UI.DOM.appendNewElement("span", div, "recognized").style.color = "rgb(0,230,0)"; } else if (V.rep > 3000) { App.UI.DOM.appendNewElement("span", div, "rumored").style.color = "rgb(0,235,0)"; } else if (V.rep > 2250) { App.UI.DOM.appendNewElement("span", div, "envied").style.color = "rgb(0,240,0)"; } else if (V.rep > 1500) { App.UI.DOM.appendNewElement("span", div, "resented").style.color = "rgb(0,245,0)"; } else if (V.rep > 750) { App.UI.DOM.appendNewElement("span", div, "disliked").style.color = "rgb(0,250,0)"; } else { App.UI.DOM.appendNewElement("span", div, "unknown").style.color = "rgb(0,255,0)"; } div.append(` (${num(V.rep)})`); if (showCheats()) { div.append(App.UI.DOM.makeTextBox(V.rep, rep => { V.rep = Math.clamp(Math.trunc(rep), 0, 20000); V.cheater = 1; App.Utils.scheduleSidebarRefresh(); }, true)); } return div; } function authority() { const div = document.createElement("div"); App.UI.DOM.appendNewElement("span", div, "Auth", "darkviolet"); div.append(" | "); const span = document.createElement("span"); span.className = "darkviolet"; V.SecExp.core.authority = Math.clamp(Math.trunc(V.SecExp.core.authority), 0, 20000); if (V.SecExp.core.authority > 19500) { span.append("divine will"); } else if (V.SecExp.core.authority > 19000) { span.append("sovereign"); } else if (V.SecExp.core.authority > 18000) { span.append("monarch"); } else if (V.SecExp.core.authority > 17000) { span.append("tyrant"); } else if (V.SecExp.core.authority > 15000) { span.append("dictator"); } else if (V.SecExp.core.authority > 14000) { span.append("prince"); } else if (V.SecExp.core.authority > 13000) { span.append("master"); } else if (V.SecExp.core.authority > 12000) { span.append("leader"); } else if (V.SecExp.core.authority > 11000) { span.append("director"); } else if (V.SecExp.core.authority > 10000) { span.append("overseer"); } else if (V.SecExp.core.authority > 9000) { span.append("chief"); } else if (V.SecExp.core.authority > 8000) { span.append("manager"); } else if (V.SecExp.core.authority > 7000) { span.append("principal"); } else if (V.SecExp.core.authority > 6000) { span.append("auxiliary"); } else if (V.SecExp.core.authority > 5000) { span.append("subordinate"); } else if (V.SecExp.core.authority > 4000) { span.append("follower"); } else if (V.SecExp.core.authority > 3000) { span.append("powerless"); } else if (V.SecExp.core.authority > 2000) { span.append("toothless"); } else if (V.SecExp.core.authority > 1000) { span.append("mostly harmless"); } else { span.append("harmless"); } div.append(span, ` (${num(V.SecExp.core.authority)})`); if (showCheats()) { div.append(App.UI.DOM.makeTextBox(V.SecExp.core.authority, auth => { V.SecExp.core.authority = Math.clamp(Math.trunc(auth), 0, 20000); V.cheater = 1; App.Utils.scheduleSidebarRefresh(); })); } return div; } function security() { const div = document.createElement("div"); App.UI.DOM.appendNewElement("span", div, "Security", "deepskyblue"); div.append(" | "); App.UI.DOM.appendNewElement("span", div, `${Math.trunc(V.SecExp.core.security)}%`, "deepskyblue"); if (showCheats()) { div.append(App.UI.DOM.makeTextBox(V.SecExp.core.security, sec => { V.SecExp.core.security = Math.clamp(Math.trunc(sec), 0, 100); V.cheater = 1; App.Utils.scheduleSidebarRefresh(); }, true)); } return div; } function crime() { const div = document.createElement("div"); App.UI.DOM.appendNewElement("span", div, "Crime", "orangered"); div.append(" | "); App.UI.DOM.appendNewElement("span", div, `${Math.trunc(V.SecExp.core.crimeLow)}%`, "orangered"); if (showCheats()) { div.append(App.UI.DOM.makeTextBox(V.SecExp.core.crimeLow, crime => { V.SecExp.core.crimeLow = Math.clamp(Math.trunc(crime), 0, 100); V.cheater = 1; App.Utils.scheduleSidebarRefresh(); }, true)); } return div; } function showCheats() { return pass === "Main" && V.cheatMode && V.cheatModeM; } function debug() { const p = document.createElement("p"); p.append("Debugging Tools"); App.UI.DOM.appendNewElement("div", p, App.UI.DOM.link("Display Variables", App.checkVars)); App.UI.DOM.appendNewElement("div", p, App.UI.DOM.link("Display Changed Variables", () => { /* makes sure we store the current state so we can return to it */ Config.history.maxStates = 2; Engine.play("Variable Difference"); })); if (V.debugModeCustomFunction > 0) { const textarea = document.createElement("textarea"); textarea.id = "cheat-function"; p.append(textarea); p.append(App.UI.DOM.link("Run Custom Function", () => { let value = textarea.value; if (value.charAt(0) !== "(") { value = `() => {${value}}`; } if (typeof eval(value) === "function") { (eval(value))(); Engine.play(pass); } else { Dialog.append("Not a valid function").open(); } })); } App.UI.DOM.appendNewElement("div", p, App.UI.DOM.link("Dump Game State", App.Debug.dumpGameState)); return p; } function startingGirls() { let _slaveCost = startingSlaveCost(V.activeSlave); const p = document.createElement("p"); if (_slaveCost > V.cash) { const div = document.createElement("div"); div.classList.add("cash", "dec"); div.append("This slave will cost ", App.UI.DOM.makeElement("span", cashFormat(_slaveCost), "bold"), ".", App.UI.DOM.makeElement("div", `You only have: ${cashFormat(V.cash)}.`)); p.append(div); } else { const div = document.createElement("div"); div.append("This slave will cost ", App.UI.DOM.makeElement("span", cashFormat(_slaveCost), "cash"), ".", App.UI.DOM.makeElement("div", `You have ${cashFormat(V.cash)}.`)); p.append(div); } return p; } };
MonsterMate/fc
src/gui/storyCaption.js
JavaScript
mit
15,268
:: StoryCaption [nobr] <<includeDOM App.UI.storyCaption()>>
MonsterMate/fc
src/gui/storyCaption.tw
tw
mit
61
:: SVG filters <svg class="defs-only" style="width: 0; height: 0; position: absolute;"> <filter id="skin-black" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="0.15 0 0 0 0 0 0.1 0 0 0 0 0 0.05 0 0 0 0 0 1 0"/> </filter> <filter id="skin-bronzed" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="0.8 0 0.1 0 0 0 0.6 0 0 0 0 0 0.3 0 0 0 0 0 1 0"/> </filter> <filter id="skin-brown" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="0.8 0 0 0 0 0 0.5 0 0 0 0 0 0.15 0 0 0 0 0 1 0"/> </filter> <filter id="skin-dark" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="0.5 0 0 0 0 0 0.2 0 0 0 0 0 0.1 0 0 0 0 0 1 0 "/> </filter> <filter id="skin-ebony" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="0.1 0 0 0 0 0 0.05 0 0 0 0 0 0.05 0 0 0 0 0 1 0"/> </filter> <filter id="skin-extremely-pale" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="1.05 0 0 0 0 0 1.05 0 0 0 0 0 1.1 0 0 0 0 0 1 0"/> </filter> <filter id="skin-fair" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="0.8 0 0 0 0.2 0 0.8 0 0 0.2 0 0 0.8 0 0.2 0 0 0 1 0"/> </filter> <filter id="skin-light" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="0.5 0 0 0 0.5 0 0.5 0 0 0.5 0 0 0.5 0 0.5 0 0 0 1 0"/> </filter> <filter id="skin-light-brown" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="0.8 0 0 0 0 0 0.7 0 0 0 0 0 0.5 0 0 0 0 0 1 0"/> </filter> <filter id="skin-olive" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="0.9 0 0 0 0 0 0.8 0 0 0 0 0 0.6 0 0 0 0 0 1 0"/> </filter> <filter id="skin-pale" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="0.6 0 0 0 0.4 0 0.6 0 0 0.4 0 0 1 0 0 0 0 0 1 0"/> </filter> <filter id="skin-tanned" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="0.8 0 0 0 0 0 0.65 0 0 0 0 0 0.5 0 0 0 0 0 1 0"/> </filter> <filter id="skin-white" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"/> </filter> <filter id="skin-dyed-red" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="0.6 0 0 0 0.4 0 0.25 0 0 0.2 0 0 0 0 0.3 0 0 0 1 0 "/> </filter> <filter id="skin-dyed-green" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="0.7 0 0 0 0 0.2 0.65 0.15 0 0 0 0 0.5 0 0 0 0 0 1 0"/> </filter> <filter id="skin-dyed-blue" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="0.3 0 0 0 0 0 0.5 0 0 0 0.4 0.2 0.25 0 0.1 0 0 0 1 0"/> </filter> <filter id="hair-ashen" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="0.7 0 0 0 0.1 0 0.7 0 0 0.1 0 0 0.7 0 0.1 0 0 0 1 0"/> </filter> <filter id="hair-auburn" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="0.8 0 0 0 0.2 0 0.5 0 0 0 0 0 0.15 0 0 0 0 0 1 0"/> </filter> <filter id="hair-black" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="0.2 0 0 0 0 0 0.15 0 0 0 0 0 0.1 0 0 0 0 0 1 0"/> </filter> <filter id="hair-blazing-red" color-interpolation-filters="sRGB"> <feComponentTransfer> <feFuncR type="gamma" exponent="0.10" /> <feFuncG type="gamma" exponent="3.00" /> <feFuncB type="gamma" exponent="7.50" /> </feComponentTransfer> </filter> <filter id="hair-blonde" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="1.4 0 0 0 0 0 1.3 0 0 0 0 0 0.7 0 0 0 0 0 1 0"/> </filter> <filter id="hair-blue" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="0.3 0 0 0 0 0 0.5 0 0 0 0.4 0.2 0.25 0 0.1 0 0 0 1 0"/> </filter> <filter id="hair-bright-red" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="1 0 0 0 0.2 0 0.4 0 0 0 0 0 0.1 0 0.1 0 0 0 1 0"/> </filter> <filter id="hair-brown" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="0.8 0 0 0 0 0 0.5 0 0 0 0 0 0.15 0 0 0 0 0 1 0"/> </filter> <filter id="hair-brunette" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="0.8 0 0 0 0 0 0.5 0 0 0 0 0 0.15 0 0 0 0 0 1 0"/> </filter> <filter id="hair-burgundy" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="0.45 0 0 0 0.25 0 0.2 0 0 0.1 0 0 0.3 0 0.2 0 0 0 1 0"/> </filter> <filter id="hair-chestnut" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="0.9 0 0 0 0.2 0 0.7 0 0 0 0 0 0.1 0 0.1 0 0 0 1 0"/> </filter> <filter id="hair-chocolate-brown" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="0.6 0 0 0 0 0 0.2 0 0 0 0 0 0.1 0 0 0 0 0 1 0"/> </filter> <filter id="hair-copper" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="1.5 0 0 0 -0.2 0 0.8 0 0 -0.2 0 0 0.1 0 0 0 0 0 1 0"/> </filter> <filter id="hair-dark" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="0.5 0 0 0 0 0 0.2 0 0 0 0 0 0.1 0 0 0 0 0 1 0"/> </filter> <filter id="hair-dark-blonde" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="1.1 0 0 0 0 0 0.9 0 0 0 0 0 0.4 0 0 0 0 0 1 0"/> </filter> <filter id="hair-dark-brown" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="0.6 0 0 0 0 0 0.35 0 0 0 0 0 0.1 0 0 0 0 0 1 0"/> </filter> <filter id="hair-dark-red" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="0.7 0 0 0 0.2 0 0.15 0 0 0.1 0 0 0 0 0 0 0 0 1 0"/> </filter> <filter id="hair-deep-red" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="1.5 0 0 0 -0.3 0 0.3 0 0 -0.1 0 0 0 0 0 0 0 0 1 0"/> </filter> <filter id="hair-dirty-blonde" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="0.8 0 0 0 0.3 0 0.7 0 0 0.3 0 0 0.2 0 0.5 0 0 0 1 0"/> </filter> <filter id="hair-fair-blonde" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="1 0 0 0 0.5 0 0.8 0 0 0.4 0 0 0.6 0 0.2 0 0 0 1 0"/> </filter> <filter id="hair-ginger" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="1.2 0 0 0 0.1 0 0.9 0 0 0 0 0 0.1 0 0.3 0 0 0 1 0"/> </filter> <filter id="hair-golden" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="1.7 0 0 0 -0.1 0 1.5 0 0 -0.1 0 0 0.1 0 0.3 0 0 0 1 0"/> </filter> <filter id="hair-golden-blonde" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="1.8 0 0 0 -0.3 0 1.6 0 0 -0.4 0 0 0.3 0 0.1 0 0 0 1 0"/> </filter> <filter id="hair-green" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="0.7 0 0 0 0 0.2 0.65 0.15 0 0 0 0 0.5 0 0 0 0 0 1 0"/> </filter> <filter id="hair-gray" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"/> </filter> <filter id="hair-grey" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"/> </filter> <filter id="hair-hazel" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="0.8 0 0 0 0.2 0 0.5 0 0 0.2 0 0 0.15 0 0.15 0 0 0 1 0"/> </filter> <filter id="hair-light-brown" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="0.8 0 0 0 0 0 0.7 0 0 0 0 0 0.5 0 0 0 0 0 1 0"/> </filter> <filter id="hair-light-purple" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="0.7 0 0 0 0.4 0 0.1 0 0 0.2 0 0 0.7 0 0.3 0 0 0 1 0"/> </filter> <filter id="hair-neon-blue" color-interpolation-filters="sRGB"> <feComponentTransfer> <feFuncR type="gamma" exponent="3.75" /> <feFuncG type="gamma" exponent="0.75" /> <feFuncB type="gamma" exponent="0.25" /> </feComponentTransfer> </filter> <filter id="hair-neon-green" color-interpolation-filters="sRGB"> <feComponentTransfer> <feFuncR type="gamma" exponent="3.00" /> <feFuncG type="gamma" exponent="0.25" /> <feFuncB type="gamma" exponent="0.98" /> </feComponentTransfer> </filter> <filter id="hair-neon-pink" color-interpolation-filters="sRGB"> <feComponentTransfer> <feFuncR type="gamma" exponent="0.10" /> <feFuncG type="gamma" exponent="1.00" /> <feFuncB type="gamma" exponent="0.50" /> </feComponentTransfer> </filter> <filter id="hair-olive" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="0.7 0 0 0 0 0 0.6 0 0 0 0 0 0.15 0 0 0 0 0 1 0"/> </filter> <filter id="hair-onyx-black" color-interpolation-filters="sRGB"> <feComponentTransfer> <feFuncR type="gamma" exponent="5.50" /> <feFuncG type="gamma" exponent="6.00" /> <feFuncB type="gamma" exponent="7.00" /> </feComponentTransfer> </filter> <filter id="hair-pale-blonde" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="0.45 0 0 0 0.7 0 0.4 0 0 0.7 0 0 0.6 0 0.4 0 0 0 1 0"/> </filter> <filter id="hair-peachy" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="1.45 0 0 0 0 0 1.4 -0.1 0 -0.1 0 0 0.85 0 0 0 0 0 1 0"/> </filter> <filter id="hair-pink" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="1.5 0 0 0 0 0 1.5 -0.2 0 -0.2 0 0 1 0 0 0 0 0 1 0"/> </filter> <filter id="hair-platinum-blonde" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="0.6 0 0 0 0.4 0 0.6 0 0 0.4 0 0 1 0 0 0 0 0 1 0"/> </filter> <filter id="hair-purple" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="0.9 0 0 0 0 0 0.2 0 0 0 0 0 1 0 0 0 0 0 1 0"/> </filter> <filter id="hair-raven-black" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="0.2 0 0 0 0 0 0.2 0 0 0 0 0 0.3 0 0 0 0 0 1 0"/> </filter> <filter id="hair-red" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="0.6 0 0 0 0.4 0 0.25 0 0 0.2 0 0 0 0 0.3 0 0 0 1 0"/> </filter> <filter id="hair-red-blonde" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="1 0 0 0 0.25 0 0.8 0 0 0.1 0 0 0.35 0 0.15 0 0 0 1 0"/> </filter> <filter id="hair-silver" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="0.8 0 0 0 0.3 0 0.8 0 0 0.3 0 0 0.8 0 0.3 0 0 0 1 0"/> </filter> <filter id="hair-strawberry-blonde" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="1.2 0 0 0 0.2 0 1.2 0 0 0 0 0 0.7 0 0 0 0 0 1 0"/> </filter> <filter id="hair-violet" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="2 -1 0 0 0 0 2 -1 0 0 -1 0 2 0 0 0 0 0 1 0"/> </filter> <filter id="hair-white" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="0.6 0 0 0 0.5 0 0.6 0 0 0.5 0 0 0.6 0 0.5 0 0 0 1 0"/> </filter> <filter id="hair-white-blonde" color-interpolation-filters="sRGB"> <feColorMatrix type="matrix" values="0.7 0 0 0 0.5 0 0.7 0 0 0.5 0 0 0.5 0 0.4 0 0 0 1 0"/> </filter> </svg>
MonsterMate/fc
src/gui/svgFilters.tw
tw
mit
10,988
App.UI.Theme = (function() { // NOTE: Due to browser limitations it is not possible to retrieve the path of selected files, only the filename. // We therefore expect all files to be located in the same directory as the HTML file. Selected files from somewhere // else will simply not be loaded or if a file in the correct place has the same name, it will be loaded instead. /** @type {HTMLLinkElement} */ let currentThemeElement = null; return { selector: selector, loadTheme: loadTheme, init: loadFromStorage, }; /** * @returns {HTMLDivElement} */ function selector() { const div = document.createElement("div"); const selector = document.createElement("input"); selector.type = "file"; selector.accept = ".css"; div.append(selector); div.append(" ", App.UI.DOM.link("Load", () => { if (selector.files.length > 0) { const themeFile = selector.files[0]; loadTheme(themeFile.name); } }), " ", App.UI.DOM.link("Unload", unloadTheme)); return div; } /** * @param {string} [filename] or filepath relative to the HTML file. */ function loadTheme(filename) { unloadTheme(); if (filename) { SugarCube.storage.set("theme", filename); currentThemeElement = document.createElement("link"); currentThemeElement.setAttribute("rel", "stylesheet"); currentThemeElement.setAttribute("type", "text/css"); currentThemeElement.setAttribute("href", `./${filename}`); // make it unique to force reloading instead of using the cached version currentThemeElement.href += `?id=${Date.now()}`; document.head.appendChild(currentThemeElement); } } /** * Unloads the current theme */ function unloadTheme() { if (currentThemeElement !== null) { document.head.removeChild(currentThemeElement); currentThemeElement = null; SugarCube.storage.delete("theme"); } } /** * Loads a saved theme from browser storage */ function loadFromStorage() { const file = SugarCube.storage.get("theme"); if (file !== null) { loadTheme(file); } } })();
MonsterMate/fc
src/gui/theming.js
JavaScript
mit
2,036
App.UI.updateSidebarTooltips = (function() { // The performance impact is around O(tooltips * nodes), with large passages (main, slave assignment report) adding // tooltips could potentially take a significant amount of time when there are many potential tooltips. const tooltips = { exampleTooltip: "I am a helpful tooltip. We are very rare because we are still in development.", devotion: "Devotion is a measure of a slave's love for you.", trust: "Trust is a measure of a slave's expectations of you and confidence to perform well.", defiant: "Defiant slaves will actively work against you.", flaw: "Flaws impend your slaves performance. Try removing or converting them into quirks.", intelligent: "More intelligent slaves tend to perform better.", health: "The healthier your slaves, the better they perform.", positive: "This is good.", // noteworthy: "This is important.", warning: "This is very bad. Try removing the cause for this.", error: "Something just broke. Please report this.", cash: "Money. Always useful.", reputation: "Your reputation as a slaveowner. The more, the better.", /* skill: "t", fetish: "t", relationship: "t", change: "t", virginity: "t", pregnant: "t", stupid: "t", education: "t", */ }; /** * @param {Document|HTMLElement} container */ function addTooltips(container) { if (V.tooltipsEnabled === 0) { return; } for (const tooltipsKey in tooltips) { const elements = container.getElementsByClassName(tooltipsKey); for (const element of elements) { element.title += `${tooltips[tooltipsKey]}\n`; } } } function updateSidebar() { addTooltips(document.getElementById("story-caption")); } // passage $(document).on(":passagerender", e => addTooltips(e.content)); // story caption $(document).on(":passageend", updateSidebar); // dialog $(document).on(":dialogopening", e => addTooltips(e.target)); return updateSidebar; })();
MonsterMate/fc
src/gui/tooltips.js
JavaScript
mit
1,955
App.Utils.userButton = function(nextButton = V.nextButton, nextLink = V.nextLink) { const el = document.createElement("span"); el.id = "next-button-wrapper"; // We must always have a named element so we have something to refresh even if the button is hidden for a scene const pass = passage(); let link; if (pass !== "End Week") { if (pass === "Main") { link = App.UI.DOM.link( "END WEEK", () => endWeek() ); link.style.fontWeight = "bold"; link.id = "endWeekButton"; el.append(link); el.append(" "); App.UI.DOM.appendNewElement("span", el, App.UI.Hotkeys.hotkeys("endWeek"), "hotkey"); if (V.rulesAssistantAuto === 1 && DefaultRulesError()) { App.UI.DOM.appendNewElement("div", el, `WARNING: Rules Assistant has rules with errors!`, "yellow"); } } else { if (nextButton !== " ") { link = App.UI.DOM.passageLink( nextButton, nextLink ); link.style.fontWeight = "bold"; link.id = "nextButton"; el.append(link); el.append(" "); App.UI.DOM.appendNewElement("span", el, App.UI.Hotkeys.hotkeys("nextLink"), "hotkey"); } } } return el; }; App.Utils.updateUserButton = function() { return jQuery("#next-button-wrapper").empty().append(App.Utils.userButton()); };
MonsterMate/fc
src/gui/userButton.js
JavaScript
mit
1,255
:: setupVars [widget nobr] /* * This passage is tagged as widget, so it will be loaded whenever any passage is loaded. The global setup object seems to reset itself to {} (empty object): until we figure out why, this is where we set properties for it. */ <<for _k,_v range App.Data.misc>> <<set setup[_k] = _v>> <</for>> <<run App.Art.cacheArtData()>> <<run App.Corporate.Init()>>
MonsterMate/fc
src/init/setupVars.tw
tw
mit
383
:: init [nobr] /* FREE CITIES a text-based slave management game Copyright (C) 2017 freecitiesdev This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* Set up the game as politely as possible. If values are already set, they are preserved. */ <<run App.Update.setNonexistentProperties(V, App.Data.defaultGameStateVariables)>> /* These variables must be created AND set to default values, NG+ or not */ <<run App.Update.setExistentProperties(V, App.Data.resetOnNGPlus)>> <<set $ver = App.Version.base, $pmodVer = App.Version.pmod, $releaseID = App.Version.release>> /* 0 out the record books as we start a new game */ <<run setupLastWeeksCash()>> <<run setupLastWeeksRep()>> <<if $saveImported == 0>> /* new game (not NG+) */ <<set $PC = basePlayer()>> <<run WombInit($PC)>> <<run cashX(10000, "personalBusiness")>> <<run initRules()>> <<else>> /* imported save (NG+) */ <<run App.Data.NewGamePlus()>> <</if>> /* Porn star counts (prestige 1) and ID's (prestige 3) */ <<set $pornStars = {}>> <<for _genre range App.Porn.getAllGenres()>> <<set $pornStars[_genre.fameVar] = { p1count: 0, p3ID: 0 }>> <</for>> <<run assistant.object()>> <<run repX(1000, "event")>> <<run setup.prostheticIDs.forEach(function(id) { $prosthetics[id] = {amount: 0, research: 0}; })>> <<set $JobIDMap = makeJobIdMap()>> <<= App.SF.Init()>> <<set $foodConsumption = (($lowerClass*$foodRate.lower) + ($middleClass*$foodRate.middle) + ($upperClass*$foodRate.upper) + ($topClass*$foodRate.top))>> /* total amount food consumed per week */ <<set $weatherToday = App.Data.weather.hotnice.random()>> <<set $weatherLastWeek = 1>> <<set $weatherType = 1>> <<set $weatherRemaining = 6>> <<set $prisonCircuitIndex = random(0,$prisonCircuit.length-1)>> /* I am not a slave object! Do not treat me like one! */ <<set $customSlave = new App.Entity.CustomSlaveOrder()>> <<set $huskSlave = new App.Entity.CustomSlaveOrder()>> <<goto "Alpha disclaimer">>
MonsterMate/fc
src/init/storyInit.tw
tw
mit
2,495
App.Data.Records = {}; App.Data.Records.LastWeeksCash = function() { // Slaves in general this.slaveMod = 0; this.slaveSurgery = 0; this.birth = 0; this.porn = 0; // Slave Income and Expenses per assignment this.slaveAssignmentRest = 0; this.slaveAssignmentRestVign = 0; this.slaveAssignmentFucktoy = 0; this.slaveAssignmentClasses = 0; this.slaveAssignmentHouse = 0; this.slaveAssignmentHouseVign = 0; this.slaveAssignmentWhore = 0; this.slaveAssignmentWhoreVign = 0; this.slaveAssignmentPublic = 0; this.slaveAssignmentPublicVign = 0; this.slaveAssignmentSubordinate = 0; this.slaveAssignmentMilked = 0; this.slaveAssignmentMilkedVign = 0; this.slaveAssignmentExtraMilk = 0; this.slaveAssignmentExtraMilkVign = 0; this.slaveAssignmentGloryhole = 0; this.slaveAssignmentConfinement = 0; this.slaveAssignmentBodyguard = 0; this.slaveAssignmentHeadgirl = 0; this.slaveAssignmentHeadgirlsuite = 0; this.slaveAssignmentRecruiter = 0; this.slaveAssignmentConcubine = 0; this.slaveAssignmentMastersuite = 0; this.slaveAssignmentAgent = 0; this.slaveAssignmentAgentPartner = 0; this.slaveAssignmentArcade = 0; this.slaveAssignmentMadam = 0; this.slaveAssignmentMadamVign = 0; this.slaveAssignmentBrothel = 0; this.slaveAssignmentBrothelVign = 0; this.slaveAssignmentWarden = 0; this.slaveAssignmentCellblock = 0; this.slaveAssignmentDj = 0; this.slaveAssignmentDjVign = 0; this.slaveAssignmentClub = 0; this.slaveAssignmentClubVign = 0; this.slaveAssignmentNurse = 0; this.slaveAssignmentClinic = 0; this.slaveAssignmentMilkmaid = 0; this.slaveAssignmentDairy = 0; this.slaveAssignmentDairyVign = 0; this.slaveAssignmentFarmer = 0; this.slaveAssignmentFarmyard = 0; this.slaveAssignmentFarmyardVign = 0; this.slaveAssignmentMatron = 0; this.slaveAssignmentNursery = 0; this.slaveAssignmentNurseryVign = 0; this.slaveAssignmentTeacher = 0; this.slaveAssignmentSchool = 0; this.slaveAssignmentSteward = 0; this.slaveAssignmentQuarter = 0; this.slaveAssignmentQuarterVign = 0; this.slaveAssignmentAttendant = 0; this.slaveAssignmentSpa = 0; this.slaveAssignmentBaby_factory = 0; this.slaveAssignmentChoice = 0; // Menial Slaves this.menialTrades = 0; this.fuckdolls = 0; this.menialBioreactors = 0; // Misc Slaves this.labScientists = 0; this.labMenials = 0; this.slaveTransfer = 0; this.menialTransfer = 0; this.fuckdollsTransfer = 0; this.menialBioreactorsTransfer = 0; this.menialTransferA = 0; this.fuckdollsTransferA = 0; this.menialBioreactorsTransferA = 0; this.labScientistsTransfer = 0; this.babyTransfer = 0; this.menialRetirement = 0; // Buildings this.masterSuite = 0; this.arcade = 0; this.brothel = 0; this.brothelAds = 0; this.cellblock = 0; this.club = 0; this.clubAds = 0; this.clinic = 0; this.dairy = 0; this.farmyard = 0; this.incubator = 0; this.incubatorSlaves = 0; this.nursery = 0; this.pit = 0; this.lab = 0; this.labResearch = 0; this.school = 0; this.servantsQuarters = 0; this.spa = 0; // Arcology this.environment = 0; this.weather = 0; this.mercenaries = 0; this.peacekeepers = 0; this.specialForces = 0; this.specialForcesCap = 0; this.securityExpansion = 0; this.citizenOrphanage = 0; this.privateOrphanage = 0; this.capEx = 0; this.futureSocieties = 0; this.schoolBacking = 0; this.policies = 0; this.subsidiesAndBarriers = 0; this.edicts = 0; // Personal Finance this.personalBusiness = 0; this.personalLivingExpenses = 0; this.PCtraining = 0; this.PCmedical = 0; this.PCskills = 0; this.stocksTraded = 0; // trading this.stocks = 0; // share growth this.fines = 0; this.event = 0; // poker night etc. Try to file things elsewhere if you can. this.war = 0; this.rents = 0; this.cheating = 0; this.total = 0; }; App.Data.Records.LastWeeksRep = function() { // Slave Jobs this.fucktoy = 0; this.publicServant = 0; this.gloryholeArcade = 0; this.gloryhole = 0; this.disobedience = 0; this.concubine = 0; this.headGirl = 0; this.bodyguard = 0; this.recruiter = 0; // Slaves in general this.fuckdolls = 0; this.slaveTransfer = 0; this.babyTransfer = 0; this.birth = 0; this.retirement = 0; this.slavesViewOfPC = 0; this.prestigiousSlave = 0; this.vignette = 0; this.porn = 0; // Buildings this.arcade = 0; this.brothel = 0; this.club = 0; this.publicServantClub = 0; this.clubAds = 0; this.pit = 0; this.servantsQuarters = 0; this.spa = 0; this.shows = 0; // e.g. Farmyard shows, etc this.architecture = 0; // Policies this.capEx = 0; this.futureSocieties = 0; this.policies = 0; this.subsidiesAndBarriers = 0; this.edicts = 0; this.war = 0; this.food = 0; // Forces this.peacekeepers = 0; this.specialForces = 0; this.securityExpansion = 0; // Personal Finance this.personalBusiness = 0; this.PCappearance = 0; this.PCactions = 0; // actions involving your body = becoming pregnant; etc. this.PCRelationships = 0; this.SlaveRelationships = 0; this.event = 0; // poker night etc. Try to file things elsewhere if you can. this.war = 0; // special this.multiplier = 0; this.overflow = 0; this.cheating = 0; this.total = 0; };
MonsterMate/fc
src/interaction/budgets/recordTemplates.js
JavaScript
mit
5,147
/** * @param {App.Entity.SlaveState} slave */ App.UI.SlaveInteract.killSlave = function(slave) { // MARK: Declarations const frag = new DocumentFragment; const {He, His, he, him, his, daughter, himself} = getPronouns(slave); const FS = { FSRomanRevivalist: 'gladius', FSNeoImperialist: 'estoc', FSAztecRevivalist: 'Tecpatl', FSEgyptianRevivalist: 'kopesh', FSEdoRevivalist: 'katana', FSArabianRevivalist: 'scimitar', FSChineseRevivalist: 'jian', }; let weapon = "handgun"; let qualifiedFS = false; for (const fs in FS) { if (V.arcologies[0][fs] !== "unset") { qualifiedFS = true; weapon = FS[fs]; } } frag.appendChild(intro()); if (V.pit && V.pit.slaveFightingBodyguard) { frag.appendChild(plannedFight()); } else { frag.appendChild(links()); } return frag; // MARK: Text Functions function intro() { const introDiv = document.createElement("div"); introDiv.append(`You ${canWalk(slave) ? `call ${slave.slaveName}` : `have ${slave.slaveName} brought`} into your office. `); if (slave.fuckdoll) { introDiv.append(`It's hard to tell the expression on the Fuckdoll's face, but your guess is it's `); if (slave.fetish !== "mindbroken") { introDiv.append(`one of `); if (slave.devotion > 50) { introDiv.append(`adoration. `); } else if (slave.devotion > 20) { introDiv.append(`calm. `); } else if (slave.devotion > -20) { introDiv.append(`apprehension. `); } else { introDiv.append(`hatred. `); } } else { introDiv.append(`blank. `); } } else { introDiv.append(`${He} looks at you `); if (slave.devotion > 50) { introDiv.append(`with adoration`); } else if (slave.devotion > 20) { introDiv.append(`calmly`); } else if (slave.devotion > -20) { introDiv.append(`with apprehension`); } else { introDiv.append(`with hatred`); } introDiv.append(` and waits for you to continue. `); } introDiv.append(`You tell ${him} that you've gotten tired of having ${him} around and that you decided it is time to get rid of ${him}. `); if (slave.fuckdoll) { introDiv.append(`${He} simply nods, not being able to see `); } else { if (slave.fetish !== "mindbroken") { introDiv.append(`${His} expression changes to one of `); if (slave.devotion > 50) { introDiv.append(`pure sorrow`); } else if (slave.devotion > 20) { introDiv.append(`sadness`); } else { introDiv.append(`relief`); } introDiv.append(` until `); } else { introDiv.append(`${He} just nods dumbly and continues to watch you with a vacant expression, even as `); } } introDiv.append(`you ${canHear(slave) ? `quietly ` : ``}reach behind your desk and pull out your trusty ${weapon}`); if (!slave.fuckdoll && canSee(slave)) { if (slave.fetish !== "mindbroken") { introDiv.append(`, at which point abject fear fills ${his} face. ${He} immediately ${hasBothLegs(slave) ? `drops to ${his} knees and ` : ``}begins openly begging for you to show mercy.`); } else { introDiv.append(`, to which ${he} still doesn't respond. `); } } else { introDiv.append(`. `); } return introDiv; } function links() { const linksDiv = App.UI.DOM.makeElement("div", '', "kill-slave-options"); const links = []; const disableReasons = []; const combatLinkText = `Let ${him} win ${his} life in combat`; linksDiv.id = "kill-scene"; links.push( App.UI.DOM.link(`Kill ${him}`, () => { App.UI.DOM.replace(linksDiv, kill); }), App.UI.DOM.link(`Have mercy on ${him}`, () => { App.UI.DOM.replace(linksDiv, mercy); }), ); if (slave.fuckdoll) { disableReasons.push(`Fuckdolls cannot properly fight`); } if (slave.fetish === "mindbroken") { disableReasons.push(`Mindbroken slaves cannot properly fight`); } if (!S.Bodyguard) { disableReasons.push(`You must have a bodyguard for ${slave.slaveName} to fight`); } if (!V.pit) { disableReasons.push(`You must first build a pit for combat`); } else { if (!V.pit.lethal) { disableReasons.push(`You must allow lethal fights in ${V.pit.name}`); } } if (disableReasons) { links.push(App.UI.DOM.disabledLink(combatLinkText, disableReasons)); } else { links.push(App.UI.DOM.link(combatLinkText, () => { App.UI.DOM.replace(linksDiv, combat); })); } linksDiv.appendChild(App.UI.DOM.generateLinksStrip(links)); return linksDiv; } function kill() { const killDiv = document.createElement("div"); if (!slave.fuckdoll && slave.fetish !== "mindbroken") { killDiv.append(`You simply smile at ${him} and tell ${him} not to worry `); } else { killDiv.append(`You say nothing `); } killDiv.append(`as you continue ${qualifiedFS ? `sharpening your ${weapon}.` : `threading on a suppressor.`} ${slave.slaveName} ${!slave.fuckdoll && slave.fetish !== "mindbroken" ? `gives an audible sigh of relief and begins to thank you profusely, though ${his} thanks are cut short as the sound of` : `continues to stand there ${slave.fetish === "mindbroken" ? `dumbly` : ``} until the sound of`} ${qualifiedFS ? `a sharp edge slicing through flesh` : `a suppressed gunshot`} rings through the room. You have another servant clean up the mess as you continue with what you were previously doing.`); killDiv.appendChild(relations()); removeSlave(slave); return killDiv; } function mercy() { const mercyDiv = document.createElement("div"); if (!slave.fuckdoll && slave.fetish !== "mindbroken") { mercyDiv.append(`You make a show of considering sparing ${his} life, then, with a heavy sigh, unbuckle your pants and sit down at your desk. You beckon to ${him}, and ${he} just about trips over ${himself} as ${he} hastily makes ${his} way over to you. ${His} blowjob isn't the best you've ever had, ${him} `, App.UI.DOM.makeElement("span", `sobbing`, ["trust", "dec"]), ` as much as ${he} is; but ${his} enthusiasm more than makes up for it. After you finish deep in ${his} throat, ${he} sits back and wipes away ${his} tears, sniffling and `, App.UI.DOM.makeElement("span", `thanking you again`, ["devotion", "inc"]), ` for giving ${him} another chance.`); } else { mercyDiv.append(`You change your mind, and with a wave of your hand, send ${slave.slaveName} back to ${his} duties. Maybe some other time.`); } slave.devotion = slave.devotion < 30 ? 30 : slave.devotion += 30; slave.trust -= 100; return mercyDiv; } function combat() { const combatDiv = document.createElement("div"); combatDiv.append(`You tell ${him} you'll let your bodyguard decide ${his} fate — if ${he} wants to live, ${he}'ll have to beat ${S.Bodyguard.slaveName} in hand-to-hand combat in ${V.pit.name}.`); if (slave.skill.combat) { combatDiv.append(`${He} nods ${his} head and straightens up, as though mentally preparing ${himself} for the fight for ${his} life.`); } else { combatDiv.append(`The fear on ${his} face is palpable, though ${he} nods slowly and agrees, not seeing another choice.`); } V.pit.slaveFightingBodyguard = slave.ID; V.pit.animal = null; return combatDiv; } function relations() { // TODO: potentially expand to allow for checking for more than one relation (i.e. sister/mother/lover, etc) const relationsDiv = App.UI.DOM.makeElement("div", '', "kill-slave-relations"); const halfSisters = []; const sisters = []; const twins = []; const daughters = []; const isWife = slave.relationship === -3; let mother = null; let father = null; let relationshipTarget = null; let rival = null; for (const target of V.slaves) { if (target.devotion > 50 && isWife) { target.trust -= 25; } if (slave.mother === target.ID) { mother = target.ID; continue; } if (slave.father === target.ID) { father = target.ID; continue; } if (target.mother === slave.ID || target.father === slave.ID) { daughters.push(target.ID); continue; } if (areSisters(slave, target)) { switch (areSisters(slave, target)) { case 1: twins.push(target.ID); continue; case 2: sisters.push(target.ID); continue; case 3: halfSisters.push(target.ID); continue; default: throw new Error(`Unexpected value '${areSisters(slave, target)}' found in relations()`); } } if (slave.relationship > 0 && slave.relationshipTarget === target.ID) { relationshipTarget = target.ID; continue; } if (slave.rivalry && slave.rivalryTarget === target.ID) { rival = target.ID; continue; } } if (mother) { const subDiv = document.createElement("div"); mother = getSlave(mother); subDiv.append(`${His} mother ${mother.slaveName} is `, App.UI.DOM.makeElement("span", 'grief-stricken', ["devotion", "dec"]), ` that you would take ${his} ${daughter} from ${getPronouns(mother).him}.`); relationsDiv.appendChild(subDiv); mother.devotion -= 30; } if (father) { const subDiv = document.createElement("div"); father = getSlave(father); subDiv.append(`${His} father ${father.slaveName} is `, App.UI.DOM.makeElement("span", 'grief-stricken', ["devotion", "dec"]), ` that you would take ${his} ${daughter} from ${getPronouns(father).him}.`); relationsDiv.appendChild(subDiv); father.devotion -= 30; } if (daughters.length) { if (daughters.length === 1) { const subDiv = document.createElement("div"); const daughter = getSlave(daughters[0]); const mother = getPronouns(slave).mother; const {him: him2, daughter: daughter2} = getPronouns(daughter); subDiv.append(`${His} ${daughter2} ${daughter.slaveName} is `, App.UI.DOM.makeElement("span", 'horrified', ["devotion", "dec"]), ` that you would take ${his} ${mother} from ${him2}.`); relationsDiv.appendChild(subDiv); daughter.devotion -= 25; } else { const subDiv = document.createElement("div"); const daughtersSpan = document.createElement("span"); const mother = getPronouns(slave).mother; if (daughters.length > 2) { let lastDaughter = daughters.pop(); for (const daughter of daughters) { daughtersSpan.append(`${getSlave(daughter).slaveName}, `); } daughtersSpan.append(` and ${getSlave(lastDaughter).slaveName}`); } else { daughtersSpan.append(`${getSlave(daughters[0]).slaveName} and ${getSlave(daughters[1]).slaveName}`); } daughters.forEach(i => daughters[i].devotion -= 25); subDiv.append(`${His} children, `, daughtersSpan, `, are `, App.UI.DOM.makeElement("span", 'horrified', ["devotion", "dec"]), ` that you would take their ${mother} from them.`); relationsDiv.appendChild(subDiv); } } if (twins.length) { if (twins.length === 1) { const subDiv = document.createElement("div"); const twin = getSlave(twins[0]); const sister = getPronouns(slave).sister; const {him: him2} = getPronouns(twin); subDiv.append(`${His} twin ${twin.slaveName} is `, App.UI.DOM.makeElement("span", 'devastated', ["devotion", "dec"]), ` that you would take ${his} ${sister} from ${him2}.`); relationsDiv.appendChild(subDiv); twin.devotion -= 30; } else { const subDiv = document.createElement("div"); const twinsSpan = document.createElement("span"); const sister = getPronouns(slave).sister; if (twins.length > 2) { let lastTwin = twins.pop(); for (const twin of twins) { twinsSpan.append(`${getSlave(twin).slaveName}, `); getSlave(twin).devotion -= 30; } twinsSpan.append(` and ${getSlave(lastTwin).slaveName}`); } else { twinsSpan.append(`${getSlave(twins[0]).slaveName} and ${getSlave(twins[1]).slaveName}`); } twins.forEach(i => twins[i].devotion -= 30); subDiv.append(`${His} twins, `, twinsSpan, `, are `, App.UI.DOM.makeElement("span", 'devastated', ["devotion", "dec"]), ` that you would take their ${sister} from them.`); relationsDiv.appendChild(subDiv); } } if (sisters.length) { if (sisters.length === 1) { const subDiv = document.createElement("div"); const firstSister = getSlave(sisters[0]); const sister = getPronouns(slave).sister; const {him: him2} = getPronouns(firstSister); subDiv.append(`${His} sister ${firstSister.slaveName} is `, App.UI.DOM.makeElement("span", 'grief-stricken', ["devotion", "dec"]), ` that you would take ${his} ${sister} from ${him2}.`); relationsDiv.appendChild(subDiv); firstSister.devotion -= 25; } else { const subDiv = document.createElement("div"); const sistersSpan = document.createElement("span"); const sister = getPronouns(slave).sister; if (sisters.length > 2) { let lastSister = sisters.pop(); for (const sister of sisters) { sistersSpan.append(`${getSlave(sister).slaveName}, `); } sistersSpan.append(` and ${getSlave(lastSister).slaveName}`); } else { sistersSpan.append(`${getSlave(sisters[0]).slaveName} and ${getSlave(sisters[1]).slaveName}`); } sisters.forEach(i => sisters[i].devotion -= 25); subDiv.append(`${His} sister, `, sistersSpan, `, are `, App.UI.DOM.makeElement("span", 'grief-stricken', ["devotion", "dec"]), ` that you would take their ${sister} from them.`); relationsDiv.appendChild(subDiv); } } if (halfSisters.length) { if (halfSisters.length === 1) { const subDiv = document.createElement("div"); const halfSister = getSlave(halfSisters[0]); const sister = getPronouns(slave).sister; const {him: him2} = getPronouns(halfSister); subDiv.append(`${His} half-sister ${halfSister.slaveName} is `, App.UI.DOM.makeElement("span", 'saddened', ["devotion", "dec"]), ` that you would take ${his} ${sister} from ${him2}.`); relationsDiv.appendChild(subDiv); halfSister.devotion -= 20; } else { const subDiv = document.createElement("div"); const halfSistersSpan = document.createElement("span"); const sister = getPronouns(slave).sister; if (halfSisters.length > 2) { let lastHalfSister = halfSisters.pop(); for (const sister of halfSisters) { halfSistersSpan.append(`${getSlave(sister).slaveName}, `); } halfSistersSpan.append(` and ${getSlave(lastHalfSister).slaveName}`); } else { halfSistersSpan.append(`${getSlave(halfSisters[0]).slaveName} and ${getSlave(halfSisters[1]).slaveName}`); } halfSisters.forEach(i => halfSisters[i].devotion -= 20); subDiv.append(`${His} half-sisters, `, halfSistersSpan, `, are `, App.UI.DOM.makeElement("span", 'saddened', ["devotion", "dec"]), ` that you would take their ${sister} from them.`); relationsDiv.appendChild(subDiv); } } if (relationshipTarget) { if (getSlave(relationshipTarget).fetish !== "mindbroken") { const subDiv = document.createElement("div"); const target = getSlave(relationshipTarget); subDiv.append(`${target.slaveName} is `, App.UI.DOM.makeElement("span", 'grief-stricken', ["devotion", "dec"]), ` that you have killed ${getPronouns(target).his} best source of comfort and companionship in a life of bondage.`); relationsDiv.appendChild(subDiv); target.devotion -= target.relationship * 10; } } if (isWife) { const subDiv = document.createElement("div"); subDiv.append(`Killing one of your slave wives is `, App.UI.DOM.makeElement("span", 'socially unacceptable.', ["reputation", "dec"]), ` In addition, you other devoted slaves are `, App.UI.DOM.makeElement("span", 'worried', ["trust", "dec"]), ` that you might not respect their status.`); relationsDiv.appendChild(subDiv); repX(-200, "event", slave); } if (rival) { const subDiv = document.createElement("div"); rival = getSlave(rival); subDiv.append(`${slave.slaveName}'s rival, ${rival.slaveName}, is `, App.UI.DOM.makeElement("span", 'pleased', ["devotion", "inc"]), ` that ${getPronouns(rival).he} won't have to see ${him} anymore.`); relationsDiv.appendChild(subDiv); rival.devotion += rival.rivalry * 5; } return relationsDiv; } function plannedFight() { const plannedFightsDiv = document.createElement("div"); plannedFightsDiv.append(`${!slave.fuckdoll && slave.fetish !== "mindbroken" ? `You abruptly cut ${his} begging short once you` : `You change your mind as you suddenly`} realize ${getSlave(V.pit.slaveFightingBodyguard).slaveName} is already fighting your bodyguard ${S.Bodyguard.slaveName} for ${his} life this week.`); App.UI.DOM.appendNewElement("div", plannedFightsDiv, App.UI.DOM.passageLink(`Cancel the fight`, V.returnTo, () => { V.pit.slaveFightingBodyguard = null; }), ["kill-slave-cancel"]); return plannedFightsDiv; } };
MonsterMate/fc
src/interaction/killSlave.js
JavaScript
mit
16,716
:: KillSlave [nobr] <<includeDOM App.UI.SlaveInteract.killSlave(getSlave($AS))>>
MonsterMate/fc
src/interaction/killSlave.tw
tw
mit
82
/** * @returns {DocumentFragment} */ App.UI.View.mainLinks = function() { "use strict"; const PA = Array.isArray(V.personalAttention) ? V.personalAttention.map(x => getSlave(x.ID)) : []; let fragment = document.createDocumentFragment(); if (V.PC.health.shortDamage >= 30) { fragment.append(`The injuries received in the recent battle prevent you from undertaking tiring efforts.`); } else { switch (V.personalAttention) { case "business": fragment.append(`You plan to focus on business this week.`); break; case "whoring": fragment.append(`You plan to focus on earning extra money this week.`); break; case "upkeep": fragment.append(`You plan to focus on cleaning the penthouse this week.`); break; case "defensive survey": fragment.append(`You plan to survey ${V.arcologies[0].name}'s defenses in person this week.`); break; case "development project": fragment.append(`You plan on contributing to a local development project this week.`); break; case "smuggling": fragment.append(`You plan to make some easy (but dirty) money this week.`); break; case "HG": fragment.append(`You plan to support your Head Girl this week, `); if (S.HeadGirl) { const {he, his} = getPronouns(S.HeadGirl); fragment.append(`so ${he} can give more slaves ${his} attention.`); } else { fragment.append(`should you assign one.`); } break; case "sex": fragment.append(`You plan to have as much sex with your slaves as possible this week.`); break; case "trading": fragment.append(`This week you will learn trading.`); break; case "warfare": fragment.append(`This week you will learn modern combat tactics.`); break; case "slaving": fragment.append(`This week you will learn slaving.`); break; case "engineering": fragment.append(`This week you will learn engineering.`); break; case "medicine": fragment.append(`This week you will learn medicine.`); break; case "hacking": fragment.append(`This week you will learn hacking.`); break; case "proclamation": fragment.append(`This week you plan to issue a proclamation about ${V.SecExp.proclamation.type}.`); break; case "technical accidents": fragment.append(`This week you plan to sell your technical skills to the highest bidder.`); break; default: if (PA.length > 0) { fragment.append(`You plan to train `); const trainees = []; PA.forEach((trainee, i) => { trainees.push(App.UI.DOM.combineNodes(App.UI.DOM.makeElement("span", SlaveFullName(trainee), "slave-name"), ` to ${V.personalAttention[i].trainingRegimen}`)); }); fragment.append(App.UI.DOM.arrayToList(trainees)); fragment.append(` this week.`); } break; } } if (V.PC.health.shortDamage < 30) { const link = App.UI.DOM.makeElement("span", App.UI.DOM.passageLink("Change plans", "Personal Attention Select"), "major-link"); link.id = "managePA"; fragment.append(" ", link, " ", App.UI.DOM.makeElement("span", App.UI.Hotkeys.hotkeys("Personal Attention"), "hotkey")); } if (V.useSlaveSummaryOverviewTab === 0) { let div = document.createElement("div"); if (S.HeadGirl) { div.append(App.UI.DOM.makeElement("span", SlaveFullName(S.HeadGirl), "slave-name"), " is serving as your Head Girl"); if (V.arcologies[0].FSEgyptianRevivalistLaw === 1) { div.append(` and Consort`); } div.append(". ", App.UI.DOM.makeElement("span", App.UI.DOM.passageLink("Manage Head Girl", "HG Select"), "major-link"), " ", App.UI.DOM.makeElement("span", App.UI.Hotkeys.hotkeys("HG Select"), "hotkey")); div.id = "manageHG"; } else if (V.slaves.length > 1) { div.append(`You have not selected a Head Girl`); if (V.arcologies[0].FSEgyptianRevivalistLaw === 1) { div.append(` and Consort`); } div.append(". ", App.UI.DOM.makeElement("span", App.UI.DOM.passageLink("Select One", "HG Select"), "major-link"), " ", App.UI.DOM.makeElement("span", App.UI.Hotkeys.hotkeys("HG Select"), "hotkey")); div.id = "manageHG"; } else { div.append(App.UI.DOM.makeElement("span", "You do not have enough slaves to keep a Head Girl", "note")); } fragment.append(div); div = document.createElement("div"); if (V.RecruiterID) { div.append(App.UI.DOM.makeElement("span", SlaveFullName(S.Recruiter), "slave-name"), " is working to recruit girls. ", App.UI.DOM.makeElement("span", App.UI.DOM.passageLink("Manage Recruiter", "Recruiter Select"), "major-link")); } else { div.append("You have not selected a Recruiter. ", App.UI.DOM.makeElement("span", App.UI.DOM.passageLink("Select one", "Recruiter Select"), "major-link")); } div.append(" ", App.UI.DOM.makeElement("span", App.UI.Hotkeys.hotkeys("Recruiter Select"), "hotkey")); div.id = "manageRecruiter"; fragment.append(div); if (V.dojo) { div = document.createElement("div"); if (V.BodyguardID !== 0) { div.append(App.UI.DOM.makeElement("span", SlaveFullName(S.Bodyguard), "slave-name"), " is serving as your bodyguard. ", App.UI.DOM.makeElement("span", App.UI.DOM.passageLink("Manage Bodyguard", "BG Select"), "major-link")); } else { div.append("You have not selected a Bodyguard. ", App.UI.DOM.makeElement("span", App.UI.DOM.passageLink("Select one", "BG Select"), "major-link")); } div.append(" ", App.UI.DOM.makeElement("span", App.UI.Hotkeys.hotkeys("BG Select"), "hotkey")); div.id = "manageBG"; fragment.append(div); } } if (V.completedOrgans.length > 0) { /* first remove any organs with no corresponding slave */ V.completedOrgans = V.completedOrgans.filter(organ => { return (typeof organ === 'object' && getSlave(organ.ID) !== undefined); }); /* cycle through slaves, for each slave cycle through completed organs and track how many are of the interrogated slave (and if organs have a slaves to be implanted on) */ for (let i = 0; i < V.slaves.length; i++) { const slaveOrgans = V.completedOrgans.reduce((acc, organ) => organ.ID === V.slaves[i].ID ? acc + 1 : acc, 0); /* if the interrogated slave has one or more organs ready: */ if (slaveOrgans > 0) { const div = document.createElement("div"); div.classList.add("yellow"); div.append("The fabricator has completed "); if (slaveOrgans > 1) { div.append(`${slaveOrgans} organs`); } else { div.append('an organ'); } div.append(" for ", App.UI.DOM.makeElement( "span", App.UI.DOM.link( V.slaves[i].slaveName, () => { V.AS = V.slaves[i].ID; V.tabChoice.RemoteSurgery = "Structural"; }, [], "Remote Surgery") , "clear-formatting" ), " which "); if (slaveOrgans > 1) { div.append('are'); } else { div.append('is'); } div.append(' ready to be implanted.'); fragment.append(div); } } } if (V.adjustProstheticsCompleted > 0) { for (let j = 0; j < V.adjustProsthetics.length; j++) { const slave = getSlave(V.adjustProsthetics[j].slaveID); if (slave) { if (V.adjustProsthetics[j].workLeft <= 0) { const div = document.createElement("div"); div.classList.add("yellow"); div.append(`The lab has completed ${addA(setup.prosthetics[V.adjustProsthetics[j].id].name)} for `, App.UI.DOM.makeElement("span", App.UI.DOM.link(SlaveFullName(slave), () => { V.AS = slave.ID; }, [], "Slave Interact"), "clear-formatting"), " which is ready to be attached."); fragment.append(div); } } else { V.adjustProsthetics.splice(j, 1); j--; } } } if (V.completedOrgans.length > 0 && V.adjustProstheticsCompleted > 0) { const div = document.createElement("div"); div.append(App.UI.DOM.passageLink("Implant and Attach", "Multiple Organ Implant"), App.UI.DOM.makeElement("span", " all organs and prosthetics that are ready.", "yellow")); fragment.append(div); } else if (V.completedOrgans.length > 1) { const div = document.createElement("div"); div.append(App.UI.DOM.passageLink("Implant", "Multiple Organ Implant"), App.UI.DOM.makeElement("span", " all organs that are ready for implantation.", "yellow")); fragment.append(div); } else if (V.adjustProstheticsCompleted > 1) { const div = document.createElement("div"); div.append(App.UI.DOM.passageLink("Attach", "Multiple Organ Implant"), App.UI.DOM.makeElement("span", " all prosthetics that are ready to be attached.", "yellow")); fragment.append(div); } const div = document.createElement("div"); if (V.slaveCostFactor === 1) { div.append("The slave market is stable; the price of slaves is average."); } else { let r; if (V.slaveCostFactor > 1) { if (V.slaveCostFactor > 1.05) { r = "There is a bull market for slaves; the price of slaves is very high."; } else { r = "The slave market is bullish; the price of slaves is high."; } } else { if (V.slaveCostFactor < 0.95) { r = "There is a bear market for slaves; the price of slaves is very low."; } else { r = "The slave market is bearish; the price of slaves is low."; } } div.append(App.UI.DOM.makeElement("span", r, "yellow")); } const buySlaves = App.UI.DOM.makeElement("span", App.UI.DOM.passageLink("Buy Slaves", "Buy Slaves"), "major-link"); buySlaves.id = "buySlaves"; div.append(" ", buySlaves, " ", App.UI.DOM.makeElement("span", "[S]", "hotkey")); fragment.append(div); for (const [SCH, schObj] of App.Data.misc.schools) { if (!schObj.requirements || V[SCH].schoolSale === 0) { continue; } const div = document.createElement("div"); div.append(App.UI.DOM.makeElement("span", "For your first purchase, ", "yellow"), App.UI.DOM.passageLink( schObj.title, "Market", () => { V.market = new App.Markets.GlobalVariable(); V.market.slaveMarket = SCH; V.market.newSlaves = []; V.market.numArcology = 1; V.nextButton = "Back to Main"; V.nextLink = "Main"; V.returnTo = "Main"; }), App.UI.DOM.makeElement("span", " will sell at half price this week.", "yellow")); fragment.append(div); } return fragment; };
MonsterMate/fc
src/interaction/main/mainLinks.js
JavaScript
mit
10,174
/* OPEN TOYCHEST */ App.Interact.ToyChest = function(slave) { "use strict"; let r = ``; /* eslint-disable no-unused-vars*/ const { he, him, his, hers, himself, boy, He, His } = getPronouns(slave); /* eslint-enable */ r = `${slave.slaveName} `; if (slave.fuckdoll) { r += `is waiting for use nearby. `; } else if (slave.fetish === "mindbroken") { if (canSmell(slave) && slave.career === "a breeding bull" && isFertile(V.PC) && V.PC.preg === 0 && canPenetrate(slave)) { r += `is rock hard and sniffing the air. `; } else { r += `is waiting dumbly nearby. `; } } else if (slave.devotion > 50) { if (slave.toyHole === "mouth") { r += `has positioned ${himself} nearby with ${his} mouth conveniently `; if (V.PC.dick) { r += `at cock level. `; } else { r += `level with your pussy. `; } } else if (slave.toyHole === "boobs") { r += `is kneeling nearby with ${his} chest thrust out as far as it will go. `; } else if (slave.toyHole === "pussy" && hasBothLegs(slave)) { r += `is kneeling on the couch with legs apart to present ${his} pussy. `; } else if (slave.toyHole === "pussy") { r += `is lying on the couch with ${his} pussy ready for you. `; } else if (slave.toyHole === "ass" && hasBothLegs(slave)) { r += `is lying on the couch with ${his} legs up and back to present ${his} butthole. `; } else if (slave.toyHole === "ass") { r += `is lying on the couch with ${his} butt ready for you. `; } else if (slave.toyHole === "dick") { r += `is lying on the couch with ${his} dick at the ready for you. `; } else { r += `is nearby, eagerly presenting ${himself}. `; } } else if (slave.trust < -20) { r += `is waiting nearby in terror, hoping obedience will save ${him} from punishment. `; } else if (slave.devotion < -90) { r += `is hogtied nearby for sexual abuse. `; } else if (slave.devotion < -50) { r += `is restrained nearby for sexual use. `; } else if (slave.devotion < -20) { r += `is unhappily waiting nearby for sexual use. `; } else if (slave.devotion <= 20) { r += `is obediently waiting nearby for sexual use. `; } else if (slave.devotion <= 50) { r += `has positioned ${himself} nearby to offer you ${his} body. `; } let pose = jsRandom(1, 100); if (slave.fuckdoll) { r += `${His} holes are, as always, available. `; } else if (slave.fetish === "mindbroken") { r += `${He} ignores ${his} clothing, regarding it as an impediment to ${his} purpose. `; } else { switch (slave.clothes) { case "shibari ropes": r += `You've tied ${his} shibari bindings so that ${he}'s forced to thrust out ${his} chest. `; break; case "uncomfortable straps": if (pose > 75) { r += `${His} leather straps are forcing ${him} to thrust out ${his} tits. `; } else if (pose > 50) { r += `${His} leather straps are uncomfortably pressing ${his} breasts and asscrack. `; } else if (pose > 25) { r += `The rings in ${his} leather straps over each nipple and hole make ${him} look like a perfect fucktoy. `; } else { r += `${His} uncomfortable straps force ${him} to constantly present ${his} holes. `; } break; case "restrictive latex": case "a latex catsuit": r += `${His} complete suit of latex makes ${him} a nice, artistic display, a plastic work of art in the shape of a female form.`; break; case "a military uniform": r += `${His} uniformed presence lends your office the air of a military command center.`; break; case "a schutzstaffel uniform": r += `${His} uniformed presence lends your office the air of a military command center.`; break; case "a slutty schutzstaffel uniform": r += `${His} uniformed presence lends your office the air of a military command center.`; break; case "a red army uniform": r += `${His} uniformed presence lends your office the air of a military command center.`; break; case "a long qipao": r += `${His} elegant qipao lends your office an air of traditional opulence and prestige.`; break; case "battlearmor": r += `${His} armored presence lends your office the air of a battlefield command center.`; break; case "Imperial Plate": r += `${His} heavily armored and crest-marked presence lends your office an air of violent nobility.`; break; case "a mounty outfit": r += `${His} uniformed presence lends your office the air of a police command center.`; break; case "a dirndl": r += `${His} dirndl lends a traditional atmosphere to your office.`; break; case "lederhosen": r += `${His} lederhosen lends a traditional atmosphere to your office.`; break; case "a biyelgee costume": r += `${His} biyelgee costume lends a festive atmosphere to your office.`; break; case "a mini skirt": r += `${His} flattering mini dress makes ${him} the perfect office ornament for the modern captain of industry.`; break; case "a nice nurse outfit": r += `${His} proper nurse's outfit gives the office a clinical air.`; break; case "a fallen nuns habit": r += `${His} latex parody of a nuns habit gives the office a sacrilegious air.`; break; case "a chattel habit": r += `${His} chattel habit makes the office look like what it is: the inner sanctum of a new and deeply sensual faith.`; break; case "a penitent nuns habit": r += `${His} sackcloth habit gives the office a somber air.`; break; case "attractive lingerie": r += `${He}'s wearing classy lingerie, making ${him} an unusually refined ornament to the office.`; break; case "kitty lingerie": r += `${His} cat-themed lingerie gives the office a bizarrely innocent air of perversion.`; break; case "a succubus outfit": r += `${He}'s dressed to look like a succubus. There is a demon`; if (V.PC.title === 0) { r += `ess`; } r += ` in this office, and ${he} serves `; if (V.PC.title === 0) { r += `her.`; } else { r += `him.`; } break; case "spats and a tank top": r += `${He}'s wearing spats and a tank top, giving the office the active air of a gym.`; break; case "a string bikini": r += `${He}'s wearing a string bikini, making ${him} a sexy, enticing office ornament.`; break; case "a scalemail bikini": r += `${His} scalemail bikini gives the office a medieval air.`; break; case "striped panties": case "a striped bra": case "striped underwear": r += `${He}'s wearing cute underwear, making ${him} a sexy, innocent-looking office ornament.`; break; case "attractive lingerie for a pregnant woman": r += `${His} breasts gently spill out of ${his} slightly too small top.`; if (slave.lactation) { r += `${His} leaking nipples have rendered ${his} top see-through.`; } break; case "a maternity dress": r += `${His} low cut dress reveals ample cleavage.`; break; case "stretch pants and a crop-top": r += `${His} comfortable clothes give your office a laid back air and are easy to slip off when the mood strikes.`; break; case "a cheerleader outfit": r += `${He}'s wearing a slutty cheerleader outfit, making it look like ${he}'s here to fuck before team practice.`; break; case "clubslut netting": r += `${He}'s wearing slutty netting and headphones so ${he} can dance to music without annoying visitors.`; break; case "cutoffs and a t-shirt": r += `${He}'s wearing cutoffs and a t-shirt, making ${him} a fun, clean office ornament.`; break; case "a slutty nurse outfit": r += `${He}'s wearing a slutty nurse outfit, and looks more than ready to minister to any patient's needs.`; break; case "a schoolgirl outfit": r += `${He}'s wearing a slutty schoolgirl outfit, and looks ready to do whatever it takes to improve ${his} grades.`; break; case "a kimono": r += `${He}'s wearing a kimono, lending your office an air of elegance, though ${he} lacks some of the air of the true yamato nadeshiko.`; break; case "a burkini": r += `${He}'s wearing a colorful burkini, lending your office a vague air of conservatism.`; break; case "a hijab and blouse": r += `${He}'s wearing a modest hijab and blouse, lending your office a certain air of conservatism.`; break; case "a hijab and abaya": r += `${He}'s wearing a modest hijab and abaya, lending your office a certain air of conservatism.`; break; case "a niqab and abaya": r += `${He}'s wearing a niqab and abaya, lending your office an air of conservatism.`; break; case "a klan robe": case "a slutty klan robe": r += `${He}'s wearing a ku klux klan robe, lending your office an air of conservatism.`; break; case "a burqa": r += `${He}'s wearing an all-concealing burqa, lending your office an intense air of conservatism.`; break; case "battledress": r += `${He}'s wearing skimpy battledress, making your office seem a little like the ideal bunker for a survivalist.`; break; case "a slutty outfit": if (slave.actualAge < 21) { r += `${He}'s wearing a schoolgirl uniform and sucking on hard candy, giving ${him} a delectably youthful appearance.`; } else if (slave.actualAge < 30) { r += `${He}'s chosen to wear a slutty nurse outfit, and looks more than ready to minister to any patient's needs.`; } else if (slave.actualAge < 40) { r += `${He}'s wearing a schoolgirl uniform and sucking on hard candy, a delightfully perverse outfit for a slave in ${his} thirties.`; } else { r += `${He}'s wearing a wifely apron that covers ${his} front, but leaves ${his} backside bare, an appropriate outfit for a slave in ${his} forties.`; } break; case "a halter top dress": r += `The gorgeous halter top dress ${he}'s wearing is almost a work of art.`; break; case "a ball gown": r += `The fabulous silken ball gown ${he}'s wearing lifts the entire atmosphere.`; break; case "a slave gown": r += `The gorgeous gown ${he}'s wearing lends an air of class to the office.`; break; case "slutty business attire": r += `The suit ${he}'s wearing would make it look like ${he}'s here to do business, if not for the extreme shortness of the skirt and ${his} acre of cleavage.`; break; case "nice business attire": r += `The suit ${he}'s wearing makes it look like ${he}'s here to do business, not fuck.`; break; case "a comfortable bodysuit": r += `The bodysuit ${he}'s wearing displays ${his} every fuckable curve.`; break; case "a tight Imperial bodysuit": r += `The bodysuit ${he}'s wearing displays ${his} every fuckable curve, your crest proudly displayed on the swell of ${his} chest.`; break; case "a leotard": r += `The leotard ${he}'s wearing is tight enough to advertise every detail.`; break; case "a monokini": r += `${His} topless swimsuit gives the office a perverted yet cultured aura.`; break; case "an apron": r += `${His} apron makes the office an intimate air, especially since ${he}'s nude underneath it.`; break; case "a cybersuit": r += `${His} cybersuit lends to an impersonal but sexual atmosphere, as ${his} delicious curves are prominently displayed.`; break; case "a bunny outfit": r += `The bunny outfit ${he}'s wearing makes ${him} look ready to serve drinks and suck dick.`; break; case "a slutty maid outfit": r += `${His} maid outfit makes ${him} look useful and sexually easy.`; break; case "a nice maid outfit": r += `${His} maid outfit makes ${his} servitude obvious while not looking too lewd.`; break; case "harem gauze": r += `${His} harem girl outfit lends ${his} corner of your office an Eastern opulence.`; break; case "slutty jewelry": r += `The bangles ${he}'s wearing make little noises every time ${he} moves, serving as a constant reminder of ${his} sexual availability.`; break; case "conservative clothing": r += `${His} clothes make it look like ${he}'s here for some other purpose than sexual slavery.`; break; case "chains": r += `${His} chains make it obvious that ${he}'s here as an office sex toy.`; break; case "Western clothing": r += `${His} Western clothing is comically out of place in a modern office.`; break; case "overalls": r += `${His} worker's overalls make it clear that you're the boss and ${he} is your subordinate.`; break; case "body oil": r += `${His} body oil makes ${his} muscles a lovely ornament to the office, and makes all ${his} holes nice and inviting.`; break; case "a toga": case "a hanbok": r += `${His} toga lends an air of antiquity to the office.`; break; case "a huipil": r += `${His} revealing huipil is a delightfully exotic novelty in your office.`; break; case "a slutty qipao": r += `${His} lovely qipao is a delicious contradiction of conservative silk patterns and scandalously high cuts.`; break; case "a bimbo outfit": r += `The way ${his} underwear is revealed by ${his} clothing just exudes sluttiness.`; break; case "a courtesan dress": r += `The layered dress ${he}'s wearing, and the posture forced by its corset, gives your office an air of elegance.`; break; case "a bra": case "a button-up shirt": case "a button-up shirt and panties": case "a sweater": case "a sweater and cutoffs": case "a sweater and panties": case "a t-shirt": case "a t-shirt and jeans": case "a t-shirt and panties": case "a t-shirt and thong": case "a tank-top": case "a tank-top and panties": case "a thong": case "a tube top": case "a tube top and thong": case "an oversized t-shirt": case "an oversized t-shirt and boyshorts": case "boyshorts": case "cutoffs": case "jeans": case "leather pants": case "leather pants and a tube top": case "leather pants and pasties": case "panties": case "panties and pasties": case "pasties": r += `${His} purpose as your office sex toy is prominently displayed by ${his} revealing outfit.`; break; case "a gothic lolita dress": r += `${His} gothic lolita dress lends a cute but dark old world charm to your office.`; break; case "a police uniform": r += `${His} police uniform lends an air of security and authority to your office.`; break; case "a one-piece swimsuit": r += `${His} one-piece swimsuit lends your office a more casual atmosphere.`; break; case "a nice pony outfit": case "a slutty pony outfit": r += `${His} bondage pony outfit reinforces the atmosphere of submission to your will.`; break; case "a sports bra": case "sport shorts and a t-shirt": case "sport shorts and a sports bra": case "sport shorts": r += `${His} athletic clothing gives the office a more youthful vibe.`; break; case "a skimpy loincloth": r += `${His} skimpy loincloth gives the office a more barbaric and raw atmosphere.`; break; case "a Santa dress": r += `${His} skimpy dress somehow makes you seem more charitable and jovial than you really are.`; break; default: if (slave.chastityVagina && slave.chastityAnus) { r += `${His} chastity belt covers and protects both ${his} vagina and anus, but leaves ${his} breasts naked and ${his} mouth available.`; } else if (slave.chastityVagina) { r += `${His} chastity belt covers and protects ${his} pussy, but leaves ${his} breasts naked, ${his} mouth available, and ${his} asshole vulnerable.`; } else if (slave.chastityAnus) { r += `${His} chastity belt covers and protects ${his} anus, but leaves ${his} breasts naked, ${his} mouth available, and ${his} pussy vulnerable.`; } else { r += `${He}'s nude and ready to be fucked.`; } break; } } return r; };
MonsterMate/fc
src/interaction/main/toychest.js
JavaScript
mit
15,940
/** * @param {App.Entity.SlaveState} slave * @returns {string} */ App.Interact.guardPose = function(slave) { "use strict"; let r = ``; /* eslint-disable no-unused-vars*/ const { he, him, his, hers, himself, boy, He, His } = getPronouns(slave); let man = (boy === "girl" ? "woman" : "man"); /* eslint-enable */ r = `${slave.slaveName} is standing behind your left shoulder, guarding your person. `; switch (slave.clothes) { case "attractive lingerie": r += `${His} lacy lingerie contrasts with ${his} deadly weaponry.`; break; case "a succubus outfit": r += `${His} succubus outfit and impressive weapons make ${him} look like a character from an overwrought graphic novel.`; break; case "uncomfortable straps": r += `${His} uncomfortable straps make ${him} look like a classical slave warrior.`; break; case "shibari ropes": r += `${His} shibari ropes make ${him} look like an insane slave fighter.`; break; case "restrictive latex": case "a latex catsuit": r += `${His} complete suit of latex gives ${him} a beautiful yet intimidating appearance.`; break; case "a nice nurse outfit": r += `${His} practical nurse's outfit make ${his} weapons look like surgical instruments of death.`; break; case "a military uniform": r += `${His} military uniform is most befitting of an honor guard.`; break; case "a schutzstaffel uniform": r += `${His} military uniform is most befitting of an honor guard.`; break; case "a slutty schutzstaffel uniform": r += `${His} military uniform is most befitting of an honor guard and your personal whore.`; break; case "a red army uniform": r += `${His} military uniform is most befitting of an honor guard.`; break; case "a long qipao": r += `${His} elegant qipao makes ${him} seem less deadly than ${he} actually is.`; break; case "battlearmor": r += `${His} battlearmor means ${he}'s always ready for combat.`; break; case "Imperial Plate": r += `${His} heavy Imperial armor makes ${him} look like a walking tank, the dynamic plating shifting against itself as ${he} moves.`; break; case "a mounty outfit": r += `${His} mounty outfit only enhances ${his} authority as your personal guard.`; break; case "a police uniform": r += `${His} police uniform only enhances ${his} authority as your personal guard.`; break; case "a gothic lolita dress": r += `${His} elegant dress makes ${him} seem less deadly than ${he} actually is.`; break; case "a dirndl": r += `${His} dirndl allows ${him} to hide all sorts of useful weapons against ${his} bare thighs.`; break; case "lederhosen": r += `${His} weapon hangs from a shoulder sling over ${his} lederhosen.`; break; case "a biyelgee costume": r += `${His} biyelgee costume makes ${him} appear as an athletic specimen, ready to defend you in hand-to-hand combat.`; break; case "a mini dress": r += `${His} revealing mini dress and elegant weapons make ${him} look sexy, yet deadly.`; break; case "a monokini": r += `${His} monokini's unrepressed appearance clashes amusingly with ${his} deadly weapons.`; break; case "an apron": r += `${He}'s nude, aside from an apron and the holsters for ${his} numerous weapons.`; break; case "overalls": r += `${His} overalls and armaments make ${him} look like ${he}'s ready to shoot some varmints.`; break; case "a cybersuit": r += `${His} cybersuit makes ${him} look sleek, sexy, and deadly. A perfect femme fatale.`; break; case "clubslut netting": r += `${His} club netting's slutty appearance clashes amusingly with ${his} deadly weapons.`; break; case "a string bikini": r += `${His} string bikini's flirty appearance clashes amusingly with ${his} deadly weapons.`; break; case "a scalemail bikini": r += `${His} scalemail bikini's barbaric appearance meshes well with ${his} sword, but clashes with ${his} firearms.`; break; case "striped panties": r += `${He}'s nude, aside from some cute panties and the holsters for ${his} numerous weapons.`; break; case "a slutty outfit": if (slave.actualAge < 21) { r += `${He}'s wearing a schoolgirl uniform and sucking on hard candy, making ${him} look like a character from a kung-fu film.`; } else if (slave.actualAge < 30) { r += `${He}'s chosen to wear a catsuit, and looks like a fictional heroine.`; } else if (slave.actualAge < 40) { // TODO: should this one be the same as the one above? r += `${He}'s wearing a schoolgirl uniform and sucking on hard candy, making ${him} look like a character from a kung-fu film.`; } else { r += `${He}'s wearing a wifely dress, creating a discordant effect with ${his} weapons.`; } break; case "a cheerleader outfit": r += `${He}'s wearing a cheerleader uniform, creating an amusing effect with ${his} weapons.`; break; case "attractive lingerie for a pregnant woman": r += `${His} silky lingerie contrasts with ${his} deadly weaponry.`; break; case "kitty lingerie": r += `${His} cutesy lingerie contrasts with ${his} deadly weaponry.`; break; case "a maternity dress": r += `${His} loose dress gives ${him} plenty of places to conceal weaponry.`; break; case "stretch pants and a crop-top": r += `${His} relaxed outfit clashes amusingly with ${his} serious weapons.`; break; case "a slave gown": r += `${His} gorgeous gown and elegant weapons make ${him} look refined, yet deadly.`; break; case "a halter top dress": r += `${His} beautiful halter top dress and elegant weapons make ${him} look refined, yet deadly.`; break; case "a ball gown": r += `${His} fabulous silken ball gown and elegant weapons make ${him} look refined, yet deadly.`; break; case "a nice maid outfit": r += `${His} pretty maid outfit and weapons make ${him} look like a character from an animated movie.`; break; case "a nice pony outfit": case "a slutty pony outfit": r += `${His} leather outfit make ${him} look like an insane slave fighter.`; break; case "a hanbok": r += `${His} pretty hanbok and weapons make ${him} look like a character from a history novel.`; break; case "spats and a tank top": r += `${His} exercise outfit makes ${him} look like ${he} has the fitness to back up ${his} weapons.`; break; case "a slutty maid outfit": r += `${His} slutty maid outfit and weapons make ${him} look like a character from an exploitation film.`; break; case "cutoffs and a t-shirt": r += `${His} relaxed clothing clashes with ${his} weaponry, making ${him} look like ${he}'s planning to kill someone and then have a relaxing day off.`; break; case "harem gauze": r += `${His} weapons pin ${his} sheer gauze down over ${his} body, putting everything on lewd display.`; break; case "a fallen nuns habit": r += `${His} sacrilegious getup and weapons make ${him} look like a sinner's fantasy.`; break; case "a chattel habit": r += `${His} chattel habit and weapons make ${his} role as a defender of the new faith instantly obvious.`; break; case "a penitent nuns habit": r += `${His} somber habit and weapons make ${him} look like a member of a militant order.`; break; case "slutty business attire": r += `${His} slutty business suit and weapons give ${him} the look a supervillain's sidekick.`; break; case "nice business attire": r += `${His} business suit and weapons give ${him} the look of a finely honed corporate instrument.`; break; case "conservative clothing": r += `${His} casual, conservative clothes and weapons make ${him} look like a normal old world security contractrix.`; break; case "a hijab and blouse": r += `${His} modest, conservative clothes and weapons make ${him} look like an old world security contractrix.`; break; case "a comfortable bodysuit": r += `${His} bodysuit and weapons make ${him} look like an action movie heroine.`; break; case "a tight Imperial bodysuit": r += `${His} form-fitting bodysuit and weapons make ${him} look like an action movie heroine, an elegant mesh of pulsating cybernetics and tight nanomesh that rides up tightly against ${his} every curve.`; break; case "a burkini": r += `${His} form-fitting swimsuit and weapons make ${him} look like an action movie heroine.`; break; case "a Santa dress": r += `${His} skimpy holiday dress seems to be for those on the nice list, but ${his} weaponry is for those on the naughty list.`; break; case "a leotard": r += `${His} leotard and weapons make ${him} look like the heroine of an old exploitation film.`; break; case "a bunny outfit": r += `${His} bunny outfit and weapons make ${him} look like the hench${man} of a villain from a cheesy vintage spy film.`; break; case "a slutty nurse outfit": r += `Between ${his} nurse outfit and ${his} weapons ${he} looks prepared to do harm, and then to heal it.`; break; case "a schoolgirl outfit": r += `This school${boy} is well armed, bringing to mind more than one farcical action film.`; break; case "a kimono": r += `${His} kimono has discreet cuts that allow ${him} to fight reasonably well in it if necessary, and are almost invisible when ${he} stands straight.`; break; case "a slutty qipao": r += `${His} qipao and weapons make ${him} look like a character from a fighting game.`; break; case "a toga": r += `${His} toga and weapons make a stark contrast, making ${him} stand out a lot.`; break; case "a huipil": r += `${His} huipil hides most of the weapons ${he} carries, but carrying them on naked skin is a slight discomfort.`; break; case "a hijab and abaya": case "a niqab and abaya": r += `${His} weapons are strapped to the outside of ${his} abaya, a juxtaposition that would be more ludicrous had not many women in the Middle East recently been seen fighting dressed in just this way.`; break; case "a burqa": r += `${His} weapons are strapped to the outside of ${his} burqa, a juxtaposition that would be more ludicrous had not some women in the Middle East recently been seen fighting dressed in just this way.`; break; case "a klan robe": case "a slutty klan robe": r += `${His} weapons are strapped to the outside of ${his} robe, all the essentials are present, mainly rope.`; break; case "battledress": r += `Though ${his} battledress top is just a tank top, ${he} still skirts the edge of looking more like a Free Cities mercenary than a Free Cities sex slave.`; break; case "slutty jewelry": r += `The bangles ${he}'s wearing are complemented by the straps that mount ${his} weapons to ${his} otherwise naked body.`; break; case "a courtesan dress": r += `${He} may look unarmed, but ${his} layered skirt and hanging sleeves perfectly conceal ${his} arsenal.`; break; case "a bimbo outfit": r += `${His} lacy lingerie and barely there clothing contrasts with ${his} deadly weaponry.`; break; case "a tube top and thong": case "a button-up shirt and panties": case "a bra": case "a button-up shirt": case "a sweater": case "a tank-top": case "a thong": case "a tube top": case "a striped bra": case "a skimpy loincloth": case "a sports bra": r += `Due to the skimpiness of ${his} outfit, ${he} appears to be wearing more weapons than clothing.`; break; case "a sweater and panties": case "a sweater and cutoffs": case "a t-shirt and jeans": case "a t-shirt and panties": case "a t-shirt and thong": case "a t-shirt": case "a tank-top and panties": case "an oversized t-shirt and boyshorts": case "an oversized t-shirt": case "boyshorts": case "cutoffs": case "jeans": case "leather pants and a tube top": case "leather pants and pasties": case "leather pants": case "panties and pasties": case "panties": case "pasties": case "sport shorts and a sports bra": case "sport shorts and a t-shirt": case "sport shorts": case "striped underwear": r += `${His} weapons only accentuate the nakedness of ${his} body.`; break; default: if (slave.chastityVagina || slave.chastityAnus) { r += `${His} chastity belt covers and protects ${him}, just as ${his} weapons cover and protect you.`; } else if (slave.chastityPenis === 1) { r += `${His} chastity cage covers and protects ${him}, just as ${his} weapons cover and protect you.`; } else { r += `${He} is nude except for ${his} armament.`; } break; } return r; };
MonsterMate/fc
src/interaction/main/useGuard.js
JavaScript
mit
12,581
globalThis.walkPast = (function() { // core string variables let t; // selection variables let target; let partner; let partnerSlave; /** generate a walkPast vignette * @param {App.Entity.SlaveState} activeSlave * @param {string} [fixedTarget] - if set, force target to this value * @returns {DocumentFragment} - vignette */ function walkPast(activeSlave, fixedTarget) { let output = ""; let flag; if (totalRelatives(activeSlave) > 0 && ((fixedTarget === "FRelation") || (!fixedTarget && jsRandom(1, 100) > 80))) { flag = 110; partner = "relation"; } else if (activeSlave.relationship > 0 && ((fixedTarget === "FRelation") || (!fixedTarget && jsRandom(1, 100) > 70))) { flag = 120; partner = "relationship"; } else if (activeSlave.rivalry !== 0 && hasAllLimbs(activeSlave) && ((fixedTarget === "FRival") || (!fixedTarget && jsRandom(1, 100) > 70))) { flag = 130; partner = "rivalry"; } else { flag = 99; partner = ""; } // return if we insist on a relation or rival but we didn't find one above if (["FRelation", "FRival"].includes(fixedTarget) && !partner) { return; } const seed = jsRandom(1, 100); output += primeSlave(activeSlave, seed); if (partner === "rivalry") { output += rivalSlave(activeSlave, seed); } else if (partner === "relationship" && App.Utils.hasPartnerSex(activeSlave)) { output += loverSlave(activeSlave); } else if (partner === "relationship" || partner === "relation") { output += relatedSlave(activeSlave); } else { switch (fixedTarget) { case "FLips": output += lipWatch(activeSlave); break; case "FBoobs": output += boobWatch(activeSlave); break; case "FButt": output += buttWatch(activeSlave); break; case "FAnus": output += anusWatch(activeSlave); break; case "FVagina": if (activeSlave.belly < 150000) { if (activeSlave.vagina >= 0) { output += `<br><span class="note">Vagina scene available:</span> ${vaginaWatch(activeSlave)}`; } } if (activeSlave.belly >= 1500) { output += `<br><span class="note">Belly scene available:</span> ${bellyWatch(activeSlave)}`; } break; case "FDick": if (activeSlave.belly < 150000) { if (activeSlave.dick > 0 && (V.policies.sexualOpenness === 1 || activeSlave.toyHole === "dick")) { output += dickWatch(activeSlave); } else { return; } } break; default: { // invalid or unspecified fixed target let watchArray = []; if (activeSlave.fuckdoll === 0) { watchArray.push(boobWatch); } if (activeSlave.belly < 150000) { if (activeSlave.dick > 0 && (V.policies.sexualOpenness === 1 || activeSlave.toyHole === "dick")) { watchArray.push(dickWatch); } if (activeSlave.vagina >= 0) { watchArray.push(vaginaWatch); } } if (activeSlave.belly >= 1500) { watchArray.push(bellyWatch); } if (activeSlave.chastityAnus === 0) { watchArray.push(anusWatch); } watchArray.push(buttWatch); watchArray.push(lipWatch); output += jsEither(watchArray)(activeSlave); } } } const { him, his, He } = getPronouns(activeSlave); let links = []; const executeWalkpast = (passage) => { V.AS = activeSlave.ID; // TODO: remove me once all the F* passages don't need activeSlave anymore $(`#walkpast-${activeSlave.ID}`).empty().append(App.UI.DOM.renderPassage(passage)); }; if (activeSlave.fuckdoll === 0) { if (target === "FButt" && activeSlave.chastityAnus) { output += ` If you wish to have anal intercourse with ${him} you must order ${him} to remove ${his} chastity belt.`; links.push(App.UI.DOM.link(`Grope ${his} rear instead`, executeWalkpast, "FondleButt")); } else if (target === "FVagina" && activeSlave.chastityVagina) { output += ` If you wish to have vanilla intercourse with ${him} you must order ${him} to remove ${his} chastity belt.`; } else if (flag > 100) { links.push(App.UI.DOM.link(`Summon them both`, (partner, relation, target) => { V.partner = partner; V.relation = relation; // TODO: remove these once FRelation/FRival don't need them anymore executeWalkpast(target); }, [partner, flag === 110 ? partnerSlave.ID : null, target])); } else if (activeSlave.assignment === Job.CONFINEMENT) { links.push(App.UI.DOM.link(`Have ${him} brought out of ${his} cell`, executeWalkpast, target)); } else if (activeSlave.assignment === Job.DAIRY && V.dairyRestraintsSetting > 1) { output += ` ${He} is strapped into a milking machine and cannot leave ${V.dairyName}.`; } else { if ([Job.ARCADE, Job.CELLBLOCK, Job.ATTENDANT, Job.DJ, Job.MADAM, Job.MILKMAID, Job.TEACHER, Job.STEWARD, Job.WARDEN, Job.AGENT, Job.CONCUBINE, Job.AGENTPARTNER, Job.HEADGIRLSUITE, Job.CLUB, Job.MASTERSUITE, Job.CONFINEMENT, Job.GLORYHOLE, Job.QUARTER, Job.BROTHEL, Job.DAIRY].includes(activeSlave.assignment)) { links.push(App.UI.DOM.link(`Have ${him} take a break and come up`, executeWalkpast, target)); } else { links.push(App.UI.DOM.link(`Call ${him} over`, executeWalkpast, target)); } } } else { switch (target) { case "FVagina": links.push(App.UI.DOM.link(`Fuck ${him}`, executeWalkpast, "FFuckdollVaginal")); break; case "FButt": case "FAnus": links.push(App.UI.DOM.link(`Fuck ${him}`, executeWalkpast, "FFuckdollAnal")); break; default: links.push(App.UI.DOM.link(`Fuck ${him}`, executeWalkpast, "FFuckdollOral")); } } if (V.debugMode && passage() !== "Walk Past List") { links.push(App.UI.DOM.passageLink("Show all walk past scenes", "Walk Past List")); } const frag = document.createDocumentFragment(); $(frag).append(output); const span = App.UI.DOM.appendNewElement("span", frag, App.UI.DOM.generateLinksStrip(links)); span.id = `walkpast-${activeSlave.ID}`; return frag; } /** Generate walkpast for the main slave we're looking at * @param {App.Entity.SlaveState} activeSlave * @param {number} seed * @returns {string} */ function primeSlave(activeSlave, seed) { let r = ""; if (partner !== "relationship" || !App.Utils.hasPartnerSex(activeSlave)) { r += `${activeSlave.slaveName} `; r += walkPasts(activeSlave, seed); t = ""; /* WALKPASTS END */ } /* TIME TOGETHER EXCEPTION ENDS */ return r; } /** Generate walkpast for the rival of the slave we're looking at * @param {App.Entity.SlaveState} activeSlave * @param {number} seed * @returns {string} */ function rivalSlave(activeSlave, seed) { partnerSlave = getSlave(activeSlave.rivalryTarget); let r = ""; const { he, his } = getPronouns(activeSlave); if (partnerSlave !== undefined) { /* potential problem point */ r += " Meanwhile, "; if (activeSlave.rivalry >= 3) { r += `${partnerSlave.slaveName}, whom ${he} hates, `; } else if (activeSlave.rivalry >= 2) { r += `${his} rival ${partnerSlave.slaveName} `; } else { r += `${partnerSlave.slaveName}, whom ${he} dislikes, `; } r += walkPasts(partnerSlave, 100-seed); target = "FRival"; } return r + ` `; } /** Generate walkpast for the lover of the slave we're looking at * @param {App.Entity.SlaveState} activeSlave * @returns {string} */ function loverSlave(activeSlave) { t = ""; partnerSlave = getSlave(activeSlave.relationshipTarget); const fuckSeed = jsRandom(1, 100); const seed = jsRandom(1, 100); const name = activeSlave.slaveName; const race = (V.seeRace ? activeSlave.race : ""); const { he, him, his, himself, boy, He, His } = getPronouns(activeSlave); if (partnerSlave !== undefined) { /* eslint-disable no-unused-vars */ const { he2, him2, his2, hers2, himself2, boy2, wife2, He2, His2 } = getPronouns(partnerSlave).appendSuffix("2"); /* /* eslint-enable no-unused-vars */ const partnerName = partnerSlave.slaveName; const race2 = (V.seeRace ? partnerSlave.race : ""); const activeSlaveRel = relationshipTerm(activeSlave); const partnerSlaveRel = relationshipTerm(partnerSlave); t += `${name} and ${partnerName} are `; if (!isSlaveAvailable(partnerSlave)) { if (partnerSlave.assignment === Job.DAIRY && V.dairyRestraintsSetting >= 2) { t += `trying their best to maintain their relationship with ${partnerName} being part of ${V.dairyName}.`; } else if (partnerSlave.assignment === Job.AGENT && activeSlave.assignment !== Job.AGENTPARTNER) { t += `catching up with each other over a video call. Running an arcology in your stead comes with its perks.`; } else if (partnerSlave.assignment === Job.AGENTPARTNER || activeSlave.assignment === Job.AGENTPARTNER) { const arc = V.arcologies.find((a) => (a.leaderID === partnerSlave.ID || a.leaderID === activeSlave.ID)); t += `having some casual fun with each other in the penthouse of ${arc.name}. ${V.assistant.name} has helpfully put a live feed of their activities up on one of the large screens in your office.`; } else if (partnerSlave.assignment === Job.ARCADE) { t += `trying their best to maintain their relationship with ${partnerName} being nothing more than a hole in ${V.arcadeName}.`; } } else if (seed >= 66) { /* SEXY TIMES */ let fuckSpot = ""; if (partnerSlave.ID === V.HeadGirlID && V.HGSuite === 1) { fuckSpot = `in ${partnerName}'s suite`; } else if (activeSlave.rules.living === "luxurious") { fuckSpot = `in the nice little room they share`; } else { fuckSpot = `out in the open in the slave dormitory`; } const thirdWheelAllowed = (activeSlave.rules.release.slaves === 1) && (partnerSlave.rules.release.slaves === 1); if (thirdWheelAllowed && (activeSlave.fetish === "dom" || activeSlave.fetish === "sadist") && canPenetrate(activeSlave) && (partnerSlave.fetish === "dom" || partnerSlave.fetish === "sadist") && canPenetrate(partnerSlave)) { t += `double penetrating another slave. They're face to face over their sub's shoulders, `; if (canSee(activeSlave) && canSee(partnerSlave)) { t += `looking into each other's eyes `; } else { t += `locking lips `; } t += `with every appearance of enjoyment and love, since for them rubbing dicks inside another slave's pussy is what constitutes healthy sexual activity. ${partnerName} is on the bottom, and holds their victim atop ${him2} with ${partnerName}'s cock already hilted in her cunt so ${name} can force ${himself} inside as well. They enjoy the overstimulated girl's struggles.`; } else if (activeSlave.energy > 95) { t += `having loud sex ${fuckSpot}. ${name} is such a sexual addict that ${he} wants it all the time, and ${partnerName} does ${his2} best to help ${his2} ${activeSlaveRel} get off. `; if (canPenetrate(activeSlave) && fuckSeed > 50) { if (canDoVaginal(partnerSlave)) { if (partnerSlave.vagina === 0 && hasBothLegs(partnerSlave)) { t += `${name} has ${his} cock between ${partnerName}'s legs and is enjoying an enthusiastic thigh job.`; } else if (partnerSlave.vagina === 0) { t += `${name} has ${his} cock between ${partnerName}'s labia and is enthusiastically teasing ${his} virgin lover.`; } else if (fuckSeed > 90 && hasBothLegs(partnerSlave)) { t += `${name} has ${partnerName} on ${his2} knees and is enthusiastically fucking ${his2} pussy doggy style.`; } else if (fuckSeed > 80 && !isAmputee(activeSlave)) { t += `${name} has ${partnerName} pushed against the wall and is fucking ${his2} pussy from behind.`; } else if (fuckSeed > 70) { t += `${partnerName} has ${name} on ${his} back and is enthusiastically bouncing on ${his} dick.`; } else if (fuckSeed > 60) { t += `${name} has ${partnerName} on ${his2} back and is enthusiastically fucking ${his2} pussy in the missionary position.`; } else { t += `${name} is enthusiastically fucking ${partnerName}'s pussy.`; } } else if (canDoAnal(partnerSlave)) { if (partnerSlave.anus === 0) { t += `${name} has ${his} cock sandwiched between ${partnerName}'s buttcheeks and is enthusiastically hotdogging ${his2} rear.`; } else if (fuckSeed > 90 && hasBothLegs(partnerSlave)) { t += `${name} has ${partnerName} on ${his2} knees and is enthusiastically fucking ${his2} ass doggy style.`; } else if (fuckSeed > 80 && !isAmputee(activeSlave)) { t += `${name} has ${partnerName} pushed against the wall and is fucking ${his2} ass from behind.`; } else if (fuckSeed > 70) { t += `${partnerName} has ${name} on ${his} back and is enthusiastically bouncing on ${his} dick.`; } else if (fuckSeed > 60) { t += `${name} has ${partnerName} on ${his2} stomach and is enthusiastically fucking ${his2} ass.`; } else { t += `${name} is enthusiastically fucking ${partnerName}'s ass.`; } } else if (partnerSlave.boobs > 800) { t += `${name} has ${partnerName} on ${his2} back and is enthusiastically fucking ${his2} tits.`; } else { t += `${name} has ${partnerName}'s face to ${his} crotch and is enthusiastically pounding ${his2} throat.`; } } else if (activeSlave.dick > 0 && fuckSeed > 50) { t += `${partnerName} has ${his2} lips wrapped around ${name}'s dick and is enthusiastically giving ${him} a blowjob.`; } else if (canDoVaginal(activeSlave) && fuckSeed > 30) { if (canPenetrate(partnerSlave) && activeSlave.vagina > 0) { t += `${partnerName} is enthusiastically fucking ${name}'s pussy.`; } else if (canDoVaginal(partnerSlave)) { t += `They're scissoring enthusiastically and playing with each other's breasts.`; } else { t += `${partnerName} is enthusiastically eating out ${name}'s pussy.`; } } else if (canDoAnal(activeSlave) && activeSlave.anus > 0 && fuckSeed > 10) { if (canPenetrate(partnerSlave)) { t += `${partnerName} is enthusiastically fucking ${name}'s ass.`; } else if (hasAnyArms(partnerSlave)) { t += `${partnerName} is enthusiastically fisting ${name}'s ass.`; } else { t += `${partnerName} is enthusiastically pounding ${name}'s ass with a dildo.`; } } else { t += `${partnerName} is enthusiastically using ${his2} tongue to bring ${name} to orgasm.`; } } else if (activeSlave.fetishStrength > 60 && activeSlave.fetishKnown === 1 && activeSlave.fetish !== "none") { switch (activeSlave.fetish) { case "boobs": if (fuckSeed > 60 && (activeSlave.lactation > 0 || partnerSlave.lactation > 0)) { t += `snuggling rather sexually ${fuckSpot}. `; if (fuckSeed > 80 && partnerSlave.lactation > 0) { t += `${name} loves how milky ${partnerName}'s tits are and has ${his} lips wrapped around a nipple. `; if (hasAnyArms(partnerSlave)) { t += `${partnerName} is left to moan lustfully and tweak ${his2} free nipple until ${his2} ${activeSlaveRel} has drunk ${his} fill.`; } else { t += `${partnerName} is left to moan lustfully and squirm with desire until ${his2} ${activeSlaveRel} has drunk ${his} fill and moves to ${his2} other nipple.`; } } else { t += `${name} loves having ${his} breasts suckled and has ${partnerName}'s lips wrapped around a nipple. `; if (hasAnyArms(activeSlave)) { t += `${partnerName} is held close until ${his2} ${activeSlaveRel} has been completely emptied.`; } else { t += `${partnerName} knows that ${his2} ${activeSlaveRel} can't milk ${himself} and appreciates the act.`; } } } else if (fuckSeed > 30 && ((canPenetrate(activeSlave) && partnerSlave.nipples === "fuckable") || (canPenetrate(partnerSlave) && activeSlave.nipples === "fuckable"))) { t += `having loud sex ${fuckSpot}. ${name} loves `; if (fuckSeed > 45 && (canPenetrate(activeSlave) && partnerSlave.nipples === "fuckable")) { t += `taking advantage of ${partnerName}'s fuckable tits. The motion running through ${partnerName}'s breasts as ${he} humps is hypnotic.`; } else { t += `how well ${partnerName}'s cock feels in ${his} fuckable tits. The motion running through ${name}'s breasts as ${his} ${partnerSlaveRel} fucks ${him} is hypnotic.`; } } else { t += `snuggling rather sexually ${fuckSpot}. ${name} loves having `; if (activeSlave.boobs >= partnerSlave.boobs) { t += `${his} breasts touched and massaged, so ${partnerName} looks after ${his2} ${activeSlaveRel}'s tits. `; if (!hasAnyArms(activeSlave) && !hasAnyArms(partnerSlave)) { t += `Since they are both limbless, they've helped each other into a position where each can easily suckle and nuzzle the other's boobs.`; } else if (!hasAnyArms(partnerSlave)) { t += `Since ${partnerName} is an amputee, ${name} has ${him2} propped on ${his} belly so ${he} can easily suckle and nuzzle.`; } else if (hasAnyArms(activeSlave)) { t += `${name} is holding on to ${partnerName} so that ${his2} head is in the middle of ${his} breasts.`; } else { t += `They're spooning in bed with ${partnerName} forming the large spoon so ${he2} can reach around and play with ${name}'s boobs.`; } } else { t += `a nice pair of breasts to enjoy, so ${he} focuses ${his} attention on ${partnerName}'s larger bosom. `; if (!hasAnyArms(activeSlave) && !hasAnyArms(partnerSlave)) { t += `Since they are both limbless, they've helped each other into a position where each can easily suckle and nuzzle the other's boobs.`; } else if (!hasAnyArms(activeSlave)) { t += `Since ${name} is an amputee, ${partnerName} has ${him} propped on ${his2} belly so ${he} can make ${himself} comfortable in ${his2} bust.`; } else if (hasAnyArms(partnerSlave)) { t += `${partnerName} is holding on to ${name} so that ${his} head is in the middle of ${his2} breasts.`; } else { t += `They're spooning in bed with ${activeSlave} forming the large spoon so ${he} can reach around and play with ${partnerName}'s boobs.`; } } } break; case "buttslut": t += `having loud buttsex ${fuckSpot}. ${name} is such an anal addict that ${he} wants it all the time, and ${partnerName} does ${his2} best to keep ${his2} ${activeSlaveRel} satisfied. `; if (activeSlave.anus > 0 && canDoAnal(activeSlave)) { t += `${name} is `; if (hasBothLegs(activeSlave)) { t += `down on ${his} knees in front of ${partnerName}, taking `; } else { t += `ass up in front of ${partnerName}, taking `; } if (canPenetrate(partnerSlave)) { t += `${his2} cock up the butt. `; if (activeSlave.anus > 1) { if (partnerSlave.dick > 4) { t += `${name} is clearly enjoying getting buttfucked by a cock big enough to make ${him} feel tight again.`; } else if (partnerSlave.dick > 2) { t += `${name}'s loose ass takes ${partnerName}'s cock easily.`; } else { t += `${name} can barely tell ${partnerName}'s little dick is even there, but it's the thought that counts.`; } } else { if (partnerSlave.dick > 4) { t += `${name} is panting and writhing with the pain of taking ${his} ${partnerSlaveRel}'s massive dick. ${partnerName} is doing ${his2} best to be gentle.`; } else if (partnerSlave.dick > 2) { t += `${name} is writhing with the mixed pain and pleasure of having ${his} tight ass stretched by ${his} ${partnerSlaveRel}'s nice cock.`; } else { t += `${name}'s tight anus and ${partnerName}'s little dick work well together; ${name} can take it easily, and ${partnerName} gets to fuck a hole that's tight, even for ${him2}.`; } } } else if (partnerSlave.dick > 1) { if (!hasAnyArms(partnerSlave)) { t += `a rimjob, since ${his} ${partnerSlaveRel} is armless and `; } else { t += `a finger fuck, since ${his} ${partnerSlaveRel} is `; } if (partnerSlave.dick > 6) { t += `too big to fit.`; } else { t += `impotent.`; } if (hasAnyArms(partnerSlave)) { if (activeSlave.anus > 2) { t += ` Or rather, a fist fuck, since that's what it takes to satisfy ${his2} ${activeSlaveRel}'s gaping hole.`; } else if (activeSlave.anus > 1) { t += ` ${partnerName} is using three fingers to stretch ${his2} ${activeSlaveRel}'s asshole.`; } else { t += ` ${partnerName} is using two fingers to gently fuck ${his2} ${activeSlaveRel}'s tight anus.`; } } } else if (partnerSlave.clit > 3) { t += `${his2} clit up the butt. `; if (activeSlave.anus > 1) { t += `${name} can barely tell ${partnerName}'s unorthodox phallus is in there, but it's the thought that counts.`; } else { t += `${name}'s tight anus and ${partnerName}'s clitdick work well together; ${name} can take it easily, and ${partnerName} gets to fuck a hole that hugs ${his2} sensitive rod tight.`; } } else { t += `a strap-on up the butt, doggy style. ${partnerName} is using a `; if (partnerSlave.anus > 2) { t += `massive fake phallus to satisfy ${his} ${activeSlaveRel}'s gaping hole.`; } else if (partnerSlave.anus > 1) { t += `decent-sized fake phallus to stretch ${his} ${activeSlaveRel}'s asshole.`; } else { t += `small fake phallus to gently fuck ${his} ${activeSlaveRel}'s tight anus.`; } } } else if (canDoAnal(activeSlave)) { t += `Since ${name} is an anal virgin, ${partnerName} is rimming ${his2} ${activeSlaveRel}, who is clearly enjoying ${himself}.`; } else { t += `Since ${name}'s butthole is off-limits, ${partnerName} is simply toying with the overstimulated ${boy}'s rear.`; } break; case "cumslut": t += `sharing oral pleasure ${fuckSpot}. ${name} is such an oral addict that ${he} wants it all the time, and ${partnerName} certainly doesn't mind all the loving oral attention. `; if (((activeSlave.chastityPenis !== 1 && activeSlave.dick > 0) || canDoVaginal(activeSlave)) && ((partnerSlave.chastityPenis !== 1 && partnerSlave.dick > 0) || canDoVaginal(partnerSlave))) { t += `They're lying down to 69 comfortably, `; if (partnerSlave.chastityPenis !== 1 && partnerSlave.dick > 0) { if (canPenetrate(partnerSlave)) { t += `with ${name} hungrily sucking ${his} ${partnerSlaveRel}'s turgid cock.`; } else if (partnerSlave.dick > 7 && hasAnyArms(activeSlave)) { t += `with ${name} hungrily sucking ${his} ${partnerSlaveRel}'s fat cock. ${He} is milking the oversized beast as best ${he} can in an effort to draw out a nice, big load of ${his2} cum.`; } else if (partnerSlave.anus > 0 && canDoAnal(partnerSlave) && partnerSlave.prostate > 0 && hasAnyArms(activeSlave)) { t += `with ${name} hungrily sucking ${his} ${partnerSlaveRel}'s limp cock. ${He} has a finger up poor impotent ${partnerName}'s butt to stimulate ${his2} prostate so ${he2} can cum for ${him}.`; } else if (partnerSlave.scrotum > 0 && hasAnyArms(activeSlave)) { t += `with ${name} hungrily sucking ${his} ${partnerSlaveRel}'s limp cock. ${He} is massaging ${his2} balls so ${he2} can cum for ${him}.`; } else if (hasAnyArms(activeSlave)) { t += `with ${name} hungrily sucking ${his} ${partnerSlaveRel}'s limp cock. ${He} has a finger massaging poor impotent ${partnerName}'s perineum in the hope of stimulating ${him2} so ${he2} can cum for ${him}.`; } else { t += `with ${name} hungrily sucking ${his} ${partnerSlaveRel}'s limp cock in the hopes ${he} can coax something out.`; } } else if (partnerSlave.balls > 0) { t += `with ${name} hungrily sucking the little hole on ${his} ${partnerSlaveRel}'s crotch that ${he2} squirts cum from.`; } else { t += `and ${name} is sating ${his} oral fixation for the moment by eagerly polishing ${his} ${partnerSlaveRel}'s pearl.`; } } else if ((partnerSlave.chastityPenis !== 1 && partnerSlave.dick > 0) || canDoVaginal(partnerSlave)) { t += `${name} has ${his} face to ${partnerName}'s crotch and is `; if (partnerSlave.chastityPenis !== 1 && partnerSlave.dick > 0) { if (canPenetrate(partnerSlave)) { t += `hungrily sucking ${his} ${partnerSlaveRel}'s turgid cock.`; } else if (partnerSlave.dick > 7 && hasAnyArms(activeSlave)) { t += `hungrily sucking ${his} ${partnerSlaveRel}'s fat cock. ${He} is milking the oversized beast as best ${he} can in an effort to draw out a nice, big load of ${his2} cum.`; } else if (partnerSlave.anus > 0 && canDoAnal(partnerSlave) && partnerSlave.prostate > 0 && hasAnyArms(activeSlave)) { t += `hungrily sucking ${his} ${partnerSlaveRel}'s limp cock. ${He} has a finger up poor impotent ${partnerName}'s butt to stimulate ${his2} prostate so ${he2} can cum for ${him}.`; } else if (partnerSlave.scrotum > 0 && hasAnyArms(activeSlave)) { t += `hungrily sucking ${his} ${partnerSlaveRel}'s limp cock. ${He} is massaging ${his2} balls so ${he2} can cum for ${him}.`; } else if (hasAnyArms(activeSlave)) { t += `hungrily sucking ${his} ${partnerSlaveRel}'s limp cock. ${He} has a finger massaging poor impotent ${partnerName}'s perineum in the hope of stimulating ${him2} so ${he2} can cum for ${him}.`; } else { t += `hungrily sucking ${his} ${partnerSlaveRel}'s limp cock in the hopes ${he} can coax something out.`; } } else if (partnerSlave.balls > 0) { t += `hungrily sucking the little hole on ${his} ${partnerSlaveRel}'s crotch that ${he2} squirts cum from.`; } else { t += `is sating ${his} oral fixation for the moment by eagerly polishing ${his} ${partnerSlaveRel}'s pearl.`; } } else if (partnerSlave.balls > 0) { t += `${name} is eagerly lapping up ${his} ${partnerSlaveRel}'s most recent load of cum.`; } else if (activeSlave.balls > 0) { t += `${name} is locking lips with ${his} ${partnerSlaveRel} after ${he2} just finished licking up all ${his} cum to share it with ${him}.`; } else { t += `They have locked lips and are enthusiastically making out.`; } break; case "submissive": t += `wrestling ${fuckSpot}. ${name} is such a submissive that ${he} wants to be forced to sexual gratify ${partnerName} all the time, so ${he2} does ${his2} best to give ${his2} ${activeSlaveRel} the constant domination ${he} loves. `; if (canPenetrate(partnerSlave) && fuckSeed > 50) { if (canDoVaginal(activeSlave)) { if (activeSlave.vagina === 0) { t += `${partnerName} is rubbing the length of ${his2} erection along ${name}'s virgin pussy and forcing ${him} to reveal just how bad ${he} wants it.`; } else if (fuckSeed > 90 && hasBothLegs(activeSlave)) { t += `${partnerName} has ${name} on ${his} knees and is forcibly fucking ${his} pussy doggy style while raining loving insults down on ${his2} bitch of a ${activeSlaveRel}.`; } else if (fuckSeed > 80 && !isAmputee(activeSlave) && hasAnyArms(partnerSlave)) { t += `${partnerName} has ${name} pushed against the wall and is fucking ${his} pussy from behind while raining loving insults down on ${his2} bitch of a ${activeSlaveRel}.`; } else if (fuckSeed > 70) { t += `${partnerName} is on ${his2} back and forcing ${name} to ride ${his2} dick while raining loving insults down on ${his2} bitch of a ${activeSlaveRel}.`; } else if (fuckSeed > 60 && activeSlave.belly < 500 && hasAnyLegs(partnerSlave)) { t += `${partnerName} has ${name} on ${his} back and trapped in a mating press, right where a bitch of a ${activeSlaveRel} belongs.`; } else { t += `${partnerName} is forcing ${himself2} into ${name}'s pussy while raining loving insults down on ${his2} bitch of a ${activeSlaveRel}.`; } } else if (canDoAnal(activeSlave)) { if (activeSlave.anus === 0) { t += `${partnerName} is circling the tip of ${his2} erection around ${name}'s virgin butthole and forcing ${him} to reveal just how bad ${he} wants it.`; } else if (fuckSeed > 90 && hasBothLegs(activeSlave)) { t += `${partnerName} has ${name} on ${his} knees and is forcibly fucking ${his} ass doggy style while raining loving insults down on ${his2} bitch of a ${activeSlaveRel}.`; } else if (fuckSeed > 80 && !isAmputee(activeSlave) && hasAnyArms(partnerSlave)) { t += `${partnerName} has ${name} pushed against the wall and is fucking ${his} ass from behind while raining loving insults down on ${his2} bitch of a ${activeSlaveRel}.`; } else if (fuckSeed > 70) { t += `${partnerName} is on ${his2} back and forcing ${name} to ride ${his2} dick anally while raining loving insults down on ${his2} bitch of a ${activeSlaveRel}.`; } else if (fuckSeed > 60) { t += `${partnerName} has ${name} pushed face first into the ground has ${him} trapped beneath ${his2} weight while ${he2} fucks ${his2} ass.`; } else { t += `${partnerName} is forcing ${himself2} into ${name}'s ass while raining loving insults down on ${his2} bitch of a ${activeSlaveRel}.`; } } else if (activeSlave.boobs > 800) { t += `${partnerName} has ${name} on ${his} back and is forcibly fucking ${his} tits.`; } else { t += `${partnerName} has ${name}'s face to ${his2} crotch and is forcibly pounding ${his} throat.`; } } else if (partnerSlave.dick > 0 && fuckSeed > 50) { t += `${name} has ${his} lips wrapped around ${partnerName}'s dick and is taking a deepthroating from ${him2}.`; } else if (canDoVaginal(partnerSlave) && fuckSeed > 30) { if (canPenetrate(activeSlave)) { if (partnerSlave.vagina === 0 && hasAnyLegs(partnerSlave)) { t += `${partnerName} has a foot on ${name}'s turgid cock and is slowly and methodically keeping ${him} just short of release while ${he} begs for ${him2} to continue.`; } else if (partnerSlave.vagina === 0) { t += `${partnerName} is rubbing ${his2} virgin pussy along the length of ${name}'s erection and is forcing ${him} to reveal just how badly ${he} wants to stick it in ${him2}. Of course, that's not going to happen and ${name} knows it.`; } else if (fuckSeed > 45 && hasBothArms(activeSlave)) { t += `${partnerName} is forcing ${name} to hold ${him2} aloft as ${he2} gets fucked by ${his2} bitch of a ${activeSlaveRel}.`; } else if (fuckSeed > 40 && !isAmputee(activeSlave) && hasAnyArms(partnerSlave)) { t += `${partnerName} has ${name} pinned against the wall and is taking ${his} dick in ${his2} pussy by force.`; } else if (fuckSeed > 35) { t += `${partnerName} has ${name} on ${his} back and is riding ${his} dick while raining loving insults down on ${his2} bitch of a ${activeSlaveRel}.`; } else { t += `${partnerName} has ${name} on ${his} back and is forcibly taking ${his} dick in reverse missionary while raining loving insults down on ${his2} bitch of a ${activeSlaveRel}.`; } } else if (canDoVaginal(activeSlave)) { t += `${partnerName} is scissoring ${name} while raining loving insults down on ${his2} bitch of a ${activeSlaveRel}.`; } else { t += `${partnerName} is eating out ${name}'s pussy while ${he2} rains loving insults down on ${his2} bitch of a ${activeSlaveRel}.`; } } else if (canDoAnal(partnerSlave) && fuckSeed > 10) { if (canPenetrate(activeSlave)) { if (partnerSlave.anus === 0 && hasAnyLegs(partnerSlave)) { t += `${partnerName} has a foot on ${name}'s turgid cock and is slowly and methodically keeping ${him} just short of release while ${he} begs for ${him2} to continue.`; } else if (partnerSlave.vagina === 0) { t += `${partnerName} is rubbing ${his2} virgin butthole around the tip of ${name}'s erection and is forcing ${him} to reveal just how badly ${he} wants to stick it in ${him2}. Of course, that's not going to happen and ${name} knows it.`; } else if (fuckSeed > 20 && hasBothArms(activeSlave)) { t += `${partnerName} is forcing ${name} to hold ${him2} aloft as ${he2} gets anally fucked by ${his2} bitch of a ${activeSlaveRel}.`; } else if (fuckSeed > 10 && !isAmputee(activeSlave) && hasAnyArms(partnerSlave)) { t += `${partnerName} has ${name} pinned against the wall behind ${him2} and is anally taking ${his} dick by force.`; } else { t += `${partnerName} has ${name} on ${his} back and is anally riding ${his} dick while raining loving insults down on ${his2} bitch of a ${activeSlaveRel}.`; } } else if (hasAnyArms(partnerSlave)) { t += `${partnerName} is fisting ${name}'s ass while raining loving insults down on ${his2} bitch of a ${activeSlaveRel}.`; } else { t += `${partnerName} is pounding ${name}'s ass with a dildo while raining loving insults down on ${his2} bitch of a ${activeSlaveRel}.`; } } else { t += `${partnerName} is forcing ${name} to use ${his} tongue to bring ${him2} to orgasm.`; } break; case "dom": t += `wrestling ${fuckSpot}. ${name} is so dominant with other slaves that ${he} prefers to take what ${he} wants, and ${partnerName} does ${his2} best to give ${his2} ${activeSlaveRel} the fight ${he} loves. `; if (canPenetrate(activeSlave) && fuckSeed > 50) { if (canDoVaginal(partnerSlave)) { if (partnerSlave.vagina === 0) { t += `${name} has ${partnerName} pinned to the ground with ${his} dick lined up with {his2} virgin pussy. ${partnerName} is struggling and pleading with ${him} not to take it like this.`; } else if (fuckSeed > 90 && hasBothLegs(activeSlave)) { t += `${name} has ${partnerName} on ${his} knees and is forcibly fucking ${his2} pussy doggy style while {he2} struggles to get away.`; } else if (fuckSeed > 80 && hasAnyArms(activeSlave) && !isAmputee(partnerSlave)) { t += `${name} has ${partnerName} pushed against the wall is is fucking ${his} pussy from behind while {he2} struggles to get away.`; } else if (fuckSeed > 70 && hasAnyArms(activeSlave)) { t += `${name} is on ${his} back and forcing ${partnerName} to ride ${his} dick while keeping a firm hold on ${his2} hips.`; } else if (fuckSeed > 60 && partnerSlave.belly < 500 && hasAnyLegs(activeSlave)) { t += `${name} has ${partnerName} on ${his2} back and trapped in a mating press. ${partnerName} is struggling and begging ${him} not to get ${him2} pregnant.`; } else { t += `${name} is forcing ${himself} into ${partnerName}'s pussy while {he2} struggles to get away.`; } } else if (canDoAnal(partnerSlave)) { if (partnerSlave.anus === 0) { t += `${name} is circling the tip of ${his} erection around ${partnerName}'s virgin butthole. ${partnerName} is struggling and pleading with ${him} not to take it like this.`; } else if (fuckSeed > 90 && hasBothLegs(activeSlave)) { t += `${name} has ${partnerName} on ${his2} knees and is forcibly fucking ${his2} ass doggy style while {he2} struggles to get away.`; } else if (fuckSeed > 80 && hasAnyArms(activeSlave) && !isAmputee(partnerSlave)) { t += `${name} has ${partnerName} pushed against the wall and is fucking ${his2} ass from behind while {he2} struggles to get away.`; } else if (fuckSeed > 70 && hasBothArms(activeSlave)) { t += `${name} is on ${his} back and forcing ${partnerName} to ride ${his} dick anally while keeping a firm hold on ${his2} hips.`; } else if (fuckSeed > 60) { t += `${name} has ${partnerName} pushed face first into the ground has ${him2} trapped beneath ${his} weight while ${he} fucks ${his2} ass.`; } else { t += `${name} is forcing ${himself} into ${partnerName}'s ass while {he2} struggles to get away.`; } } else if (partnerSlave.boobs > 800) { t += `${name} has ${partnerName} on ${his2} back and is forcibly fucking ${his2} tits.`; } else { t += `${name} has ${partnerName}'s face to ${his} crotch and is forcibly pounding ${his2} throat.`; } } else if (activeSlave.dick > 0 && fuckSeed > 50) { t += `${name} is deepthroating ${partnerName} as ${he2} struggles to breath.`; } else if (canDoVaginal(activeSlave) && fuckSeed > 30) { if (canPenetrate(partnerSlave) && activeSlave.vagina !== 0) { if (fuckSeed > 45 && hasBothArms(partnerSlave)) { t += `${name} is forcing ${partnerName} to hold ${him} aloft as ${he} enjoys a good vaginal pounding from an unwilling partner.`; } else if (fuckSeed > 40 && hasAnyArms(activeSlave) && !isAmputee(partnerSlave)) { t += `${name} has ${partnerName} pinned against the wall and is taking ${his2} dick in ${his} pussy by force.`; } else if (fuckSeed > 35) { t += `${name} has ${partnerName} on ${his2} back and is riding ${his2} dick while ${he2} tries to buck ${him} off.`; } else { t += `${name} has ${partnerName} on ${his2} back and is forcibly taking ${his} dick in reverse missionary while ${he2} struggles to not cum in ${his2} rapist.`; } } else if (canDoVaginal(activeSlave) && activeSlave.vagina !== 0) { t += `${name} is scissoring the struggling ${partnerName}.`; } else { t += `${name} is straddling ${partnerName}'s face and forcing ${him2} to eat ${him} out.`; } } else if (canDoAnal(activeSlave) && canPenetrate(partnerSlave) && fuckSeed > 10 && activeSlave.anus !== 0) { if (fuckSeed > 20 && hasBothArms(activeSlave)) { t += `${name} is forcing ${partnerName} to hold ${him} aloft as ${he} enjoys a good anal pounding from an unwilling partner.`; } else if (fuckSeed > 10 && hasAnyArms(activeSlave) && !isAmputee(partnerSlave)) { t += `${name} has ${partnerName} pinned against the wall and is taking ${his2} dick in ${his} ass by force.`; } else { t += `${name} has ${partnerName} on ${his2} back and is anally riding ${his2} dick while ${he2} tries to buck ${him} off.`; } } else { t += `${name} is on top of ${partnerName} getting oral, though it's more of a rough facefuck as ${name} forces `; if (canPenetrate(activeSlave)) { t += `${his} cock `; } else if (activeSlave.clit > 3) { t += `${his} clit `; } else { t += `a strap-on `; } t += `down ${partnerName}'s throat.`; } break; case "sadist": t += `playing pain games ${fuckSpot}. ${name} loves hurting other slaves, even ${his} friends, and ${partnerName} submits to ${his} agonizing ministrations as often as ${name} can cajole or force ${him2} into it. `; if (hasAnyArms(activeSlave) && hasAnyLegs(activeSlave)) { t += `${name} has ${partnerName} over ${his} knee and is methodically tanning ${his2} ${race2} ass.`; } else if (hasAnyArms(activeSlave)) { t += `${name} has ${partnerName} on the ground and is methodically tanning ${his2} ${race2} ass.`; } else if (hasAnyLegs(activeSlave)) { t += `${name} has ${partnerName} over ${his} knee and is methodically striking ${his2} ${race2} ass with a switch held by mouth.`; } else { t += `${name} has ${partnerName} on the ground and is methodically striking ${his2} ${race2} ass with a switch held by mouth. Even without limbs, ${name} finds a way.`; } break; case "masochist": t += `playing pain games ${fuckSpot}. ${name} loves being hurt, so ${partnerName} frequently indulges ${him} with spanking, slapping, pinching, and more exotic forms of abuse. `; if (hasAnyArms(partnerSlave) && hasAnyLegs(partnerSlave)) { t += `${partnerName} has ${name} over ${his2} knee and is methodically tanning ${his} ${race} ass.`; } else if (hasAnyArms(partnerSlave)) { t += `${partnerName} has ${name} on the ground and is methodically tanning ${his} ${race} ass.`; } else if (hasAnyLegs(partnerSlave)) { t += `${partnerName} has ${name} over ${his} knee and is methodically striking ${his} ${race} ass with a switch held by mouth.`; } else { t += `${partnerName} has ${name} on the ground and is methodically striking ${his} ${race} ass with a switch held by mouth. Having a limbless ${activeSlaveRel} won't deter ${name} from getting worked over the way ${he} craves.`; } break; case "humiliation": t += `having open and visible sex `; if (activeSlave.rules.living === "luxurious") { t += `in the doorway of the nice little room they share.`; } else if (activeSlave.ID === V.HeadGirlID && V.HGSuite === 1) { t += `in ${name}'s suite.`; } else { t += `out in the hallway near the slave dormitory.`; } t += ` ${name} pretends to hate fucking where other slaves can see ${him}, but ${partnerName} knows ${his2} ${activeSlaveRel} gets off on the mild humiliation. ${partnerName} `; if (((canDoVaginal(activeSlave) && activeSlave.vagina > 0) || (canDoAnal(activeSlave) && activeSlave.anus > 0)) && fuckSeed > 50) { t += `has ${his2} back propped up against a door frame and ${name} in ${his2} lap, so ${he} can blush at any passing slave as ${he} shyly rides ${partnerName}'s `; if (partnerSlave.dick > 0 && canPenetrate(partnerSlave)) { t += `cock `; } else { t += `strap-on `; } if (activeSlave.vagina > 0 && canDoVaginal(activeSlave) && (fuckSeed > 60 || !canDoAnal(activeSlave) || activeSlave.anus === 0)) { t += `in ${his} pussy.`; } else { t += `up ${his} ass.`; } } else if (activeSlave.dick === 1 && hasAnyArms(partnerSlave) && fuckSeed > 40) { t += `jacking off ${name}'s pathetically tiny cock out in the open so ${he} can blush and shiver as passing slaves see how embarrassingly small ${he} is.`; } else if (activeSlave.dick === 1 && fuckSeed > 20) { t += `having ${name} give ${him2} oral out in the open so ${he} can blush and shiver as passing slaves see what a slut ${he} is.`; } else { t += `is giving ${name} oral out in the open so ${he} can blush and shiver as passing slaves see ${him} climax.`; } break; case "pregnancy": t += `having intimate sex ${fuckSpot}. ${name}'s `; if (activeSlave.belly >= 5000) { t += `middle is heavily rounded, `; } else if (activeSlave.belly >= 1500) { t += `middle is quite swollen, `; } else { t += `urge to breed is raging, `; } t += ` and ${partnerName} does ${his2} best to keep ${his2} ${activeSlaveRel} satisfied. `; if (canPenetrate(activeSlave) && fuckSeed > 70) { if (canDoVaginal(partnerSlave) && partnerSlave.vagina > 0 && fuckSeed > 90) { if (partnerSlave.belly >= 5000) { t += `${partnerName} is `; if (partnerSlave.bellyPreg >= 1500) { t += `heavily pregnant `; } else { t += `hugely gravid `; } t += `${himself2} `; if (activeSlave.belly >= 5000) { if (hasAnyLegs(activeSlave) && hasAllLimbs(partnerSlave)) { t += `so ${name} has ${him2} on all fours as ${he} fucks ${him2} from behind while resting ${his} belly on ${his} love's back.`; } else { t += `so ${he2} is intertwined as best ${he2} can with ${name} as their combined bellies push into each other.`; } } else { t += `so ${he2} has ${name} on ${his} back so that ${he2} can ride ${him} while `; if (hasAnyArms(activeSlave)) { t += `letting ${him} fondle ${his2} bouncing belly.`; } else { t += `giving ${him} a face full of belly.`; } } } else if (partnerSlave.belly === 0) { t += `${partnerName} is pinned on ${his2} back by ${name}`; if (activeSlave.belly >= 5000) { t += `'s belly as ${he} tries ${his} hardest to plant a child in ${him2}.`; } else { t += ` in a mating press as ${he} tries ${his} hardest to plant a child in ${him2}.`; } } else { if (activeSlave.belly >= 5000) { t += `${partnerName} has ${name} on ${his} back so that ${he2} can ride ${him} while lavishing attention on ${his} beloved stomach.`; } else { t += `${name} has ${partnerName} on ${his2} back so that ${he} can fuck ${him2} while lavishing attention on ${his2} bulging stomach.`; } } } else if (canDoAnal(partnerSlave) && partnerSlave.anus > 0 && fuckSeed > 80) { if (partnerSlave.belly >= 5000) { t += `${partnerName} is `; if (partnerSlave.bellyPreg >= 1500) { t += `heavily pregnant `; } else { t += `hugely gravid `; } t += `${himself2} `; if (activeSlave.belly >= 5000) { if (hasAnyLegs(activeSlave) && hasAllLimbs(partnerSlave)) { t += `so ${name} has ${him2} on all fours as ${he} fucks ${his2} ass while resting ${his} belly on ${his2} back.`; } else { t += `so ${he2} is intertwined as best as ${he2} can for anal sex with ${name} as ${his} belly pushes into ${his2} back.`; } } else { t += `so ${he2} has ${name} on ${his} back so that ${he2} can anally ride ${him} while `; if (hasAnyArms(activeSlave)) { t += `letting ${him} fondle ${his2} bouncing belly.`; } else { t += `giving ${him} a face full of belly.`; } } } else if (partnerSlave.belly === 0) { if (activeSlave.belly >= 5000) { t += `${partnerName} has ${name} on ${his} back so that ${he2} can anally ride ${him} while teasing ${his} belly with ${his2} rear.`; } else { t += `${partnerName} is pinned on ${his2} stomach by ${name} as ${he} tries ${his} hardest to impregnate an anus.`; } } else { if (activeSlave.belly >= 5000) { t += `${partnerName} has ${name} on ${his} back so that ${he2} can ride ${him} anally while teasing ${his} prized stomach.`; } else { t += `${name} has ${partnerName} on ${his2} back so that ${he} can fuck ${him2} anally while teasing ${his2} bulging stomach.`; } } } else if (partnerSlave.boobs >= 2000 && partnerSlave.belly >= 10000 && fuckSeed > 75) { t += `${name} is savoring the sensation of ${his} cock between ${partnerName}'s breasts and belly.`; } else { if (activeSlave.belly >= 5000) { t += `${name} is squirming under the sensations of ${partnerName}'s lips around ${his} dick and {his2} head against ${his} underbelly.`; } else { t += `${partnerName} is vigorously trying to calm ${name}'s libido by sucking load after load out of ${him}.`; } } } else if (canDoVaginal(activeSlave) && fuckSeed > 30) { if (canPenetrate(partnerSlave) && activeSlave.vagina > 0 && activeSlave.preg === 0 && activeSlave.ovaries === 1) { // impreg if (partnerSlave.belly >= 5000) { t += `${partnerName} is `; if (partnerSlave.bellyPreg >= 1500) { t += `heavily pregnant `; } else { t += `hugely gravid `; } t += `${himself2}, but ${name} can't complain about the swollen dome pushing against ${him} as ${he2} fervently tries to sate ${his} lust by putting a baby in ${him}.`; } else { t += `${partnerName} has ${name} pinned on ${his} back in a mating press as ${he2} fervently tries to sate ${his} lust by putting a baby in ${him}.`; } } else { if (fuckSeed > 50) { // vanilla if (canPenetrate(partnerSlave) && activeSlave.vagina !== 0) { if (partnerSlave.belly >= 5000) { t += `${partnerName} is `; if (partnerSlave.bellyPreg >= 1500) { t += `heavily pregnant `; } else { t += `hugely gravid `; } t += `${himself2} `; if (activeSlave.belly >= 5000) { t += `so ${he2} has ${name} on ${his} side so that ${he2} can fuck ${his} pussy as best ${he2} can with their mutual bellies in the way.`; } else { t += `so ${he2} has ${name} on ${his} back so that ${he2} can fuck ${his} pussy as best ${he2} can with ${his2} belly in the way.`; } } else if (activeSlave.belly >= 5000) { t += `${name} is bouncing heavily on ${partnerName}'s erect dick as ${he2} struggles to support ${his} gravid figure.`; } else { t += `${partnerName} has ${name} pinned on ${his} back in a mating press as ${he2} dutifully blows another load deep in ${his} aching pussy.`; } } else if (partnerSlave.dick > 0 && activeSlave.belly < 500) { t += `${partnerName} is bringing ${his2} limp dick to orgasm and making sure each and every drop is ending up in ${name}'s pussy.`; } else { if (partnerSlave.belly >= 5000) { t += `${partnerName} is `; if (partnerSlave.bellyPreg >= 1500) { t += `heavily pregnant `; } else { t += `hugely gravid `; } t += `${himself2} `; if (activeSlave.belly >= 5000) { t += `so ${he2} is stomach to stomach with ${name} and making out.`; } else { t += `so ${he2} is face to face with ${name} and making out.`; } } else if (activeSlave.belly >= 5000) { t += `${partnerName} is teasing ${his2} lover's huge belly.`; } else { t += `${name} and ${partnerName} are both pretending to be hugely pregnant and cuddling each other.`; } } } else if (canDoVaginal(partnerSlave) && fuckSeed > 40) { // scissor if (partnerSlave.belly >= 5000) { t += `${partnerName} is `; if (partnerSlave.bellyPreg >= 1500) { t += `heavily pregnant `; } else { t += `hugely gravid `; } t += `${himself2} `; if (activeSlave.belly >= 5000) { t += `so ${he2} and ${name} are trying their hardest to trib with their ever expanding bodies in the way.`; } else { t += `so ${name} is savoring the feeling of ${his2} navel tracing ${his} slit.`; } } else { t += `${name} and ${partnerName} `; if (activeSlave.vagina > 0 && partnerSlave.vagina > 0) { t += `are locked together and sharing a double-ended dildo.`; } else { t += `are enthusiastically tribbing.`; } } } else { // oral if (partnerSlave.belly >= 5000) { t += `${partnerName} is `; if (partnerSlave.bellyPreg >= 1500) { t += `heavily pregnant `; } else { t += `hugely gravid `; } t += `${himself2} `; if (activeSlave.belly >= 5000) { if (activeSlave.dick > 0 && fuckSeed > 25) { t += `so ${he2} has to try ${his2} hardest to suck ${name}'s dick with ${his2} belly hindering ${his2} movements; something ${name} enjoys tremendously, second only to the feeling of ${his2} head brushing against ${his} underbelly.`; } else { t += `so ${he2} has to try ${his2} hardest to orally service ${name} with ${his2} belly in the way; something ${name} enjoys tremendously, second only to the feeling of ${his2} head brushing against ${his} underbelly.`; } } else { if (activeSlave.dick > 0 && fuckSeed > 25) { t += `so ${he2} has to try ${his2} hardest to suck ${name}'s dick with ${his2} belly hindering ${his2} movements; something ${name} enjoys tremendously.`; } else { t += `so ${he2} has to try ${his2} hardest to orally service ${name} with ${his2} belly in the way; something ${name} enjoys tremendously.`; } } } else if (activeSlave.belly >= 5000) { if (activeSlave.dick > 0 && fuckSeed > 25) { t += `${partnerName} has ${name} pinned under ${his} own gravidity so ${he2} may leisurely suck ${his} dick while teasing ${him} by brushing against ${his} sensitive underbelly.`; } else { t += `${partnerName} has ${name} pinned under ${his} own gravidity so ${he2} may leisurely eat ${him} out while teasing ${him} by brushing against ${his} sensitive underbelly.`; } } else { if (activeSlave.dick > 0 && fuckSeed > 25) { t += `${partnerName} is vigorously trying to calm ${name}'s libido by sucking load after load out of ${him}.`; } else { t += `${name} is squirming under the sensations of ${partnerName}'s tongue as ${he2} vigorously tries to calm ${his} libido.`; } } } } } else if (canDoAnal(activeSlave) && canPenetrate(partnerSlave) && fuckSeed > 10) { if (activeSlave.anus > 0 && activeSlave.preg === 0 && activeSlave.mpreg === 1) { // impreg if (partnerSlave.belly >= 5000) { t += `${partnerName} is `; if (partnerSlave.bellyPreg >= 1500) { t += `heavily pregnant `; } else { t += `hugely gravid `; } t += `${himself2}, but ${name} can't complain about the swollen dome pushing against ${his} back as ${he2} fervently tries to sate ${his} lust by putting a baby in ${him}.`; } else { t += `${partnerName} has ${name} pinned on ${his} stomach as ${he2} fervently tries to sate ${his} lust by putting a baby in ${him}.`; } } else if (activeSlave.anus === 0) { if (partnerSlave.belly >= 5000) { t += `${partnerName} is `; if (partnerSlave.bellyPreg >= 1500) { t += `heavily pregnant `; } else { t += `hugely gravid `; } t += `${himself2} `; if (activeSlave.belly >= 5000) { t += `so ${he2} is stomach to stomach with ${name} and making out.`; } else { t += `so ${he2} is face to face with ${name} and making out.`; } } else if (activeSlave.belly >= 5000) { t += `${partnerName} is teasing ${his2} lover's huge belly.`; } else { t += `${name} and ${partnerName} are both pretending to be hugely pregnant and cuddling each other.`; } } else { if (partnerSlave.belly >= 5000) { t += `${partnerName} is `; if (partnerSlave.bellyPreg >= 1500) { t += `heavily pregnant `; } else { t += `hugely gravid `; } t += `${himself2} `; if (activeSlave.belly >= 5000) { t += `so ${he2} has ${name} on ${his} side so that ${he2} can fuck ${his} ass as best ${he2} can with their mutual bellies in the way.`; } else { t += `so ${he2} has ${name} on ${his} front so that ${he2} can fuck ${his} ass as best ${he2} can with ${his2} belly in the way.`; } } else if (activeSlave.belly >= 5000) { t += `${name} is bouncing heavily on ${partnerName}'s erect dick as ${he2} struggles to anally satisfy ${his2} gravid partner.`; } else { t += `${partnerName} has ${name} pinned on ${his} front as ${he2} dutifully plows ${his} needy anus in an attempt to sate ${his} bottomless lust.`; } } } else { // oral if (partnerSlave.belly >= 5000) { t += `${partnerName} is `; if (partnerSlave.bellyPreg >= 1500) { t += `heavily pregnant `; } else { t += `hugely gravid `; } t += `${himself2} `; if (activeSlave.belly >= 5000) { if (activeSlave.dick > 0 && fuckSeed > 5) { t += `so ${he2} has to try ${his2} hardest to suck ${name}'s dick with ${his2} belly hindering ${his2} movements; something ${name} enjoys tremendously, second only to the feeling of ${his2} head brushing against ${his} underbelly.`; } else { t += `so ${he2} has to try ${his2} hardest to orally service ${name} with ${his2} belly in the way; something ${name} enjoys tremendously, second only to the feeling of ${his2} head brushing against ${his} underbelly.`; } } else { if (activeSlave.dick > 0 && fuckSeed > 5) { t += `so ${he2} has to try ${his2} hardest to suck ${name}'s dick with ${his2} belly hindering ${his2} movements; something ${name} enjoys tremendously.`; } else { t += `so ${he2} has to try ${his2} hardest to orally service ${name} with ${his2} belly in the way; something ${name} enjoys tremendously.`; } } } else if (activeSlave.belly >= 5000) { if (activeSlave.dick > 0 && fuckSeed > 5) { t += `${partnerName} has ${name} pinned under ${his} own gravidity so ${he2} may leisurely suck ${his} dick while teasing ${him} by brushing against ${his} sensitive underbelly.`; } else { t += `${partnerName} has ${name} pinned under ${his} own gravidity so ${he2} may leisurely eat ${him} out while teasing ${him} by brushing against ${his} sensitive underbelly.`; } } else { if (activeSlave.dick > 0 && fuckSeed > 5) { t += `${partnerName} is vigorously trying to calm ${name}'s libido by sucking load after load out of ${him}.`; } else { t += `${name} is squirming under the sensations of ${partnerName}'s tongue as ${he2} vigorously tries to calm ${his} libido.`; } } } break; default: t += `having intimate sex ${fuckSpot}.`; break; } } else if (!activeSlave.need || activeSlave.energy < 20) { t += `just spooning in bed. Since ${name} `; if (activeSlave.energy < 20) { t += `in sexually frigid, `; } else { t += `gets fucked at work, `; } t += `${partnerName} understands that what ${he} really wants from ${him2} is emotional intimacy. They're cuddling quietly, offering each other silent comfort and companionship.`; } else if (canPenetrate(activeSlave) && (partnerSlave.vagina > 0) && canDoVaginal(partnerSlave) && hasAllLimbs(partnerSlave) && (activeSlave.belly + partnerSlave.belly < 10000)) { if (partnerSlave.ID === V.HeadGirlID && V.HGSuite === 1) { t += `in bed `; } else if (activeSlave.rules.living === "luxurious") { t += `in bed `; } else { t += `on ${name}'s bedroll `; } t += `${fuckSpot}, making love in the missionary position. ${partnerName} has ${his2} legs wrapped around ${name}'s waist and ${his2} arms hugging ${him} around the chest, and is `; if (canSee(partnerSlave)) { t += `looking deep into ${his} eyes `; } else { t += `gazing longingly into ${his} face `; } t += `as ${he2} enjoys the wonderful feeling of ${his2} ${activeSlaveRel}'s cock in ${his2} womanhood.`; } else if (activeSlave.clit > 2 && canDoVaginal(activeSlave) && partnerSlave.vagina > 0 && canDoVaginal(partnerSlave) && hasAllLimbs(partnerSlave) && (activeSlave.belly + partnerSlave.belly < 10000)) { if (partnerSlave.ID === V.HeadGirlID && V.HGSuite === 1) { t += `in bed `; } else if (activeSlave.rules.living === "luxurious") { t += `in bed `; } else { t += `on ${name}'s bedroll `; } t += `${fuckSpot}, making love in the missionary position. ${partnerName} has ${his2} legs wrapped around ${name}'s waist and ${his2} arms hugging ${him} around the chest, and is `; if (canSee(partnerSlave)) { t += `looking deep into ${his} eyes `; } else { t += `gazing longingly into ${his} face `; } t += `as ${he2} enjoys the wonderful feeling of ${his2} ${activeSlaveRel}'s huge clit in ${his2} womanhood.`; } else if (activeSlave.dick > 1 && canPenetrate(activeSlave) && canDoAnal(partnerSlave) && partnerSlave.anus > 0 && hasBothArms(activeSlave) && activeSlave.belly < 10000) { if (partnerSlave.ID === V.HeadGirlID && V.HGSuite === 1) { t += `in bed `; } else if (activeSlave.rules.living === "luxurious") { t += `in bed `; } else { t += `on ${name}'s bedroll `; } t += `${fuckSpot}, having gentle anal sex while spooning. ${name} is enjoying ${partnerName}'s ass, and is doing ${his} best to ensure ${his} ${partnerSlaveRel} enjoys being buttfucked. ${He}'s nibbling ${his} ${partnerSlaveRel}'s `; if (partnerSlave.earShape !== "none") { t +=`ears and `; } t += `neck, cupping a breast with one hand, and lightly stimulating ${him2} with the other.`; } else if (activeSlave.clit > 2 && canDoAnal(partnerSlave) && partnerSlave.anus > 0 && hasAnyArms(partnerSlave) && hasAnyLegs(activeSlave)) { if (partnerSlave.ID === V.HeadGirlID && V.HGSuite === 1) { t += `in bed `; } else if (activeSlave.rules.living === "luxurious") { t += `in bed `; } else { t += `on ${name}'s bedroll `; } t += `${fuckSpot}, managing to have clitoral-anal sex. ${partnerName} is face-down with ${his2} ass up, spreading ${his2} buttocks as wide as possible, giving ${his2} ${activeSlaveRel} the opportunity to squat over ${him2} and penetrate it with ${his} huge, erect clit. ${name} can't thrust much, but the shocking lewdness of the act is enough for both of them.`; } else if (canPenetrate(activeSlave) && hasBothLegs(partnerSlave) && hasBothArms(activeSlave) && activeSlave.belly < 10000) { if (partnerSlave.ID === V.HeadGirlID && V.HGSuite === 1) { t += `in bed `; } else if (activeSlave.rules.living === "luxurious") { t += `in bed `; } else { t += `on ${name}'s bedroll `; } t += `${fuckSpot}, spooning while ${name} gently rubs ${his} cock between ${partnerName}'s thighs, pressed tightly together. Since ${partnerName} is a virgin, this is the closest they can come to penetrative intercourse, but ${name} is enjoying ${partnerName}'s body anyway, and is doing ${his} best to ensure ${his} ${partnerSlaveRel} enjoys ${himself2}. ${He}'s nibbling ${his} ${partnerSlaveRel}'s `; if (partnerSlave.earShape !== "none") { t +=`ears and `; } t += `neck, cupping a breast with one hand, and lightly stimulating ${him2} with the other.`; } else if (activeSlave.clit > 2 && canDoVaginal(activeSlave) && hasBothLegs(partnerSlave)) { if (partnerSlave.ID === V.HeadGirlID && V.HGSuite === 1) { t += `in bed `; } else if (activeSlave.rules.living === "luxurious") { t += `in bed `; } else { t += `on ${name}'s bedroll `; } t += `${fuckSpot}, with ${partnerName} down on ${his2} knees in front of ${name}. From behind ${partnerName} it looks like ${he2}'s giving ${his2} ${activeSlaveRel} a conventional, if enthusiastic, blowjob. Only on closer inspection does it become clear how unusual the oral is: ${name} has such a huge clit that ${his} ${partnerSlaveRel} can suck ${him} off just like it were a penis.`; } else if (partnerSlave.vagina > 0 && canDoVaginal(partnerSlave) && hasAllLimbs(partnerSlave) && (activeSlave.belly + partnerSlave.belly < 10000)) { if (partnerSlave.ID === V.HeadGirlID && V.HGSuite === 1) { t += `in bed `; } else if (activeSlave.rules.living === "luxurious") { t += `in bed `; } else { t += `on ${name}'s bedroll `; } t += `${fuckSpot}, making love in the missionary position. ${partnerName} has ${his2} legs wrapped around ${name}'s waist and ${his2} arms hugging ${him} around the chest, and is `; if (canSee(partnerSlave)) { t += `looking deep into ${his} eyes `; } else { t += `gazing longingly into ${his} face `; } t += `as ${he2} enjoys the feeling of ${his2} ${activeSlaveRel} fucking ${him2} with a strap-on.`; } else if (partnerSlave.anus > 0 && canDoAnal(partnerSlave) && hasBothArms(activeSlave) && activeSlave.belly < 10000) { if (partnerSlave.ID === V.HeadGirlID && V.HGSuite === 1) { t += `in bed `; } else if (activeSlave.rules.living === "luxurious") { t += `in bed `; } else { t += `on ${name}'s bedroll `; } t += `${fuckSpot}, having gentle anal sex while spooning. ${name} is enjoying penetrating ${partnerName}'s ass with a strap-on, and is doing ${his} best to ensure ${his} ${partnerSlaveRel} enjoys being buttfucked. ${He}'s nibbling ${his} ${partnerSlaveRel}'s `; if (partnerSlave.earShape !== "none") { t +=`ears and `; } t += `neck, cupping a breast with one hand, and lightly stimulating ${him} with the other.`; } else if (hasAnyArms(partnerSlave) && hasAnyArms(activeSlave)) { if (partnerSlave.ID === V.HeadGirlID && V.HGSuite === 1) { t += `in bed `; } else if (activeSlave.rules.living === "luxurious") { t += `in bed `; } else { t += `on ${name}'s bedroll `; } t += `${fuckSpot}, enjoying some mutual masturbation.`; } else if (isAmputee(partnerSlave)) { t += `just cuddling `; if (partnerSlave.ID === V.HeadGirlID && V.HGSuite === 1) { t += `in bed `; } else if (activeSlave.rules.living === "luxurious") { t += `in bed `; } else { t += `on ${name}'s bedroll `; } t += `${fuckSpot}. ${name} is using ${partnerName}'s limbless torso as a pillow, which ${partnerName} seems to be enjoying, by ${his2} contented expression.`; } else { t += `just cuddling `; if (partnerSlave.ID === V.HeadGirlID && V.HGSuite === 1) { t += `in bed `; } else if (activeSlave.rules.living === "luxurious") { t += `in bed `; } else { t += `on ${name}'s bedroll `; } t += `${fuckSpot}. They're lying quietly, offering each other silent comfort and companionship.`; } } else if (seed >= 33) { /* CUDDLE TIME */ if (activeSlave.energy > 95 && fuckSeed > 70) { t += `lying in bed together. ${partnerName} has somehow managed to exhaust ${his2} ${activeSlaveRel}, and the sexually sated nympho is curled up with ${his} head on ${partnerName}'s chest, snoring lightly. ${partnerName} is smiling fondly at ${him}.`; } else if (activeSlave.fetish !== "none" && fuckSeed > 50) { switch (activeSlave.fetish) { case "boobs": t += `sleeping in bed together. ${name} is using ${partnerName}'s `; if (partnerSlave.boobs > 10000) { t += `enormous breasts`; } else if (partnerSlave.boobs > 2000) { t += `huge boobs`; } else if (partnerSlave.boobs > 300) { t += `healthy tits`; } else { t += `flat chest`; } if (activeSlave.fetishKnown) { t += `, which ${he} loves,`; } t += ` as a pillow.`; break; case "buttslut": t += `sleeping in bed together. ${partnerName} is sleeping face-down so ${name} can use ${his2} `; if (partnerSlave.butt > 8) { t += `massive rear`; } else if (partnerSlave.butt > 5) { t += `huge posterior`; } else if (partnerSlave.butt > 2) { t += `big butt`; } else if (partnerSlave.butt > 1) { t += `trim behind`; } else { t += `skinny ass`; } if (activeSlave.fetishKnown) { t += `, which ${he} loves,`; } t += ` as a pillow.`; break; case "cumslut": t += `sleeping in bed together. ${name} is spooning ${his} ${partnerSlaveRel}, ${his} head nestled alongside ${partnerName}'s, ${his} `; if (activeSlave.lips > 95) { t += `massive `; } else if (activeSlave.lips > 70) { t += `pillowlike `; } else if (activeSlave.lips > 40) { t += `plush `; } else if (activeSlave.lips > 10) { t += `pretty `; } else { t += `thin `; } t += `lips wet from kissing ${him2} to sleep.`; break; case "submissive": case "masochist": case "humiliation": t += `sleeping in bed together. ${name} is being spooned by ${his} ${partnerSlaveRel}, smiling peacefully at being held.`; break; case "dom": case "sadist": t += `sleeping in bed together. ${name} is spooning ${his} ${partnerSlaveRel} possessively`; if (hasAnyArms(activeSlave)) { t += `, and even in ${his} sleep, has a proprietary hand on ${partnerName}'s `; if (partnerSlave.balls > 0) { t += `balls`; } else if (partnerSlave.balls === 0) { t += `soft cock`; } else if (partnerSlave.vagina > -1) { t += `pussy`; } else { t += `body`; } } t += `.`; break; case "pregnancy": t += `sleeping in bed together. `; if (activeSlave.belly >= 5000 && partnerSlave.belly >= 5000) { t += `They are pressed as close as they can be with their rounded middles in the way.`; } else if (activeSlave.belly >= 5000) { t += `${name} is spooning ${his} ${partnerSlaveRel} possessively, ${his} rounded belly pushing into ${his2} back.`; } else if (partnerSlave.belly >= 5000) { t += `${name} is spooning ${his} ${partnerSlaveRel} possessively`; if (hasAnyArms(activeSlave)) { t += `, and even in ${his} sleep, has a proprietary hand on ${partnerName}'s belly`; } t += `.`; } else { t += `${name} is being spooned by ${his} ${partnerSlaveRel}, smiling peacefully at being held.`; } break; } } else if (partnerSlave.dick > 6 && hasAnyArms(activeSlave) && fuckSeed > 30) { t += `sleeping in bed together. ${name} is cuddled up close to ${partnerName}, and is cradling ${his} ${partnerSlaveRel}'s enormous, soft cock with one hand.`; } else if (activeSlave.height > partnerSlave.height + 10) { t += `sleeping in bed together, with the taller ${name} curled around ${his} little ${partnerSlaveRel}.`; } else if (partnerSlave.height > activeSlave.height + 10) { t += `sleeping in bed together, with the shorter ${name} curled under ${his} ${partnerSlaveRel}.`; } else if (isAmputee(activeSlave)) { t += `sleeping in bed together; ${partnerName} is using ${his2} limbless ${activeSlaveRel} as a pillow.`; } else if (hasAnyArms(activeSlave) && hasAnyArms(partnerSlave)) { t += `resting in bed together, holding hands in their sleep.`; } else { t += `sleeping quietly in bed together.`; } } else { /* TOGETHER TIME */ if (fuckSeed > 75 && activeSlave.behavioralQuirk !== "none") { switch (activeSlave.behavioralQuirk) { case "confident": t += `finishing up a meal together. ${name} `; if (canTalk(activeSlave) && canHear(partnerSlave)) { t += `is concluding a story for ${his} ${partnerSlaveRel}, ${his} clear confident voice ringing as ${he} relates a slight.`; } else { t += `is boasting to ${his} ${partnerSlaveRel}, with ${partnerName} nodding in agreement.`; } break; case "cutting": t += `seeing to their chores together. ${name} `; if (canTalk(activeSlave) && canHear(partnerSlave)) { t += `is making biting remarks about another one of your other slaves, with which ${his} ${partnerSlaveRel} agrees tolerantly.`; } else { t += `is making ${his} thoughts about another one of your other slaves clear to ${his} ${partnerSlaveRel}.`; } break; case "funny": if (canTalk(partnerSlave) && canSee(partnerSlave)) { t += `seeing to their chores together. ${name} has just produced some unintentional slapstick humor, and ${his} ${partnerSlaveRel} is giggling helplessly at ${his} antics.`; } else { t += `getting ready for bed. ${name} is making ${his} ${partnerSlaveRel} giggle `; if (canTalk(partnerSlave)) { t += `silently `; } else { t += `helplessly `; } t += `with ${his} antics.`; } break; case "fitness": t += `just waking up. `; if (hasBothLegs(activeSlave)) { t += `${name} is doing ${his} morning crunches, and ${his} ${partnerSlaveRel} is sleepily sitting on ${his} feet to help.`; } else { t += `${name} is doing ${his} morning exercises, and ${his} ${partnerSlaveRel} is sleepily sitting nearby, providing moral support.`; } break; case "insecure": t += `are just waking up. ${name} is getting dressed when ${his} ${partnerSlaveRel} `; if ((canTalk(partnerSlave) && canHear(activeSlave)) || (hasAnyArms(partnerSlave) && canSee(activeSlave))) { t += `pays ${him} a compliment; ${name} blushes and gives ${partnerName} a kiss.`; } else { t += `demonstrates how much ${he2} adores ${his} body; ${name} blushes and gives ${partnerName} a kiss.`; } break; case "sinful": t += `are just waking up. ${name} appears to be praying, but to go by ${his} ${partnerSlaveRel}'s `; if (canTalk(activeSlave) && canHear(partnerSlave)) { t += `quiet mirth, ${he} seems to be substituting in some lewd words.`; } else if (canSee(partnerSlave)) { t += `quiet mirth, ${he} seems to be adding in some lewd motions.`; } else { t += `blushing, ${he} seems to be substituting in the occasional lewd act.`; } break; case "advocate": if (canTalk(activeSlave)) { t += `starting a meal together. A third, less well trained slave has asked ${name} an innocent question, and is getting enthusiastic slave dogma in return. ${His} ${partnerSlaveRel} smiles tolerantly.`; } else { t += `have just woken up. ${name} is planning out how to better convince new slaves that they made the right choice. ${His} ${partnerSlaveRel} just tolerantly goes about tidying up while giving the occasional idea.`; } break; case "adores men": if (canSee(activeSlave) && (canSee(partnerSlave) || canHear(partnerSlave))) { t += `sharing a meal together. ${name} is making catcalls at passing boys, and ${his} ${partnerSlaveRel} is nudging ${him} in the ribs every time ${he2} catches it.`; } else { t += `getting ready for bed. ${name} is demonstrating just how much ${he} adores men to ${his} ${partnerSlaveRel} while ${he2} nods `; if (partnerSlave.genes === "XX") { t += `tolerantly.`; } else { t += `appreciatively.`; } } break; case "adores women": if (canSee(activeSlave) && (canSee(partnerSlave) || canHear(partnerSlave))) { t += `sharing a meal together. ${name} is making catcalls at passing girls, and ${his} ${partnerSlaveRel} is nudging ${him} in the ribs every time ${he2} catches it.`; } else { t += `getting ready for bed. ${name} is demonstrating just how much ${he} adores ladies to ${his} ${partnerSlaveRel} while ${he2} nods `; if (partnerSlave.genes === "XY") { t += `tolerantly.`; } else { t += `appreciatively.`; } } break; } } else if (fuckSeed > 50) { if ((activeSlave.actualAge >= partnerSlave.actualAge + 10) && canTalk(partnerSlave) && canHear(activeSlave)) { t += `tidying up their room together. ${partnerName} is chattering about ${his2} day, while ${name} listens quietly, smiling fondly at ${his} ${partnerSlaveRel}'s prattle.`; } else if ((partnerSlave.actualAge >= activeSlave.actualAge + 10) && canTalk(activeSlave) && canHear(partnerSlave)) { t += `tidying up their room together. ${name} is chattering about ${his} day, while ${partnerName} listens quietly, smiling fondly at ${his2} ${activeSlaveRel}'s prattle.`; } else if (hasAnyArms(activeSlave) && !canTalk(activeSlave) && canSee(partnerSlave)) { t += `getting ready for bed. ${name} is using gestures to tell ${his} ${partnerSlaveRel} about ${his} day; ${partnerName} is very patient and does ${his2} best to follow.`; } else if (canTalk(activeSlave) && canTalk(partnerSlave) && canHear(activeSlave) && canHear(partnerSlave)) { t += `tidying up their room together. ${name} and ${partnerName} are chattering away over inconsequential things.`; } else if (canSee(activeSlave) && canSee(partnerSlave) && hasAnyArms(activeSlave) && hasAnyArms(partnerSlave)) { t += `getting ready for bed. ${name} and ${partnerName} are rapidly gesturing to each other about their days.`; } else { t += `getting ready for bed. ${name} and ${his} ${partnerSlaveRel}, ${partnerName}, are leaning against one another, just enjoying each other's warmth.`; } } else if (fuckSeed > 25) { t += `using some of their free time to `; if (!canWalk(activeSlave) && canWalk(partnerSlave)) { if (canSee(activeSlave) && canSee(partnerSlave)) { t += `watch the weather; ${partnerName} helped ${his2} ${activeSlaveRel} to a window so ${he} could look out with ${him2}.`; } else { t += `get some fresh air; ${partnerName} helped ${his2} ${activeSlaveRel} to a balcony so ${he} could enjoy the breeze with ${him2}.`; } } else if (!canWalk(partnerSlave) && canWalk(activeSlave)) { if (canSee(activeSlave) && canSee(partnerSlave)) { t += `watch the weather; ${name} helped ${his} ${partnerSlaveRel} to a window so ${he2} could look out with ${him}.`; } else { t += `get some fresh air; ${name} helped ${his} ${partnerSlaveRel} to a balcony so ${he2} could enjoy the breeze with ${him}.`; } } else { t += `rest on one of the penthouse balconies and enjoy the weather.`; } } else { if (V.cockFeeder === 1) { t += `taking in a meal together; they've chosen dispensers next to each other and are slurping away.`; } else if (V.suppository === 1) { t += `taking their drugs together; they've chosen fuckmachines next to each other and are `; if (canTalk(activeSlave) && canTalk(partnerSlave) && canHear(activeSlave) && canHear(partnerSlave)) { t += `chatting quietly as they're sodomized.`; } else { t += `enjoying their mutual sodomy.`; } } else { t += `eating a quiet meal together.`; } } } /* CLOSE SEXY/CUDDLE/TOGETHER TIME */ target = "FRelation"; } else { t += ` Lover not found!`; } return t + ` `; } /** Generate walkpast for a relative of the slave we're looking at * @param {App.Entity.SlaveState} activeSlave * @returns {string} */ function relatedSlave(activeSlave) { let r = ""; const fuckSeed = jsRandom(1, 100); const { he, him, his, hers, himself, boy, He, His } = getPronouns(activeSlave); if (partner === "relation") { partnerSlave = randomRelatedSlave(activeSlave); } else { partnerSlave = getSlave(activeSlave.relationshipTarget); } if (partnerSlave !== undefined) { /* potential problem point */ r += ` ${His} `; if (partner === "relation") { r += `${relativeTerm(activeSlave, partnerSlave)} `; } else { r += `${relationshipTerm(activeSlave)} `; } r += `${partnerSlave.slaveName} `; r += walkPasts(partnerSlave, fuckSeed); target = "FRelation"; /* potentially removed later */ } else { r += ` Expected partner not found!`; } return r + ` `; } /** Generate walkpast for a given slave * @param {App.Entity.SlaveState} slave * @param {number} seed * @returns {string} */ function walkPasts(slave, seed) { const { he, him, his, hers, himself, boy, He, His } = getPronouns(slave); t = ""; const race = (V.seeRace ? slave.race : ""); switch (slave.assignment) { case Job.AGENT: t += `is shaping society in ${his} assigned arcology.`; break; case Job.AGENTPARTNER: t += `is helping ${his} lover shape society in ${his} assigned arcology.`; break; case Job.DAIRY: if (V.dairyRestraintsSetting > 1) { t += `is strapped to a milking machine in ${V.dairyName}, `; if (slave.ovaries === 1 && V.dairyPregSetting > 0 && jsRandom(1, 2) === 2) { if (isFertile(slave)) { t += `and is wincing in pain as the machine forces another load of cum into ${his} womb. As you watch, ${his} ${race} stomach steadily swells with baby batter.`; } else { t += `giving you a good view of ${his} ${race} body and heavy belly on the feeds.`; } } else if (slave.lactation > 0) { if (slave.balls > 0 && jsRandom(1, 2) === 1) { if (slave.dick > 0) { if (seed > 50) { t += `and is having ${his} cock sucked dry. As you watch, `; if (slave.scrotum) { t += `${his} balls tighten `; } else { t += `${he} begins to thrust harder `; } if (V.dairyStimulatorsSetting > 0) { t += `as the phallus up ${his} butt `; } else { t += `as the suction to ${his} dick `; } t += `forces ${him} closer to yet another ejaculation.`; } else { t += `and is wincing in pain as the machine sucks ${his} sore cock, but you have a good view of ${his} ${race} body on the feeds.`; } } else { if (seed > 50) { t += `and is having ${his} balls sucked dry. As you watch, `; if (slave.scrotum) { t += `${his} scrotum tightens `; } else { t += `${he} begins to thrust harder `; } if (V.dairyStimulatorsSetting) { t += `as the phallus up ${his} butt `; } else { t += `as the suction against ${his} crotch `; } t += `forces ${him} closer to yet another leaking ejaculation.`; } else { t += `and is wincing in pain as the machine sucks ${his} empty balls, but you have a good view of ${his} ${race} body on the feeds.`; } } } else { if (seed > 50) { t += `and is having ${his} tits drained, but you have a good view of ${his} ${race} body on the feeds.`; } else { t += `and is recovering after having ${his} tits sucked dry, but you have a good view of ${his} ${race} body on the feeds.`; } } } else if (slave.balls > 0) { if (slave.dick > 0) { if (seed > 50) { t += `and is having ${his} cock sucked dry. As you watch, `; if (slave.scrotum) { t += `${his} balls tighten `; } else { t += `${he} begins to thrust harder `; } if (V.dairyStimulatorsSetting > 0) { t += `as the phallus up ${his} butt `; } else { t += `as the suction to ${his} dick `; } t += `forces ${him} closer to yet another ejaculation.`; } else { t += `and is wincing in pain as the machine sucks ${his} sore cock, but you have a good view of ${his} ${race} body on the feeds.`; } } else { if (seed > 50) { t += `and is having ${his} balls sucked dry. As you watch, `; if (slave.scrotum) { t += `${his} scrotum tightens `; } else { t += `${he} begins to thrust harder `; } if (V.dairyStimulatorsSetting) { t += `as the phallus up ${his} butt `; } else { t += `as the suction against ${his} crotch `; } t += `forces ${him} closer to yet another leaking ejaculation.`; } else { t += `and is wincing in pain as the machine sucks ${his} empty balls, but you have a good view of ${his} ${race} body on the feeds.`; } } } else { t += `and is massaging ${his} sore, milkless tits, but you have a good view of ${his} ${race} body on the feeds.`; } } else { t += `is working in ${V.dairyName}, `; if (slave.lactation > 0) { if (slave.balls > 0 && jsRandom(1, 2) === 1) { if (slave.dick > 0) { if (seed > 50) { t += `and is having ${his} cock milked. As you watch, `; if (slave.scrotum) { t += `${his} balls tighten `; } else { t += `${he} begins to thrust harder `; } if (V.dairyStimulatorsSetting > 0) { t += `as the phallus up ${his} butt `; } else { t += `as the suction to ${his} dick `; } t += `brings ${him} closer to a copious ejaculation.`; } else { t += `and is massaging ${his} sore swollen cock, but you have a good view of ${his} ${race} body on the feeds.`; } } else { if (seed > 50) { t += `and is having ${his} balls drained. As you watch, `; if (slave.scrotum) { t += `${his} scrotum tightens `; } else { t += `${he} begins to thrust harder `; } if (V.dairyStimulatorsSetting) { t += `as the phallus up ${his} butt `; } else { t += `as the suction against ${his} crotch `; } t += `brings ${him} closer to a copious squirting.`; } else { t += `and is massaging ${his} aching balls, but you have a good view of ${his} ${race} body on the feeds.`; } } } else { if (seed > 50) { t += `and is having ${his} tits milked, but you have a good view of ${his} ${race} body on the feeds.`; } else { t += `and is massaging ${his} sore tits, but you have a good view of ${his} ${race} body on the feeds.`; } } } else if (slave.balls > 0) { if (slave.dick > 0) { if (seed > 50) { t += `and is having ${his} cock milked. As you watch, `; if (slave.scrotum) { t += `${his} balls tighten `; } else { t += `${he} begins to thrust harder `; } if (V.dairyStimulatorsSetting) { t += `as the phallus up ${his} butt `; } else { t += `as the suction to ${his} dick `; } t += `brings ${him} closer to a copious ejaculation.`; } else { t += `and is massaging ${his} sore swollen cock, but you have a good view of ${his} ${race} body on the feeds.`; } } else { if (seed > 50) { t += `and is having ${his} balls drained. As you watch, `; if (slave.scrotum) { t += `${his} scrotum tightens `; } else { t += `${he} begins to thrust harder `; } if (V.dairyStimulatorsSetting) { t += `as the phallus up ${his} butt `; } else { t += `as the suction against ${his} crotch `; } t += `brings ${him} closer to a copious squirting.`; } else { t += `and is massaging ${his} aching balls, but you have a good view of ${his} ${race} body on the feeds.`; } } } else { t += `and is massaging ${his} sore, milkless tits, but you have a good view of ${his} ${race} body on the feeds.`; } } break; case Job.BROTHEL: t += `is working in ${V.brothelName}, and is `; if (Beauty(slave) > 100 && jsRandom(1, 2) === 1) { if (seed > 80) { if (canDoAnal(slave) || canDoVaginal(slave)) { t += `riding one customer's dick while ${he} gives another a blowjob.`; } else { t += `deep throating a pair of customer's dicks.`; } } else if (seed > 60 && hasAnyArms(slave)) { t += `sucking one customer's cock while giving another a handjob.`; } else if (seed > 40) { t += `eating out one customer's cunt while another `; if (canDoAnal(slave) || canDoVaginal(slave)) { t += `uses a strap-on on ${him}.`; } else { t += `teases ${his} butt.`; } } else if (seed > 20) { if (canDoAnal(slave) || canDoVaginal(slave)) { t += `getting pounded by `; } else { t += `amusing `; } t += `two women wearing strap-ons.`; } else { if (canDoAnal(slave) || canDoVaginal(slave)) { t += `being double penetrated by `; } else { t += `using ${his} body to please `; } t += `a pair of customers.`; } } else if (seed > 80) { if (canDoAnal(slave) || canDoVaginal(slave)) { t += `pleasing `; } else { t += `riding `; } t += `a customer's dick.`; } else if (seed > 60) { t += `sucking a customer's cock.`; } else if (seed > 40) { t += `pleasuring a customer's cunt.`; } else if (seed > 20) { t += `getting pounded by a woman wearing a strap-on.`; } else { t += `being held down and `; if (canDoAnal(slave)) { t += `buttfucked `; } else { t += `raped `; } t += `by a customer.`; } t += ` You have a voyeuristic view of ${his} ${race} body on the feeds.`; break; case Job.CLUB: t += `is working in ${V.clubName}, `; if (seed > 50) { t += `displaying ${his} ${race} body, keeping citizens company, and flirting with anyone who shows interest.`; } else { t += `or rather just off it, having taken a prominent citizen back to a discreet room so he can use ${his} ${race} body.`; } break; case Job.QUARTER: if (seed > 50) { t += `was scrubbing the penthouse floor, until another slave requested oral service.`; } else { t += `is scrubbing the penthouse floor.`; } break; case Job.MASTERSUITE: if (slave.fuckdoll > 0) { t += `waiting for use in ${V.masterSuiteName}, next to a display case full of other sex toys.`; } else if (V.masterSuiteUpgradeLuxury === 1) { if (seed > 50) { t += `is sitting on the big bed in ${V.masterSuiteName}, awaiting your return.`; } else { t += `is beautifying ${himself} in ${V.masterSuiteName} so ${he}'ll be pretty when you return.`; } } else if (V.masterSuiteUpgradeLuxury === 2) { t += `is in ${V.masterSuiteName}'s fuckpit, `; if (seed > 80) { t += `with a pair of ${his} fellow fucktoys industriously sucking on ${his} nipples.`; } else if (seed > 60) { if ((slave.anus > 0 && canDoAnal(slave)) || (slave.vagina > 0 && canDoVaginal(slave))) { t += `taking double penetration from `; } else { t += `being spitroasted by `; } t += `a pair of ${his} fellow fucktoys.`; } else if (seed > 40) { if (canPenetrate(slave)) { t += `with ${his} dick inside `; } else if (slave.dick > 0 && slave.chastityPenis !== 1) { t += `getting ${his} soft dick sucked by `; } else if (canDoVaginal(slave) || canDoAnal(slave)) { t += `getting eaten out by `; } else { t += `making out with `; } t += `a fellow fucktoy.`; } else if (seed > 20) { if (slave.vagina > 0 && canDoVaginal(slave)) { t += `getting pounded `; } else if (slave.anus > 0 && canDoAnal(slave)) { t += `getting ${his} ass pounded `; } else if (canDoVaginal(slave) || canDoAnal(slave)) { t += `getting eaten out `; } else { t += `getting deepthroated `; } t += `by a fellow fucktoy.`; } else { t += `performing oral sex on a fellow fucktoy.`; } } else { if (slave.energy > 95) { t += `is having enthusiastic sex with your other pets while waiting for you to ravish ${him}.`; } else { t += `is having idle sex with several of your other toys while they await your pleasure.`; if (slave.fetishKnown === 1) { switch (slave.fetish) { case "buttslut": if (canDoAnal(slave) && slave.anus > 0) { t += `${He}'s happily taking a strap-on up ${his} asspussy.`; } else { t += `${He}'s happily got another slave between ${his} buttcheeks.`; } break; case "cumslut": t += `${He}'s happily performing oral on another slave.`; break; case "dom": t += `${He}'s pinning another slave down while ${he} fucks her.`; break; case "submissive": t += `${He}'s letting another slave have her way with ${him}.`; break; case "sadist": if (hasBothArms(slave)) { t += `${He}'s spanking another slave with one hand and fingering her with the other.`; } else if (hasAnyArms(slave)) { t += `${He}'s fingering another slave while teasing her nipple with ${his} teeth.`; } else { t += `${He}'s painfully teasing another slave's nipple with ${his} teeth.`; } break; case "masochist": t += `Another slave is spanking ${him} while molesting everything she can.`; break; case "boobs": t += `${He} has a slave sucking on each of ${his} nipples`; if (hasBothArms(slave)) { t += ` while ${he} gives each a handjob.`; } else if (hasAnyArms(slave)) { t += ` while ${he} gives one a handjob.`; } else { t += `.`; } break; case "pregnancy": if (slave.belly >= 5000) { t += `${He}'s sighing contentedly as ${his} rounded belly is sensually rubbed.`; } else if (canPenetrate(slave)) { t += `${He}'s happily roleplaying impregnating the slave ${he}'s fucking.`; } else if ((slave.anus > 0 && canDoAnal(slave)) || (slave.vagina > 0 && canDoVaginal(slave))) { t += `${He}'s happily roleplaying conceiving a child as ${he} gets fucked.`; } else { t += `${He}'s happily roleplaying being hugely pregnant.`; } } } } } break; /* case Job.BODYGUARD: t += `is standing discreetly behind your left shoulder, watching for threats.`; break */ case Job.CONFINEMENT: t += `is confined, but you have a fine view of ${his} ${race} body on the feed from ${his} cell.`; break; case Job.CELLBLOCK: t += `is confined in ${V.cellblockName}, but you have a fine view of ${his} ${race} body on the feed from ${his} cell.`; break; case Job.ARCADE: case Job.GLORYHOLE: t += `is confined in `; if (slave.assignment === Job.ARCADE) { t += `${V.arcadeName}; `; } else { t += `a glory hole; `; } if (seed > 80 && (canDoAnal(slave) || canDoVaginal(slave))) { t += `${his} ass is held out at cock height, and a customer is using ${his} fuckhole.`; } else if (seed > 60) { t += `${his} mouth is held open at cock height, and a customer is fucking ${his} throat.`; } else if (seed > 40) { t += `a woman is abusing ${him} with a couple of dildos.`; } else if (seed > 20 && canDoAnal(slave)) { t += `a customer is harshly using ${his} defenseless anus.`; } else { t += `a customer is cruelly spanking ${his} helpless butt.`; } break; case Job.MADAM: t += `is managing ${V.brothelName}: ${he} is making sure all the customers are satisfied and all the whores are working hard.`; break; case Job.CONCUBINE: if (jsRandom(1, 2) === 1) { t += `is looking after ${himself}; ${he} spends many hours every day on ${his} beauty regimen.`; } else { t += `is checking over the appearance of your harem, making sure everyone looks perfect.`; } break; case Job.WARDEN: t += `is looking after the cells: ${he} is `; if (seed > 50) { t += `forcing a resistant slave to orally service ${him}.`; } else { t += `beating a rebellious slave across the buttocks.`; } break; case Job.HEADGIRLSUITE: if (V.HeadGirlID !== 0) { t += `is getting the Head Girl's suite cleaned up while ${S.HeadGirl.slaveName} is out working.`; } else { t += `is making sure the Head Girl's suite is in order for your next Head Girl.`; } break; case Job.STEWARD: t += `is managing the house servants in ${V.servantsQuartersName}: ${he} overseeing the laboring house slaves and punishing any that step out of line.`; break; case Job.TEACHER: t += `is teaching classes in ${V.schoolroomName}: ${he} is leading the slave students in rote recitation.`; break; case Job.ATTENDANT: t += `is seeing to the guests in ${V.spaName}: ${he} is gently soaping an exhausted slave.`; break; case Job.DJ: if (seed > 50) { t += `is right where ${he} belongs, in the DJ booth in ${V.clubName} ${he} leads. ${He}'s bouncing in time with the beat to show off ${his} `; if (slave.boobs > 300) { t += `tits.`; } else { t += `goods.`; } } else { t += `is taking the lead on ${V.clubName}'s floor: ${he} greets new arrivals, flirts with them prettily, and subtly guides them towards choice sluts.`; } break; case Job.MILKMAID: t += `is working in ${V.dairyName}, looking after your stock.`; break; default: /* WALKPASTS START HERE */ if (slave.heels === 1 && canWalk(slave)) { t += `walks past your desk with the tiny swaying steps ${he} must take in order to walk on ${his} surgically altered legs. ${He} is on ${his} way to `; } else if (["heels", "platform heels", "pumps"].includes(slave.shoes) && canWalk(slave)) { t += `walks past your desk with the swaying steps ${he} must take in ${his} high heels. ${He} is on ${his} way to `; } else if (slave.shoes === "boots" && canWalk(slave)) { t += `walks past your desk with the confident gait encouraged by ${his} high heeled boots. ${He} is on ${his} way to `; } else if (["extreme heels", "extreme platform heels"].includes(slave.shoes) && canWalk(slave)) { t += `walks past your desk with the tiny swaying steps ${he} must take in ${his} ridiculous heels. ${He} is on ${his} way to `; } else if (slave.heels === 1 && canMove(slave)) { t += `crawls past your desk on `; if (hasBothArms(slave) && hasBothLegs(slave)) { t += `all fours, `; } else { t += `the ground, `; } t += `since ${he} has not been allowed the heels ${he} needs to walk upright. ${He} is on ${his} way to `; } else if (!hasAnyLegs(slave)) { t += `is carried past your desk by one of your other slaves. ${He} is on ${his} way to `; } else if (!canWalk(slave)) { if (canMove(slave)) { if (slave.rules.mobility === "permissive") { t += `wheels past your desk on ${his} way to`; } else { t += `crawls past your desk on `; if (hasBothArms(slave) && hasBothLegs(slave)) { t += `all fours, `; } else { t += `the ground, `; } t += `since ${he} has expanded past the point of being able to walk. ${He} is on ${his} way to `; } } else { t += `is helped past your desk by one of your other slaves. ${He} is on ${his} way to `; } } else { t += `walks past your desk on ${his} way to `; } if (slave.inflation > 0 && jsRandom(1, 100) > 70) { if (slave.inflationMethod === 1) { t += `gorge ${himself} with ${slave.inflationType}; `; } else if (slave.inflationMethod === 2) { t += `fill ${his} rear with `; switch (slave.inflationType) { case "water": case "milk": case "cum": case "food": case "urine": t += `${slave.inflationType}; `; break; default: t += `${slave.inflationType}s; `; break; } } else if (slave.inflationMethod === 3) { if (slave.inflationType === "milk") { t += `suckle from ${his} assigned nipple until ${he} is sufficiently filled with milk; `; } else { t += `suck ${his} assigned dick until ${he} is sufficiently filled with cum; `; } } } else { switch (slave.assignment) { case Job.REST: if (seed > 50) { t += `bed; `; } else { t += `eat; `; } break; case Job.MILKED: if (seed > 50) { if (slave.lactation) { t += `milk ${his} overfull ${race} tits; `; } else { t += `empty ${his} aching balls; `; } } else { if (slave.lactation) { t += `drain ${his} milky ${race} udders; `; } else { t += `relieve ${his} heavy balls; `; } } break; case Job.WHORE: if (seed > 50) { t += `sell ${his} ${race} body; `; } else { t += `ply ${his} trade as a whore; `; } break; case Job.PUBLIC: if (seed > 50) { t += `serve the public; `; } else { t += `be a public slut; `; } break; case Job.SPA: t += `relax in ${V.spaName}; `; break; case Job.FUCKTOY: t += `wait next to you and wait for you to fuck ${him}; `; break; case Job.SUBORDINATE: t += `service your other slaves; `; break; case Job.HOUSE: t += `clean up after your other slaves; `; break; case Job.SCHOOL: t += `attend classes `; if (!S.Schoolteacher) { t += `in ${V.schoolroomName}; `; } else { t += `under ${S.Schoolteacher.slaveName}, perhaps literally; `; } break; case Job.ATTENDANT: t += `look after the slaves in ${V.spaName}; `; break; case Job.CLASSES: t += `attend classes with ${V.assistant.name}; `; break; case Job.HEADGIRL: t += `oversee your other slaves; `; break; case Job.RECRUITER: t += `use ${his} connections to recruit slaves; `; break; default: t += `${slave.assignment}; `; break; } } /* end inflation blurb */ if (slave.fetish === "mindbroken") { t += `${he} does not even glance at you as ${he} goes mindlessly to ${his} next task.`; } else if (slave.devotion < -50) { t += `${he} directs a look of pure hatred at where you sit as ${he} passes.`; } else if (slave.devotion < -20) { t += `${he} cannot keep the loathing from ${his} face as ${he} passes.`; } else if (slave.devotion <= 20) { t += `${he} passes quickly, obviously hoping to avoid you.`; } else if (slave.devotion <= 50) { t += `${he} rushes by, hurrying to ${his} next task.`; } else { t += `as ${he} passes ${he} gives you a look of adoration.`; } break; } return t + ` `; } /** Generate boob text for a given slave * @param {App.Entity.SlaveState} slave * @returns {string} */ function boobWatch(slave) { const pronouns = getPronouns(slave); const { he, him, his, hers, himself, boy, He, His } = pronouns; target = "FBoobs"; const breasts = (slave.boobs < 300) ? `flat chest` : `breasts`; t += ` ${App.Desc.boobs(slave)} `; switch (slave.clothes) { case "uncomfortable straps": if (slave.boobs < 300) { t += `The rings constantly rub against ${his} chest and force ${his} nipples to stick out.`; } else { t += `The strap over ${his} tits presses the soft flesh, and the ring around each nipple `; if (slave.nipples === "fuckable") { t += `forces them open.`; } else { t += `forces them to stick out.`; } } break; case "shibari ropes": t += `The ropes binding ${his} chest `; if (slave.boobs < 300) { t += `shift slightly with every step, since ${he} lacks any breasts to hold them in place.`; } else { t += `dig into the soft flesh as ${he} moves.`; } break; case "attractive lingerie for a pregnant women": if (slave.boobs < 300) { t += `The bulge of ${his} ${slave.nipples} nipples can be seen under the taut silk.`; } else { t += `${His} silken bra causes ${his} breasts to bulge around them.`; } break; case "a maternity dress": t += `${His} low cut dress `; if (slave.boobs < 300) { t += `was made with breasts in mind; every stop ${he} takes risks it sliding down and revealing ${his} ${slave.nipples} nipples.`; } else { t += `shows ample cleavage and is made to be easy to pull down.`; } break; case "stretch pants and a crop-top": if (slave.boobs < 300) { t += `${His} flat chest makes the perfect canvas to read ${his} crop-top.`; } else { t += `${His} crop-top tightly clings to ${his} breasts and moves along with them. ${His} jiggling cleavage distracts from the writing on ${his} tits.`; } break; case "restrictive latex": if (slave.boobs < 300) { t += `${His} lack of breasts draws your eyes straight to ${his} exposed nipples.`; } else { t += `${His} tits stick out through ${his} latex outfit.`; } break; case "attractive lingerie": t += `${His} pretty white lace bra has thoughtful cuts that tastefully let ${his} nipples stick through.`; break; case "kitty lingerie": t += `${His} lingerie's cleavage window proudly displays ${his} `; if (slave.boobs < 300) { t += `flat chest.`; } else { t += `ample valley.`; } break; case "a succubus outfit": t += `${His} succubus outfit presents this sex demon's ${breasts}, inviting a damning fondle.`; break; case "a slutty maid outfit": t += `${His} maid outfit covers ${his} ${breasts} with a thin white blouse designed to be easy to pull down.`; break; case "a nice maid outfit": t += `${His} maid outfit covers ${his} ${breasts} demurely, offering the diverting task of pulling it off ${him}.`; break; case "a monokini": t += `The straps of ${his} monokini cross in the center of ${his} chest, leaving the rest of ${his} ${breasts} naked.`; break; case "a cybersuit": t += `${His} cybersuit is tight enough to show off `; if (slave.boobs < 300) { t += `just how flat ${he} is.`; } else { t += `every contour of ${his} chest.`; } break; case "a tight Imperial bodysuit": t += `${His} tight Imperial cybersuit is taut enough to show off `; if (slave.boobs < 300) { t += `just how flat ${he} is.`; } else { t += `every contour of ${his} chest.`; } break; case "a string bikini": t += `${His} string bikini covers only ${his} nipples, leaving the remainder of ${his} ${breasts} naked.`; break; case "a scalemail bikini": t += `${His} scalemail bikini covers `; if (slave.boobs < 300) { t += `all of ${his} flat chest.`; } else if (slave.boobs < 700) { t += `${his} breasts entirely.`; } else if (slave.boobs < 1500) { t += `much of ${his} breasts, while still emphasizing them.`; } else { t += `the front of ${his} breasts.`; } break; case "striped panties": t += `${His} cute panties covers only ${his} crotch, leaving ${his} ${breasts} bare.`; break; case "clubslut netting": t += `As ${he} moves, the weave of the netting over ${his} chest slips back and forth across ${his} nipples.`; break; case "a cheerleader outfit": t += `As ${he} moves, `; if (slave.boobs < 300) { t += `the tight fabric rubs across ${his} obvious nipples.`; } else { t += `${his} chest threatens to fall out of ${his} cheerleader top.`; } break; case "an apron": t += `As ${he} moves, ${his} apron `; if (slave.boobs < 300) { t += `threatens to bounce off ${his} flat chest and expose ${his} nipples.`; } else { t += `provides excellent views of the sides of ${his} breasts.`; } break; case "overalls": t += `As ${he} moves, ${his} overalls `; if (slave.boobs < 300) { t += `threaten to slide off ${his} flat chest and expose ${his} nipples.`; } else { t += `provide excellent views of the sides of ${his} breasts.`; } break; case "cutoffs and a t-shirt": if (slave.boobs < 300) { t += `${His} non-existent breasts are bare under ${his} t-shirt; not that you can really tell since they lack motion completely.`; } else { t += `${His} tits are bare under ${his} t-shirt, so movement gives delicious hints of their motion.`; } break; case "spats and a tank top": if (slave.boobs < 300) { t += `${His} flat chest makes ${his} form-fitting tank top look as if it's clinging to a tube.`; } else { t += `${His} breasts bounce slightly under ${his} tank top as ${he} moves.`; } break; case "a slutty outfit": t += `For today's slutty outfit ${he}'s chosen a `; if (jsRandom(1, 100) > 50) { t += `handkerchief top that occasionally comes untied and `; if (slave.boobs < 300) { t += `reveals ${his} flat chest.`; } else { t += `spills ${his} breasts out naked.`; } } else { t += `halter top cut so low that `; if (slave.boobs < 300) { t += `it occasionally slips down ${his} flat chest to reveal a nipple.`; } else { t += `${his} breasts occasionally pop out.`; } } break; case "a slave gown": t += `${His} gorgeous dress has thoughtful cuts that tastefully bares ${his} ${(slave.boobs < 300) ? 'non-existent ' : ''}breasts.`; break; case "slutty business attire": t += `${His} suit jacket and blouse are low enough to show off a lot of `; if (slave.boobs < 300) { t += `boob, or they would, had ${he} had any.`; } else { t += `boob.`; } break; case "nice business attire": t += `${His} suit jacket and blouse are businesslike, but they could be removed easily enough.`; break; case "a halter top dress": t += `${His} beautiful halter top dress almost seems to be sculpted around ${his} body.`; break; case "a ball gown": t += `${His} fabulous silken ball gown is tailored to accentuate the shape of ${his} ${breasts}.`; break; case "a slutty nurse outfit": t += `${His} jacket presents ${his} ${(slave.boobs < 300) ? 'nipples' : 'breasts'} to be ogled.`; break; case "a schoolgirl outfit": t += `${His} blouse lewdly displays ${his} `; if (slave.boobs < 300) { t += `${slave.nipples} nipples.`; } else { t += `breasts.`; } break; case "a kimono": t += `${His} kimono is clearly designed to accentuate ${his} ${breasts}.`; break; case "a hijab and abaya": case "a niqab and abaya": t += `${His} abaya covers ${his} ${breasts} totally.`; break; case "a thong": case "a skimpy loincloth": case "boyshorts": case "cutoffs": case "panties": case "leather pants": case "jeans": case "sport shorts": t += `Since ${he}'s wearing nothing but ${slave.clothes}, ${his} ${(slave.boobs < 300) ? 'non-existent ' : ''}breasts are delightfully naked.`; break; case "a hijab and blouse": t += `${His} blouse and overshirt keep ${his} ${breasts} concealed.`; break; case "a huipil": t += `${His} huipil `; if (slave.boobs < 300) { t += `daintily covers ${his} ${slave.nipples} nipples and flat chest.`; } else { t += `hugs the curves of ${his} breasts.`; } break; case "battledress": if (slave.boobs < 300) { t += `As ${he} moves, you can occasionally spot ${his} lack of undergarments.`; } else { t += `${His} tank top and sports bra support rather than flatter ${his} breasts.`; } break; case "a fallen nuns habit": t += `${His} slutty nun outfit leaves ${his} ${(slave.boobs < 300) ? 'flat ' : ''}tits sinfully bare.`; break; case "a chattel habit": t += `${His} chattel habit leaves ${his} ${(slave.boobs < 300) ? 'flat ' : ''}tits virtuously bare.`; break; case "a penitent nuns habit": t += `${His} habit chafes ${his} nipples so harshly that it would probably be a relief to ${him} to have it stripped off ${him}.`; break; case "a comfortable bodysuit": t += `${His} bodysuit is tight enough to show off `; if (slave.boobs < 300) { t += `just how flat ${he} is.`; } else { t += `every contour of ${his} chest.`; } break; case "a latex catsuit": t += `${His} latex catsuit is tight enough to show off `; if (slave.boobs < 300) { t += `just how flat ${he} is.`; } else { t += `every contour of ${his} chest.`; } break; case "a military uniform": case "a police uniform": case "a schutzstaffel uniform": case "a mounty outfit": case "a red army uniform": t += `${His} uniform tunic and shirt are formal, but they could be removed easily enough.`; break; case "battlearmor": t += `${His} battlearmor will take some considerable effort to get out of.`; break; case "Imperial Plate": t += `${His} ultra-heavy Imperial Plate will take full minutes to get out of completely.`; break; case "a nice nurse outfit": t += `${His} nurse's outfit is functional, but they could be removed easily enough.`; break; case "a mini dress": t += `${His} mini dress is tight enough to show off `; if (slave.boobs < 300) { t += `just how flat ${he} is.`; } else { t += `every contour of ${his} chest.`; } break; case "a leotard": if (slave.boobs < 300) { t += `${His} leotard draws the eye straight to ${his} obvious nipples, since it lacks anything else to show off.`; } else { t += `${His} leotard is tight enough that it not only hugs ${his} breasts, but shows off ${his} nipples as well.`; } break; case "a bunny outfit": if (slave.boobs < 300) { t += `With no breasts to speak of, ${his} strapless corset teddy manages to look rather slutty.`; } else { t += `${His} strapless corset teddy presents ${his} boobs while still managing to look a bit classy.`; } break; case "harem gauze": t += `${His} ${(slave.boobs < 300) ? 'non-existent ' : ''}breasts are clearly visible through the thin gauze that covers them.`; break; case "slutty jewelry": if (slave.boobs < 300) { t += `The light chain across ${his} non-existent breasts is the only thing on ${his} chest capable of moving separately from ${him}.`; } else { t += `The light chain under ${his} breasts accentuates their natural movement.`; } break; case "a bimbo outfit": if (slave.boobs < 300) { t += `With no breasts to speak of, ${his} exposed lingerie gives ${his} slutty appearance unique flare.`; } else { t += `It would be easy enough to expose ${his} breasts, assuming they don't bounce out on their own first.`; } break; case "a courtesan dress": if (slave.boobs < 300) { t += `With no breasts to speak of, ${his} corset still manages to look rather slutty.`; } else { t += `The thin material that covers ${his} breasts allows them plenty of room to jiggle and bounce as ${he} moves.`; } break; // needs improvement case "a klan robe": t += `${His} robe covers ${his} ${breasts} totally.`; break; case "a burqa": t += `${His} burqa covers ${his} ${breasts} totally.`; break; case "a tube top and thong": case "a tube top": case "leather pants and a tube top": t += `${His} tube top covers ${his} ${breasts} totally.`; break; case "a button-up shirt and panties": case "a button-up shirt": case "a t-shirt": case "a t-shirt and thong": case "an oversized t-shirt and boyshorts": case "an oversized t-shirt": case "a t-shirt and jeans": case "sport shorts and a t-shirt": case "a t-shirt and panties": t += `${His} shirt covers ${his} ${breasts} totally.`; break; case "a bra": case "a striped bra": case "striped underwear": case "a sports bra": case "sport shorts and a sports bra": t += `${His} bra covers ${his} ${breasts} totally.`; break; case "a tank-top": case "a tank-top and panties": t += `${His} tank-top covers ${his} ${breasts} totally.`; break; case "a sweater": case "a sweater and panties": case "a sweater and cutoffs": t += `${His} sweater covers ${his} ${breasts} totally.`; break; case "a slutty klan robe": t += `${His} robe partially covers ${his} ${breasts}.`; break; case "a nice pony outfit": case "a slutty pony outfit": t += `${His} pony outfit partially covers ${his} ${breasts}.`; break; case "leather pants and pasties": case "panties and pasties": case "pasties": t += `${His} pasties cover nothing more than ${his} nipples.`; break; case "a one-piece swimsuit": t += `${His} swimsuit is tight enough to show off `; if (slave.boobs < 300) { t += `just how flat ${he} is.`; } else { t += `every contour of ${his} chest.`; } break; case "a hanbok": t += `${His} hanbok covers ${his} ${breasts} totally.`; break; case "a gothic lolita dress": t += `${His} dress covers ${his} ${breasts} totally.`; break; case "a burkini": t += `${His} burkini clings to the shape of ${his} ${breasts}.`; break; case "a slutty schutzstaffel uniform": t += `${His} uniform tunic and shirt are formal, but they could be removed easily enough.`; break; case "a long qipao": t += `${His} elegant qipao can be removed with minimal effort.`; break; case "a dirndl": t += `${His} dirndl can be removed with minimal effort.`; break; case "lederhosen": t += `${His} lederhosen might come off faster than it takes to put them on.`; break; case "a biyelgee costume": t += `${His} costume could be removed with barely any effort.`; break; // ends needs work block case "no clothing": if (slave.chastityAnus === 1 || slave.chastityVagina === 1 || slave.chastityPenis === 1) { t += `Since ${he}'s wearing nothing but a chastity belt, ${his} ${(slave.boobs < 300) ? 'non-existent ' : ''}breasts are delightfully naked.`; } else { t += `${His} naked `; if (slave.boobs < 300) { t += `flat chest and exposed nipples`; } else { t += `breasts`; } t += ` catch your eye.`; } break; default: // for outfits with exposed breasts that aren't worth having a unique description for t += `${His} naked `; if (slave.boobs < 300) { t += `flat chest and exposed nipples`; } else { t += `breasts`; } t += ` catch your eye.`; } return t; } /** Generate butt text for a given slave * @param {App.Entity.SlaveState} slave * @returns {string} */ function buttWatch(slave) { const { he, him, his, hers, himself, boy, He, His } = getPronouns(slave); target = "FButt"; t += App.Desc.butt(slave); t += ` `; switch (slave.clothes) { case "a Fuckdoll suit": t += `${His} suit is expressly designed to encourage use of ${his} rear hole.`; break; case "uncomfortable straps": t += `A strap passes between ${his} `; if (hasBothLegs(slave)) { t += `legs, giving ${his} gait an awkward sway.`; } else if (hasAnyLegs(slave)) { t += `ass cheeks and along ${his} perineum, pressing against ${his} genitals.`; } else { t += `leg stumps, pressing against ${his} genitals.`; } break; case "shibari ropes": if (hasBothLegs(slave)) { t += `Ropes bind ${his} legs, giving ${his} gait an awkward sway.`; } else if (!hasAnyLegs(slave)) { t += `A rope passes between ${his} leg stumps, pressing against ${his} genitals.`; } else { t += `A rope runs along ${his} perineum, pressing against ${his} genitals.`; } break; case "attractive lingerie for a pregnant woman": t += `As ${he} moves, ${his} silken panties are very inviting.`; break; case "a maternity dress": t += `${His} dress covers ${his} rear, but it will lift easily enough.`; break; case "stretch pants and a crop-top": t += `${His} stretch pants tightly cling to ${his} rear as ${he} `; if (slave.butt > 10) { t += `moves. While the writing adorning it may catch your eye, the huge expanse of wobbling ass cleavage is far more distracting.`; } else { t += `moves; the writing on ${his} bottom gives you plenty of excuses to ogle it.`; } break; case "restrictive latex": if (slave.clothingBaseColor) { t += `As some of the only islands in the sea of latex, ${his} holes are eye-catching.`; } else { t += `As some of the only islands in the sea of black latex, ${his} holes are eye-catching.`; } break; case "a fallen nuns habit": t += `${His} slutty nun outfit invites sin.`; break; case "a chattel habit": t += `${His} chattel habit is designed for sex without being removed.`; break; case "a penitent nuns habit": t += `${His} habit chafes ${him} so cruelly that it would probably be a relief to ${him} to have it pulled off, even if ${he}'s roughly fucked afterward.`; break; case "kitty lingerie": t += `As ${he} moves, the strings of ${his} pretty kitty panties sway enticingly.`; break; case "attractive lingerie": t += `As ${he} moves, ${his} lingerie delightfully hugs ${his} rear.`; break; case "a succubus outfit": t += `${His} succubus outfit's tail holds ${his} skirt up high in back, inviting a damning fuck.`; break; case "a slutty maid outfit": t += `${His} maid's skirt is cut extremely short, so that the slightest movement reveals a glimpse of ${his} ass.`; break; case "a nice maid outfit": t += `${His} maid's skirt is cut conservatively, but will lift easily enough.`; break; case "a monokini": t += `${His} monokini contours to the size and shape of ${his} bottom.`; break; case "an apron": t += `${His} apron leaves ${his} buttocks totally exposed.`; break; case "overalls": t += `${His} overalls fit snugly on ${his} bottom.`; break; case "a cybersuit": t += `${His} bodysuit prominently displays the curves of ${his} butt.`; break; case "a tight Imperial bodysuit": t += `${His} cybernetic bodysuit prominently displays the curvature of ${his} ass.`; break; case "a string bikini": t += `As ${he} moves, ${his} string lingerie leaves the entire line of ${his} hips naked and enticing.`; break; case "a scalemail bikini": t += `As ${he} moves, ${his} scaly lingerie leaves almost the entire line of ${his} hips naked and enticing.`; break; case "striped panties": case "a button-up shirt and panties": case "a sweater and panties": case "a tank-top and panties": case "panties": case "a t-shirt and panties": case "panties and pasties": case "striped underwear": t += `${His} cute panties prominently display the curves of ${his} butt.`; break; case "boyshorts": case "an oversized t-shirt and boyshorts": t += `${His} boyshorts tightly cling to ${his} rear as ${he} `; if (slave.butt > 5) { t += `moves. It's filled out by so much ass you can't help but oggle.`; } else { t += `moves.`; } break; case "clubslut netting": t += `As ${he} moves, ${his} clubslut netting moves with ${him}, leaving nothing to the imagination.`; break; case "a cheerleader outfit": t += `As ${he} moves, ${his} pleated cheerleader bounces up and down flirtatiously.`; break; case "cutoffs and a t-shirt": t += `As ${he} moves, ${his} cutoffs hug ${his} butt.`; break; case "spats and a tank top": t += `${His} spats show off every curve of ${his} ass.`; break; case "a slutty outfit": t += `For today's slutty outfit ${he}'s chosen `; if (jsRandom(1, 100) > 50 && hasAnyLegs(slave)) { t += `yoga pants so sheer that everything ${he}'s got is clearly visible.`; } else { t += `a miniskirt so brief that ${his} ass is hanging out the back, and a glimpse of ${his} goods is occasionally visible from the front.`; } break; case "a slave gown": if (hasAnyLegs(slave)) { t += `${His} gorgeous dress has a thoughtful cut that runs all the way from ${his} ankle to over ${his} hip, baring a leg all the way up.`; } else { t += `${His} gorgeous dress is specially designed for ${his} limbless form, but without legs to support it, it can hardly conceal the outline of everything ${he} has.`; } break; case "a halter top dress": t += `${His} beautiful halter top dress seems to be sculpted around ${his} bottom.`; break; case "a ball gown": t += `${His} fabulous silken ball gown is tailored to fit ${him} and accentuates the shape of ${his} butt.`; break; case "a slutty nurse outfit": t += `${His} tight skirt flatters ${his} ass.`; break; case "a schoolgirl outfit": if (slave.anus === 0) { t += `This school${boy} clearly needs to lose ${his} anal virginity.`; } else if (slave.vagina === 0) { t += `This school${boy} clearly takes it up the ass; that way, ${he} can remain a virgin, and be, like, totally pure and innocent.`; } else { t += `This school${boy} clearly takes it up the ass.`; } break; case "a kimono": t += `${His} kimono demurely covers ${his} `; if (slave.butt > 5) { t += `behind, though it cannot conceal its massive shape.`; } else { t += `behind.`; } break; case "a hijab and abaya": case "a niqab and abaya": t += `${His} abaya totally conceals ${his} `; if (slave.butt > 5) { t += `behind, though it cannot conceal its large size.`; } else { t += `behind.`; } break; case "a klan robe": t += `${His} robe totally conceals ${his} `; if (slave.butt > 5) { t += `behind, though it cannot conceal its large size.`; } else { t += `behind.`; } break; case "a burqa": t += `${His} burqa totally conceals ${his} `; if (slave.butt > 7) { t += `behind, though it cannot conceal its absurd size.`; } else { t += `behind.`; } break; case "a burkini": if (slave.butt > 6) { t += `${His} burkini finds itself accentuating the absurd size of ${his} behind.`; } else { t += `${His} burkini modestly covers ${his} behind.`; } break; case "a hijab and blouse": t += `${His} skirt modestly covers ${his} `; if (slave.butt > 5) { t += `behind, though it cannot conceal its large size.`; } else { t += `behind.`; } break; case "cutoffs": case "sport shorts and a t-shirt": case "sport shorts": case "a sweater and cutoffs": case "sport shorts and a sports bra": t += `${His} shorts hug the curves of ${his} hips and ass nicely.`; break; case "a police uniform": case "a t-shirt and jeans": case "leather pants": case "jeans": case "leather pants and a tube top": case "leather pants and pasties": if (slave.butt > 1) { t += `${His} pants are filled out with the curve of ${his} butt.`; } else { t += `${His} pants modestly cover ${his} butt.`; } break; case "a nice pony outfit": case "a slutty pony outfit": t += `${His} leather outfit tightly hugs the curves of ${his} hips and ass.`; break; case "a skimpy loincloth": t += `${His} loincloth only partially covers ${his} butt, giving frequent glimpses of the bare flesh beneath it.`; break; case "a gothic lolita dress": t += `${His} dress can be lifted easily enough to get at ${his} rear.`; break; case "a hanbok": t += `${His} hanbok can be lifted easily enough to get at ${his} `; if (slave.butt > 7) { t += `rear, and its motion beneath the fabric certainly invites it.`; } else { t += `rear.`; } break; case "a one-piece swimsuit": t += `${His} swimsuit displays the delicious curves of ${his} butt and just begs you to run a hand across it.`; break; case "battledress": t += `${His} fatigue trousers do not particularly flatter ${his} butt.`; break; case "nice business attire": t += `${His} attractive skirt is nevertheless tight enough to show off ${his} derrière.`; break; case "slutty business attire": t += `${His} skirt is so short it'll barely be necessary to lift it.`; break; case "a comfortable bodysuit": t += `${His} bodysuit displays the curves of ${his} butt.`; break; case "a latex catsuit": t += `${His} latex catsuit displays the curves of ${his} butt.`; break; case "a military uniform": case "a red army uniform": t += `${His} uniform skirt is nevertheless tight enough to show off ${his} derrière.`; break; case "a schutzstaffel uniform": t += `${His} uniform trousers are nevertheless tight enough to show off ${his} derrière.`; break; case "a slutty schutzstaffel uniform": t += `${His} uniform miniskirt is nevertheless tight enough to show off the enticing curves of ${his} butt.`; break; case "a long qipao": t += `${His} elegant dress shows off all ${his} curves.`; break; case "battlearmor": t += `${His} snug battlearmor is nevertheless tight enough to show off ${his} derrière.`; break; case "Imperial Plate": t += `${His} ultra-heavy Imperial Plate shows only the slightest hint of ${his} ass underneath the massive plate.`; break; case "a mounty outfit": t += `${His} uniform slacks are tight enough to show off ${his} derrière.`; break; case "a dirndl": t += `${His} skirt shows off the soft curves ${his} derrière.`; break; case "lederhosen": t += `${His} shorts tightly hug the crack of ${his} derrière.`; break; case "a biyelgee costume": t += `${His} costume skirt's thin material shows off ${his} derrière.`; break; case "a nice nurse outfit": t += `${His} nurse's trousers demurely cover ${his} behind.`; break; case "a mini dress": t += `${His} mini dress displays the curves of ${his} butt.`; break; case "a leotard": t += `${His} leotard leaves ${his} buttocks gloriously bare.`; break; case "a bunny outfit": t += `${His} teddy covers ${his} rear, but in tight satin that flatters its curves.`; break; case "harem gauze": t += `${His} hips are clearly visible through the thin gauze that covers it.`; break; case "a toga": t += `${His} stellar behind is accented by the light material of ${his} toga.`; break; case "a huipil": t += `${His} huipil is so short that ${his} butt is on display.`; break; case "slutty jewelry": t += `${His} belt of light chain accentuates ${his} hips.`; break; case "a thong": case "a tube top and thong": case "a t-shirt and thong": case "a slutty klan robe": case "a bimbo outfit": t += `${He}'s made an effort to keep ${his} thong out of ${his} crack, but it quickly slips back in with ${his} movements.`; break; case "an oversized t-shirt": t += `${His} oversized t-shirt is covering ${his} rear, but it can be lifted easily enough.`; break; case "a courtesan dress": t += `The intersecting layers that make up ${his} skirt are designed to be easily parted.`; break; default: // "a bra" "a button-up shirt" "a sweater" "a tank-top" "a tube top" "a striped bra" "a sports bra" "a t-shirt" "pasties" if (slave.chastityAnus && slave.chastityVagina) { t += `${His} chastity protects ${his} holes from penetration.`; } else if (slave.chastityAnus) { t += `${His} chastity belt protects ${his} rear from penetration.`; } else { t += `You run your eye over ${his} naked hips.`; } } return t; } /** Generate belly text for a given slave * @param {App.Entity.SlaveState} slave * @returns {string} */ function bellyWatch(slave) { const { he, him, his, hers, himself, boy, He, His } = getPronouns(slave); target = "FVagina"; // Desc belly if large enough if (slave.inflation === 0) { if (slave.bellyImplant < 2000) { if (slave.belly >= 600000) { t += App.Desc.belly(slave); t += ` `; switch (slave.clothes) { case "a very tight corset": t += `${His} corset struggles to contain ${his} enormous belly.`; break; case "chains": t += `${His} enormous belly bulges in between ${his} tight chains.`; break; case "uncomfortable straps": t += `A steel ring rests around ${his} navel, held in place by tight straps. ${His} enormous belly bulges around them.`; break; case "shibari ropes": t += `${His} enormous belly bulges out from between ${his} ropes.`; break; case "a latex catsuit": case "restrictive latex": t += `${His} enormous belly makes ${him} look like a giant balloon under the tight latex; ${his} popped navel breaks the smoothness.`; break; case "a nice nurse outfit": t += `${He}'s decided to become the maternity ward, judging by the enormous squirming pregnant belly ${he} sports.`; break; case "a maternity dress": t += `${His} tight dress is strained by ${his} enormous belly.`; break; case "a nice maid outfit": t += `${His} enormous belly is covered only by an apron.`; break; case "a penitent nuns habit": t += `${His} enormous belly strains ${his} habit; it looks absolutely sinful.`; break; case "a ball gown": t += `Your gaze is drawn to ${his} enormous squirming pregnant belly by ${his} striking silken ball gown.`; break; case "harem gauze": t += `${His} silken garb and enormous pregnant belly makes ${him} look like a belly dancer.`; break; case "a comfortable bodysuit": t += `${His} enormous belly lewdly fills ${his} bodysuit. You swear you can see ${his} babies kicking underneath the form fitting material.`; break; case "a schoolgirl outfit": t += `The school blimp is waddling by.`; break; case "a hijab and abaya": case "a niqab and abaya": t += `${His} enormous belly pushes out ${his} abaya.`; break; case "a klan robe": t += `${His} enormous belly pushes out ${his} robe.`; break; case "a burqa": t += `${His} enormous belly pushes out ${his} burqa.`; break; case "a bra": case "a skimpy loincloth": case "a slutty klan robe": case "a sports bra": case "a striped bra": case "a thong": case "a tube top": case "a tube top and thong": case "boyshorts": case "cutoffs": case "jeans": case "leather pants": case "leather pants and a tube top": case "leather pants and pasties": case "panties": case "panties and pasties": case "pasties": case "sport shorts": case "sport shorts and a sports bra": case "striped underwear": t += `${His} enormous belly is totally bare.`; break; case "a button-up shirt and panties": case "a button-up shirt": case "a police uniform": case "a t-shirt": case "a t-shirt and jeans": case "a t-shirt and panties": case "a t-shirt and thong": case "an oversized t-shirt": case "an oversized t-shirt and boyshorts": case "sport shorts and a t-shirt": t += `${His} enormous belly pushes out ${his} shirt.`; break; case "a tank-top": case "a tank-top and panties": t += `${His} enormous belly pushes out ${his} tank-top.`; break; case "a sweater": case "a sweater and panties": case "a sweater and cutoffs": t += `${His} enormous belly pushes out ${his} sweater.`; break; case "a gothic lolita dress": t += `${His} enormous belly pushes out ${his} dress.`; break; case "a hanbok": t += `${His} enormous belly pushes out ${his} hanbok.`; break; case "a one-piece swimsuit": t += `${His} enormous belly pushes out ${his} swimsuit.`; break; case "a nice pony outfit": case "a slutty pony outfit": t += `${His} enormous belly stretches ${his} leather outfit greatly.`; break; case "a burkini": t += `${His} burkini tightly clings to ${his} enormous belly.`; break; case "a hijab and blouse": t += `${His} enormous belly strains the fabric of ${his} modest clothing.`; break; case "a leotard": t += `${His} enormous belly lewdly stretches ${his} leotard. You swear you can see ${his} babies kicking under the material.`; break; case "a toga": t += `${His} loose fitted toga dangles pathetically to either side of ${his} enormous belly.`; break; case "a huipil": t += `${His} pregnant belly is so enormous that the huipil barely covers any of it.`; break; case "a courtesan dress": t += `The steady stream of movement beneath ${his} dress catches your eye.`; break; default: t += `${His} bare enormous squirming pregnant belly catches your eye.`; } } else if (slave.belly >= 300000) { t += App.Desc.belly(slave); t += ` `; switch (slave.clothes) { case "a very tight corset": t += `${His} corset struggles to contain ${his} giant belly.`; break; case "chains": t += `${His} giant belly bulges in between ${his} tight chains.`; break; case "uncomfortable straps": t += `A steel ring rests around ${his} navel, held in place by tight straps. ${His} giant belly bulges around them.`; break; case "shibari ropes": t += `${His} giant belly bulges out from between ${his} ropes.`; break; case "a latex catsuit": case "restrictive latex": t += `${His} giant belly makes ${him} look like a balloon under the tight latex; ${his} popped navel breaks the smoothness.`; break; case "a nice nurse outfit": t += `${His} giant belly makes ${him} resemble a maternity ward patient rather than a nurse.`; break; case "attractive lingerie for a pregnant woman": t += `${His} giant belly is gently framed by ${his} silken vest.`; break; case "a maternity dress": t += `${His} loose dress is completely filled by ${his} giant belly.`; break; case "a nice maid outfit": t += `${His} maid outfit struggles to contain ${his} giant belly; ${his} popped navel is visible under ${his} apron.`; break; case "a penitent nuns habit": t += `${His} giant belly fills ${his} habit; it looks absolutely sinful.`; break; case "a halter top dress": t += `${His} giant belly fills ${his} halter top dress, it struggles to contain ${his} belly.`; break; case "a ball gown": t += `Your gaze is drawn to ${his} giant pregnant belly by ${his} struggling fabulous silken ball gown.`; break; case "harem gauze": t += `${His} silken garb and giant pregnant belly makes ${him} look like a belly dancer.`; break; case "a comfortable bodysuit": t += `${His} giant belly lewdly fills ${his} bodysuit. You swear you can see ${his} babies kicking underneath the form fitting material.`; break; case "a schoolgirl outfit": t += `The school bicycle is waddling by.`; break; case "a hijab and abaya": case "a niqab and abaya": t += `${His} giant belly fills ${his} abaya.`; break; case "a klan robe": t += `${His} giant belly fills ${his} robe.`; break; case "a burqa": t += `${His} giant belly pushes out ${his} burqa.`; break; case "a bra": case "a skimpy loincloth": case "a slutty klan robe": case "a sports bra": case "a striped bra": case "a thong": case "a tube top": case "a tube top and thong": case "boyshorts": case "cutoffs": case "jeans": case "leather pants": case "leather pants and a tube top": case "leather pants and pasties": case "panties": case "panties and pasties": case "pasties": case "sport shorts": case "sport shorts and a sports bra": case "striped underwear": t += `${His} giant belly is totally bare.`; break; case "a button-up shirt and panties": case "a button-up shirt": case "a police uniform": case "a t-shirt": case "a t-shirt and jeans": case "a t-shirt and panties": case "a t-shirt and thong": case "an oversized t-shirt": case "an oversized t-shirt and boyshorts": case "sport shorts and a t-shirt": t += `${His} giant belly pushes out ${his} shirt.`; break; case "a tank-top": case "a tank-top and panties": t += `${His} giant belly pushes out ${his} tank-top.`; break; case "a sweater": case "a sweater and panties": case "a sweater and cutoffs": t += `${His} giant belly pushes out ${his} sweater.`; break; case "a gothic lolita dress": t += `${His} giant belly pushes out ${his} dress.`; break; case "a hanbok": t += `${His} giant belly pushes out ${his} hanbok.`; break; case "a one-piece swimsuit": t += `${His} giant belly pushes out ${his} swimsuit.`; break; case "a nice pony outfit": case "a slutty pony outfit": t += `${His} giant belly stretches ${his} leather outfit greatly.`; break; case "a burkini": t += `${His} burkini tightly clings to ${his} giant belly.`; break; case "a hijab and blouse": t += `${His} giant belly strains the fabric of ${his} modest clothing.`; break; case "a leotard": t += `${His} giant belly lewdly stretches ${his} leotard. You swear you can see ${his} babies kicking under the material.`; break; case "a toga": t += `${His} loose fitted toga dangles to either side of ${his} giant belly.`; break; case "a huipil": t += `${His} pregnant belly is so giant that the huipil barely makes it half-way to ${his} protruding navel.`; break; case "a courtesan dress": t += `${His} giant belly lewdly fills ${his} dress. You swear you can see ${his} babies kicking underneath the thin material.`; break; default: t += `${His} bare giant pregnant belly catches your eye.`; } } else if (slave.weight > 190) { t += App.Desc.belly(slave); t += ` `; switch (slave.clothes) { case "a Fuckdoll suit": t += `${His} massive gut is alluringly smooth under the tight suit.`; break; case "conservative clothing": t += `${His} conservative clothing stands no chance of stilling ${his} massive, jiggling gut.`; break; case "chains": t += `${His} massive gut jiggles lewdly around ${his} tight chains.`; break; case "a slutty qipao": t += `The front of ${his} qipao rests atop ${his} massive gut.`; break; case "uncomfortable straps": t += `${His} massive gut jiggles lewdly around ${his} tight straps.`; break; case "shibari ropes": t += `${His} massive gut jiggles lewdly around ${his} tight cords.`; break; case "a latex catsuit": case "restrictive latex": t += `${His} massive gut resembles a large beachball under ${his} tight latex.`; break; case "a nice nurse outfit": t += `${His} scrub top jiggles along with ${his} massive gut as ${he} moves.`; break; case "a mini dress": t += `${His} tearing minidress shows every jiggle in ${his} massive gut as ${he} moves.`; break; case "a nice maid outfit": t += `As ${he} moves, barely any jiggling can be seen within ${his} straining maid's dress.`; break; case "a penitent nuns habit": t += `${His} habit does nothing to stop ${his} massive gut from jiggling against the coarse cloth as ${he} moves.`; break; case "clubslut netting": t += `${His} clubslut netting jiggles lewdly along with ${his} massive gut as ${he} moves. Every so often, another section gives out allowing a roll of fat to spring free; it's quite entertaining to watch.`; break; case "a cheerleader outfit": t += `${His} massive gut jiggles its own cheer with ${his} every motion.`; break; case "a slave gown": t += `${His} massive jiggly gut is gently caressed by ${his} gown.`; break; case "an apron": t += `${His} apron rests upon ${his} massive gut, which jiggles as ${he} moves.`; break; case "harem gauze": t += `${His} silken garb and massive, jiggly gut makes ${him} look like a belly dancer.`; break; case "a comfortable bodysuit": t += `The taut material of ${his} bodysuit shows every jiggle in ${his} massive gut as ${he} moves.`; break; case "a schoolgirl outfit": t += `The school blimp is jiggling by and ripe for abuse with ${his} ill-fitting clothes.`; break; case "a kimono": t += `${His} massive gut threatens to pop out of ${his} kimono with every motion.`; break; case "a hijab and abaya": case "a niqab and abaya": t += `${His} massive gut has no room left to move within ${his} overstuffed abaya.`; break; case "a klan robe": t += `${His} massive gut has no room left to move within ${his} overstuffed robe.`; break; case "a burqa": t += `${His} massive gut has no room left to move within ${his} overstuffed burqa.`; break; case "a bra": case "a skimpy loincloth": case "a slutty klan robe": case "a sports bra": case "a striped bra": case "a thong": case "a tube top": case "a tube top and thong": case "boyshorts": case "cutoffs": case "jeans": case "leather pants": case "leather pants and a tube top": case "leather pants and pasties": case "panties": case "panties and pasties": case "pasties": case "sport shorts": case "sport shorts and a sports bra": case "striped underwear": t += `${His} massive belly is totally bare.`; break; case "a button-up shirt and panties": case "a button-up shirt": case "a police uniform": case "a t-shirt": case "a t-shirt and jeans": case "a t-shirt and panties": case "a t-shirt and thong": case "an oversized t-shirt": case "an oversized t-shirt and boyshorts": case "sport shorts and a t-shirt": t += `${His} massive belly pushes out ${his} shirt.`; break; case "a tank-top": case "a tank-top and panties": t += `${His} massive belly pushes out ${his} tank-top.`; break; case "a sweater": case "a sweater and panties": case "a sweater and cutoffs": t += `${His} massive belly pushes out ${his} sweater.`; break; case "a gothic lolita dress": t += `${His} massive belly pushes out ${his} dress.`; break; case "a hanbok": t += `${His} massive belly pushes out ${his} hanbok.`; break; case "a one-piece swimsuit": t += `${His} massive belly pushes out ${his} swimsuit.`; break; case "a nice pony outfit": case "a slutty pony outfit": t += `${His} massive belly stretches ${his} leather outfit greatly.`; break; case "a burkini": t += `${His} burkini clings to the folds and rolls of ${his} massive gut.`; break; case "a hijab and blouse": t += `${His} massive gut spills out over the top of ${his} skirt.`; break; case "a halter top dress": t += `${His} strained halter top dress shows every jiggle in ${his} massive gut as ${he} moves. Every little motion threatens to burst ${his} seams and free the soft mass to the world.`; break; case "a ball gown": t += `Your gaze is drawn to ${his} massive gut by ${his} fabulous silken ball gown. Every little motion has a chance for it to pop out and jiggle free for all to see clearly.`; break; case "a leotard": t += `The taut material of ${his} leotard shows every jiggle in ${his} massive gut as ${he} moves. A pair of small ridges adorn ${his} sides where they have managed to push through the leotard's failing seams.`; break; case "a bunny outfit": t += `${He} is a sight in ${his} bunny outfit. The front of ${his} massive gut is held still by ${his} overworked teddy, but everything else of it jiggles obscenely with ${his} every motion.`; break; case "attractive lingerie for a pregnant woman": t += `${His} massive gut is gently framed by ${his} silken vest.`; break; case "a maternity dress": t += `${His} once loose dress bulges with ${his} massive gut.`; break; case "a courtesan dress": t += `${His} massive gut jiggles beneath the thin cloth as ${he} moves.`; break; default: t += `${His} massive bare jiggling gut catches your eye.`; } } else if (slave.belly >= 10000 || (slave.bellyAccessory === "a huge empathy belly") || (slave.bellyAccessory === "a large empathy belly")) { t += App.Desc.belly(slave); t += ` `; switch (slave.clothes) { case "conservative clothing": t += `${His} taut blouse shows off ${his} huge belly.`; break; case "attractive lingerie for a pregnant woman": t += `${His} huge belly is gently framed by ${his} silken vest.`; break; case "a maternity dress": t += `${His} loose dress is completely filled by ${his} huge belly.`; break; case "chains": t += `${His} huge belly bulges between ${his} tight chains.`; break; case "a slutty qipao": t += `The front of ${his} qipao rests atop ${his} huge belly.`; break; case "uncomfortable straps": t += `A steel ring rests around ${his} navel, held in place by tight straps. ${His} huge belly bulges around them.`; break; case "shibari ropes": t += `${His} huge belly bulges out from between ${his} ropes.`; break; case "a latex catsuit": case "restrictive latex": t += `${His} huge belly looks like a large beach ball under ${his} tight latex; ${his} popped navel breaks the smoothness.`; break; case "a military uniform": t += `${His} huge belly threatens to pop the buttons off ${his} tunic.`; break; case "a schutzstaffel uniform": t += `${His} huge belly threatens to pop the buttons off ${his} tunic.`; break; case "a slutty schutzstaffel uniform": t += `${His} huge belly threatens to pop the buttons off ${his} tunic.`; break; case "a long qipao": t += `${His} huge belly threatens to tear ${his} dress.`; break; case "battlearmor": t += `${His} huge belly is barely contained by ${his} armor.`; break; case "Imperial Plate": t += `Even through ${his} massive Imperial armor, ${his} huge belly is obvious.`; break; case "a mounty outfit": t += `${His} huge belly threatens to pop the buttons off ${his} tunic.`; break; case "a dirndl": t += `${His} huge belly threatens to pop the laces off ${his} dress.`; break; case "lederhosen": t += `${His} huge belly threatens to pop the buttons off ${his} shorts.`; break; case "a biyelgee costume": t += `${His} huge belly threatens to tear ${his} dress.`; break; case "a red army uniform": t += `${His} huge belly threatens to pop the buttons off ${his} tunic.`; break; case "a nice nurse outfit": t += `${His} huge belly strains against ${his} scrub top, making ${him} resemble more a maternity ward patient than a nurse.`; break; case "a mini dress": t += `${His} huge belly threatens to tear apart ${his} mini dress.`; break; case "a slutty maid outfit": t += `${His} huge belly is partially covered by a thin white blouse.`; break; case "a nice maid outfit": t += `${His} huge belly threatens to tear ${his} maid outfit open; ${his} popped navel is visible under ${his} apron.`; break; case "a penitent nuns habit": t += `${His} huge belly bulges ${his} habit; it looks absolutely sinful.`; break; case "clubslut netting": t += `${His} huge belly threatens to tear apart ${his} clubslut netting.`; break; case "a cheerleader outfit": t += `${His} huge belly is partly covered by ${his} cheerleader's top.`; break; case "a halter top dress": t += `${His} huge belly fills out ${his} halter top dress, the seams straining to contain it.`; break; case "a ball gown": t += `Your gaze is drawn to ${his} huge pregnant belly by ${his} fabulous silken ball gown.`; break; case "a slave gown": t += `${His} huge belly is gently caressed by ${his} gown.`; break; case "nice business attire": t += `${His} huge belly threatens to pop the buttons off ${his} jacket.`; break; case "harem gauze": t += `${His} silken garb and huge pregnant belly makes ${him} look like a belly dancer.`; break; case "a toga": t += `${His} loose fitted toga leaves plenty of space for ${his} swollen belly.`; break; case "a huipil": t += `${His} pregnant belly is so huge that the huipil won't even come close to reaching ${his} protruding navel.`; break; case "a comfortable bodysuit": t += `${His} huge belly lewdly fills ${his} bodysuit.`; if ((slave.bellyAccessory !== "a huge empathy belly") && (slave.bellyAccessory !== "a large empathy belly")) { t += ` You swear you can see ${his} babies kicking underneath the form fitting material.`; } break; case "a schoolgirl outfit": t += `${His} huge belly is only partly covered by ${his} blouse.`; break; case "a kimono": t += `${His} kimono demurely covers the sides of ${his} huge belly.`; break; case "a hijab and abaya": case "a niqab and abaya": t += `${His} huge belly tents ${his} abaya.`; break; case "a klan robe": t += `${His} huge belly tents ${his} robe.`; break; case "a burqa": t += `${His} huge belly tents ${his} burqa.`; break; case "a bra": case "a skimpy loincloth": case "a slutty klan robe": case "a sports bra": case "a striped bra": case "a thong": case "a tube top": case "a tube top and thong": case "boyshorts": case "cutoffs": case "jeans": case "leather pants": case "leather pants and a tube top": case "leather pants and pasties": case "panties": case "panties and pasties": case "pasties": case "sport shorts": case "sport shorts and a sports bra": case "striped underwear": t += `${His} huge belly is totally bare.`; break; case "a button-up shirt and panties": case "a button-up shirt": case "a police uniform": case "a t-shirt": case "a t-shirt and jeans": case "a t-shirt and panties": case "a t-shirt and thong": case "an oversized t-shirt": case "an oversized t-shirt and boyshorts": case "sport shorts and a t-shirt": t += `${His} huge belly pushes out ${his} shirt.`; break; case "a tank-top": case "a tank-top and panties": t += `${His} huge belly pushes out ${his} tank-top.`; break; case "a sweater": case "a sweater and panties": case "a sweater and cutoffs": t += `${His} huge belly pushes out ${his} sweater.`; break; case "a gothic lolita dress": t += `${His} huge belly pushes out ${his} dress.`; break; case "a hanbok": t += `${His} huge belly pushes out ${his} hanbok.`; break; case "a one-piece swimsuit": t += `${His} huge belly pushes out ${his} swimsuit.`; break; case "a nice pony outfit": case "a slutty pony outfit": t += `${His} huge belly stretches ${his} leather outfit greatly.`; break; case "a burkini": t += `${His} burkini clings to ${his} huge belly.`; break; case "a hijab and blouse": t += `${His} modest clothing struggles to cover ${his} huge belly.`; break; case "a leotard": t += `${His} huge belly lewdly stretches ${his} leotard.`; if ((slave.bellyAccessory !== "a huge empathy belly") && (slave.bellyAccessory !== "a large empathy belly") ) { t += ` You swear you can see ${his} babies kicking underneath the form fitting material.`; } break; case "a chattel habit": t += `${His} huge belly shoves the strip of cloth on ${his} front to ${his} side.`; break; case "a bunny outfit": t += `${His} huge belly is threatening to tear ${his} teddy, the seams along the side are already splitting.`; break; case "a courtesan dress": t += `${His} huge belly threatens to pop the ribs of ${his} corset as ${he} moves.`; break; default: t += `${His} bare huge pregnant belly catches your eye.`; } } else if (slave.weight > 160) { t += App.Desc.belly(slave); t += ` `; switch (slave.clothes) { case "a Fuckdoll suit": t += `${His} giant gut is alluringly smooth under the tight suit.`; break; case "conservative clothing": t += `${His} conservative clothing stands no chance of stilling ${his} giant, jiggling gut.`; break; case "chains": t += `${His} giant gut jiggles lewdly around ${his} tight chains.`; break; case "a slutty qipao": t += `The front of ${his} qipao rests atop ${his} giant gut.`; break; case "uncomfortable straps": t += `${His} giant gut jiggles lewdly around ${his} tight straps.`; break; case "shibari ropes": t += `${His} giant gut jiggles lewdly around ${his} tight cords.`; break; case "a latex catsuit": case "restrictive latex": t += `${His} giant gut resembles a beachball under ${his} tight latex.`; break; case "a military uniform": t += `The buttons on ${his} staining jacket threaten to pop off with every motion of ${his} giant jiggling gut.`; break; case "a schutzstaffel uniform": t += `The buttons on ${his} staining jacket threaten to pop off with every motion of ${his} giant jiggling gut.`; break; case "a slutty schutzstaffel uniform": t += `The buttons on ${his} staining jacket threaten to pop off with every motion of ${his} giant jiggling gut.`; break; case "a red army uniform": t += `The buttons on ${his} staining jacket threaten to pop off with every motion of ${his} giant jiggling gut.`; break; case "a long qipao": t += `${His} giant jiggling gut threatens to tear ${his} dress.`; break; case "battlearmor": t += `${His} giant jiggling gut is barely contained by ${his} armor.`; break; case "Imperial Armor": t += `Even through ${his} massively thick Imperial armor, you can swear you see ${his} obscene gut jiggle somehow.`; break; case "a mounty outfit": t += `${His} giant jiggling gut threatens to pop the buttons off ${his} tunic.`; break; case "a dirndl": t += `${His} giant jiggling gut threatens to pop the laces off ${his} dress.`; break; case "lederhosen": t += `${His} giant jiggling gut threatens to pop the buttons off ${his} shorts.`; break; case "a biyelgee costume": t += `${His} giant jiggling gut threatens to tear ${his} dress.`; break; case "a nice nurse outfit": t += `${His} scrub top jiggles along with ${his} giant gut as ${he} moves.`; break; case "a mini dress": t += `${His} strained minidress shows every jiggle in ${his} giant gut as ${he} moves.`; break; case "a nice maid outfit": t += `As ${he} moves, noticeable jiggling can be seen within ${his} maid's dress.`; break; case "a penitent nuns habit": t += `${His} habit does nothing to stop ${his} giant gut from jiggling against the coarse cloth as ${he} moves.`; break; case "clubslut netting": t += `${His} clubslut netting jiggles lewdly along with ${his} giant gut as ${he} moves.`; break; case "a cheerleader outfit": t += `${His} giant gut is partially covered by ${his} cheerleader's top, which happily jiggles along with every motion.`; break; case "a slave gown": t += `${His} giant jiggly gut is gently caressed by ${his} gown.`; break; case "nice business attire": t += `${His} giant gut has no room to move under ${his} strained jacket.`; break; case "harem gauze": t += `${His} silken garb and giant, jiggly gut makes ${him} look like a belly dancer.`; break; case "a comfortable bodysuit": t += `The taut material of ${his} bodysuit shows every jiggle in ${his} giant gut as ${he} moves.`; break; case "a schoolgirl outfit": t += `The school fatty is jiggling by and ripe for abuse with ${his} ill-fitting clothes.`; break; case "a kimono": t += `Tons of jiggling can be seen through ${his} kimono whenever ${he} moves.`; break; case "a hijab and abaya": case "a niqab and abaya": t += `Tons of jiggling can be seen through ${his} abaya whenever ${he} moves.`; break; case "a klan robe": t += `Tons of jiggling can be seen through ${his} robe whenever ${he} moves.`; break; case "a burqa": t += `Some jiggling can be seen through ${his} burqa whenever ${he} moves.`; break; case "a bra": case "a skimpy loincloth": case "a slutty klan robe": case "a sports bra": case "a striped bra": case "a thong": case "a tube top": case "a tube top and thong": case "boyshorts": case "cutoffs": case "jeans": case "leather pants": case "leather pants and a tube top": case "leather pants and pasties": case "panties": case "panties and pasties": case "pasties": case "sport shorts": case "sport shorts and a sports bra": case "striped underwear": t += `${His} jiggling belly is totally bare.`; break; case "a button-up shirt and panties": case "a button-up shirt": case "a police uniform": case "a t-shirt": case "a t-shirt and jeans": case "a t-shirt and panties": case "a t-shirt and thong": case "an oversized t-shirt": case "an oversized t-shirt and boyshorts": case "sport shorts and a t-shirt": t += `Jiggling flesh can be seen through ${his} shirt whenever ${he} moves.`; break; case "a tank-top": case "a tank-top and panties": t += `Jiggling flesh can be seen through ${his} tank-top whenever ${he} moves.`; break; case "a sweater": case "a sweater and panties": case "a sweater and cutoffs": t += `Jiggling flesh can be seen through ${his} sweater whenever ${he} moves.`; break; case "a gothic lolita dress": t += `Jiggling flesh can be seen through ${his} dress whenever ${he} moves.`; break; case "a hanbok": t += `Jiggling flesh can be seen through ${his} hanbok whenever ${he} moves.`; break; case "a one-piece swimsuit": t += `Jiggling flesh can be seen through ${his} swimsuit whenever ${he} moves.`; break; case "a nice pony outfit": case "a slutty pony outfit": t += `Jiggling flesh can be seen through ${his} leather outfit whenever ${he} moves.`; break; case "a burkini": t += `${His} burkini clings to the folds and rolls of ${his} giant, jiggling gut.`; break; case "a hijab and blouse": t += `${His} giant gut can be seen jiggling beneath ${his} skirt and blouse whenever ${he} moves.`; break; case "a halter top dress": t += `${His} stretched halter top dress shows every jiggle in ${his} giant gut as ${he} moves.`; break; case "a ball gown": t += `Your gaze is drawn to ${his} giant gut by ${his} fabulous silken ball gown.`; break; case "a leotard": t += `The taut material of ${his} leotard shows every jiggle in ${his} giant gut as ${he} moves.`; break; case "a chattel habit": t += `${His} giant gut jiggles around the strip of cloth down ${his} front as ${he} moves.`; break; case "a bunny outfit": t += `${He} is a sight in ${his} bunny outfit. ${His} teddy not only covers ${his} giant gut, but draws your gaze right to it, though it can't help but jiggle along with ${his} every motion.`; break; case "attractive lingerie for a pregnant woman": t += `${His} giant gut is gently framed by ${his} silken vest.`; break; case "a maternity dress": t += `${His} loose dress bulges with ${his} giant gut.`; break; case "overalls": if (slave.boobs > (slave.belly+250)) { t += `${slave.slaveName}'s giant breasts push out ${his} overalls so far that ${his} hugely fat belly is left uncovered.`; } else { t += `${slave.slaveName}'s hugely fat belly bulges over the sides of ${his} overalls.`; } break; case "a courtesan dress": t += `${His} many thick folds jiggle beneath the thin cloth with ${his} movements.`; break; default: t += `${His} giant bare jiggling gut catches your eye.`; } } else if (slave.weight > 130) { t += App.Desc.belly(slave); t += ` `; switch (slave.clothes) { case "a Fuckdoll suit": t += `${His} big gut is perfectly smoothed by the tight latex.`; break; case "conservative clothing": t += `${His} conservative clothing stands no chance of stilling ${his} big, jiggling gut.`; break; case "chains": t += `${His} big gut jiggles lewdly between ${his} tight chains.`; break; case "a huipil": t += `${His} huipil jiggles along with ${his} big gut.`; break; case "a slutty qipao": t += `The front of ${his} qipao rests atop ${his} big gut.`; break; case "uncomfortable straps": t += `${His} big gut jiggles lewdly between ${his} tight straps.`; break; case "shibari ropes": t += `${His} big gut jiggles lewdly between ${his} tight cords.`; break; case "a latex catsuit": case "restrictive latex": t += `${His} big gut has no room to move under ${his} tight latex.`; break; case "a military uniform": t += `The buttons on ${his} staining jacket struggle to hold back ${his} big jiggling gut.`; break; case "a schutzstaffel uniform": t += `The buttons on ${his} staining jacket struggle to hold back ${his} big jiggling gut.`; break; case "a slutty schutzstaffel uniform": t += `The buttons on ${his} staining jacket struggle to hold back ${his} big jiggling gut.`; break; case "a red army uniform": t += `The buttons on ${his} staining jacket struggle to hold back ${his} big jiggling gut.`; break; case "a long qipao": t += `${His} stretched qipao shows every jiggle in ${his} big gut as ${he} moves.`; break; case "battlearmor": t += `${His} big gut makes ${his} armor lewdly jiggle.`; break; case "Imperial Plate": t += `${His} fat gut makes ${his} ultra-heavy armor wobble slightly with motion.`; break; case "a mounty outfit": t += `The buttons on ${his} staining jacket struggle to hold back ${his} big jiggling gut.`; break; case "a dirndl": t += `${His} dress jiggles along with ${his} big gut as ${he} moves.`; break; case "lederhosen": t += `${His} suspenders jiggle along with ${his} big gut as ${he} moves.`; break; case "a biyelgee costume": t += `${His} stretched biyelgee costume shows every jiggle in ${his} big gut as ${he} moves.`; break; case "a nice nurse outfit": t += `${His} scrub top jiggles along with ${his} big gut as ${he} moves.`; break; case "a mini dress": t += `${His} stretched minidress shows every jiggle in ${his} big gut as ${he} moves.`; break; case "a slutty maid outfit": t += `${His} big gut is barely covered by a thin white blouse that happily jiggles along with every motion.`; break; case "a nice maid outfit": t += `As ${he} moves, a slight jiggle can be seen within ${his} maid's dress.`; break; case "a penitent nuns habit": t += `${His} habit does nothing to stop ${his} big gut from jiggling against the coarse cloth as ${he} moves.`; break; case "clubslut netting": t += `${His} clubslut netting jiggles lewdly along with ${his} big gut as ${he} moves.`; break; case "a cheerleader outfit": t += `${His} big gut is partially covered by ${his} cheerleader's top, which happily jiggles along with every motion.`; break; case "a slave gown": t += `${His} big jiggly gut is gently caressed by ${his} gown.`; break; case "nice business attire": t += `Noticeable jiggling from ${his} big gut can be seen under ${his} jacket.`; break; case "harem gauze": t += `${His} silken garb and big, jiggly gut makes ${him} look like a belly dancer.`; break; case "a comfortable bodysuit": t += `The taut material of ${his} bodysuit shows every jiggle in ${his} big gut as ${he} moves.`; break; case "a schoolgirl outfit": t += `${His} big gut is partially covered by ${his} blouse, which happily jiggles along with every motion.`; break; case "a kimono": t += `Noticeable jiggling can be seen through ${his} kimono whenever ${he} moves.`; break; case "a hijab and abaya": case "a niqab and abaya": t += `Noticeable jiggling can be seen through ${his} abaya whenever ${he} moves.`; break; case "a klan robe": t += `Noticeable jiggling can be seen through ${his} robe whenever ${he} moves.`; break; case "a burqa": t += `A small amount of jiggling can be seen through ${his} burqa whenever ${he} moves.`; break; case "a bra": case "a skimpy loincloth": case "a slutty klan robe": case "a sports bra": case "a striped bra": case "a thong": case "a tube top": case "a tube top and thong": case "boyshorts": case "cutoffs": case "jeans": case "leather pants": case "leather pants and a tube top": case "leather pants and pasties": case "panties": case "panties and pasties": case "pasties": case "sport shorts": case "sport shorts and a sports bra": case "striped underwear": t += `${His} jiggling belly is totally bare.`; break; case "a button-up shirt and panties": case "a button-up shirt": case "a police uniform": case "a t-shirt": case "a t-shirt and jeans": case "a t-shirt and panties": case "a t-shirt and thong": case "an oversized t-shirt": case "an oversized t-shirt and boyshorts": case "sport shorts and a t-shirt": t += `A small amount of jiggling can be seen through ${his} shirt whenever ${he} moves.`; break; case "a tank-top": case "a tank-top and panties": t += `A small amount of jiggling can be seen through ${his} tank-top whenever ${he} moves.`; break; case "a sweater": case "a sweater and panties": case "a sweater and cutoffs": t += `A small amount of jiggling can be seen through ${his} sweater whenever ${he} moves.`; break; case "a gothic lolita dress": t += `A small amount of jiggling can be seen through ${his} dress whenever ${he} moves.`; break; case "a hanbok": t += `A small amount of jiggling can be seen through ${his} hanbok whenever ${he} moves.`; break; case "a one-piece swimsuit": t += `A small amount of jiggling can be seen through ${his} swimsuit whenever ${he} moves.`; break; case "a nice pony outfit": case "a slutty pony outfit": t += `A small amount of jiggling can be seen through ${his} leather outfit whenever ${he} moves.`; break; case "a burkini": t += `${His} burkini clings to the shape of ${his} big, jiggling gut.`; break; case "a hijab and blouse": t += `${His} big gut can often be seen jiggling beneath ${his} skirt and blouse when ${he} moves.`; break; case "a halter top dress": t += `${His} stretched halter top dress shows every jiggle in ${his} big gut as ${he} moves.`; break; case "a ball gown": t += `Your gaze is drawn to ${his} big gut by ${his} fabulous silken ball gown.`; break; case "a leotard": t += `The taut material of ${his} leotard shows every jiggle in ${his} big gut as ${he} moves.`; break; case "an apron": t += `As ${he} moves, ${his} apron jostles just as ${his} big gut jiggles.`; break; case "a bunny outfit": t += `${He} is a sight in ${his} bunny outfit. ${His} teddy not only controls ${his} big gut, but draws your gaze right to it.`; break; case "attractive lingerie for a pregnant woman": t += `${His} big gut is gently framed by ${his} silken vest.`; break; case "a maternity dress": t += `${His} loose dress bulges with ${his} big gut.`; break; case "overalls": if (slave.boobs > (slave.belly+250)) { t += `${slave.slaveName}'s giant breasts push out ${his} overalls so far that ${his} big fat belly is left uncovered.`; } else { t += `${slave.slaveName}'s big fat belly spills out from behind ${his} overalls.`; } break; case "a courtesan dress": t += `${His} many folds jiggle beneath the thin cloth with ${his} movements.`; break; default: t += `${His} big bare jiggling gut catches your eye.`; } } else if (slave.bellyPreg >= 5000 || (slave.bellyAccessory === "a medium empathy belly")) { t += App.Desc.belly(slave); t += ` `; switch (slave.clothes) { case "conservative clothing": t += `${His} taut blouse shows off ${his} big belly.`; break; case "attractive lingerie for a pregnant woman": t += `${His} big belly is gently framed by ${his} silken vest.`; break; case "a maternity dress": t += `${His} loose dress is filled out by ${his} big belly.`; break; case "chains": t += `${His} big belly bulges between ${his} tight chains.`; break; case "a slutty qipao": t += `The front of ${his} qipao rests atop ${his} big belly.`; break; case "uncomfortable straps": t += `A steel ring rests around ${his} navel, held in place by tight straps. ${His} big belly bulges around them.`; break; case "shibari ropes": t += `${His} big belly bulges out from between ${his} ropes.`; break; case "a latex catsuit": case "restrictive latex": t += `${His} big belly looks like a beach ball under ${his} tight latex; ${his} popped navel breaks the smoothness.`; break; case "a military uniform": t += `${His} big belly strains the buttons on ${his} jacket.`; break; case "a schutzstaffel uniform": t += `${His} big belly strains the buttons on ${his} jacket.`; break; case "a slutty schutzstaffel uniform": t += `${His} big belly strains the buttons on ${his} jacket.`; break; case "a red army uniform": t += `${His} big belly strains the buttons on ${his} jacket.`; break; case "a long qipao": t += `${His} stretched qipao shows every jiggle in ${his} big belly as ${he} moves.`; break; case "battlearmor": t += `${His} big belly makes ${his} armor lewdly jiggle.`; break; case "Imperial Plate": t += `${His} fat gut makes ${his} ultra-heavy armor wobble slightly with motion.`; break; case "a mounty outfit": t += `${His} big belly strains the buttons on ${his} jacket.`; break; case "a dirndl": t += `${His} dress jiggles along with ${his} big belly as ${he} moves.`; break; case "lederhosen": t += `${His} suspenders jiggle along with ${his} big belly as ${he} moves.`; break; case "a biyelgee costume": t += `${His} stretched biyelgee costume shows every jiggle in ${his} big belly as ${he} moves.`; break; case "a nice nurse outfit": t += `${His} large belly strains against ${his} scrub top, making ${him} resemble more a maternity ward patient than a nurse.`; break; case "a mini dress": t += `${His} large belly strains against ${his} mini dress.`; break; case "a slutty maid outfit": t += `${His} big belly is partially covered by a thin white blouse.`; break; case "a nice maid outfit": t += `${His} big belly strains ${his} maid outfit; ${his} popped navel is visible under ${his} apron.`; break; case "a penitent nuns habit": t += `${His} big belly bulges ${his} habit; it looks absolutely sinful.`; break; case "clubslut netting": t += `${His} big belly strains ${his} clubslut netting.`; break; case "a cheerleader outfit": t += `${His} big belly is partly covered by ${his} cheerleader's top.`; break; case "a halter top dress": t += `${His} big belly fills out ${his} halter top dress.`; break; case "a ball gown": t += `Your gaze is drawn to ${his} big pregnant belly by ${his} fabulous silken ball gown.`; break; case "a slave gown": t += `${His} big belly is gently caressed by ${his} gown.`; break; case "nice business attire": t += `${His} big belly strains the buttons on ${his} jacket.`; break; case "harem gauze": t += `${His} silken garb and big pregnant belly makes ${him} look like a belly dancer.`; break; case "a toga": t += `${His} loose fitted toga leaves plenty of space for ${his} swollen belly.`; break; case "a huipil": t += `${His} pregnant belly is so big that the huipil won't even reach ${his} protruding navel.`; break; case "a comfortable bodysuit": t += `${His} big belly fills ${his} bodysuit.`; if (slave.bellyAccessory !== "a medium empathy belly") { t += ` You swear you can see ${his} babies kicking underneath the form fitting material.`; } break; case "a schoolgirl outfit": t += `${His} big belly is only partly covered by ${his} blouse.`; break; case "a kimono": t += `${His} kimono demurely covers ${his} big belly.`; break; case "a hijab and abaya": case "a niqab and abaya": t += `${His} big belly tents ${his} abaya.`; break; case "a klan robe": t += `${His} big belly tents ${his} robe.`; break; case "a burqa": t += `${His} big belly gently pushes against ${his} burqa.`; break; case "a bra": case "a skimpy loincloth": case "a slutty klan robe": case "a sports bra": case "a striped bra": case "a thong": case "a tube top": case "a tube top and thong": case "boyshorts": case "cutoffs": case "jeans": case "leather pants": case "leather pants and a tube top": case "leather pants and pasties": case "panties": case "panties and pasties": case "pasties": case "sport shorts": case "sport shorts and a sports bra": case "striped underwear": t += `${His} big belly is totally bare.`; break; case "a button-up shirt and panties": case "a button-up shirt": case "a police uniform": case "a t-shirt": case "a t-shirt and jeans": case "a t-shirt and panties": case "a t-shirt and thong": case "an oversized t-shirt": case "an oversized t-shirt and boyshorts": case "sport shorts and a t-shirt": t += `${His} big belly pushes out ${his} shirt.`; break; case "a tank-top": case "a tank-top and panties": t += `${His} big belly pushes out ${his} tank-top.`; break; case "a sweater": case "a sweater and panties": case "a sweater and cutoffs": t += `${His} big belly pushes out ${his} sweater.`; break; case "a gothic lolita dress": t += `${His} big belly pushes out ${his} dress.`; break; case "a hanbok": t += `${His} big belly pushes out ${his} hanbok.`; break; case "a one-piece swimsuit": t += `${His} big belly pushes out ${his} swimsuit.`; break; case "a nice pony outfit": case "a slutty pony outfit": t += `${His} big belly stretches ${his} leather outfit greatly.`; break; case "a burkini": t += `${His} burkini clings to ${his} big belly.`; break; case "a hijab and blouse": t += `${He} has trouble pulling ${his} skirt up over ${his} big belly.`; break; case "a leotard": t += `${His} big belly stretches ${his} leotard.`; if (slave.bellyAccessory !== "a medium empathy belly") { t += ` You swear you can see ${his} babies kicking underneath the form fitting material.`; } break; case "a chattel habit": t += `${His} big belly shoves the strip of cloth on ${his} front to ${his} side.`; break; case "a bunny outfit": t += `${His} big belly strains ${his} teddy; the seams along the side are showing signs of wear.`; break; case "a courtesan dress": t += `${His} big belly sways gracefully with ${his} movements.`; break; default: t += `${His} bare pregnant belly catches your eye.`; } } else if (slave.weight >= 95) { t += App.Desc.belly(slave); t += ` `; switch (slave.clothes) { case "a Fuckdoll suit": t += `${His} suit is expressly designed to encourage use of ${his} holes.`; break; case "conservative clothing": t += `${His} taut blouse shows every jiggle in ${his} fat gut as ${he} moves.`; break; case "attractive lingerie for a pregnant woman": t += `${His} fat gut is gently framed by ${his} silken vest.`; break; case "a maternity dress": t += `${His} loose dress bulges with ${his} fat gut.`; break; case "chains": t += `${His} fat gut jiggles lewdly between ${his} tight chains.`; break; case "a slutty qipao": t += `The front of ${his} qipao rests atop, and jiggles with, ${his} fat gut as ${he} moves.`; break; case "uncomfortable straps": t += `${His} fat gut jiggles lewdly between ${his} tight straps.`; break; case "shibari ropes": t += `${His} fat gut jiggles lewdly between the binding ropes.`; break; case "a latex catsuit": case "restrictive latex": t += `${His} fat gut barely has any room to move under ${his} tight latex.`; break; case "a military uniform": t += `The buttons on ${his} staining jacket can barely hold back ${his} fat, jiggling gut.`; break; case "a schutzstaffel uniform": t += `The buttons on ${his} staining jacket can barely hold back ${his} fat, jiggling gut.`; break; case "a slutty schutzstaffel uniform": t += `The buttons on ${his} staining jacket can barely hold back ${his} fat, jiggling gut.`; break; case "a red army uniform": t += `The buttons on ${his} staining jacket can barely hold back ${his} fat, jiggling gut.`; break; case "a long qipao": t += `${His} dress barely contains ${his} fat, jiggling gut.`; break; case "battlearmor": t += `${His} armor barely contains ${his} fat, jiggling gut.`; break; case "Imperial Plate": t += `${His} fat gut makes ${his} ultra-heavy armor wobble slightly with motion.`; break; case "a mounty outfit": t += `The buttons on ${his} staining jacket can barely hold back ${his} fat, jiggling gut.`; break; case "a dirndl": t += `${His} dress barely contains ${his} fat, jiggling gut.`; break; case "lederhosen": t += `${His} shorts and suspenders barely contains ${his} fat, jiggling gut.`; break; case "a biyelgee costume": t += `${His} dress barely contains ${his} fat, jiggling gut.`; break; case "a nice nurse outfit": t += `${His} scrub top jiggles along with ${his} fat gut as ${he} moves.`; break; case "a mini dress": t += `${His} stretched minidress shows every jiggle in ${his} fat gut as ${he} moves.`; break; case "a slutty maid outfit": t += `${His} fat gut is partially covered by a thin white blouse, which happily jiggles along with every motion.`; break; case "a nice maid outfit": t += `As ${he} moves, a slight jiggle can be seen within ${his} maid's dress.`; break; case "a penitent nuns habit": t += `${His} habit does nothing to stop ${his} fat gut from jiggling against the coarse cloth as ${he} moves.`; break; case "clubslut netting": t += `${His} clubslut netting jiggles lewdly along with ${his} fat gut as ${he} moves.`; break; case "a cheerleader outfit": t += `${His} fat gut is partially covered by ${his} cheerleader's top, which happily jiggles along with every motion.`; break; case "a halter top dress": t += `${His} stretched halter top dress shows every jiggle in ${his} fat gut as ${he} moves.`; break; case "a ball gown": t += `Your gaze is drawn to ${his} fat gut by ${his} fabulous silken ball gown.`; break; case "a slave gown": t += `${His} fat, jiggly gut is gently caressed by ${his} gown.`; break; case "nice business attire": t += `Slight jiggling from ${his} fat gut can be seen under ${his} jacket.`; break; case "harem gauze": t += `${His} silken garb and fat, jiggly gut makes ${him} look like a belly dancer.`; break; case "a toga": t += `${His} toga swerves loosely from side to side as ${his} chubby body moves inside it.`; break; case "a huipil": t += `${His} lithe huipil can't hide ${his} voluptuous shape unless ${he} stands completely still.`; break; case "a comfortable bodysuit": t += `The taut material of ${his} bodysuit shows every jiggle in ${his} fat gut as ${he} moves.`; break; case "a schoolgirl outfit": t += `${His} fat gut is partially covered by ${his} blouse, which happily jiggles along with every motion.`; break; case "a kimono": t += `Slight jiggling can be seen through ${his} kimono whenever ${he} moves.`; break; case "a hijab and abaya": case "a niqab and abaya": t += `Slight jiggling can be seen through ${his} abaya whenever ${he} moves.`; break; case "a klan robe": t += `${His} robe hides the jiggling motion of ${his} fat gut.`; break; case "a burqa": t += `${His} burqa hides the jiggling motion of ${his} fat gut.`; break; case "a bra": case "a skimpy loincloth": case "a slutty klan robe": case "a sports bra": case "a striped bra": case "a thong": case "a tube top": case "a tube top and thong": case "boyshorts": case "cutoffs": case "jeans": case "leather pants": case "leather pants and a tube top": case "leather pants and pasties": case "panties": case "panties and pasties": case "pasties": case "sport shorts": case "sport shorts and a sports bra": case "striped underwear": t += `${His} fat gut jiggles freely.`; break; case "a button-up shirt and panties": case "a button-up shirt": case "a police uniform": case "a t-shirt": case "a t-shirt and jeans": case "a t-shirt and panties": case "a t-shirt and thong": case "an oversized t-shirt": case "an oversized t-shirt and boyshorts": case "sport shorts and a t-shirt": t += `${His} shirt somewhat hides the jiggling motion of ${his} fat gut.`; break; case "a tank-top": case "a tank-top and panties": t += `${His} tank-top barely hides the jiggling motion of ${his} fat gut.`; break; case "a sweater": case "a sweater and panties": case "a sweater and cutoffs": t += `${His} sweater somewhat hides the jiggling motion of ${his} fat gut.`; break; case "a gothic lolita dress": t += `${His} dress somewhat hides the jiggling motion of ${his} fat gut.`; break; case "a hanbok": t += `${His} hanbok somewhat hides the jiggling motion of ${his} fat gut.`; break; case "a one-piece swimsuit": t += `${His} swimsuit barely hides the jiggling motion of ${his} fat gut.`; break; case "a nice pony outfit": case "a slutty pony outfit": t += `${His} leather outfit somewhat hides the jiggling motion of ${his} fat gut.`; break; case "a burkini": t += `${His} burkini clings to the shape of ${his} fat gut.`; break; case "a hijab and blouse": t += `${His} modest skirt and blouse bulge from the size of ${his} fat gut.`; break; case "an apron": t += `${His} apron provides some covering to the jiggling of ${his} fat gut.`; break; case "a leotard": t += `The taut material of ${his} leotard shows every jiggle in ${his} fat gut as ${he} moves.`; break; case "a chattel habit": t += `${His} fat gut jiggles around the strip of cloth down ${his} front as ${he} moves.`; break; case "a bunny outfit": t += `${He} is a sight in ${his} bunny outfit. The front of ${his} fat gut is held still by ${his} teddy, but everything else of it jiggles obscenely with ${his} every motion.`; break; case "a courtesan dress": t += `${His} gut jiggles beneath the thin cloth of ${his} dress.`; break; default: t += `${His} bare, jiggling, fat gut catches your eye.`; } } else if (slave.bellyPreg >= 1500 || (slave.bellyAccessory === "a small empathy belly")) { t += App.Desc.belly(slave); t += ` `; switch (slave.clothes) { case "a Fuckdoll suit": t += `${His} suit is expressly designed to encourage use of ${his} holes.`; break; case "conservative clothing": t += `${His} blouse bulges with ${his} growing belly.`; break; case "chains": t += `${His} growing belly bulges between ${his} tight chains.`; break; case "a slutty qipao": t += `The front of ${his} qipao rests atop ${his} growing belly.`; break; case "uncomfortable straps": t += `A steel ring rests around ${his} navel, held in place by tight straps. ${His} growing belly bulges around them.`; break; case "shibari ropes": t += `${His} growing belly bulges out from between ${his} ropes.`; break; case "a latex catsuit": case "restrictive latex": t += `${His} growing belly bulges beneath ${his} tight latex.`; break; case "a military uniform": t += `${His} growing belly bulges ${his} uniform tunic.`; break; case "a schutzstaffel uniform": t += `${His} growing belly bulges ${his} uniform tunic.`; break; case "a slutty schutzstaffel uniform": t += `${His} growing belly bulges ${his} uniform tunic.`; break; case "a red army uniform": t += `${His} growing belly bulges ${his} uniform tunic.`; break; case "a long qipao": t += `${His} growing belly bulges ${his} dress.`; break; case "battlearmor": t += `${His} growing belly bulges ${his} armor.`; break; case "Imperial Plate": t += `You can see a hint of ${his} growing belly swelling underneath ${his} ultra-heavy armor.`; break; case "a mounty outfit": t += `${His} growing belly bulges ${his} uniform tunic.`; break; case "a dirndl": t += `${His} growing belly bulges ${his} dress.`; break; case "lederhosen": t += `${His} growing belly bulges ${his} lederhosen.`; break; case "a biyelgee costume": t += `${His} growing belly bulges ${his} dress.`; break; case "a nice nurse outfit": t += `${His} growing belly is clearly visible through ${his} scrub top.`; break; case "a mini dress": t += `${His} growing belly bulges ${his} tight mini dress.`; break; case "a slutty maid outfit": t += `${His} growing belly bulges ${his} thin white blouse.`; break; case "a nice maid outfit": t += `${His} growing belly is concealed by ${his} maid outfit.`; break; case "a penitent nuns habit": t += `${His} growing belly bulges ${his} habit.`; break; case "attractive lingerie for a pregnant woman": t += `${His} growing belly is gently framed by ${his} silken vest.`; break; case "a maternity dress": t += `${His} loose dress conceals ${his} growing belly.`; break; case "clubslut netting": t += `${His} growing belly fills out ${his} clubslut netting.`; break; case "a cheerleader outfit": t += `${His} growing belly peeks out from under ${his} cheerleader's top.`; break; case "a halter top dress": t += `${His} growing belly bulges ${his} halter top dress.`; break; case "a ball gown": t += `Your gaze is drawn to ${his} growing pregnant belly by ${his} fabulous silken ball gown.`; break; case "a slave gown": t += `${His} growing belly is gently caressed by ${his} gown.`; break; case "nice business attire": t += `${His} growing belly bulges ${his} suit jacket.`; break; case "harem gauze": t += `${His} silken garb and growing pregnant belly makes ${him} look like a belly dancer.`; break; case "a toga": t += `${His} toga is so loose that you can barely notice ${his} growing belly.`; break; case "a huipil": t += `${His} growing belly can be seen from the sides of ${his} huipil.`; break; case "a comfortable bodysuit": t += `${His} growing belly fills ${his} bodysuit.`; break; case "a schoolgirl outfit": t += `${His} growing belly peeks out from under ${his} blouse.`; break; case "a kimono": t += `${His} kimono demurely covers ${his} growing belly.`; break; case "a hijab and abaya": case "a niqab and abaya": t += `${His} growing belly gently tents ${his} abaya.`; break; case "a burqa": t += `${His} burqa hides ${his} growing belly.`; break; case "a bra": case "a skimpy loincloth": case "a slutty klan robe": case "a sports bra": case "a striped bra": case "a thong": case "a tube top": case "a tube top and thong": case "boyshorts": case "cutoffs": case "jeans": case "leather pants": case "leather pants and a tube top": case "leather pants and pasties": case "panties": case "panties and pasties": case "pasties": case "sport shorts": case "sport shorts and a sports bra": case "striped underwear": t += `${His} growing belly is totally bare.`; break; case "a button-up shirt and panties": case "a button-up shirt": case "a police uniform": case "a t-shirt": case "a t-shirt and jeans": case "a t-shirt and panties": case "a t-shirt and thong": case "an oversized t-shirt": case "an oversized t-shirt and boyshorts": case "sport shorts and a t-shirt": t += `${His} shirt hides ${his} growing belly.`; break; case "a tank-top": case "a tank-top and panties": t += `${His} tank-top hides ${his} growing belly.`; break; case "a sweater": case "a sweater and panties": case "a sweater and cutoffs": t += `${His} sweater hides ${his} growing belly.`; break; case "a gothic lolita dress": t += `${His} dress hides ${his} growing belly.`; break; case "a hanbok": t += `${His} hanbok hides ${his} growing belly.`; break; case "a one-piece swimsuit": t += `${His} swimsuit hides ${his} growing belly.`; break; case "a nice pony outfit": case "a slutty pony outfit": t += `${His} leather outfit hides ${his} growing belly.`; break; case "a klan robe": t += `${His} robe hides ${his} growing belly.`; break; case "a burkini": t += `${His} burkini modestly covers ${his} growing belly.`; break; case "a hijab and blouse": t += `${His} growing belly gently pushes against ${his} modest clothing.`; break; case "a leotard": t += `${His} growing belly fills ${his} leotard.`; break; case "a chattel habit": t += `${His} growing belly shows under the strip of cloth on ${his} front.`; break; case "a bunny outfit": t += `${His} growing belly fills ${his} teddy.`; break; case "a courtesan dress": t += `${His} barely visible pregnancy fills out ${his} dress.`; break; default: t += `${His} barely visible pregnancy catches your eye.`; } } else { t += App.Desc.belly(slave); t += ` `; if (slave.weight >= 30) { t += `Slight jiggling can be seen in ${his} chubby belly as ${he} moves.`; } } } else { /* implant descs */ if (slave.bellyImplant >= 32000) { t += `${App.Desc.bellyImplant(slave)} `; t += `${App.Desc.mods(slave, "belly")} `; switch (slave.clothes) { case "a very tight corset": t += `${His} corset struggles to contain ${his} enormous belly.`; break; case "chains": t += `${His} enormous belly bulges in between ${his} tight chains.`; break; case "uncomfortable straps": t += `A steel ring rests around ${his} navel, held in place by tight straps. ${His} enormous belly bulges around them.`; break; case "shibari ropes": t += `${His} enormous belly bulges out from between ${his} ropes.`; break; case "a latex catsuit": case "restrictive latex": t += `${His} enormous belly makes ${him} look like a giant balloon under the tight latex; ${his} popped navel breaks the smoothness.`; break; case "a nice nurse outfit": t += `${He}'s decided to become the maternity ward, judging by the enormous belly ${he} sports.`; break; case "a maternity dress": t += `${His} tight dress is strained by ${his} enormous belly.`; break; case "a nice maid outfit": t += `${His} enormous belly is covered only by an apron.`; break; case "a penitent nuns habit": t += `${His} enormous belly strains ${his} habit; it looks absolutely sinful.`; break; case "a ball gown": t += `Your gaze is drawn to ${his} enormous belly by ${his} striking silken ball gown.`; break; case "harem gauze": t += `${His} silken garb and enormous belly makes ${him} look like a belly dancer.`; break; case "a comfortable bodysuit": t += `${His} enormous belly lewdly fills ${his} bodysuit.`; break; case "a schoolgirl outfit": t += `The school blimp is waddling by.`; break; case "a monokini": t += `${His} monokini only covers the lower quarter of ${his} enormous belly.`; break; case "overalls": if (slave.boobs > (slave.belly+250)) { t += `${slave.slaveName}'s gigantic breasts push out ${his} overalls so far that ${his} huge implant-filled belly is left halfway uncovered.`; } else { t += `The front of ${slave.slaveName}'s overalls barely covers half of ${his} huge implant-filled pregnant belly.`; } break; case "an apron": t += `${His} apron covers only a fraction of ${his} enormous belly.`; break; case "a cybersuit": t += `${His} enormous belly lewdly stretches ${his} bodysuit.`; break; case "a tight Imperial bodysuit": t += `${His} cybernetic bodysuit is lewdly stretched out by ${his} enormous belly.`; break; case "a hijab and abaya": case "a niqab and abaya": t += `${His} enormous belly pushes out ${his} abaya.`; break; case "a klan robe": t += `${His} enormous belly pushes out ${his} robe.`; break; case "a burqa": t += `${His} enormous belly pushes out ${his} burqa.`; break; case "a bra": case "a skimpy loincloth": case "a slutty klan robe": case "a sports bra": case "a striped bra": case "a thong": case "a tube top": case "a tube top and thong": case "boyshorts": case "cutoffs": case "jeans": case "leather pants": case "leather pants and a tube top": case "leather pants and pasties": case "panties": case "panties and pasties": case "pasties": case "sport shorts": case "sport shorts and a sports bra": case "striped underwear": t += `${His} enormous belly is totally bare.`; break; case "a button-up shirt and panties": case "a button-up shirt": case "a police uniform": case "a t-shirt": case "a t-shirt and jeans": case "a t-shirt and panties": case "a t-shirt and thong": case "an oversized t-shirt": case "an oversized t-shirt and boyshorts": case "sport shorts and a t-shirt": t += `${His} enormous belly pushes out ${his} shirt.`; break; case "a tank-top": case "a tank-top and panties": t += `${His} enormous belly pushes out ${his} tank-top.`; break; case "a sweater": case "a sweater and panties": case "a sweater and cutoffs": t += `${His} enormous belly pushes out ${his} sweater.`; break; case "a gothic lolita dress": t += `${His} enormous belly pushes out ${his} dress.`; break; case "a hanbok": t += `${His} enormous belly pushes out ${his} hanbok.`; break; case "a one-piece swimsuit": t += `${His} enormous belly pushes out ${his} swimsuit.`; break; case "a nice pony outfit": case "a slutty pony outfit": t += `${His} enormous belly stretches ${his} leather outfit greatly.`; break; case "a burkini": t += `${His} burkini tightly clings to ${his} enormous belly.`; break; case "a hijab and blouse": t += `${His} enormous belly strains the fabric of ${his} modest clothing.`; break; case "a leotard": t += `${His} enormous belly lewdly stretches ${his} leotard.`; break; case "a toga": t += `${His} loose fitted toga dangles pathetically to either side of ${his} enormous belly.`; break; case "a huipil": t += `${His} taut belly is so enormous that the huipil barely covers any of it.`; break; case "a courtesan dress": t += `${His} enormous belly lewdly stretches ${his} dress.`; break; default: t += `${His} bare enormous stomach catches your eye.`; } } else if (slave.bellyImplant >= 16000) { t += `${App.Desc.bellyImplant(slave)} `; t += `${App.Desc.mods(slave, "belly")} `; switch (slave.clothes) { case "a very tight corset": t += `${His} corset struggles to contain ${his} giant belly.`; break; case "chains": t += `${His} giant belly bulges in between ${his} tight chains.`; break; case "uncomfortable straps": t += `A steel ring rests around ${his} navel, held in place by tight straps. ${His} giant belly bulges around them.`; break; case "shibari ropes": t += `${His} giant belly bulges out from between ${his} ropes.`; break; case "a latex catsuit": case "restrictive latex": t += `${His} giant belly makes ${him} look like a balloon under the tight latex; ${his} popped navel breaks the smoothness.`; break; case "a nice nurse outfit": t += `${His} giant belly makes ${him} resemble a maternity ward patient rather than a nurse.`; break; case "attractive lingerie for a pregnant woman": t += `${His} giant belly is gently framed by ${his} silken vest.`; break; case "a maternity dress": t += `${His} loose dress is completely filled by ${his} giant belly.`; break; case "a nice maid outfit": t += `${His} maid outfit struggles to contain ${his} giant belly; ${his} popped navel is visible under ${his} apron.`; break; case "a penitent nuns habit": t += `${His} giant belly fills ${his} habit; it looks absolutely sinful.`; break; case "a halter top dress": t += `${His} giant belly fills ${his} halter top dress, it struggles to contain ${his} belly.`; break; case "a ball gown": t += `Your gaze is drawn to ${his} giant belly by ${his} struggling fabulous silken ball gown.`; break; case "harem gauze": t += `${His} silken garb and giant belly makes ${him} look like a belly dancer.`; break; case "a comfortable bodysuit": t += `${His} giant belly lewdly fills ${his} bodysuit.`; break; case "a schoolgirl outfit": t += `The school bicycle is waddling by.`; break; case "a monokini": t += `${His} monokini only covers the lower half of ${his} giant belly.`; break; case "overalls": if (slave.boobs > (slave.belly+250)) { t += `${slave.slaveName}'s enormous breasts push out ${his} overalls so far that ${his} huge implant-filled belly is left mostly uncovered.`; } else { t += `${slave.slaveName}'s overalls are pulled taut by ${his} huge implant-filled belly.`; } break; case "an apron": t += `${His} apron struggles to cover most of ${his} giant belly.`; break; case "a cybersuit": t += `${His} giant belly lewdly stretches ${his} bodysuit.`; break; case "a tight Imperial bodysuit": t += `${His} cybernetic bodysuit is lewdly stretched out by ${his} giant belly.`; break; case "a hijab and abaya": case "a niqab and abaya": t += `${His} giant belly fills ${his} abaya.`; break; case "a burqa": t += `${His} giant belly pushes out ${his} burqa.`; break; case "a bra": case "a skimpy loincloth": case "a slutty klan robe": case "a sports bra": case "a striped bra": case "a thong": case "a tube top": case "a tube top and thong": case "boyshorts": case "cutoffs": case "jeans": case "leather pants": case "leather pants and a tube top": case "leather pants and pasties": case "panties": case "panties and pasties": case "pasties": case "sport shorts": case "sport shorts and a sports bra": case "striped underwear": t += `${His} giant belly is totally bare.`; break; case "a button-up shirt and panties": case "a button-up shirt": case "a police uniform": case "a t-shirt": case "a t-shirt and jeans": case "a t-shirt and panties": case "a t-shirt and thong": case "an oversized t-shirt": case "an oversized t-shirt and boyshorts": case "sport shorts and a t-shirt": t += `${His} giant belly pushes out ${his} shirt.`; break; case "a tank-top": case "a tank-top and panties": t += `${His} giant belly pushes out ${his} tank-top.`; break; case "a sweater": case "a sweater and panties": case "a sweater and cutoffs": t += `${His} giant belly pushes out ${his} sweater.`; break; case "a gothic lolita dress": t += `${His} giant belly pushes out ${his} dress.`; break; case "a hanbok": t += `${His} giant belly pushes out ${his} hanbok.`; break; case "a one-piece swimsuit": t += `${His} giant belly pushes out ${his} swimsuit.`; break; case "a nice pony outfit": case "a slutty pony outfit": t += `${His} giant belly stretches ${his} leather outfit greatly.`; break; case "a burkini": t += `${His} burkini tightly clings to ${his} giant belly.`; break; case "a hijab and blouse": t += `${His} giant belly strains the fabric of ${his} modest clothing.`; break; case "a leotard": t += `${His} giant belly lewdly stretches ${his} leotard.`; break; case "a toga": t += `${His} loose fitted toga dangles to either side of ${his} giant belly.`; break; case "a huipil": t += `${His} belly is so giant that the huipil barely makes it half-way to ${his} protruding navel.`; break; case "a courtesan dress": t += `${His} giant belly lewdly fills ${his} dress.`; break; default: t += `${His} bare giant belly catches your eye.`; } } else if (slave.weight > 190) { t += App.Desc.belly(slave); t += ` `; switch (slave.clothes) { case "a Fuckdoll suit": t += `${His} massive gut is alluringly smooth under the tight suit.`; break; case "conservative clothing": t += `${His} conservative clothing stands no chance of stilling ${his} massive, jiggling gut.`; break; case "chains": t += `${His} massive gut jiggles lewdly around ${his} tight chains.`; break; case "a slutty qipao": t += `The front of ${his} qipao rests atop ${his} massive gut.`; break; case "uncomfortable straps": t += `${His} massive gut jiggles lewdly around ${his} tight straps.`; break; case "shibari ropes": t += `${His} massive gut jiggles lewdly around ${his} tight cords.`; break; case "a latex catsuit": case "restrictive latex": t += `${His} massive gut resembles a large beachball under ${his} tight latex.`; break; case "a nice nurse outfit": t += `${His} scrub top jiggles along with ${his} massive gut as ${he} moves.`; break; case "a mini dress": t += `${His} tearing minidress shows every jiggle in ${his} massive gut as ${he} moves.`; break; case "a monokini": t += `${His} massive gut spills out over the front of ${his} monokini.`; break; case "overalls": if (slave.boobs > (slave.belly+250)) { t += `${slave.slaveName}'s enormous breasts push out ${his} overalls so far that ${his} massively fat belly is left mostly uncovered.`; } else { t += `${slave.slaveName}'s massively fat belly spills out over the sides of ${his} overalls.`; } break; case "an apron": t += `${His} apron rests upon ${his} massive gut, which jiggles as ${he} moves.`; break; case "a cybersuit": t += `The taut material of ${his} bodysuit shows every jiggle in ${his} massive gut as ${he} moves.`; break; case "a tight Imperial bodysuit": t += `${His} cybernetic bodysuit is lewdly stretched out by ${his} massive, jiggly gut, quaking as ${he} moves.`; break; case "a nice maid outfit": t += `As ${he} moves, barely any jiggling can be seen within ${his} straining maid's dress.`; break; case "a penitent nuns habit": t += `${His} habit does nothing to stop ${his} massive gut from jiggling against the coarse cloth as ${he} moves.`; break; case "clubslut netting": t += `${His} clubslut netting jiggles lewdly along with ${his} massive gut as ${he} moves. Every so often, another section gives out allowing a roll of fat to spring free; it's quite entertaining to watch.`; break; case "a cheerleader outfit": t += `${His} massive gut jiggles its own cheer with ${his} every motion.`; break; case "a slave gown": t += `${His} massive jiggly gut is gently caressed by ${his} gown.`; break; case "harem gauze": t += `${His} silken garb and massive, jiggly gut makes ${him} look like a belly dancer.`; break; case "a comfortable bodysuit": t += `The taut material of ${his} bodysuit shows every jiggle in ${his} massive gut as ${he} moves.`; break; case "a schoolgirl outfit": t += `The school blimp is jiggling by and ripe for abuse with ${his} ill-fitting clothes.`; break; case "a kimono": t += `${His} massive gut threatens to pop out of ${his} kimono with every motion.`; break; case "a hijab and abaya": case "a niqab and abaya": t += `${His} massive gut has no room left to move within ${his} overstuffed abaya.`; break; case "a klan robe": t += `${His} massive gut has no room left to move within ${his} overstuffed robe.`; break; case "a burqa": t += `${His} massive gut has no room left to move within ${his} overstuffed burqa.`; break; case "a bra": case "a skimpy loincloth": case "a slutty klan robe": case "a sports bra": case "a striped bra": case "a thong": case "a tube top": case "a tube top and thong": case "boyshorts": case "cutoffs": case "jeans": case "leather pants": case "leather pants and a tube top": case "leather pants and pasties": case "panties": case "panties and pasties": case "pasties": case "sport shorts": case "sport shorts and a sports bra": case "striped underwear": t += `${His} massive belly is totally bare.`; break; case "a button-up shirt and panties": case "a button-up shirt": case "a police uniform": case "a t-shirt": case "a t-shirt and jeans": case "a t-shirt and panties": case "a t-shirt and thong": case "an oversized t-shirt": case "an oversized t-shirt and boyshorts": case "sport shorts and a t-shirt": t += `${His} massive belly jiggles under ${his} shirt.`; break; case "a tank-top": case "a tank-top and panties": t += `${His} massive belly jiggles under ${his} tank-top.`; break; case "a sweater": case "a sweater and panties": case "a sweater and cutoffs": t += `${His} massive belly jiggles under ${his} sweater.`; break; case "a gothic lolita dress": t += `${His} massive belly jiggles under ${his} dress.`; break; case "a hanbok": t += `${His} massive belly jiggles under ${his} hanbok.`; break; case "a one-piece swimsuit": t += `${His} massive belly jiggles under ${his} swimsuit.`; break; case "a nice pony outfit": case "a slutty pony outfit": t += `${His} massive belly jiggles under ${his} leather outfit.`; break; case "a burkini": t += `${His} burkini clings to the folds and rolls of ${his} massive gut.`; break; case "a hijab and blouse": t += `${His} massive gut spills out over the top of ${his} skirt.`; break; case "a halter top dress": t += `${His} strained halter top dress shows every jiggle in ${his} massive gut as ${he} moves. Every little motion threatens to burst ${his} seams and free the soft mass to the world.`; break; case "a ball gown": t += `Your gaze is drawn to ${his} massive gut by ${his} fabulous silken ball gown. Every little motion has a chance for it to pop out and jiggle free for all to see clearly.`; break; case "a leotard": t += `The taut material of ${his} leotard shows every jiggle in ${his} massive gut as ${he} moves. A pair of small ridges adorn ${his} sides where they have managed to push through the leotard's failing seams.`; break; case "a bunny outfit": t += `${He} is a sight in ${his} bunny outfit. The front of ${his} massive gut is held still by ${his} overworked teddy, but everything else of it jiggles obscenely with ${his} every motion.`; break; case "attractive lingerie for a pregnant woman": t += `${His} massive gut is gently framed by ${his} silken vest.`; break; case "a maternity dress": t += `${His} once loose dress bulges with ${his} massive gut.`; break; case "a courtesan dress": t += `${His} massive gut jiggles beneath the thin cloth as ${he} moves.`; break; default: t += `${His} massive bare jiggling gut catches your eye.`; } } else if (slave.bellyImplant >= 8000) { t += `${App.Desc.bellyImplant(slave)} `; t += `${App.Desc.mods(slave, "belly")} `; switch (slave.clothes) { case "conservative clothing": t += `${His} taut blouse shows off ${his} huge belly.`; break; case "attractive lingerie for a pregnant woman": t += `${His} huge belly is gently framed by ${his} silken vest.`; break; case "a maternity dress": t += `${His} loose dress is completely filled by ${his} huge belly.`; break; case "chains": t += `${His} huge belly bulges between ${his} tight chains.`; break; case "a slutty qipao": t += `The front of ${his} qipao rests atop ${his} huge belly.`; break; case "uncomfortable straps": t += `A steel ring rests around ${his} navel, held in place by tight straps. ${His} huge belly bulges around them.`; break; case "shibari ropes": t += `${His} huge belly bulges out from between ${his} ropes.`; break; case "a latex catsuit": case "restrictive latex": t += `${His} huge belly looks like a large beach ball under ${his} tight latex; ${his} popped navel breaks the smoothness.`; break; case "a military uniform": t += `${His} huge belly threatens to pop the buttons off ${his} tunic.`; break; case "a schutzstaffel uniform": t += `${His} huge belly threatens to pop the buttons off ${his} tunic.`; break; case "a slutty schutzstaffel uniform": t += `${His} huge belly threatens to pop the buttons off ${his} tunic.`; break; case "a red army uniform": t += `${His} huge belly threatens to pop the buttons off ${his} tunic.`; break; case "a long qipao": t += `The front of ${his} qipao rests atop ${his} huge belly.`; break; case "battlearmor": t += `${His} taut armor shows off ${his} huge belly.`; break; case "Imperial Plate": t += `${His} huge belly swells out the front of ${his} ultra-heavy armor.`; break; case "a mounty outfit": t += `${His} huge belly threatens to pop the buttons off ${his} uniform.`; break; case "a dirndl": t += `${His} loose dress is completely filled by ${his} huge belly.`; break; case "lederhosen": t += `${His} huge belly threatens to pop the buttons off ${his} shorts.`; break; case "a biyelgee costume": t += `${His} loose dress is completely filled by ${his} huge belly.`; break; case "a nice nurse outfit": t += `${His} huge belly strains against ${his} scrub top, making ${him} resemble more a maternity ward patient than a nurse.`; break; case "a mini dress": t += `${His} huge belly threatens to tear apart ${his} mini dress.`; break; case "a slutty maid outfit": t += `${His} huge belly is partially covered by a thin white blouse.`; break; case "a nice maid outfit": t += `${His} huge belly threatens to tear ${his} maid outfit open; ${his} popped navel is visible under ${his} apron.`; break; case "a penitent nuns habit": t += `${His} huge belly bulges ${his} habit; it looks absolutely sinful.`; break; case "clubslut netting": t += `${His} huge belly threatens to tear apart ${his} clubslut netting.`; break; case "a cheerleader outfit": t += `${His} huge belly is partly covered by ${his} cheerleader's top.`; break; case "a halter top dress": t += `${His} huge belly fills out ${his} halter top dress, the seams straining to contain it.`; break; case "a ball gown": t += `Your gaze is drawn to ${his} huge belly by ${his} fabulous silken ball gown.`; break; case "a slave gown": t += `${His} huge belly is gently caressed by ${his} gown.`; break; case "nice business attire": t += `${His} huge belly threatens to pop the buttons off ${his} jacket.`; break; case "harem gauze": t += `${His} silken garb and huge belly makes ${him} look like a belly dancer.`; break; case "a comfortable bodysuit": t += `${His} huge belly lewdly fills ${his} bodysuit.`; break; case "a schoolgirl outfit": t += `${His} huge belly is only partly covered by ${his} blouse.`; break; case "a monokini": t += `${His} monokini only covers the lower three quarters of ${his} huge belly.`; break; case "overalls": if (slave.boobs > (slave.belly+250)) { t += `${slave.slaveName}'s massive breasts push out ${his} overalls so far that ${his} hugely swollen belly is left almost entirely uncovered.`; } else { t += `${slave.slaveName}'s hugely swollen belly stretches out the fabric of ${his} overalls.`; } break; case "a cybersuit": t += `${His} huge belly lewdly stretches ${his} bodysuit.`; break; case "a tight Imperial bodysuit": t += `${His} cybernetic bodysuit is lewdly stretched out by ${his} huges belly.`; break; case "a kimono": t += `${His} kimono demurely covers the sides of ${his} huge belly.`; break; case "a hijab and abaya": case "a niqab and abaya": t += `${His} huge belly tents ${his} abaya.`; break; case "a klan robe": t += `${His} huge belly tents ${his} robe.`; break; case "a burqa": t += `${His} huge belly tents ${his} burqa.`; break; case "a bra": case "a skimpy loincloth": case "a slutty klan robe": case "a sports bra": case "a striped bra": case "a thong": case "a tube top": case "a tube top and thong": case "boyshorts": case "cutoffs": case "jeans": case "leather pants": case "leather pants and a tube top": case "leather pants and pasties": case "panties": case "panties and pasties": case "pasties": case "sport shorts": case "sport shorts and a sports bra": case "striped underwear": t += `${His} huge belly is totally bare.`; break; case "a button-up shirt and panties": case "a button-up shirt": case "a police uniform": case "a t-shirt": case "a t-shirt and jeans": case "a t-shirt and panties": case "a t-shirt and thong": case "an oversized t-shirt": case "an oversized t-shirt and boyshorts": case "sport shorts and a t-shirt": t += `${His} huge belly lewdly stretches ${his} shirt.`; break; case "a tank-top": case "a tank-top and panties": t += `${His} huge belly lewdly stretches ${his} tank-top.`; break; case "a sweater": case "a sweater and panties": case "a sweater and cutoffs": t += `${His} huge belly lewdly stretches ${his} sweater.`; break; case "a gothic lolita dress": t += `${His} huge belly lewdly stretches ${his} dress.`; break; case "a hanbok": t += `${His} huge belly lewdly stretches ${his} hanbok.`; break; case "a one-piece swimsuit": t += `${His} huge belly lewdly stretches ${his} swimsuit.`; break; case "a nice pony outfit": case "a slutty pony outfit": t += `${His} huge belly lewdly stretches ${his} leather outfit.`; break; case "a burkini": t += `${His} burkini clings to ${his} huge belly.`; break; case "a hijab and blouse": t += `${His} modest clothing struggles to cover ${his} huge belly.`; break; case "a leotard": t += `${His} huge belly lewdly stretches ${his} leotard.`; break; case "an apron": t += `${His} apron is filled out by ${his} huge belly.`; break; case "a chattel habit": t += `${His} huge belly shoves the strip of cloth on ${his} front to ${his} side.`; break; case "a bunny outfit": t += `${His} huge belly is threatening to tear ${his} teddy, the seams along the side are already splitting.`; break; case "a toga": t += `${His} loose fitted toga leaves plenty of space for ${his} swollen belly.`; break; case "a huipil": t += `${His} belly is so huge that the huipil won't even come close to reaching ${his} protruding navel.`; break; case "a courtesan dress": t += `${His} huge belly threatens to pop the ribs of ${his} corset as ${he} moves.`; break; default: t += `${His} bare huge belly catches your eye.`; } } else if (slave.weight > 160) { t += App.Desc.belly(slave); t += ` `; switch (slave.clothes) { case "a Fuckdoll suit": t += `${His} giant gut is alluringly smooth under the tight suit.`; break; case "conservative clothing": t += `${His} conservative clothing stands no chance of stilling ${his} giant, jiggling gut.`; break; case "chains": t += `${His} giant gut jiggles lewdly around ${his} tight chains.`; break; case "a slutty qipao": t += `The front of ${his} qipao rests atop ${his} giant gut.`; break; case "a long qipao": t += `The front of ${his} qipao rests atop ${his} giant gut.`; break; case "battlearmor": t += `${His} taut armor shows off ${his} giant gut.`; break; case "Imperial Plate": t += `${His} giant belly swells out the front of ${his} ultra-heavy armor.`; break; case "a mounty outfit": t += `${His} giant gut threatens to pop the buttons off ${his} tunic.`; break; case "a dirndl": t += `${His} loose dress is completely filled by ${his} giant gut.`; break; case "lederhosen": t += `${His} giant gut threatens to pop the buttons off ${his} shorts.`; break; case "a biyelgee costume": t += `${His} loose dress is completely filled by ${his} giant gut.`; break; case "uncomfortable straps": t += `${His} giant gut jiggles lewdly around ${his} tight straps.`; break; case "shibari ropes": t += `${His} giant gut jiggles lewdly around ${his} tight cords.`; break; case "a latex catsuit": case "restrictive latex": t += `${His} giant gut resembles a beachball under ${his} tight latex.`; break; case "a military uniform": t += `The buttons on ${his} staining jacket threaten to pop off with every motion of ${his} giant jiggling gut.`; break; case "a schutzstaffel uniform": t += `The buttons on ${his} staining jacket threaten to pop off with every motion of ${his} giant jiggling gut.`; break; case "a slutty schutzstaffel uniform": t += `The buttons on ${his} staining jacket threaten to pop off with every motion of ${his} giant jiggling gut.`; break; case "a red army uniform": t += `The buttons on ${his} staining jacket threaten to pop off with every motion of ${his} giant jiggling gut.`; break; case "a nice nurse outfit": t += `${His} scrub top jiggles along with ${his} giant gut as ${he} moves.`; break; case "a mini dress": t += `${His} strained minidress shows every jiggle in ${his} giant gut as ${he} moves.`; break; case "a monokini": t += `${His} monokini struggles to reign in ${his} giant gut.`; break; case "overalls": if (slave.boobs > (slave.belly+250)) { t += `${slave.slaveName}'s giant breasts push out ${his} overalls so far that ${his} hugely fat belly is left uncovered.`; } else { t += `${slave.slaveName}'s hugely fat belly bulges over the sides of ${his} overalls.`; } break; case "an apron": t += `${His} apron offers no cover to the jiggles of ${his} giant gut as ${he} moves.`; break; case "a cybersuit": t += `The taut material of ${his} bodysuit shows every jiggle in ${his} giant gut as ${he} moves.`; break; case "a tight Imperial bodysuit": t += `${His} cybernetic bodysuit is lewdly stretched out by ${his} giant gut, jiggling as ${he} moves.`; break; case "a nice maid outfit": t += `As ${he} moves, noticeable jiggling can be seen within ${his} maid's dress.`; break; case "a penitent nuns habit": t += `${His} habit does nothing to stop ${his} giant gut from jiggling against the coarse cloth as ${he} moves.`; break; case "clubslut netting": t += `${His} clubslut netting jiggles lewdly along with ${his} giant gut as ${he} moves.`; break; case "a cheerleader outfit": t += `${His} giant gut is partially covered by ${his} cheerleader's top, which happily jiggles along with every motion.`; break; case "a slave gown": t += `${His} giant jiggly gut is gently caressed by ${his} gown.`; break; case "nice business attire": t += `${His} giant gut has no room to move under ${his} strained jacket.`; break; case "harem gauze": t += `${His} silken garb and giant, jiggly gut makes ${him} look like a belly dancer.`; break; case "a comfortable bodysuit": t += `The taut material of ${his} bodysuit shows every jiggle in ${his} giant gut as ${he} moves.`; break; case "a schoolgirl outfit": t += `The school fatty is jiggling by and ripe for abuse with ${his} ill-fitting clothes.`; break; case "a kimono": t += `Tons of jiggling can be seen through ${his} kimono whenever ${he} moves.`; break; case "a hijab and abaya": case "a niqab and abaya": t += `Tons of jiggling can be seen through ${his} abaya whenever ${he} moves.`; break; case "a klan robe": t += `Some jiggling can be seen through ${his} robe whenever ${he} moves.`; break; case "a burqa": t += `Some jiggling can be seen through ${his} burqa whenever ${he} moves.`; break; case "a bra": case "a skimpy loincloth": case "a slutty klan robe": case "a sports bra": case "a striped bra": case "a thong": case "a tube top": case "a tube top and thong": case "boyshorts": case "cutoffs": case "jeans": case "leather pants": case "leather pants and a tube top": case "leather pants and pasties": case "panties": case "panties and pasties": case "pasties": case "sport shorts": case "sport shorts and a sports bra": case "striped underwear": t += `${His} jiggling belly is totally bare.`; break; case "a button-up shirt and panties": case "a button-up shirt": case "a police uniform": case "a t-shirt": case "a t-shirt and jeans": case "a t-shirt and panties": case "a t-shirt and thong": case "an oversized t-shirt": case "an oversized t-shirt and boyshorts": case "sport shorts and a t-shirt": t += `Some jiggling can be seen through ${his} shirt whenever ${he} moves.`; break; case "a tank-top": case "a tank-top and panties": t += `Some jiggling can be seen through ${his} tank-top whenever ${he} moves.`; break; case "a sweater": case "a sweater and panties": case "a sweater and cutoffs": t += `Some jiggling can be seen through ${his} sweater whenever ${he} moves.`; break; case "a gothic lolita dress": t += `Some jiggling can be seen through ${his} dress whenever ${he} moves.`; break; case "a hanbok": t += `Some jiggling can be seen through ${his} hanbok whenever ${he} moves.`; break; case "a one-piece swimsuit": t += `Some jiggling can be seen through ${his} swimsuit whenever ${he} moves.`; break; case "a nice pony outfit": case "a slutty pony outfit": t += `Some jiggling can be seen through ${his} leather outfit whenever ${he} moves.`; break; case "a burkini": t += `${His} burkini clings to the folds and rolls of ${his} giant, jiggling gut.`; break; case "a hijab and blouse": t += `${His} giant gut can be seen jiggling beneath ${his} skirt and blouse whenever ${he} moves.`; break; case "a halter top dress": t += `${His} stretched halter top dress shows every jiggle in ${his} giant gut as ${he} moves.`; break; case "a ball gown": t += `Your gaze is drawn to ${his} giant gut by ${his} fabulous silken ball gown.`; break; case "a leotard": t += `The taut material of ${his} leotard shows every jiggle in ${his} giant gut as ${he} moves.`; break; case "a chattel habit": t += `${His} giant gut jiggles around the strip of cloth down ${his} front as ${he} moves.`; break; case "a bunny outfit": t += `${He} is a sight in ${his} bunny outfit. ${His} teddy not only covers ${his} giant gut, but draws your gaze right to it, though it can't help but jiggle along with ${his} every motion.`; break; case "attractive lingerie for a pregnant woman": t += `${His} giant gut is gently framed by ${his} silken vest.`; break; case "a maternity dress": t += `${His} loose dress bulges with ${his} giant gut.`; break; case "a courtesan dress": t += `${His} many thick folds jiggle beneath the thin cloth with ${his} movements.`; break; default: t += `${His} giant bare jiggling gut catches your eye.`; } } else if (slave.weight > 130) { t += App.Desc.belly(slave); t += ` `; switch (slave.clothes) { case "a Fuckdoll suit": t += `${His} big gut is perfectly smoothed by the tight latex.`; break; case "conservative clothing": t += `${His} conservative clothing stands no chance of stilling ${his} big, jiggling gut.`; break; case "chains": t += `${His} big gut jiggles lewdly between ${his} tight chains.`; break; case "a huipil": t += `${His} huipil jiggles along with ${his} big gut.`; break; case "a slutty qipao": t += `The front of ${his} qipao rests atop ${his} big gut.`; break; case "uncomfortable straps": t += `${His} big gut jiggles lewdly between ${his} tight straps.`; break; case "shibari ropes": t += `${His} big gut jiggles lewdly between ${his} tight cords.`; break; case "a latex catsuit": case "restrictive latex": t += `${His} big gut has no room to move under ${his} tight latex.`; break; case "a military uniform": t += `The buttons on ${his} staining jacket struggle to hold back ${his} big jiggling gut.`; break; case "a schutzstaffel uniform": t += `The buttons on ${his} staining jacket struggle to hold back ${his} big jiggling gut.`; break; case "a slutty schutzstaffel uniform": t += `The buttons on ${his} staining jacket struggle to hold back ${his} big jiggling gut.`; break; case "a red army uniform": t += `The buttons on ${his} staining jacket struggle to hold back ${his} big jiggling gut.`; break; case "a long qipao": t += `${His} stretched qipao shows every jiggle in ${his} big gut as ${he} moves.`; break; case "battlearmor": t += `${His} taut armor shows every jiggle in ${his} big gut as ${he} moves.`; break; case "Imperial Plate": t += `${His} ultra-heavy armor isn't quite massive enough to hige the jiggle of ${his} big gut.`; break; case "a mounty outfit": t += `The buttons on ${his} staining jacket struggle to hold back ${his} big jiggling gut.`; break; case "a dirndl": t += `${His} stretched dirndl shows every jiggle in ${his} big gut as ${he} moves.`; break; case "lederhosen": t += `The buttons on ${his} straining shorts struggle to hold back ${his} big jiggling gut.`; break; case "a biyelgee costume": t += `${His} stretched costume shows every jiggle in ${his} big gut as ${he} moves.`; break; case "a nice nurse outfit": t += `${His} scrub top jiggles along with ${his} big gut as ${he} moves.`; break; case "a mini dress": t += `${His} stretched minidress shows every jiggle in ${his} big gut as ${he} moves.`; break; case "a monokini": t += `${His} big gut stretches out the fabric of ${his} monokini.`; break; case "overalls": if (slave.boobs > (slave.belly+250)) { t += `${slave.slaveName}'s giant breasts push out ${his} overalls so far that ${his} big fat belly is left uncovered.`; } else { t += `${slave.slaveName}'s big fat belly spills out from behind ${his} overalls.`; } break; case "an apron": t += `As ${he} moves, ${his} apron jostles just as ${his} big gut jiggles.`; break; case "a cybersuit": t += `The taut material of ${his} bodysuit shows every jiggle in ${his} big gut as ${he} moves.`; break; case "a tight Imperial bodysuit": t += `${His} cybernetic bodysuit is lewdly stretched out by ${his} big gut, jiggling as ${he} moves.`; break; case "a slutty maid outfit": t += `${His} big gut is barely covered by a thin white blouse that happily jiggles along with every motion.`; break; case "a nice maid outfit": t += `As ${he} moves, a slight jiggle can be seen within ${his} maid's dress.`; break; case "a penitent nuns habit": t += `${His} habit does nothing to stop ${his} big gut from jiggling against the coarse cloth as ${he} moves.`; break; case "clubslut netting": t += `${His} clubslut netting jiggles lewdly along with ${his} big gut as ${he} moves.`; break; case "a cheerleader outfit": t += `${His} big gut is partially covered by ${his} cheerleader's top, which happily jiggles along with every motion.`; break; case "a slave gown": t += `${His} big jiggly gut is gently caressed by ${his} gown.`; break; case "nice business attire": t += `Noticeable jiggling from ${his} big gut can be seen under ${his} jacket.`; break; case "harem gauze": t += `${His} silken garb and big, jiggly gut makes ${him} look like a belly dancer.`; break; case "a comfortable bodysuit": t += `The taut material of ${his} bodysuit shows every jiggle in ${his} big gut as ${he} moves.`; break; case "a schoolgirl outfit": t += `${His} big gut is partially covered by ${his} blouse, which happily jiggles along with every motion.`; break; case "a kimono": t += `Noticeable jiggling can be seen through ${his} kimono whenever ${he} moves.`; break; case "a hijab and abaya": case "a niqab and abaya": t += `Noticeable jiggling can be seen through ${his} abaya whenever ${he} moves.`; break; case "a klan robe": t += `A small amount of jiggling can be seen through ${his} robe whenever ${he} moves.`; break; case "a burqa": t += `A small amount of jiggling can be seen through ${his} burqa whenever ${he} moves.`; break; case "a bra": case "a skimpy loincloth": case "a slutty klan robe": case "a sports bra": case "a striped bra": case "a thong": case "a tube top": case "a tube top and thong": case "boyshorts": case "cutoffs": case "jeans": case "leather pants": case "leather pants and a tube top": case "leather pants and pasties": case "panties": case "panties and pasties": case "pasties": case "sport shorts": case "sport shorts and a sports bra": case "striped underwear": t += `${His} jiggling belly is totally bare.`; break; case "a button-up shirt and panties": case "a button-up shirt": case "a police uniform": case "a t-shirt": case "a t-shirt and jeans": case "a t-shirt and panties": case "a t-shirt and thong": case "an oversized t-shirt": case "an oversized t-shirt and boyshorts": case "sport shorts and a t-shirt": t += `A small amount of jiggling can be seen through ${his} shirt whenever ${he} moves.`; break; case "a tank-top": case "a tank-top and panties": t += `A small amount of jiggling can be seen through ${his} tank-top whenever ${he} moves.`; break; case "a sweater": case "a sweater and panties": case "a sweater and cutoffs": t += `A small amount of jiggling can be seen through ${his} sweater whenever ${he} moves.`; break; case "a gothic lolita dress": t += `A small amount of jiggling can be seen through ${his} dress whenever ${he} moves.`; break; case "a hanbok": t += `A small amount of jiggling can be seen through ${his} hanbok whenever ${he} moves.`; break; case "a one-piece swimsuit": t += `A small amount of jiggling can be seen through ${his} swimsuit whenever ${he} moves.`; break; case "a nice pony outfit": case "a slutty pony outfit": t += `A small amount of jiggling can be seen through ${his} leather outfit whenever ${he} moves.`; break; case "a burkini": t += `${His} burkini clings to the shape of ${his} big, jiggling gut.`; break; case "a hijab and blouse": t += `${His} big gut can often be seen jiggling beneath ${his} skirt and blouse when ${he} moves.`; break; case "a halter top dress": t += `${His} stretched halter top dress shows every jiggle in ${his} big gut as ${he} moves.`; break; case "a ball gown": t += `Your gaze is drawn to ${his} big gut by ${his} fabulous silken ball gown.`; break; case "a leotard": t += `The taut material of ${his} leotard shows every jiggle in ${his} big gut as ${he} moves.`; break; case "a bunny outfit": t += `${He} is a sight in ${his} bunny outfit. ${His} teddy not only controls ${his} big gut, but draws your gaze right to it.`; break; case "attractive lingerie for a pregnant woman": t += `${His} big gut is gently framed by ${his} silken vest.`; break; case "a maternity dress": t += `${His} loose dress bulges with ${his} big gut.`; break; case "a courtesan dress": t += `${His} many folds jiggle beneath the thin cloth with ${his} movements.`; break; default: t += `${His} big bare jiggling gut catches your eye.`; } } else if (slave.bellyImplant >= 4000) { t += `${App.Desc.bellyImplant(slave)} `; t += `${App.Desc.mods(slave, "belly")} `; switch (slave.clothes) { case "conservative clothing": t += `${His} taut blouse shows off ${his} big belly.`; break; case "chains": t += `${His} big belly bulges between ${his} tight chains.`; break; case "a slutty qipao": t += `The front of ${his} qipao rests atop ${his} big belly.`; break; case "uncomfortable straps": t += `A steel ring rests around ${his} navel, held in place by tight straps. ${His} big belly bulges around them.`; break; case "shibari ropes": t += `${His} big belly bulges out from between ${his} ropes.`; break; case "a latex catsuit": case "restrictive latex": t += `${His} big belly looks like a beach ball under ${his} tight latex; ${his} popped navel breaks the smoothness.`; break; case "a military uniform": t += `${His} big belly strains the buttons on ${his} jacket.`; break; case "a schutzstaffel uniform": t += `${His} big belly strains the buttons on ${his} jacket.`; break; case "a slutty schutzstaffel uniform": t += `${His} big belly strains the buttons on ${his} jacket.`; break; case "a red army uniform": t += `${His} big belly strains the buttons on ${his} jacket.`; break; case "a long qipao": t += `The front of ${his} qipao rests atop ${his} big belly.`; break; case "battlearmor": t += `${His} taut armor shows off ${his} big belly.`; break; case "Imperial Plate": t += `${His} big belly slightly swells the front of ${his} ultra-heavy armor.`; break; case "a mounty outfit": t += `${His} big belly threatens to pop the buttons off ${his} tunic.`; break; case "a dirndl": t += `${His} loose dress is completely filled by ${his} big belly.`; break; case "lederhosen": t += `${His} big belly threatens to pop the buttons off ${his} shorts.`; break; case "a biyelgee costume": t += `${His} loose dress is completely filled by ${his} big belly.`; break; case "a nice nurse outfit": t += `${His} large belly strains against ${his} scrub top, making ${him} resemble more a maternity ward patient than a nurse.`; break; case "a mini dress": t += `${His} large belly strains against ${his} mini dress.`; break; case "a monokini": t += `${His} monokini is rounded out by ${his} large belly.`; break; case "overalls": if (slave.boobs > (slave.belly+250)) { t += `${slave.slaveName}'s huge breasts push out ${his} overalls so far that ${his} implant-filled belly is left uncovered.`; } else { t += `${slave.slaveName}'s overalls are significantly curved by ${his} implant-filled belly.`; } break; case "an apron": t += `${His} apron is rounded out by ${his} large belly.`; break; case "a cybersuit": t += `${His} big belly stretches ${his} bodysuit.`; break; case "a tight Imperial bodysuit": t += `${His} cybernetic bodysuit is lewdly stretched out by ${his} big belly.`; break; case "a slutty maid outfit": t += `${His} big belly is partially covered by a thin white blouse.`; break; case "a nice maid outfit": t += `${His} big belly strains ${his} maid outfit; ${his} popped navel is visible under ${his} apron.`; break; case "a penitent nuns habit": t += `${His} big belly bulges ${his} habit; it looks absolutely sinful.`; break; case "clubslut netting": t += `${His} big belly strains ${his} clubslut netting.`; break; case "a cheerleader outfit": t += `${His} big belly is partly covered by ${his} cheerleader's top.`; break; case "a halter top dress": t += `${His} big belly fills out ${his} halter top dress.`; break; case "a ball gown": t += `Your gaze is drawn to ${his} big belly by ${his} fabulous silken ball gown.`; break; case "a slave gown": t += `${His} big belly is gently caressed by ${his} gown.`; break; case "nice business attire": t += `${His} big belly strains the buttons on ${his} jacket.`; break; case "harem gauze": t += `${His} silken garb and big belly makes ${him} look like a belly dancer.`; break; case "a comfortable bodysuit": t += `${His} big belly fills ${his} bodysuit.`; break; case "a schoolgirl outfit": t += `${His} big belly is only partly covered by ${his} blouse.`; break; case "a kimono": t += `${His} kimono demurely covers ${his} big belly.`; break; case "a hijab and abaya": case "a niqab and abaya": t += `${His} big belly tents ${his} abaya.`; break; case "a klan robe": t += `${His} big belly gently pushes against ${his} robe.`; break; case "a burqa": t += `${His} big belly gently pushes against ${his} burqa.`; break; case "a bra": case "a skimpy loincloth": case "a slutty klan robe": case "a sports bra": case "a striped bra": case "a thong": case "a tube top": case "a tube top and thong": case "boyshorts": case "cutoffs": case "jeans": case "leather pants": case "leather pants and a tube top": case "leather pants and pasties": case "panties": case "panties and pasties": case "pasties": case "sport shorts": case "sport shorts and a sports bra": case "striped underwear": t += `${His} big belly is totally bare.`; break; case "a button-up shirt and panties": case "a button-up shirt": case "a police uniform": case "a t-shirt": case "a t-shirt and jeans": case "a t-shirt and panties": case "a t-shirt and thong": case "an oversized t-shirt": case "an oversized t-shirt and boyshorts": case "sport shorts and a t-shirt": t += `${His} big belly gently pushes out ${his} shirt.`; break; case "a tank-top": case "a tank-top and panties": t += `${His} big belly gently pushes out ${his} tank-top.`; break; case "a sweater": case "a sweater and panties": case "a sweater and cutoffs": t += `${His} big belly gently pushes out ${his} sweater.`; break; case "a gothic lolita dress": t += `${His} big belly gently pushes out ${his} dress.`; break; case "a hanbok": t += `${His} big belly gently pushes out ${his} hanbok.`; break; case "a one-piece swimsuit": t += `${His} big belly gently pushes out ${his} swimsuit.`; break; case "a nice pony outfit": case "a slutty pony outfit": t += `${His} big belly gently pushes against ${his} leather outfit.`; break; case "a burkini": t += `${His} burkini clings to ${his} big belly.`; break; case "a hijab and blouse": t += `${He} has trouble pulling ${his} skirt up over ${his} big belly.`; break; case "a leotard": t += `${His} big belly stretches ${his} leotard.`; break; case "a chattel habit": t += `${His} big belly shoves the strip of cloth on ${his} front to ${his} side.`; break; case "a bunny outfit": t += `${His} big belly is strains ${his} teddy, the seams along the side are showing signs of wear.`; break; case "a toga": t += `${His} loose fitted toga leaves plenty of space for ${his} swollen belly.`; break; case "a huipil": t += `${His} pregnant belly is so big that the huipil won't even reach ${his} protruding navel.`; break; case "a courtesan dress": t += `${His} big belly sways gracefully with ${his} movements.`; break; default: t += `${His} bare belly catches your eye.`; } } else if (slave.weight >= 95) { t += `${App.Desc.bellyImplant(slave)} `; t += `${App.Desc.mods(slave, "belly")} `; switch (slave.clothes) { case "a Fuckdoll suit": t += `${His} suit is expressly designed to encourage use of ${his} holes.`; break; case "conservative clothing": t += `${His} taut blouse shows every jiggle in ${his} fat gut as ${he} moves.`; break; case "chains": t += `${His} fat gut jiggles lewdly between ${his} tight chains.`; break; case "a slutty qipao": t += `The front of ${his} qipao rests atop, and jiggles with, ${his} fat gut as ${he} moves.`; break; case "uncomfortable straps": t += `${His} fat gut jiggles lewdly between ${his} tight straps.`; break; case "shibari ropes": t += `${His} fat gut jiggles lewdly between the binding ropes.`; break; case "a latex catsuit": case "restrictive latex": t += `${His} fat gut barely has any room to move under ${his} tight latex.`; break; case "a military uniform": t += `The buttons on ${his} staining jacket can barely hold back ${his} fat, jiggling gut.`; break; case "a schutzstaffel uniform": t += `The buttons on ${his} staining jacket can barely hold back ${his} fat, jiggling gut.`; break; case "a slutty schutzstaffel uniform": t += `The buttons on ${his} staining jacket can barely hold back ${his} fat, jiggling gut.`; break; case "a red army uniform": t += `The buttons on ${his} staining jacket can barely hold back ${his} fat, jiggling gut.`; break; case "a long qipao": t += `${His} stretched qipao shows every jiggle in ${his} fat, jiggling gut as ${he} moves.`; break; case "battlearmor": t += `${His} taut armor shows every jiggle in ${his} fat, jiggling gut as ${he} moves.`; break; case "Imperial Plate": t += `${His} ultra-heavy armor isn't quite massive enough to hige the jiggle of ${his} big gut.`; break; case "a mounty outfit": t += `The buttons on ${his} staining jacket struggle to hold back ${his} fat, jiggling gut.`; break; case "a dirndl": t += `${His} stretched dirndl shows every jiggle in ${his} fat, jiggling gut as ${he} moves.`; break; case "lederhosen": t += `The buttons on ${his} straining shorts struggle to hold back ${his} fat, jiggling gut.`; break; case "a biyelgee costume": t += `${His} stretched costume shows every jiggle in ${his} fat, jiggling gut as ${he} moves.`; break; case "a nice nurse outfit": t += `${His} scrub top jiggles along with ${his} fat gut as ${he} moves.`; break; case "a mini dress": t += `${His} stretched minidress shows every jiggle in ${his} fat gut as ${he} moves.`; break; case "a monokini": t += `${His} monokini clings to the size and shape of ${his} fat gut.`; break; case "overalls": if (slave.boobs > (slave.belly+250)) { t += `${slave.slaveName}'s large breasts push out ${his} overalls so far that ${his} fat belly is left uncovered.`; } else { t += `${slave.slaveName}'s fat belly bulges out from over the sides of ${his} overalls.`; } break; case "an apron": t += `${His} apron provides some covering to the jiggling of ${his} fat gut.`; break; case "a cybersuit": t += `The taut material of ${his} bodysuit shows every jiggle in ${his} fat gut as ${he} moves.`; break; case "a tight Imperial bodysuit": t += `${His} cybernetic bodysuit is lewdly stretched out by ${his} fat gut, jiggling as ${he} moves.`; break; case "a slutty maid outfit": t += `${His} fat gut is partially covered by a thin white blouse, that happily jiggles along with every motion.`; break; case "a nice maid outfit": t += `As ${he} moves, a slight jiggle can be seen within ${his} maid's dress.`; break; case "a penitent nuns habit": t += `${His} habit does nothing to stop ${his} fat gut from jiggling against the coarse cloth as ${he} moves.`; break; case "clubslut netting": t += `${His} clubslut netting jiggles lewdly along with ${his} fat gut as ${he} moves.`; break; case "a cheerleader outfit": t += `${His} fat gut is partially covered by ${his} cheerleader's top, which happily jiggles along with every motion.`; break; case "a halter top dress": t += `${His} stretched halter top dress shows every jiggle in ${his} fat gut as ${he} moves.`; break; case "a ball gown": t += `Your gaze is drawn to ${his} fat gut by ${his} fabulous silken ball gown.`; break; case "a slave gown": t += `${His} fat, jiggly gut is gently caressed by ${his} gown.`; break; case "nice business attire": t += `Slight jiggling from ${his} fat gut can be seen under ${his} jacket.`; break; case "harem gauze": t += `${His} silken garb and fat, jiggly gut makes ${him} look like a belly dancer.`; break; case "a comfortable bodysuit": t += `The taut material of ${his} bodysuit shows every jiggle in ${his} fat gut as ${he} moves.`; break; case "a schoolgirl outfit": t += `${His} fat gut is partially covered by ${his} blouse, which happily jiggles along with every motion.`; break; case "a kimono": t += `Slight jiggling can be seen through ${his} kimono whenever ${he} moves.`; break; case "a hijab and abaya": case "a niqab and abaya": t += `Slight jiggling can be seen through ${his} abaya whenever ${he} moves.`; break; case "a klan robe": t += `${His} robe hides the jiggling motion of ${his} fat gut.`; break; case "a burqa": t += `${His} burqa hides the jiggling motion of ${his} fat gut.`; break; case "a bra": case "a skimpy loincloth": case "a slutty klan robe": case "a sports bra": case "a striped bra": case "a thong": case "a tube top": case "a tube top and thong": case "boyshorts": case "cutoffs": case "jeans": case "leather pants": case "leather pants and a tube top": case "leather pants and pasties": case "panties": case "panties and pasties": case "pasties": case "sport shorts": case "sport shorts and a sports bra": case "striped underwear": t += `${His} jiggling belly is totally bare.`; break; case "a button-up shirt and panties": case "a button-up shirt": case "a police uniform": case "a t-shirt": case "a t-shirt and jeans": case "a t-shirt and panties": case "a t-shirt and thong": case "an oversized t-shirt": case "an oversized t-shirt and boyshorts": case "sport shorts and a t-shirt": t += `Jiggling flesh can barely be seen through ${his} shirt whenever ${he} moves.`; break; case "a tank-top": case "a tank-top and panties": t += `Jiggling flesh can barely be seen through ${his} tank-top whenever ${he} moves.`; break; case "a sweater": case "a sweater and panties": case "a sweater and cutoffs": t += `Jiggling flesh can barely be seen through ${his} sweater whenever ${he} moves.`; break; case "a gothic lolita dress": t += `Jiggling flesh can barely be seen through ${his} dress whenever ${he} moves.`; break; case "a hanbok": t += `Jiggling flesh can barely be seen through ${his} hanbok whenever ${he} moves.`; break; case "a one-piece swimsuit": t += `Jiggling flesh can barely be seen through ${his} swimsuit whenever ${he} moves.`; break; case "a nice pony outfit": case "a slutty pony outfit": t += `Jiggling flesh can barely be seen through ${his} leather outfit whenever ${he} moves.`; break; case "a burkini": t += `${His} burkini clings to the shape of ${his} fat gut.`; break; case "a hijab and blouse": t += `${His} modest skirt and blouse bulge from the size of ${his} fat gut.`; break; case "a leotard": t += `The taut material of ${his} leotard shows every jiggle in ${his} fat gut as ${he} moves.`; break; case "a chattel habit": t += `${His} fat gut jiggles around the strip of cloth down ${his} front as ${he} moves.`; break; case "a bunny outfit": t += `${He} is a sight in ${his} bunny outfit. The front of ${his} fat gut is held still by ${his} teddy, but everything else of it jiggles obscenely with ${his} every motion.`; break; case "a toga": t += `${His} toga swerves loosely from side to side as ${his} chubby body moves inside it.`; break; case "a huipil": t += `${His} lithe huipil can't hide ${his} voluptuous shape unless ${he} stands completely still.`; break; case "a courtesan dress": t += `${His} gut jiggles beneath the thin cloth of ${his} dress.`; break; default: t += `${His} bare, jiggling, fat gut catches your eye.`; } } else if (slave.bellyImplant >= 2000) { t += `${App.Desc.bellyImplant(slave)} `; t += `${App.Desc.mods(slave, "belly")} `; switch (slave.clothes) { case "a Fuckdoll suit": t += `${His} suit is expressly designed to encourage use of ${his} holes.`; break; case "conservative clothing": t += `${His} blouse bulges with ${his} distended belly.`; break; case "chains": t += `${His} distended belly bulges between ${his} tight chains.`; break; case "a slutty qipao": t += `The front of ${his} qipao rests atop ${his} distended belly.`; break; case "a long qipao": t += `The front of ${his} qipao rests atop ${his} distended belly.`; break; case "battlearmor": t += `The front of ${his} armor rests atop ${his} distended belly.`; break; case "Imperial Plate": t += `The front of ${his} armor rests atop ${his} distended belly.`; break; case "a mounty outfit": t += `The front of ${his} tunic rests atop ${his} distended belly.`; break; case "a dirndl": t += `The front of ${his} dirndl rests atop ${his} distended belly.`; break; case "lederhosen": t += `The front of ${his} suspenders rests aside ${his} distended belly.`; break; case "a biyelgee costume": t += `The front of ${his} costume rests atop ${his} distended belly.`; break; case "uncomfortable straps": t += `A steel ring rests around ${his} navel, held in place by tight straps. ${His} distended belly bulges around them.`; break; case "shibari ropes": t += `${His} distended belly bulges out from between ${his} ropes.`; break; case "a latex catsuit": case "restrictive latex": t += `${His} distended belly bulges beneath ${his} tight latex.`; break; case "a military uniform": t += `${His} distended belly bulges ${his} uniform tunic.`; break; case "a schutzstaffel uniform": t += `${His} distended belly bulges ${his} uniform tunic.`; break; case "a slutty schutzstaffel uniform": t += `${His} distended belly bulges ${his} uniform tunic.`; break; case "a red army uniform": t += `${His} distended belly bulges ${his} uniform tunic.`; break; case "a nice nurse outfit": t += `${His} distended belly is clearly visible through ${his} scrub top.`; break; case "a mini dress": t += `${His} distended belly bulges ${his} tight mini dress.`; break; case "a monokini": t += `${His} monokini bulges from ${his} distended belly.`; break; case "overalls": if (slave.boobs > (slave.belly+250)) { t += `${slave.slaveName}'s large breasts push out ${his} overalls so far that ${his} implant-rounded belly is left uncovered.`; } else { t += `${slave.slaveName}'s implant-rounded belly rounds out the front of ${his} overalls.`; } break; case "an apron": t += `${His} apron is rounded out by ${his} distended belly.`; break; case "a cybersuit": t += `${His} distended belly fills ${his} bodysuit.`; break; case "a tight Imperial bodysuit": t += `${His} cybernetic bodysuit is lewdly stretched out by ${his} distended belly.`; break; case "a slutty maid outfit": t += `${His} distended belly bulges ${his} thin white blouse.`; break; case "a nice maid outfit": t += `${His} distended belly is concealed by ${his} maid outfit.`; break; case "a penitent nuns habit": t += `${His} distended belly bulges ${his} habit.`; break; case "attractive lingerie for a pregnant woman": t += `${His} distended belly is gently framed by ${his} silken vest.`; break; case "a maternity dress": t += `${His} loose dress conceals ${his} distended belly.`; break; case "clubslut netting": t += `${His} distended belly fills out ${his} clubslut netting.`; break; case "a cheerleader outfit": t += `${His} distended belly peeks out from under ${his} cheerleader's top.`; break; case "a halter top dress": t += `${His} distended belly bulges ${his} halter top dress.`; break; case "a ball gown": t += `Your gaze is drawn to ${his} distended belly by ${his} fabulous silken ball gown.`; break; case "a slave gown": t += `${His} distended belly is gently caressed by ${his} gown.`; break; case "nice business attire": t += `${His} distended belly bulges ${his} suit jacket.`; break; case "harem gauze": t += `${His} silken garb and distended belly makes ${him} look like a belly dancer.`; break; case "a comfortable bodysuit": t += `${His} distended belly fills ${his} bodysuit.`; break; case "a schoolgirl outfit": t += `${His} distended belly peeks out from under ${his} blouse.`; break; case "a kimono": t += `${His} kimono demurely covers ${his} distended belly.`; break; case "a hijab and abaya": case "a niqab and abaya": t += `${His} distended belly gently tents ${his} abaya.`; break; case "a klan robe": t += `${His} robe totally conceals ${his} distended belly.`; break; case "a burqa": t += `${His} burqa totally conceals ${his} distended belly.`; break; case "a bra": case "a skimpy loincloth": case "a slutty klan robe": case "a sports bra": case "a striped bra": case "a thong": case "a tube top": case "a tube top and thong": case "boyshorts": case "cutoffs": case "jeans": case "leather pants": case "leather pants and a tube top": case "leather pants and pasties": case "panties": case "panties and pasties": case "pasties": case "sport shorts": case "sport shorts and a sports bra": case "striped underwear": t += `${His} distended belly is totally bare.`; break; case "a button-up shirt and panties": case "a button-up shirt": case "a police uniform": case "a t-shirt": case "a t-shirt and jeans": case "a t-shirt and panties": case "a t-shirt and thong": case "an oversized t-shirt": case "an oversized t-shirt and boyshorts": case "sport shorts and a t-shirt": t += `${His} shirt totally conceals ${his} distended belly.`; break; case "a tank-top": case "a tank-top and panties": t += `${His} tank-top totally conceals ${his} distended belly.`; break; case "a sweater": case "a sweater and panties": case "a sweater and cutoffs": t += `${His} sweater totally conceals ${his} distended belly.`; break; case "a gothic lolita dress": t += `${His} dress totally conceals ${his} distended belly.`; break; case "a hanbok": t += `${His} hanbok totally conceals ${his} distended belly.`; break; case "a one-piece swimsuit": t += `${His} swimsuit totally conceals ${his} distended belly.`; break; case "a nice pony outfit": case "a slutty pony outfit": t += `${His} leather outfit totally conceals ${his} distended belly.`; break; case "a burkini": t += `${His} distended belly gently rounds ${his} burkini.`; break; case "a hijab and blouse": t += `${His} distended belly gently rounds ${his} blouse and skirt.`; break; case "a leotard": t += `${His} distended belly fills ${his} leotard.`; break; case "a chattel habit": t += `${His} distended belly shows under the strip of cloth on ${his} front.`; break; case "a bunny outfit": t += `${His} distended belly fills ${his} teddy.`; break; case "a toga": t += `${His} toga is so loose that you can barely notice ${his} growing belly.`; break; case "a huipil": t += `${His} distended belly can be seen from the sides of ${his} huipil.`; break; case "a courtesan dress": t += `${His} distended belly fills out ${his} dress.`; break; default: t += `${His} slightly rounded belly catches your eye.`; } } } } else { /* inflation descs */ if (slave.weight > 190) { t += App.Desc.belly(slave); t += ` `; switch (slave.clothes) { case "a Fuckdoll suit": t += `${His} massive gut is alluringly smooth under the tight suit.`; break; case "conservative clothing": t += `${His} conservative clothing stands no chance of stilling ${his} massive, jiggling gut.`; break; case "chains": t += `${His} massive gut jiggles lewdly around ${his} tight chains.`; break; case "a slutty qipao": t += `The front of ${his} qipao rests atop ${his} massive gut.`; break; case "uncomfortable straps": t += `${His} massive gut jiggles lewdly around ${his} tight straps.`; break; case "shibari ropes": t += `${His} massive gut jiggles lewdly around ${his} tight cords.`; break; case "a latex catsuit": case "restrictive latex": t += `${His} massive gut resembles a large beachball under ${his} tight latex.`; break; case "a nice nurse outfit": t += `${His} scrub top jiggles along with ${his} massive gut as ${he} moves.`; break; case "a mini dress": t += `${His} tearing minidress shows every jiggle in ${his} massive gut as ${he} moves.`; break; case "a monokini": t += `${His} massive gut spills out from the top of ${his} monokini as ${he} moves.`; break; case "overalls": if (slave.boobs > (slave.belly+250)) { t += `${slave.slaveName}'s enormous breasts push out ${his} overalls so far that ${his} massively fat belly is left mostly uncovered.`; } else { t += `${slave.slaveName}'s massively fat belly spills out over the sides of ${his} overalls.`; } break; case "an apron": t += `${His} apron rests upon ${his} massive gut, which jiggles as ${he} moves.`; break; case "a cybersuit": t += `The taut material of ${his} bodysuit shows every jiggle in ${his} massive gut as ${he} moves.`; break; case "a tight Imperial bodysuit": t += `${His} cybernetic bodysuit is lewdly stretched out by ${his} massive gut, jiggling as ${he} moves.`; break; case "a nice maid outfit": t += `As ${he} moves, barely any jiggling can be seen within ${his} straining maid's dress.`; break; case "a penitent nuns habit": t += `${His} habit does nothing to stop ${his} massive gut from jiggling against the coarse cloth as ${he} moves.`; break; case "clubslut netting": t += `${His} clubslut netting jiggles lewdly along with ${his} massive gut as ${he} moves. Every so often, another section gives out allowing a roll of fat to spring free; it's quite entertaining to watch.`; break; case "a cheerleader outfit": t += `${His} massive gut jiggles its own cheer with ${his} every motion.`; break; case "a slave gown": t += `${His} massive jiggly gut is gently caressed by ${his} gown.`; break; case "harem gauze": t += `${His} silken garb and massive, jiggly gut makes ${him} look like a belly dancer.`; break; case "a comfortable bodysuit": t += `The taut material of ${his} bodysuit shows every jiggle in ${his} massive gut as ${he} moves.`; break; case "a schoolgirl outfit": t += `The school blimp is jiggling by and ripe for abuse with ${his} ill-fitting clothes.`; break; case "a kimono": t += `${His} massive gut threatens to pop out of ${his} kimono with every motion.`; break; case "a hijab and abaya": case "a niqab and abaya": t += `${His} massive gut has no room left to move within ${his} overstuffed abaya.`; break; case "a klan robe": t += `${His} massive gut has no room left to move within ${his} overstuffed robe.`; break; case "a burqa": t += `${His} massive gut has no room left to move within ${his} overstuffed burqa.`; break; case "a bra": case "a skimpy loincloth": case "a slutty klan robe": case "a sports bra": case "a striped bra": case "a thong": case "a tube top": case "a tube top and thong": case "boyshorts": case "cutoffs": case "jeans": case "leather pants": case "leather pants and a tube top": case "leather pants and pasties": case "panties": case "panties and pasties": case "pasties": case "sport shorts": case "sport shorts and a sports bra": case "striped underwear": t += `${His} massive jiggling gut is totally bare.`; break; case "a button-up shirt and panties": case "a button-up shirt": case "a police uniform": case "a t-shirt": case "a t-shirt and jeans": case "a t-shirt and panties": case "a t-shirt and thong": case "an oversized t-shirt": case "an oversized t-shirt and boyshorts": case "sport shorts and a t-shirt": t += `The taut material of ${his} shirt shows every jiggle in ${his} massive gut as ${he} moves.`; break; case "a tank-top": case "a tank-top and panties": t += `The taut material of ${his} tank-top shows every jiggle in ${his} massive gut as ${he} moves.`; break; case "a sweater": case "a sweater and panties": case "a sweater and cutoffs": t += `The taut material of ${his} sweater shows every jiggle in ${his} massive gut as ${he} moves.`; break; case "a gothic lolita dress": t += `The taut material of ${his} dress shows every jiggle in ${his} massive gut as ${he} moves.`; break; case "a hanbok": t += `The taut material of ${his} hanbok shows every jiggle in ${his} massive gut as ${he} moves.`; break; case "a one-piece swimsuit": t += `The taut material of ${his} swimsuit shows every jiggle in ${his} massive gut as ${he} moves.`; break; case "a nice pony outfit": case "a slutty pony outfit": t += `The taut material of ${his} leather outfit shows every jiggle in ${his} massive gut as ${he} moves.`; break; case "a burkini": t += `${His} burkini clings to the folds and rolls of ${his} massive gut.`; break; case "a hijab and blouse": t += `${His} massive gut spills out over the top of ${his} skirt.`; break; case "a halter top dress": t += `${His} strained halter top dress shows every jiggle in ${his} massive gut as ${he} moves. Every little motion threatens to burst ${his} seams and free the soft mass to the world.`; break; case "a ball gown": t += `Your gaze is drawn to ${his} massive gut by ${his} fabulous silken ball gown. Every little motion has a chance for it to pop out and jiggle free for all to see clearly.`; break; case "a leotard": t += `The taut material of ${his} leotard shows every jiggle in ${his} massive gut as ${he} moves. A pair of small ridges adorn ${his} sides where they have managed to push through the leotard's failing seams.`; break; case "a bunny outfit": t += `${He} is a sight in ${his} bunny outfit. The front of ${his} massive gut is held still by ${his} overworked teddy, but everything else of it jiggles obscenely with ${his} every motion.`; break; case "attractive lingerie for a pregnant woman": t += `${His} massive gut is gently framed by ${his} silken vest.`; break; case "a maternity dress": t += `${His} once loose dress bulges with ${his} massive gut.`; break; case "a courtesan dress": t += `${His} massive gut jiggles beneath the thin cloth as ${he} moves.`; break; default: t += `${His} massive bare jiggling gut catches your eye.`; } } else if (slave.inflation === 3) { t += `${App.Desc.bellyInflation(slave)} `; t += `${App.Desc.mods(slave, "belly")} `; switch (slave.clothes) { case "a Fuckdoll suit": t += `${His} suit is expressly designed to encourage use of ${his} holes.`; break; case "conservative clothing": t += `${His} taut blouse shows off ${his} taut, sloshing belly.`; break; case "attractive lingerie for a pregnant woman": t += `${His} taut, sloshing belly is gently framed by ${his} silken vest.`; break; case "a maternity dress": t += `${His} loose dress is completely filled by ${his} taut, sloshing belly.`; break; case "chains": t += `${His} taut, sloshing belly bulges between ${his} tight chains.`; break; case "a slutty qipao": t += `The front of ${his} qipao rests atop ${his} taut, sloshing belly.`; break; case "uncomfortable straps": t += `A steel ring rests around ${his} navel, held in place by tight straps. ${His} taut, sloshing belly bulges around them.`; break; case "shibari ropes": t += `${His} taut, sloshing belly bulges out from between ${his} ropes.`; break; case "a latex catsuit": case "restrictive latex": t += `${His} taut, sloshing belly looks like a large beach ball under ${his} tight latex; ${his} popped navel breaks the smoothness.`; break; case "a military uniform": t += `${His} taut, sloshing belly threatens to pop the buttons off ${his} tunic. ${His} belly bulges out between them.`; break; case "a schutzstaffel uniform": t += `${His} taut, sloshing belly threatens to pop the buttons off ${his} tunic. ${His} belly bulges out between them.`; break; case "a slutty schutzstaffel uniform": t += `${His} taut, sloshing belly threatens to pop the buttons off ${his} tunic. ${His} belly bulges out between them.`; break; case "a red army uniform": t += `${His} taut, sloshing belly threatens to pop the buttons off ${his} tunic. ${His} belly bulges out between them.`; break; case "a long qipao": t += `${His} dress is completely filled by ${his} taut, sloshing belly.`; break; case "battlearmor": t += `${His} taut, sloshing belly is tightly framed by ${his} armor.`; break; case "Imperial Plate": t += `${His} ultra-heavy armor is slightly swollen by ${his} taut, sloshing belly.`; break; case "a mounty outfit": t += `${His} taut, sloshing belly threatens to pop the buttons off ${his} tunic. ${His} belly bulges out between them.`; break; case "a dirndl": t += `${His} loose dress is completely filled by ${his} taut, sloshing belly.`; break; case "lederhosen": t += `${His} taut, sloshing belly threatens to pop the buttons off ${his} shorts. ${His} belly bulges out above them.`; break; case "a biyelgee costume": t += `${His} loose dress is completely filled by ${his} taut, sloshing belly.`; break; case "a nice nurse outfit": t += `${His} taut, sloshing belly strains against ${his} scrub top, making ${him} resemble more a maternity ward patient than a nurse.`; break; case "a mini dress": t += `${His} taut, sloshing belly threatens to tear apart ${his} mini dress.`; break; case "a slutty maid outfit": t += `${His} taut, sloshing belly is partially covered by a thin white blouse.`; break; case "a nice maid outfit": t += `${His} taut, sloshing belly threatens to tear ${his} maid outfit open; ${his} popped navel is visible under ${his} apron.`; break; case "a penitent nuns habit": t += `${His} taut, sloshing belly bulges ${his} habit; it looks absolutely sinful.`; break; case "clubslut netting": t += `${His} taut, sloshing belly threatens to tear apart ${his} clubslut netting. ${His} belly bulges obscenely through the mesh.`; break; case "a cheerleader outfit": t += `${His} taut, sloshing belly is partly covered by ${his} cheerleader's top.`; break; case "a halter top dress": t += `${His} taut, sloshing belly fills out ${his} halter top dress, the seams straining to contain it. ${His} belly bulges between the gaps.`; break; case "a ball gown": t += `Your gaze is drawn to ${his} taut, sloshing belly by ${his} fabulous silken ball gown.`; break; case "a slave gown": t += `${His} taut, sloshing belly is gently caressed by ${his} gown.`; break; case "nice business attire": t += `${His} taut, sloshing belly threatens to pop the buttons off ${his} jacket. ${His} belly bulges between the buttons.`; break; case "harem gauze": t += `${His} silken garb and taut, sloshing belly makes ${him} look like a belly dancer. That'd be a show.`; break; case "a comfortable bodysuit": t += `${His} taut, sloshing belly lewdly fills ${his} bodysuit. The form fitting material jiggling obscenely with ${his} body's contents.`; break; case "a schoolgirl outfit": t += `${His} taut, sloshing belly is only partly covered by ${his} blouse.`; break; case "a kimono": t += `${His} kimono demurely covers the sides of ${his} taut, sloshing belly.`; break; case "a monokini": t += `${His} monokini fails to fully cover ${his} taut, sloshing belly.`; break; case "overalls": if (slave.boobs > (slave.belly+250)) { t += `${slave.slaveName}'s massive breasts push out ${his} overalls so far that ${his} hugely swollen belly is left almost entirely uncovered.`; } else { t += `${slave.slaveName}'s hugely swollen belly stretches out the fabric of ${his} overalls.`; } break; case "an apron": t += `${His} apron struggles to wrap around ${his} taut, sloshing belly.`; break; case "a cybersuit": t += `${His} taut, sloshing belly lewdly stretches ${his} bodysuit. The form fitting material jiggling obscenely with ${his} body's contents.`; break; case "a tight Imperial bodysuit": t += `${His} cybernetic bodysuit is lewdly stretched out by ${his} taut, sloshing belly, jiggling obscenely with ${his} body's content as ${he} moves.`; break; case "a hijab and abaya": case "a niqab and abaya": t += `${His} taut, sloshing belly tents ${his} abaya.`; break; case "a klan robe": t += `${His} taut, sloshing belly pushes against ${his} robe.`; break; case "a burqa": t += `${His} taut, sloshing belly pushes against ${his} burqa.`; break; case "a bra": case "a skimpy loincloth": case "a slutty klan robe": case "a sports bra": case "a striped bra": case "a thong": case "a tube top": case "a tube top and thong": case "boyshorts": case "cutoffs": case "jeans": case "leather pants": case "leather pants and a tube top": case "leather pants and pasties": case "panties": case "panties and pasties": case "pasties": case "sport shorts": case "sport shorts and a sports bra": case "striped underwear": t += `${His} taut sloshing belly is totally bare.`; break; case "a button-up shirt and panties": case "a button-up shirt": case "a police uniform": case "a t-shirt": case "a t-shirt and jeans": case "a t-shirt and panties": case "a t-shirt and thong": case "an oversized t-shirt": case "an oversized t-shirt and boyshorts": case "sport shorts and a t-shirt": t += `${His} taut, sloshing belly pushes against ${his} shirt.`; break; case "a tank-top": case "a tank-top and panties": t += `${His} taut, sloshing belly pushes against ${his} tank-top.`; break; case "a sweater": case "a sweater and panties": case "a sweater and cutoffs": t += `${His} taut, sloshing belly pushes against ${his} sweater.`; break; case "a gothic lolita dress": t += `${His} taut, sloshing belly pushes against ${his} dress.`; break; case "a hanbok": t += `${His} taut, sloshing belly pushes against ${his} hanbok.`; break; case "a one-piece swimsuit": t += `${His} taut, sloshing belly pushes against ${his} swimsuit.`; break; case "a nice pony outfit": case "a slutty pony outfit": t += `${His} taut, sloshing belly pushes against ${his} leather outfit.`; break; case "a burkini": t += `${His} burkini strains to cover ${his} taut, sloshing belly.`; break; case "a hijab and blouse": t += `${His} light shirts are significantly stretched out to cover ${his} taut, sloshing belly.`; break; case "a leotard": t += `${His} taut, sloshing belly lewdly stretches ${his} leotard. The form fitting material jiggling obscenely with ${his} body's contents.`; break; case "a chattel habit": t += `${His} taut, sloshing belly shoves the strip of cloth on ${his} front to ${his} side.`; break; case "a bunny outfit": t += `${His} taut, sloshing belly is threatening to tear ${his} teddy, the seams along the side are already splitting. ${His} belly is bulging out the gaps.`; break; case "a toga": t += `${His} loose fitted toga leaves plenty of space for ${his} taut, sloshing belly.`; break; case "a huipil": t += `${His} taut, sloshing belly is so huge that the huipil doesn't even come close to covering it.`; break; case "a courtesan dress": t += `${His} taut, sloshing belly fills out ${his} dress.`; break; default: t += `${His} bare, taut, sloshing belly catches your eye.`; } } else if (slave.weight > 160) { t += App.Desc.belly(slave); t += ` `; switch (slave.clothes) { case "a Fuckdoll suit": t += `${His} giant gut is alluringly smooth under the tight suit.`; break; case "conservative clothing": t += `${His} conservative clothing stands no chance of stilling ${his} giant, jiggling gut.`; break; case "chains": t += `${His} giant gut jiggles lewdly around ${his} tight chains.`; break; case "a slutty qipao": t += `The front of ${his} qipao rests atop ${his} giant gut.`; break; case "uncomfortable straps": t += `${His} giant gut jiggles lewdly around ${his} tight straps.`; break; case "shibari ropes": t += `${His} giant gut jiggles lewdly around ${his} tight cords.`; break; case "a latex catsuit": case "restrictive latex": t += `${His} giant gut resembles a beachball under ${his} tight latex.`; break; case "a military uniform": t += `The buttons on ${his} staining jacket threaten to pop off with every motion of ${his} giant jiggling gut.`; break; case "a schutzstaffel uniform": t += `The buttons on ${his} staining jacket threaten to pop off with every motion of ${his} giant jiggling gut.`; break; case "a slutty schutzstaffel uniform": t += `The buttons on ${his} staining jacket threaten to pop off with every motion of ${his} giant jiggling gut.`; break; case "a red army uniform": t += `The buttons on ${his} staining jacket threaten to pop off with every motion of ${his} giant jiggling gut.`; break; case "a long qipao": t += `${His} dress is completely filled by ${his} giant jiggling gut.`; break; case "battlearmor": t += `${His} giant jiggling gut is tightly framed by ${his} armor.`; break; case "Imperial Plate": t += `${His} ultra-heavy armor is tightly framed by ${his} taut, sloshing belly.`; break; case "a mounty outfit": t += `${His} giant jiggling gut threatens to pop the buttons off ${his} tunic. ${His} belly bulges out between them.`; break; case "a dirndl": t += `${His} loose dress is completely filled by ${his} giant jiggling gut.`; break; case "lederhosen": t += `${His} giant jiggling gut threatens to pop the buttons off ${his} shorts. ${His} belly bulges out above them.`; break; case "a biyelgee costume": t += `${His} loose dress is completely filled by ${his} giant jiggling gut.`; break; case "a nice nurse outfit": t += `${His} scrub top jiggles along with ${his} giant gut as ${he} moves.`; break; case "a mini dress": t += `${His} strained minidress shows every jiggle in ${his} giant gut as ${he} moves.`; break; case "a monokini": t += `${His} giant gut causes ${his} monokini to jiggle alongside it as ${he} moves.`; break; case "overalls": if (slave.boobs > (slave.belly+250)) { t += `${slave.slaveName}'s giant breasts push out ${his} overalls so far that ${his} hugely fat belly is left uncovered.`; } else { t += `${slave.slaveName}'s hugely fat belly bulges over the sides of ${his} overalls.`; } break; case "an apron": t += `${His} apron offers no cover to the jiggles of ${his} giant gut as ${he} moves.`; break; case "a cybersuit": t += `The taut material of ${his} bodysuit shows every jiggle in ${his} giant gut as ${he} moves.`; break; case "a tight Imperial bodysuit": t += `${His} cybernetic bodysuit is lewdly stretched out by ${his} giant gut, jiggling as ${he} moves.`; break; case "a nice maid outfit": t += `As ${he} moves, noticeable jiggling can be seen within ${his} maid's dress.`; break; case "a penitent nuns habit": t += `${His} habit does nothing to stop ${his} giant gut from jiggling against the coarse cloth as ${he} moves.`; break; case "clubslut netting": t += `${His} clubslut netting jiggles lewdly along with ${his} giant gut as ${he} moves.`; break; case "a cheerleader outfit": t += `${His} giant gut is partially covered by ${his} cheerleader's top, which happily jiggles along with every motion.`; break; case "a slave gown": t += `${His} giant jiggly gut is gently caressed by ${his} gown.`; break; case "nice business attire": t += `${His} giant gut has no room to move under ${his} strained jacket.`; break; case "harem gauze": t += `${His} silken garb and giant, jiggly gut makes ${him} look like a belly dancer.`; break; case "a comfortable bodysuit": t += `The taut material of ${his} bodysuit shows every jiggle in ${his} giant gut as ${he} moves.`; break; case "a schoolgirl outfit": t += `The school fatty is jiggling by and ripe for abuse with ${his} ill-fitting clothes.`; break; case "a kimono": t += `Tons of jiggling can be seen through ${his} kimono whenever ${he} moves.`; break; case "a hijab and abaya": case "a niqab and abaya": t += `Tons of jiggling can be seen through ${his} abaya whenever ${he} moves.`; break; case "a klan robe": t += `Some jiggling can be seen through ${his} robe whenever ${he} moves.`; break; case "a burqa": t += `Some jiggling can be seen through ${his} burqa whenever ${he} moves.`; break; case "a bra": case "a skimpy loincloth": case "a slutty klan robe": case "a sports bra": case "a striped bra": case "a thong": case "a tube top": case "a tube top and thong": case "boyshorts": case "cutoffs": case "jeans": case "leather pants": case "leather pants and a tube top": case "leather pants and pasties": case "panties": case "panties and pasties": case "pasties": case "sport shorts": case "sport shorts and a sports bra": case "striped underwear": t += `${His} jiggling belly is totally bare.`; break; case "a button-up shirt and panties": case "a button-up shirt": case "a police uniform": case "a t-shirt": case "a t-shirt and jeans": case "a t-shirt and panties": case "a t-shirt and thong": case "an oversized t-shirt": case "an oversized t-shirt and boyshorts": case "sport shorts and a t-shirt": t += `Small amounts of jiggling flesh can be seen through ${his} shirt whenever ${he} moves.`; break; case "a tank-top": case "a tank-top and panties": t += `Small amounts of jiggling flesh can be seen through ${his} tank-top whenever ${he} moves.`; break; case "a sweater": case "a sweater and panties": case "a sweater and cutoffs": t += `Small amounts of jiggling flesh can be seen through ${his} sweater whenever ${he} moves.`; break; case "a gothic lolita dress": t += `Small amounts of jiggling flesh can be seen through ${his} dress whenever ${he} moves.`; break; case "a hanbok": t += `Small amounts of jiggling flesh can be seen through ${his} hanbok whenever ${he} moves.`; break; case "a one-piece swimsuit": t += `Small amounts of jiggling flesh can be seen through ${his} swimsuit whenever ${he} moves.`; break; case "a nice pony outfit": case "a slutty pony outfit": t += `Small amounts of jiggling flesh can be seen through ${his} leather outfit whenever ${he} moves.`; break; case "a burkini": t += `${His} burkini clings to the folds and rolls of ${his} giant, jiggling gut.`; break; case "a hijab and blouse": t += `${His} giant gut can be seen jiggling beneath ${his} skirt and blouse whenever ${he} moves.`; break; case "a halter top dress": t += `${His} stretched halter top dress shows every jiggle in ${his} giant gut as ${he} moves.`; break; case "a ball gown": t += `Your gaze is drawn to ${his} giant gut by ${his} fabulous silken ball gown.`; break; case "a leotard": t += `The taut material of ${his} leotard shows every jiggle in ${his} giant gut as ${he} moves.`; break; case "a chattel habit": t += `${His} giant gut jiggles around the strip of cloth down ${his} front as ${he} moves.`; break; case "a bunny outfit": t += `${He} is a sight in ${his} bunny outfit. ${His} teddy not only covers ${his} giant gut, but draws your gaze right to it, though it can't help but jiggle along with ${his} every motion.`; break; case "attractive lingerie for a pregnant woman": t += `${His} giant gut is gently framed by ${his} silken vest.`; break; case "a maternity dress": t += `${His} loose dress bulges with ${his} giant gut.`; break; case "a courtesan dress": t += `${His} many thick folds jiggle beneath the thin cloth with ${his} movements.`; break; default: t += `${His} giant bare jiggling gut catches your eye.`; } } else if (slave.weight > 130) { t += App.Desc.belly(slave); t += ` `; switch (slave.clothes) { case "a Fuckdoll suit": t += `${His} big gut is perfectly smoothed by the tight latex.`; break; case "conservative clothing": t += `${His} conservative clothing stands no chance of stilling ${his} big, jiggling gut.`; break; case "chains": t += `${His} big gut jiggles lewdly between ${his} tight chains.`; break; case "a huipil": t += `${His} huipil jiggles along with ${his} big gut.`; break; case "a slutty qipao": t += `The front of ${his} qipao rests atop ${his} big gut.`; break; case "uncomfortable straps": t += `${His} big gut jiggles lewdly between ${his} tight straps.`; break; case "shibari ropes": t += `${His} big gut jiggles lewdly between ${his} tight cords.`; break; case "a latex catsuit": case "restrictive latex": t += `${His} big gut has no room to move under ${his} tight latex.`; break; case "a military uniform": t += `The buttons on ${his} staining jacket struggle to hold back ${his} big jiggling gut.`; break; case "a schutzstaffel uniform": t += `The buttons on ${his} staining jacket struggle to hold back ${his} big jiggling gut.`; break; case "a red army uniform": t += `The buttons on ${his} staining jacket struggle to hold back ${his} big jiggling gut.`; break; case "a long qipao": t += `The front of ${his} qipao rests atop ${his} big gut.`; break; case "battlearmor": t += `${His} big gut has no room to move under ${his} tight armor.`; break; case "Imperial Plate": t += `${His} big gut pushes out the front of ${his} ultra-heavy armor.`; break; case "a mounty outfit": t += `The buttons on ${his} staining jacket struggle to hold back ${his} big jiggling gut.`; break; case "a dirndl": t += `The front of ${his} dirndl rests atop ${his} big gut.`; break; case "lederhosen": t += `The buttons on ${his} straining shorts struggle to hold back ${his} big jiggling gut.`; break; case "a biyelgee costume": t += `The front of ${his} costume rests atop ${his} big gut.`; break; case "a nice nurse outfit": t += `${His} scrub top jiggles along with ${his} big gut as ${he} moves.`; break; case "a mini dress": t += `${His} stretched minidress shows every jiggle in ${his} big gut as ${he} moves.`; break; case "a monokini": t += `${His} monokini struggles to stop ${his} big gut from jiggling as ${he} moves.`; break; case "an apron": t += `As ${he} moves, ${his} apron jostles just as ${his} big gut jiggles.`; break; case "a cybersuit": t += `The taut material of ${his} bodysuit shows every jiggle in ${his} big gut as ${he} moves.`; break; case "a tight Imperial bodysuit": t += `${His} cybernetic bodysuit is lewdly stretched out by ${his} big gut, jiggling as ${he} moves.`; break; case "a slutty maid outfit": t += `${His} big gut is barely covered by a thin white blouse that happily jiggles along with every motion.`; break; case "a nice maid outfit": t += `As ${he} moves, a slight jiggle can be seen within ${his} maid's dress.`; break; case "a penitent nuns habit": t += `${His} habit does nothing to stop ${his} big gut from jiggling against the coarse cloth as ${he} moves.`; break; case "clubslut netting": t += `${His} clubslut netting jiggles lewdly along with ${his} big gut as ${he} moves.`; break; case "a cheerleader outfit": t += `${His} big gut is partially covered by ${his} cheerleader's top, which happily jiggles along with every motion.`; break; case "a slave gown": t += `${His} big jiggly gut is gently caressed by ${his} gown.`; break; case "nice business attire": t += `Noticeable jiggling from ${his} big gut can be seen under ${his} jacket.`; break; case "harem gauze": t += `${His} silken garb and big, jiggly gut makes ${him} look like a belly dancer.`; break; case "a comfortable bodysuit": t += `The taut material of ${his} bodysuit shows every jiggle in ${his} big gut as ${he} moves.`; break; case "a schoolgirl outfit": t += `${His} big gut is partially covered by ${his} blouse, which happily jiggles along with every motion.`; break; case "a kimono": t += `Noticeable jiggling can be seen through ${his} kimono whenever ${he} moves.`; break; case "a hijab and abaya": case "a niqab and abaya": t += `Noticeable jiggling can be seen through ${his} abaya whenever ${he} moves.`; break; case "a klan robe": t += `A small amount of jiggling can be seen through ${his} robe whenever ${he} moves.`; break; case "a burqa": t += `A small amount of jiggling can be seen through ${his} burqa whenever ${he} moves.`; break; case "a bra": case "a skimpy loincloth": case "a slutty klan robe": case "a sports bra": case "a striped bra": case "a thong": case "a tube top": case "a tube top and thong": case "boyshorts": case "cutoffs": case "jeans": case "leather pants": case "leather pants and a tube top": case "leather pants and pasties": case "panties": case "panties and pasties": case "pasties": case "sport shorts": case "sport shorts and a sports bra": case "striped underwear": t += `${His} jiggling belly is totally bare.`; break; case "a button-up shirt and panties": case "a button-up shirt": case "a police uniform": case "a t-shirt": case "a t-shirt and jeans": case "a t-shirt and panties": case "a t-shirt and thong": case "an oversized t-shirt": case "an oversized t-shirt and boyshorts": case "sport shorts and a t-shirt": t += `Small amounts of jiggling flesh can be seen through ${his} shirt whenever ${he} moves.`; break; case "a tank-top": case "a tank-top and panties": t += `Small amounts of jiggling flesh can be seen through ${his} tank-top whenever ${he} moves.`; break; case "a sweater": case "a sweater and panties": case "a sweater and cutoffs": t += `Small amounts of jiggling flesh can be seen through ${his} sweater whenever ${he} moves.`; break; case "a gothic lolita dress": t += `Small amounts of jiggling flesh can be seen through ${his} dress whenever ${he} moves.`; break; case "a hanbok": t += `Small amounts of jiggling flesh can be seen through ${his} hanbok whenever ${he} moves.`; break; case "a one-piece swimsuit": t += `Small amounts of jiggling flesh can be seen through ${his} swimsuit whenever ${he} moves.`; break; case "a nice pony outfit": case "a slutty pony outfit": t += `Small amounts of jiggling flesh can be seen through ${his} leather outfit whenever ${he} moves.`; break; case "a burkini": t += `${His} burkini clings to the shape of ${his} big, jiggling gut.`; break; case "a hijab and blouse": t += `${His} big gut can often be seen jiggling beneath ${his} skirt and blouse when ${he} moves.`; break; case "a halter top dress": t += `${His} stretched halter top dress shows every jiggle in ${his} big gut as ${he} moves.`; break; case "a ball gown": t += `Your gaze is drawn to ${his} big gut by ${his} fabulous silken ball gown.`; break; case "a leotard": t += `The taut material of ${his} leotard shows every jiggle in ${his} big gut as ${he} moves.`; break; case "a bunny outfit": t += `${He} is a sight in ${his} bunny outfit. ${His} teddy not only controls ${his} big gut, but draws your gaze right to it.`; break; case "attractive lingerie for a pregnant woman": t += `${His} big gut is gently framed by ${his} silken vest.`; break; case "a maternity dress": t += `${His} loose dress bulges with ${his} big gut.`; break; case "overalls": if (slave.boobs > (slave.belly+250)) { t += `${slave.slaveName}'s giant breasts push out ${his} overalls so far that ${his} big fat belly is left uncovered.`; } else { t += `${slave.slaveName}'s big fat belly spills out from behind ${his} overalls.`; } break; case "a courtesan dress": t += `${His} many folds jiggle beneath the thin cloth with ${his} movements.`; break; default: t += `${His} big bare jiggling gut catches your eye.`; } } else if (slave.inflation === 2) { t += `${App.Desc.bellyInflation(slave)} `; t += `${App.Desc.mods(slave, "belly")} `; switch (slave.clothes) { case "a Fuckdoll suit": t += `${His} suit is expressly designed to encourage use of ${his} holes.`; break; case "conservative clothing": t += `${His} taut blouse shows off ${his} rounded, sloshing belly.`; break; case "chains": t += `${His} rounded, sloshing belly bulges between ${his} tight chains.`; break; case "a slutty qipao": t += `The front of ${his} qipao rests atop ${his} rounded, sloshing belly.`; break; case "uncomfortable straps": t += `A steel ring rests around ${his} navel, held in place by tight straps. ${His} rounded, sloshing belly bulges around them.`; break; case "attractive lingerie for a pregnant woman": t += `${His} rounded, sloshing belly is gently framed by ${his} silken vest.`; break; case "a maternity dress": t += `${His} loose dress is filled by ${his} rounded, sloshing belly.`; break; case "shibari ropes": t += `${His} rounded, sloshing belly bulges out from between ${his} ropes.`; break; case "a latex catsuit": case "restrictive latex": t += `${His} rounded, sloshing belly looks like a beach ball under ${his} tight latex; ${his} popped navel breaks the smoothness.`; break; case "a military uniform": t += `${His} rounded, sloshing belly strains the buttons on ${his} jacket. It bulges slightly between them.`; break; case "a schutzstaffel uniform": t += `${His} rounded, sloshing belly strains the buttons on ${his} jacket. It bulges slightly between them.`; break; case "a slutty schutzstaffel uniform": t += `${His} rounded, sloshing belly strains the buttons on ${his} jacket. It bulges slightly between them.`; break; case "a red army uniform": t += `${His} rounded, sloshing belly strains the buttons on ${his} jacket. It bulges slightly between them.`; break; case "a long qipao": t += `The front of ${his} qipao rests atop ${his} rounded, sloshing belly.`; break; case "battlearmor": t += `${His} rounded, sloshing belly bulges out from under ${his} armor.`; break; case "Imperial Plate": t += `${His} ultra-heavy armor is slightly swollen by ${his} rounded, sloshing belly.`; break; case "a mounty outfit": t += `${His} rounded, sloshing belly strains the buttons on ${his} jacket. It bulges slightly between them.`; break; case "a dirndl": t += `The front of ${his} dirndl rests atop ${his} rounded, sloshing belly.`; break; case "lederhosen": t += `${His} rounded, sloshing belly strains the buttons on ${his} shorts. It bulges slightly above them.`; break; case "a biyelgee costume": t += `The front of ${his} costume rests atop ${his} rounded, sloshing belly.`; break; case "a nice nurse outfit": t += `${His} rounded, sloshing belly strains against ${his} scrub top, making ${him} resemble more a maternity ward patient than a nurse.`; break; case "a mini dress": t += `${His} rounded, sloshing belly strains against ${his} mini dress.`; break; case "a slutty maid outfit": t += `${His} rounded, sloshing belly is partially covered by a thin white blouse.`; break; case "a nice maid outfit": t += `${His} rounded, sloshing belly strains ${his} maid outfit; ${his} popped navel is visible under ${his} apron.`; break; case "a penitent nuns habit": t += `${His} rounded, sloshing belly bulges ${his} habit; it looks absolutely sinful.`; break; case "clubslut netting": t += `${His} rounded, sloshing belly strains ${his} clubslut netting.`; break; case "a cheerleader outfit": t += `${His} rounded, sloshing belly is partly covered by ${his} cheerleader's top.`; break; case "a halter top dress": t += `${His} rounded, sloshing belly fills out ${his} halter top dress.`; break; case "a ball gown": t += `Your gaze is drawn to ${his} rounded, sloshing belly by ${his} fabulous silken ball gown.`; break; case "a slave gown": t += `${His} rounded, sloshing belly is gently caressed by ${his} gown.`; break; case "nice business attire": t += `${His} rounded, sloshing belly strains the buttons on ${his} jacket. It bulges slightly between them.`; break; case "harem gauze": t += `${His} silken garb and rounded, sloshing belly makes ${him} look like a belly dancer. That'd be a show.`; break; case "a comfortable bodysuit": t += `${His} rounded, sloshing belly fills ${his} bodysuit. Every movement of the liquid within ${him} is very visible.`; break; case "a schoolgirl outfit": t += `${His} rounded, sloshing belly is only partly covered by ${his} blouse.`; break; case "a kimono": t += `${His} kimono demurely covers ${his} rounded, sloshing belly.`; break; case "a monokini": t += `${His} monokini struggles to cover ${his} rounded, sloshing belly.`; break; case "overalls": if (slave.boobs > (slave.belly+250)) { t += `${slave.slaveName}'s huge breasts push out ${his} overalls so far that ${his} jiggling ${slave.inflationType}-filled belly is left uncovered.`; } else { t += `${slave.slaveName}'s overalls are significantly curved by ${his} jiggling ${slave.inflationType}-filled belly.`; } break; case "a cybersuit": t += `${His} rounded, sloshing belly fills ${his} bodysuit. Every movement of the liquid within ${him} is very visible.`; break; case "a tight Imperial bodysuit": t += `${His} cybernetic bodysuit is lewdly stretched out by ${his} rounded, sloshing belly.`; break; case "a hijab and abaya": case "a niqab and abaya": t += `${His} rounded, sloshing belly tents ${his} abaya.`; break; case "a klan robe": t += `${His} rounded, sloshing belly pushes against ${his} robe.`; break; case "a burqa": t += `${His} rounded, sloshing belly pushes against ${his} burqa.`; break; case "a bra": case "a skimpy loincloth": case "a slutty klan robe": case "a sports bra": case "a striped bra": case "a thong": case "a tube top": case "a tube top and thong": case "boyshorts": case "cutoffs": case "jeans": case "leather pants": case "leather pants and a tube top": case "leather pants and pasties": case "panties": case "panties and pasties": case "pasties": case "sport shorts": case "sport shorts and a sports bra": case "striped underwear": t += `${His} rounded sloshing belly is totally bare.`; break; case "a button-up shirt and panties": case "a button-up shirt": case "a police uniform": case "a t-shirt": case "a t-shirt and jeans": case "a t-shirt and panties": case "a t-shirt and thong": case "an oversized t-shirt": case "an oversized t-shirt and boyshorts": case "sport shorts and a t-shirt": t += `${His} rounded, sloshing belly pushes against ${his} shirt.`; break; case "a tank-top": case "a tank-top and panties": t += `${His} rounded, sloshing belly pushes against ${his} tank-top.`; break; case "a sweater": case "a sweater and panties": case "a sweater and cutoffs": t += `${His} rounded, sloshing belly pushes against ${his} sweater.`; break; case "a gothic lolita dress": t += `${His} rounded, sloshing belly pushes against ${his} dress.`; break; case "a hanbok": t += `${His} rounded, sloshing belly pushes against ${his} hanbok.`; break; case "a one-piece swimsuit": t += `${His} rounded, sloshing belly pushes against ${his} swimsuit.`; break; case "a nice pony outfit": case "a slutty pony outfit": t += `${His} rounded, sloshing belly pushes against ${his} leather outfit.`; break; case "a burkini": t += `${His} burkini covers ${his} rounded, sloshing belly.`; break; case "a hijab and blouse": t += `${His} light shirts are stretched out to cover ${his} rounded, sloshing belly.`; break; case "a leotard": t += `${His} rounded, sloshing belly stretches ${his} leotard. Every movement of the liquid within ${him} is very visible.`; break; case "a chattel habit": t += `${His} rounded, sloshing belly shoves the strip of cloth on ${his} front to ${his} side.`; break; case "a bunny outfit": t += `${His} rounded, sloshing belly is strains ${his} teddy, the seams along the side are showing signs of wear.`; break; case "a toga": t += `${His} loose fitted toga leaves plenty of space for ${his} rounded, sloshing belly.`; break; case "a huipil": t += `${His} rounded, sloshing belly is so big that the huipil can barely cover it.`; break; case "a courtesan dress": t += `${His} rounded, sloshing belly wobbles gracefully along with ${his} movements.`; break; default: t += `${His} bare, rounded, sloshing belly catches your eye.`; } } else if (slave.weight >= 95) { t += App.Desc.belly(slave); t += ` `; switch (slave.clothes) { case "a Fuckdoll suit": t += `${His} suit is expressly designed to encourage use of ${his} holes.`; break; case "conservative clothing": t += `${His} taut blouse shows every jiggle in ${his} fat gut as ${he} moves.`; break; case "chains": t += `${His} fat gut jiggles lewdly between ${his} tight chains.`; break; case "a slutty qipao": t += `The front of ${his} qipao rests atop, and jiggles with, ${his} fat gut as ${he} moves.`; break; case "uncomfortable straps": t += `${His} fat gut jiggles lewdly between ${his} tight straps.`; break; case "shibari ropes": t += `${His} fat gut jiggles lewdly between the binding ropes.`; break; case "a latex catsuit": case "restrictive latex": t += `${His} fat gut barely has any room to move under ${his} tight latex.`; break; case "a military uniform": t += `The buttons on ${his} staining jacket can barely hold back ${his} fat, jiggling gut.`; break; case "a schutzstaffel uniform": t += `The buttons on ${his} staining jacket can barely hold back ${his} fat, jiggling gut.`; break; case "a slutty schutzstaffel uniform": t += `The buttons on ${his} staining jacket can barely hold back ${his} fat, jiggling gut.`; break; case "a red army uniform": t += `The buttons on ${his} staining jacket can barely hold back ${his} fat, jiggling gut.`; break; case "a long qipao": t += `The front of ${his} qipao rests atop, and jiggles with, ${his} fat gut as ${he} moves.`; break; case "battlearmor": t += `${His} armor can barely hold back ${his} fat, jiggling gut.`; break; case "Imperial Plate": t += `Even ${his} ultra-heavy armor struggles to constrain the obvious swell of ${his} fat, jiggling gut.`; break; case "a mounty outfit": t += `The buttons on ${his} staining jacket can barely hold back ${his} fat, jiggling gut.`; break; case "a dirndl": t += `The front of ${his} dirndl rests atop, and jiggles with, ${his} fat gut as ${he} moves.`; break; case "lederhosen": t += `The buttons on ${his} straining shorts can barely hold back ${his} fat, jiggling gut.`; break; case "a biyelgee costume": t += `The front of ${his} costume rests atop, and jiggles with, ${his} fat gut as ${he} moves.`; break; case "a nice nurse outfit": t += `${His} scrub top jiggles along with ${his} fat gut as ${he} moves.`; break; case "a mini dress": t += `${His} stretched minidress shows every jiggle in ${his} fat gut as ${he} moves.`; break; case "a monokini": t += `${His} fat gut bulges out ${his} monokini, which stops ${him} from jiggling as ${he} moves.`; break; case "overalls": if (slave.boobs > (slave.belly+250)) { t += `${slave.slaveName}'s large breasts push out ${his} overalls so far that ${his} fat belly is left uncovered.`; } else { t += `${slave.slaveName}'s fat belly bulges out from over the sides of ${his} overalls.`; } break; case "an apron": t += `${His} apron provides some covering to the jiggling of ${his} fat gut.`; break; case "a cybersuit": t += `The taut material of ${his} bodysuit shows every jiggle in ${his} fat gut as ${he} moves.`; break; case "a tight Imperial bodysuit": t += `${His} cybernetic bodysuit is lewdly stretched out by ${his} fat gut, jiggling as ${he} moves.`; break; case "a slutty maid outfit": t += `${His} fat gut is partially covered by a thin white blouse, that happily jiggles along with every motion.`; break; case "a nice maid outfit": t += `As ${he} moves, a slight jiggle can be seen within ${his} maid's dress.`; break; case "a penitent nuns habit": t += `${His} habit does nothing to stop ${his} fat gut from jiggling against the coarse cloth as ${he} moves.`; break; case "clubslut netting": t += `${His} clubslut netting jiggles lewdly along with ${his} fat gut as ${he} moves.`; break; case "a cheerleader outfit": t += `${His} fat gut is partially covered by ${his} cheerleader's top, which happily jiggles along with every motion.`; break; case "a halter top dress": t += `${His} stretched halter top dress shows every jiggle in ${his} fat gut as ${he} moves.`; break; case "a ball gown": t += `Your gaze is drawn to ${his} fat gut by ${his} fabulous silken ball gown.`; break; case "a slave gown": t += `${His} fat, jiggly gut is gently caressed by ${his} gown.`; break; case "nice business attire": t += `Slight jiggling from ${his} fat gut can be seen under ${his} jacket.`; break; case "harem gauze": t += `${His} silken garb and fat, jiggly gut makes ${him} look like a belly dancer.`; break; case "a comfortable bodysuit": t += `The taut material of ${his} bodysuit shows every jiggle in ${his} fat gut as ${he} moves.`; break; case "a schoolgirl outfit": t += `${His} fat gut is partially covered by ${his} blouse, which happily jiggles along with every motion.`; break; case "a kimono": t += `Slight jiggling can be seen through ${his} kimono whenever ${he} moves.`; break; case "a hijab and abaya": case "a niqab and abaya": t += `Slight jiggling can be seen through ${his} abaya whenever ${he} moves.`; break; case "a klan robe": t += `${His} robe hides the jiggling motion of ${his} fat gut.`; break; case "a burqa": t += `${His} burqa hides the jiggling motion of ${his} fat gut.`; break; case "a bra": case "a skimpy loincloth": case "a slutty klan robe": case "a sports bra": case "a striped bra": case "a thong": case "a tube top": case "a tube top and thong": case "boyshorts": case "cutoffs": case "jeans": case "leather pants": case "leather pants and a tube top": case "leather pants and pasties": case "panties": case "panties and pasties": case "pasties": case "sport shorts": case "sport shorts and a sports bra": case "striped underwear": t += `${His} fat gut jiggles freely.`; break; case "a button-up shirt and panties": case "a button-up shirt": case "a police uniform": case "a t-shirt": case "a t-shirt and jeans": case "a t-shirt and panties": case "a t-shirt and thong": case "an oversized t-shirt": case "an oversized t-shirt and boyshorts": case "sport shorts and a t-shirt": t += `${His} shirt somewhat hides the jiggling motion of ${his} fat gut.`; break; case "a tank-top": case "a tank-top and panties": t += `${His} tank-top barely hides the jiggling motion of ${his} fat gut.`; break; case "a sweater": case "a sweater and panties": case "a sweater and cutoffs": t += `${His} sweater somewhat hides the jiggling motion of ${his} fat gut.`; break; case "a gothic lolita dress": t += `${His} dress somewhat hides the jiggling motion of ${his} fat gut.`; break; case "a hanbok": t += `${His} hanbok somewhat hides the jiggling motion of ${his} fat gut.`; break; case "a one-piece swimsuit": t += `${His} swimsuit barely hides the jiggling motion of ${his} fat gut.`; break; case "a nice pony outfit": case "a slutty pony outfit": t += `${His} leather outfit somewhat hides the jiggling motion of ${his} fat gut.`; break; case "a burkini": t += `${His} burkini clings to the shape of ${his} fat gut.`; break; case "a hijab and blouse": t += `${His} modest skirt and blouse bulge from the size of ${his} fat gut.`; break; case "a leotard": t += `The taut material of ${his} leotard shows every jiggle in ${his} fat gut as ${he} moves.`; break; case "a chattel habit": t += `${His} fat gut jiggles around the strip of cloth down ${his} front as ${he} moves.`; break; case "a bunny outfit": t += `${He} is a sight in ${his} bunny outfit. The front of ${his} fat gut is held still by ${his} teddy, but everything else of it jiggles obscenely with ${his} every motion.`; break; case "a toga": t += `${His} toga swerves loosely from side to side as ${his} chubby body moves inside it.`; break; case "a huipil": t += `${His} lithe huipil can't hide ${his} voluptuous shape unless ${he} stands completely still.`; break; case "a courtesan dress": t += `${His} gut jiggles beneath the thin cloth of ${his} dress.`; break; default: t += `${His} bare, jiggling, fat gut catches your eye.`; } } else if (slave.inflation === 1) { t += `${App.Desc.bellyInflation(slave)} `; t += `${App.Desc.mods(slave, "belly")} `; switch (slave.clothes) { case "a Fuckdoll suit": t += `${His} suit is expressly designed to encourage use of ${his} holes.`; break; case "conservative clothing": t += `${His} blouse bulges with ${his} distended belly.`; break; case "chains": t += `${His} distended belly bulges between ${his} tight chains.`; break; case "a slutty qipao": t += `The front of ${his} qipao rests atop ${his} distended belly.`; break; case "uncomfortable straps": t += `A steel ring rests around ${his} navel, held in place by tight straps. ${His} distended belly bulges around them.`; break; case "shibari ropes": t += `${His} distended belly bulges out from between ${his} ropes.`; break; case "a latex catsuit": case "restrictive latex": t += `${His} distended belly bulges beneath ${his} tight latex.`; break; case "a military uniform": t += `${His} distended belly bulges ${his} uniform tunic.`; break; case "a schutzstaffel uniform": t += `${His} distended belly bulges ${his} uniform tunic.`; break; case "a slutty schutzstaffel uniform": t += `${His} distended belly bulges ${his} uniform tunic.`; break; case "a red army uniform": t += `${His} distended belly bulges ${his} uniform tunic.`; break; case "a long qipao": t += `The front of ${his} qipao rests atop ${his} distended belly.`; break; case "battlearmor": t += `${His} distended belly bulges ${his} armor.`; break; case "Imperial Plate": t += `${His} ultra-heavy armor is slightly swollen by ${his} distended belly.`; break; case "a mounty outfit": t += `${His} distended belly bulges ${his} uniform tunic.`; break; case "a dirndl": t += `The front of ${his} dirndl rests atop ${his} distended belly.`; break; case "lederhosen": t += `${His} distended belly bulges ${his} lederhosen.`; break; case "a biyelgee costume": t += `The front of ${his} costume rests atop ${his} distended belly.`; break; case "a nice nurse outfit": t += `${His} distended belly is clearly visible through ${his} scrub top.`; break; case "a mini dress": t += `${His} distended belly bulges ${his} tight mini dress.`; break; case "a slutty maid outfit": t += `${His} distended belly bulges ${his} thin white blouse.`; break; case "a nice maid outfit": t += `${His} distended belly is concealed by ${his} maid outfit.`; break; case "a penitent nuns habit": t += `${His} distended belly bulges ${his} habit.`; break; case "attractive lingerie for a pregnant woman": t += `${His} distended belly is gently framed by ${his} silken vest.`; break; case "a maternity dress": t += `${His} loose dress conceals ${his} distended belly.`; break; case "clubslut netting": t += `${His} distended belly fills out ${his} clubslut netting.`; break; case "a cheerleader outfit": t += `${His} distended belly peeks out from under ${his} cheerleader's top.`; break; case "a halter top dress": t += `${His} distended belly bulges ${his} halter top dress.`; break; case "a ball gown": t += `Your gaze is drawn to ${his} distended belly by ${his} fabulous silken ball gown.`; break; case "a slave gown": t += `${His} distended belly is gently caressed by ${his} gown.`; break; case "nice business attire": t += `${His} distended belly bulges ${his} suit jacket.`; break; case "harem gauze": t += `${His} silken garb and distended belly makes ${him} look like a belly dancer.`; break; case "a comfortable bodysuit": t += `${His} distended belly fills ${his} bodysuit.`; break; case "a schoolgirl outfit": t += `${His} distended belly peeks out from under ${his} blouse.`; break; case "a kimono": t += `${His} kimono demurely covers ${his} distended belly.`; break; case "a monokini": t += `${His} monokini manages to cover ${his} distended belly.`; break; case "overalls": if (slave.boobs > (slave.belly+250)) { t += `${slave.slaveName}'s large breasts push out ${his} overalls so far that ${his} ${slave.inflationType}-swollen belly is left uncovered.`; } else { t += `${slave.slaveName}'s ${slave.inflationType}-swollen belly rounds out the front of ${his} overalls.`; } break; case "a cybersuit": t += `${His} distended belly fills ${his} bodysuit.`; break; case "a tight Imperial bodysuit": t += `${His} cybernetic bodysuit is lewdly stretched out by ${his} distended belly.`; break; case "a hijab and abaya": case "a niqab and abaya": t += `${His} distended belly gently tents ${his} abaya.`; break; case "a klan robe": t += `${His} robe totally conceals ${his} distended belly.`; break; case "a burqa": t += `${His} burqa totally conceals ${his} distended belly.`; break; case "a bra": case "a skimpy loincloth": case "a slutty klan robe": case "a sports bra": case "a striped bra": case "a thong": case "a tube top": case "a tube top and thong": case "boyshorts": case "cutoffs": case "jeans": case "leather pants": case "leather pants and a tube top": case "leather pants and pasties": case "panties": case "panties and pasties": case "pasties": case "sport shorts": case "sport shorts and a sports bra": case "striped underwear": t += `${His} distended belly is totally bare.`; break; case "a button-up shirt and panties": case "a button-up shirt": case "a police uniform": case "a t-shirt": case "a t-shirt and jeans": case "a t-shirt and panties": case "a t-shirt and thong": case "an oversized t-shirt": case "an oversized t-shirt and boyshorts": case "sport shorts and a t-shirt": t += `${His} shirt totally conceals ${his} distended belly.`; break; case "a tank-top": case "a tank-top and panties": t += `${His} tank-top totally conceals ${his} distended belly.`; break; case "a sweater": case "a sweater and panties": case "a sweater and cutoffs": t += `${His} sweater totally conceals ${his} distended belly.`; break; case "a gothic lolita dress": t += `${His} dress totally conceals ${his} distended belly.`; break; case "a hanbok": t += `${His} hanbok totally conceals ${his} distended belly.`; break; case "a one-piece swimsuit": t += `${His} swimsuit totally conceals ${his} distended belly.`; break; case "a nice pony outfit": case "a slutty pony outfit": t += `${His} leather outfit totally conceals ${his} distended belly.`; break; case "a burkini": t += `${His} distended belly gently rounds ${his} burkini.`; break; case "a hijab and blouse": t += `${His} distended belly gently rounds ${his} blouse and skirt.`; break; case "a leotard": t += `${His} distended belly fills ${his} leotard.`; break; case "a chattel habit": t += `${His} distended belly shows under the strip of cloth on ${his} front.`; break; case "a bunny outfit": t += `${His} distended belly fills ${his} teddy.`; break; case "a toga": t += `${His} toga is so loose that you can barely notice ${his} distended belly.`; break; case "a huipil": t += `${His} distended belly can be seen from the sides of ${his} huipil.`; break; case "a courtesan dress": t += `${His} distended belly gently rounds ${his} dress.`; break; default: t += `${His} distended belly catches your eye.`; } } } return t; } /** Generate vagina text for a given slave * @param {App.Entity.SlaveState} slave * @returns {string} */ function vaginaWatch(slave) { const { he, him, his, hers, himself, boy, He, His } = getPronouns(slave); target = "FVagina"; // Desc dick and vag t += App.Desc.crotch(slave); t += ` `; t += App.Desc.vagina(slave); t += ` `; switch (slave.clothes) { case "a Fuckdoll suit": t += `${His} suit is expressly designed to encourage use of ${his} holes.`; break; case "uncomfortable straps": if ((slave.dick !== 0) && (slave.vagina !== -1)) { t += `A strap passes `; if (hasBothLegs(slave)) { t += `between ${his} legs, `; } else { t += `along ${his} perineum, `; } t += `and the big ring over ${his} hermaphroditic genitalia gleams from between them.`; } else if (slave.dick !== 0) { t += `A strap passes `; if (hasBothLegs(slave)) { t += `between ${his} legs, `; } else { t += `along ${his} perineum, `; } t += `and the ring around the base of ${his} cock gleams from between them.`; } else { t += `A strap passes `; if (hasBothLegs(slave)) { t += `between ${his} legs, `; } else { t += `along ${his} perineum, `; } t += `and the ring over ${his} pussy gleams from between them.`; } break; case "shibari ropes": t += `${His} ropes run tightly `; if (hasBothLegs(slave)) { t += `between ${his} legs, `; } else { t += `along ${his} perineum, `; } t += `pressing ${him} closely as ${he} moves.`; break; case "restrictive latex": if ((slave.dick !== 0) && (slave.vagina !== -1)) { t += `${His} cock and pussy stick out through a big hole in the latex.`; } else if (slave.dick !== 0) { t += `${His} cock sticks out through a hole in the latex.`; } else { t += `As one of the only islands in the sea of `; if (!(slave.clothingBaseColor)) { t += `black `; } t += `latex, ${his} pussy is eye-catching.`; } break; case "attractive lingerie for a pregnant woman": if ((slave.dick > 4) && (slave.balls > 3)) { t += `As ${he} moves, ${his} pretty panties totally fail to restrain ${his} huge cock and balls, which bounce around lewdly in mockery of ${his} lovely appearance.`; } else if (slave.dick > 4) { t += `As ${he} moves, ${his} pretty panties totally fail to restrain ${his} huge penis, which flops around lewdly in mockery of ${his} lovely appearance.`; } else if (slave.dick !== 0) { t += `As ${he} moves, ${his} pretty panties struggle to restrain ${his} penis.`; } else { t += `As ${he} moves, ${his} pretty panties daintily cover ${his} womanhood.`; } break; case "kitty lingerie": if (slave.dick > 5) { t += `As ${he} moves, ${his} huge penis bulges out from the top of ${his} panties.`; } else if (slave.dick > 3) { t += `As ${he} moves, ${his} large penis bulges within ${his} panties.`; } else if ((slave.dick > 0) && (slave.vagina !== -1)) { t += `As ${he} moves, ${his} silk panties daintily cover ${his} dual genitalia.`; } else if (slave.dick > 0) { t += `As ${he} moves, ${his} silk panties daintily cover ${his} penis.`; } else if (slave.dick !== -1) { t += `As ${he} moves, ${his} silk panties daintily cover ${his} womanhood.`; } else { t += `As ${he} moves, ${his} silk panties daintily cover ${his} void groin.`; } break; case "a maternity dress": if (slave.dick > 2) { t += `As ${he} moves, something occasionally tents the front of ${his} dress.`; } else { t += `${His} loose dress gives no hints to what's inside it.`; } break; case "stretch pants and a crop-top": if (slave.dick > 2) { t += `As ${he} moves, something occasionally tents the front of ${his} pants.`; } else { t += `${His} tight pants don't leave much to the imagination.`; } break; case "attractive lingerie": if ((slave.dick > 4) && (slave.balls > 3)) { t += `As ${he} moves, ${his} pretty g-string totally fails to restrain ${his} huge cock and balls, which bounce around lewdly in mockery of ${his} lovely appearance.`; } else if (slave.dick > 4) { t += `As ${he} moves, ${his} pretty g-string totally fails to restrain ${his} huge penis, which flops around lewdly in mockery of ${his} lovely appearance.`; } else if ((slave.dick !== 0) && (slave.vagina !== -1)) { t += `As ${he} moves, ${his} pretty g-string struggles to restrain ${his} hermaphroditic genitalia.`; } else if (slave.dick !== 0) { t += `As ${he} moves, ${his} pretty g-string struggles to restrain ${his} penis.`; } else { t += `As ${he} moves, ${his} pretty g-string daintily covers ${his} womanhood.`; } break; case "a slutty maid outfit": if ((slave.dick > 4) && (slave.balls > 3)) { t += `${His} apron is cut very short in front. ${His} cock and balls are so big that ${he} hangs out beyond the hem of ${his} apron.`; } else if (slave.dick > 4) { t += `${His} apron is cut very short in front. ${His} dick is so big that its lower half dangles out of ${his} clothing.`; } else if ((slave.dick !== 0) && (slave.vagina !== -1)) { t += `${His} apron is cut very short in front, revealing frequent glimpses of ${his} dangling cock, and occasional hints of something more.`; } else if (slave.dick !== 0) { t += `${His} apron is cut very short in front, revealing frequent glimpses of ${his} dangling cock.`; } else { t += `${His} apron is cut very short in front, revealing occasional glimpses of ${his} womanhood.`; } break; case "a nice maid outfit": if (slave.dick > 4) { t += `As ${he} moves, something massive bulges against the front of ${his} apron.`; } else if (slave.dick > 1) { t += `As ${he} moves, something presses against the front of ${his} apron.`; } else { t += `${His} apron gives no hint of what's behind it.`; } break; case "a hijab and abaya": case "a niqab and abaya": if ((slave.dick > 4) && (slave.vagina !== -1)) { t += `${His} hermaphroditic genitalia bulges the front of ${his} abaya as ${he} moves.`; } else if ((slave.dick !== 0) && (slave.vagina !== -1)) { t += `${His} hermaphroditic genitalia is totally concealed by ${his} abaya.`; } else if (slave.dick > 4) { t += `${His} penis bulges the front of ${his} abaya as ${he} moves.`; } else if (slave.dick !== 0) { t += `${His} penis is totally concealed by ${his} abaya.`; } else if (slave.vagina !== -1) { t += `${His} vagina is totally concealed by ${his} abaya.`; } else { t += `${His} featureless groin is totally concealed by ${his} abaya.`; } break; case "a klan robe": if ((slave.dick > 4) && (slave.vagina !== -1)) { t += `${His} hermaphroditic genitalia bulges the front of ${his} robe as ${he} moves.`; } else if ((slave.dick !== 0) && (slave.vagina !== -1)) { t += `${His} hermaphroditic genitalia is totally concealed by ${his} robe.`; } else if (slave.dick > 4) { t += `${His} penis bulges the front of ${his} robe as ${he} moves.`; } else if (slave.dick !== 0) { t += `${His} penis is totally concealed by ${his} robe.`; } else if (slave.vagina !== -1) { t += `${His} vagina is totally concealed by ${his} robe.`; } else { t += `${His} featureless groin is totally concealed by ${his} robe.`; } break; case "overalls": if ((slave.dick > 4) && (slave.vagina !== -1)) { t += `${His} hermaphroditic genitalia tents out the front of ${his} overalls as ${he} moves.`; } else if ((slave.dick !== 0) && (slave.vagina !== -1)) { t += `${His} hermaphroditic genitalia sometimes bulges ${his} overalls as ${he} moves.`; } else if (slave.dick > 4) { t += `${His} penis tents out the front of ${his} overalls as ${he} moves.`; } else if (slave.dick !== 0) { t += `${His} penis sometimes bulges ${his} overalls as ${he} moves.`; } else if (slave.vagina !== -1) { t += `${His} overalls fits snugly on ${his} pussylips.`; } else { t += `${His} overalls fits snugly on ${his} featureless groin.`; } break; case "a monokini": if ((slave.dick > 4) && (slave.vagina !== -1)) { t += `${His} hermaphroditic genitalia tents out the front of ${his} monokini as ${he} moves.`; } else if ((slave.dick !== 0) && (slave.vagina !== -1)) { t += `${His} hermaphroditic genitalia sometimes bulges ${his} monokini as ${he} moves.`; } else if (slave.dick > 4) { t += `${His} penis tents out the front of ${his} monokini as ${he} moves.`; } else if (slave.dick !== 0) { t += `${His} penis sometimes bulges ${his} monokini as ${he} moves.`; } else if (slave.vagina !== -1) { t += `${His} monokini clings to ${his} pussylips as ${he} moves.`; } else { t += `${His} monokini clings to ${his} featureless groin as ${he} moves.`; } break; case "an apron": if (slave.dick > 4) { t += `${His} dick sometimes creates a bulge in ${his} apron as ${he} moves.`; } else if ((slave.dick > 0) && (slave.vagina > -1)) { t += `${His} apron exposes ${his} hermaphroditic genitalia if ${he} moves too quickly.`; } else if (slave.dick > 0) { t += `${His} apron exposes ${his} cock if ${he} moves too quickly.`; } else if (slave.vagina > -1) { t += `${His} apron exposes ${his} featureless groin if ${he} moves too quickly.`; } else { t += `${His} apron exposes ${his} pussy if ${he} moves too quickly.`; } break; case "a cybersuit": if ((slave.dick > 4) && (slave.vagina !== -1)) { t += `${His} hermaphroditic genitalia tents out the front of ${his} bodysuit as ${he} moves.`; } else if ((slave.dick !== 0) && (slave.vagina !== -1)) { t += `${His} hermaphroditic genitalia sometimes bulges ${his} bodysuit as ${he} moves.`; } else if (slave.dick > 4) { t += `${His} penis tents out the front of ${his} bodysuit as ${he} moves.`; } else if (slave.dick !== 0) { t += `${His} penis sometimes bulges ${his} bodysuit as ${he} moves.`; } else if (slave.vagina !== -1) { t += `${His} bodysuit clings to ${his} pussylips as ${he} moves.`; } else { t += `${His} bodysuit clings to ${his} featureless crotch as ${he} moves.`; } break; case "a tight Imperial bodysuit": if ((slave.dick > 4) && (slave.vagina !== -1)) { t += `${His} hermaphroditic genitalia tents out the front of ${his} bodysuit as ${he} moves.`; } else if ((slave.dick !== 0) && (slave.vagina !== -1)) { t += `${His} hermaphroditic genitalia sometimes bulges ${his} bodysuit as ${he} moves.`; } else if (slave.dick > 4) { t += `${His} penis tents out the front of ${his} bodysuit as ${he} moves.`; } else if (slave.dick !== 0) { t += `${His} penis sometimes bulges ${his} bodysuit as ${he} moves.`; } else if (slave.vagina !== -1) { t += `${His} bodysuit clings to ${his} pussylips as ${he} moves.`; } else { t += `${His} bodysuit clings to ${his} featureless crotch as ${he} moves.`; } break; case "a string bikini": if ((slave.dick > 4) && (slave.vagina !== -1)) { t += `As ${he} moves, ${his} g-string totally fails to restrain ${his} hermaphroditic genitalia.`; } else if ((slave.dick !== 0) && (slave.vagina !== -1)) { t += `As ${he} moves, ${his} g-string struggles to restrain ${his} hermaphroditic genitalia.`; } else if ((slave.dick > 4) && (slave.balls > 3)) { t += `As ${he} moves, ${his} g-string totally fails to restrain ${his} huge penis, and occasionally gives ${his} huge scrotum a painful pinch.`; } else if (slave.dick > 4) { t += `As ${he} moves, ${his} g-string totally fails to restrain ${his} huge penis.`; } else if (slave.dick !== 0) { t += `As ${he} moves, ${his} pretty white g-string struggles to restrain ${his} penis, which adds to ${his} sluttiness as it escapes.`; } else { t += `As ${he} moves, ${his} g-string rides up between ${his} pussylips.`; } break; case "a scalemail bikini": if ((slave.dick > 4) && (slave.vagina !== -1)) { t += `As ${he} moves, ${his} scalemail bottom fails to conceal ${his} hermaphroditic genitalia.`; } else if (slave.dick > 4) { t += `As ${he} moves, ${his} scalemail bottom fails to conceal ${his} huge penis.`; } else if (slave.dick !== 0) { t += `As ${he} moves, ${his} scalemail bottom covers ${his} penis.`; } else { t += `As ${he} moves, ${his} scalemail bottom conceals all.`; } break; case "striped panties": if ((slave.dick > 4) && (slave.vagina !== -1)) { t += `As ${he} moves, ${his} cute panties fail to conceal ${his} hermaphroditic genitalia.`; } else if (slave.dick > 4) { t += `As ${he} moves, ${his} cute panties fail to conceal ${his} huge penis.`; } else if (slave.dick !== 0) { t += `As ${he} moves, ${his} cute panties cover ${his} penis.`; } else { t += `As ${he} moves, ${his} cute panties conceal all.`; } break; case "clubslut netting": if (slave.dick !== 0) { t += `As ${he} moves, ${his} bare cock flops around, sticking through its hole in ${his} netting.`; } else if (slave.vagina !== -1) { t += `As ${he} moves, ${his} bare pussy beckons from its hole in ${his} netting.`; } else { t += `As ${he} moves, ${his} netting displays ${his} featureless groin.`; } break; case "a cheerleader outfit": if (slave.dick !== 0) { t += `As ${he} moves, ${his} short pleated cheerleader skirt is bounced forward by something `; if (hasBothLegs(slave)) { t += `between ${his} legs.`; } else { t += `at ${his} crotch.`; } } else { t += `As ${he} moves, ${his} short pleated cheerleader skirt shows off ${his} butt.`; } break; case "cutoffs and a t-shirt": if ((slave.dick > 4) && (slave.balls > 3)) { t += `There's a huge bulge in the front of ${his} cutoffs.`; } else if (slave.dick > 1) { t += `There's a bulge in the front of ${his} cutoffs.`; } else { t += `${His} cutoffs conceal ${his} front enticingly.`; } break; case "spats and a tank top": if (slave.dick > 4) { t += `${His} spats have a large, attention-drawing bulge that looks uncomfortable as ${he} moves around.`; } else if (slave.dick > 1) { t += `Something bulges against the tight fit of ${his} spats as ${he} moves.`; } else { t += `${His} spats snugly fit to ${his} crotch as ${he} moves.`; } break; case "a slutty outfit": if ((slave.dick !== 0) && (slave.vagina !== -1)) { t += `For today's slutty outfit ${he}'s chosen ripped jean shorts whose holes tantalizingly hint that ${he}'s very unusual `; if (hasBothLegs(slave)) { t += `between the legs.`; } else { t += `down there.`; } } else if (slave.dick > 2) { t += `For today's slutty outfit ${he}'s chosen ripped jean shorts so brief that ${his} huge dick occasionally escapes and flops free.`; } else if (slave.dick !== 0) { t += `For today's slutty outfit ${he}'s chosen ripped jean shorts whose holes tantalizingly hint that ${he}'s got something other than a pussy `; if (hasBothLegs(slave)) { t += `between the legs.`; } else { t += `down there.`; } } else { t += `For today's slutty outfit ${he}'s chosen ripped jean shorts so tight that ${he} sports a raging cameltoe.`; } break; case "a slave gown": if (isAmputee(slave) && (slave.vagina !== -1)) { t += `${He}'s wearing a lovely 'dress' designed specifically for an amputee.`; } else if ((slave.dick !== 0) && (slave.vagina !== -1)) { t += `${His} gorgeous dress leaves little to the imagination; there's little doubt ${his} pussy is bare beneath it, and ${his} cock tents the fabric as ${he} moves.`; } else if (slave.dick !== 0) { t += `${His} gorgeous dress leaves little to the imagination; ${his} cock tents the fabric as ${he} moves.`; } else { t += `${His} gorgeous dress leaves little to the imagination; there's little doubt ${his} pussy is bare beneath it.`; } break; case "a halter top dress": if (isAmputee(slave) && (slave.vagina !== -1)) { t += `${He}'s wearing a 'beautiful halter top dress' designed specifically for an amputee.`; } else if ((slave.dick !== 0) && (slave.vagina !== -1)) { t += `${His} beautiful halter top dress is almost sculpted around ${him}, but ${his} cock tents the fabric as ${he} moves.`; } else if (slave.dick !== 0) { t += `${His} beautiful halter top dress is almost sculpted around ${him}; but ${his} cock tents the fabric as ${he} moves.`; } else { t += `${His} beautiful halter top dress is almost sculpted around ${him}.`; } break; case "a ball gown": if (isAmputee(slave) && (slave.vagina !== -1)) { t += `${He}'s wearing a 'fabulous silken ball gown' designed specifically for an amputee.`; } else if ((slave.dick !== 0) && (slave.vagina !== -1)) { t += `${His} fabulous silken ball gown is draped around ${him}, but ${his} cock tents the fabric as ${he} moves.`; } else if (slave.dick !== 0) { t += `${His} fabulous silken ball gown is draped around ${him}; but ${his} cock tents the fabric as ${he} moves.`; } else { t += `${His} fabulous silken ball gown is draped around ${him}.`; } break; case "slutty business attire": if (slave.dick > 4) { t += `As ${he} moves, something massive tents the front of ${his} short skirt.`; } else if (slave.dick > 1) { t += `As ${he} moves, something presses against the front of ${his} short skirt.`; } else { t += `${His} short skirt gives no hint of what's behind it.`; } break; case "a fallen nuns habit": if (slave.dick > 0) { t += `${His} slutty nun outfit leaves ${his} cock to swing sacrilegiously.`; } else { t += `${His} slutty nun outfit leaves ${his} pussy totally and sacrilegiously bare.`; } break; case "a chattel habit": t += `${His} chattel habit makes ${his} sexual status immediately and encouragingly obvious.`; break; case "a penitent nuns habit": if (slave.dick > 0) { t += `${He} moves with painful caution, desperately trying to keep ${his} coarse habit from chafing ${his} dick raw.`; } else { t += `${He} moves with painful caution, desperately trying to keep ${his} coarse habit from chafing ${his} pussy raw.`; } break; case "nice business attire": if (slave.dick > 4) { t += `As ${he} moves, something massive tents the front of ${his} skirt.`; } else if (slave.dick > 1) { t += `As ${he} moves, something presses against the front of ${his} skirt.`; } else { t += `Unusually, ${his} businesslike skirt gives no hint of what's behind it.`; } break; case "a slutty nurse outfit": t += `${His} tight skirt constantly threatens to ride up in front.`; break; case "a schoolgirl outfit": t += `${His} schoolgirl skirt is so short that it constantly threatens to ride up in front.`; break; case "a kimono": t += `${His} obi demurely covers ${his} front.`; break; case "a burqa": t += `${His} burqa billows slightly as ${he} moves.`; break; case "a bra": case "a button-up shirt": case "a sweater": case "a tank-top": case "a tube top": case "a striped bra": case "a sports bra": case "a t-shirt": case "an oversized t-shirt": t += `${His} clothing leaves ${his} genitals bare and visible.`; break; case "a button-up shirt and panties": case "a slutty klan robe": case "a sweater and panties": case "a tank-top and panties": case "an oversized t-shirt and boyshorts": case "a t-shirt and jeans": case "boyshorts": case "cutoffs": case "leather pants and pasties": case "leather pants": case "panties": case "sport shorts and a t-shirt": case "a t-shirt and panties": case "panties and pasties": case "striped underwear": case "sport shorts and a sports bra": case "jeans": case "a sweater and cutoffs": case "leather pants and a tube top": case "sport shorts": t += `${His} clothing clings to the outline of ${his} genitals.`; break; case "a gothic lolita dress": t += `${His} dress ends halfway down ${his} thighs.`; break; case "a hanbok": t += `${His} hanbok billows slightly as ${he} moves.`; break; case "a one-piece swimsuit": t += `${His} swimsuit clings to the outline of ${his} genitals.`; break; case "a police uniform": t += `${His} trousers cling to the outline of ${his} genitals.`; break; case "a nice pony outfit": case "a slutty pony outfit": t += `${His} leather outfit clings tightly to the outline of ${his} genitals.`; break; case "a skimpy loincloth": t += `${His} skimpy loincloth gives frequent glimpses of ${his} bare genitals underneath.`; break; case "a burkini": t += `${His} modest swimwear includes a tunic that ends halfway down ${his} thighs.`; break; case "a hijab and blouse": t += `${His} long skirt billows as ${he} moves.`; break; case "battledress": t += `${His} fatigue trousers are utilitarian and unflattering.`; break; case "a comfortable bodysuit": if (slave.dick !== 0) { t += `${His} bodysuit displays every `; if (V.showInches === 2) { t += `inch `; } else { t += `centimeter `; } t += `of ${his} member as ${he} moves.`; } else { t += `${His} bodysuit shows off ${his} womanhood as ${he} moves.`; } break; case "a leotard": if ((slave.dick > 0) && canAchieveErection(slave)) { t += `${He}'s got ${his} erection tucked vertically upward under the tight material of ${his} leotard.`; } else if (slave.dick > 0) { t += `The tight material of ${his} leotard hugs and minimizes the size of ${his} soft member as ${he} moves.`; } else { t += `The thin crotch piece of ${his} leotard occasionally threatens to ride up between ${his} pussylips as ${he} moves.`; } break; case "a bunny outfit": if ((slave.dick > 0) && canAchieveErection(slave)) { t += `${He}'s moving uncomfortably, as though ${his} teddy isn't tailored quite perfectly for what ${he}'s got going on in front.`; } else if (slave.dick > 0) { t += `${His} teddy is tailored well enough to minimize the fact that ${he} isn't a natural woman.`; } else { t += `As ${he} moves, the satin material of ${his} bunny outfit flashes just a hint of inviting pussy.`; } break; case "harem gauze": if ((slave.dick !== 0) && (slave.vagina !== -1)) { t += `${His} hermaphroditic genitals are clearly visible through the thin gauze that covers them.`; } else if (slave.dick !== 0) { t += `${His} dick is clearly visible through the thin gauze that covers it.`; } else { t += `${His} pussy is clearly visible through the thin gauze that covers it.`; } break; case "pasties": t += `${His} crotch pastie is eye-catching as it moves with ${him}.`; break; case "slutty jewelry": if ((slave.dick !== 0) && (slave.vagina !== -1)) { t += `${His} belt of light chain has a lewd bauble over ${his} stomach; its weight pulls it down towards ${his} hermaphroditic genitalia with each step.`; } else if (slave.dick !== 0) { t += `${His} belt of light chain has a lewd bauble over ${his} stomach; its weight pulls it down towards the base of ${his} penis with each step.`; } else { t += `${His} belt of light chain has a lewd bauble over ${his} stomach; its weight pulls it down towards ${his} mons with each step.`; } break; case "a t-shirt and thong": case "a thong": case "a tube top and thong": t += `You get a good view of ${his} `; if (slave.dick > 5) { t += `thong and the huge penis hanging out of it.`; } else if (slave.dick > 3) { t += `thong and the penis that escaped its confines.`; } else if (slave.dick !== 0) { t += `bulging thong as ${he} moves.`; } else { t += `thong as ${he} moves.`; } break; case "a bimbo outfit": t += `${His} miniskirt is so short it draws the eye right to ${his} `; if (slave.dick > 5) { t += `thong and the huge penis hanging out of it.`; } else if (slave.dick > 3) { t += `thong and the penis that escaped its confines.`; } else if (slave.dick !== 0) { t += `bulging thong.`; } else { t += `exposed thong.`; } break; case "a courtesan dress": t += `${He} is just begging to be splayed out so that ${his} skirt may 'bloom'.`; break; default: if (slave.chastityVagina) { t += `${His} chastity belt protects ${him} from vanilla intercourse.`; } else if ((slave.dick !== 0) && (slave.vagina !== -1)) { t += `You get a good view of ${his} cock and pussy: a marvel of modern surgery.`; } else if (slave.dick !== 0) { t += `You get a good view of ${his} cock.`; } else { t += `You get a good view of ${his} pussy.`; } } if ((slave.vaginalAccessory === "long dildo") || (slave.vaginalAccessory === "long, large dildo") || (slave.vaginalAccessory === "long, huge dildo")) { t += `With every motion ${he} makes, ${his} dildo shifts, bulging out ${his} stomach.`; if ((slave.buttplug === "long plug") || (slave.buttplug === "long, large plug") || (slave.buttplug === "long, huge plug")) { t += `Beside it, a second bulge caused by ${his} extra long buttplug.`; } } else if ((slave.buttplug === "long plug") || (slave.buttplug === "long, large plug") || (slave.buttplug === "long, huge plug")) { t += `With every motion ${he} makes, ${his} buttplug shifts, bulging out ${his} stomach.`; } return t; } /** Generate dick text for a given slave * @param {App.Entity.SlaveState} slave * @returns {string} */ function dickWatch(slave) { const { he, him, his, hers, himself, boy, He, His } = getPronouns(slave); target = "FDick"; // Desc dick and vag t += App.Desc.crotch(slave); t += ` `; t += App.Desc.dick(slave); t += ` `; switch (slave.clothes) { case "a Fuckdoll suit": t += `${His} suit is expressly designed to encourage use of ${his} holes.`; break; case "uncomfortable straps": if ((slave.dick !== 0) && (slave.vagina !== -1)) { t += `A strap passes `; if (hasBothLegs(slave)) { t += `between ${his} legs, `; } else { t += `along ${his} perineum, `; } t += `and the big ring over ${his} hermaphroditic genitalia gleams from between them.`; } else if (slave.dick !== 0) { t += `A strap passes `; if (hasBothLegs(slave)) { t += `between ${his} legs, `; } else { t += `along ${his} perineum, `; } t += `and the ring around the base of ${his} cock gleams from between them.`; } else { t += `A strap passes `; if (hasBothLegs(slave)) { t += `between ${his} legs, `; } else { t += `along ${his} perineum, `; } t += `and the ring over ${his} pussy gleams from between them.`; } break; case "shibari ropes": t += `${His} ropes run tightly `; if (hasBothLegs(slave)) { t += `between ${his} legs, `; } else { t += `along ${his} perineum, `; } t += `pressing ${him} closely as ${he} moves.`; break; case "restrictive latex": if ((slave.dick !== 0) && (slave.vagina !== -1)) { t += `${His} cock and pussy stick out through a big hole in the latex.`; } else if (slave.dick !== 0) { t += `${His} cock sticks out through a hole in the latex.`; } else { t += `As one of the only islands in the sea of `; if (!(slave.clothingBaseColor)) { t += `black `; } t += `latex, ${his} pussy is eye-catching.`; } break; case "attractive lingerie for a pregnant woman": if ((slave.dick > 4) && (slave.balls > 3)) { t += `As ${he} moves, ${his} pretty panties totally fail to restrain ${his} huge cock and balls, which bounce around lewdly in mockery of ${his} lovely appearance.`; } else if (slave.dick > 4) { t += `As ${he} moves, ${his} pretty panties totally fail to restrain ${his} huge penis, which flops around lewdly in mockery of ${his} lovely appearance.`; } else if (slave.dick !== 0) { t += `As ${he} moves, ${his} pretty panties struggle to restrain ${his} penis.`; } else { t += `As ${he} moves, ${his} pretty panties daintily cover ${his} womanhood.`; } break; case "kitty lingerie": if (slave.dick > 5) { t += `As ${he} moves, ${his} huge penis bulges out from the top of ${his} panties.`; } else if (slave.dick > 3) { t += `As ${he} moves, ${his} large penis bulges within ${his} panties.`; } else if ((slave.dick > 0) && (slave.vagina !== -1)) { t += `As ${he} moves, ${his} silk panties daintily cover ${his} dual genitalia.`; } else if (slave.dick > 0) { t += `As ${he} moves, ${his} silk panties daintily cover ${his} penis.`; } else if (slave.dick !== -1) { t += `As ${he} moves, ${his} silk panties daintily cover ${his} womanhood.`; } else { t += `As ${he} moves, ${his} silk panties daintily cover ${his} void groin.`; } break; case "a maternity dress": if (slave.dick > 2) { t += `As ${he} moves, something occasionally tents the front of ${his} dress.`; } else { t += `${His} loose dress gives no hints to what's inside it.`; } break; case "stretch pants and a crop-top": if (slave.dick > 2) { t += `As ${he} moves, something occasionally tents the front of ${his} pants.`; } else { t += `${His} tight pants don't leave much to the imagination.`; } break; case "attractive lingerie": if ((slave.dick > 4) && (slave.balls > 3)) { t += `As ${he} moves, ${his} pretty g-string totally fails to restrain ${his} huge cock and balls, which bounce around lewdly in mockery of ${his} lovely appearance.`; } else if (slave.dick > 4) { t += `As ${he} moves, ${his} pretty g-string totally fails to restrain ${his} huge penis, which flops around lewdly in mockery of ${his} lovely appearance.`; } else if ((slave.dick !== 0) && (slave.vagina !== -1)) { t += `As ${he} moves, ${his} pretty g-string struggles to restrain ${his} hermaphroditic genitalia.`; } else if (slave.dick !== 0) { t += `As ${he} moves, ${his} pretty g-string struggles to restrain ${his} penis.`; } else { t += `As ${he} moves, ${his} pretty g-string daintily covers ${his} womanhood.`; } break; case "a slutty maid outfit": if ((slave.dick > 4) && (slave.balls > 3)) { t += `${His} apron is cut very short in front. ${His} cock and balls are so big that ${he} hangs out beyond the hem of ${his} apron.`; } else if (slave.dick > 4) { t += `${His} apron is cut very short in front. ${His} dick is so big that its lower half dangles out of ${his} clothing.`; } else if ((slave.dick !== 0) && (slave.vagina !== -1)) { t += `${His} apron is cut very short in front, revealing frequent glimpses of ${his} dangling cock, and occasional hints of something more.`; } else if (slave.dick !== 0) { t += `${His} apron is cut very short in front, revealing frequent glimpses of ${his} dangling cock.`; } else { t += `${His} apron is cut very short in front, revealing occasional glimpses of ${his} womanhood.`; } break; case "a nice maid outfit": if (slave.dick > 4) { t += `As ${he} moves, something massive bulges against the front of ${his} apron.`; } else if (slave.dick > 1) { t += `As ${he} moves, something presses against the front of ${his} apron.`; } else { t += `${His} apron gives no hint of what's behind it.`; } break; case "a hijab and abaya": case "a niqab and abaya": if ((slave.dick > 4) && (slave.vagina !== -1)) { t += `${His} hermaphroditic genitalia bulges the front of ${his} abaya as ${he} moves.`; } else if ((slave.dick !== 0) && (slave.vagina !== -1)) { t += `${His} hermaphroditic genitalia is totally concealed by ${his} abaya.`; } else if (slave.dick > 4) { t += `${His} penis bulges the front of ${his} abaya as ${he} moves.`; } else if (slave.dick !== 0) { t += `${His} penis is totally concealed by ${his} abaya.`; } else if (slave.vagina !== -1) { t += `${His} vagina is totally concealed by ${his} abaya.`; } else { t += `${His} featureless groin is totally concealed by ${his} abaya.`; } break; case "a klan robe": if ((slave.dick > 4) && (slave.vagina !== -1)) { t += `${His} hermaphroditic genitalia bulges the front of ${his} robe as ${he} moves.`; } else if ((slave.dick !== 0) && (slave.vagina !== -1)) { t += `${His} hermaphroditic genitalia is totally concealed by ${his} robe.`; } else if (slave.dick > 4) { t += `${His} penis bulges the front of ${his} robe as ${he} moves.`; } else if (slave.dick !== 0) { t += `${His} penis is totally concealed by ${his} robe.`; } else if (slave.vagina !== -1) { t += `${His} vagina is totally concealed by ${his} robe.`; } else { t += `${His} featureless groin is totally concealed by ${his} robe.`; } break; case "overalls": if ((slave.dick > 4) && (slave.vagina !== -1)) { t += `${His} hermaphroditic genitalia tents out the front of ${his} overalls as ${he} moves.`; } else if ((slave.dick !== 0) && (slave.vagina !== -1)) { t += `${His} hermaphroditic genitalia sometimes bulges ${his} overalls as ${he} moves.`; } else if (slave.dick > 4) { t += `${His} penis tents out the front of ${his} overalls as ${he} moves.`; } else if (slave.dick !== 0) { t += `${His} penis sometimes bulges ${his} overalls as ${he} moves.`; } else if (slave.vagina !== -1) { t += `${His} overalls fits snugly on ${his} pussylips.`; } else { t += `${His} overalls fits snugly on ${his} featureless groin.`; } break; case "a monokini": if ((slave.dick > 4) && (slave.vagina !== -1)) { t += `${His} hermaphroditic genitalia tents out the front of ${his} monokini as ${he} moves.`; } else if ((slave.dick !== 0) && (slave.vagina !== -1)) { t += `${His} hermaphroditic genitalia sometimes bulges ${his} monokini as ${he} moves.`; } else if (slave.dick > 4) { t += `${His} penis tents out the front of ${his} monokini as ${he} moves.`; } else if (slave.dick !== 0) { t += `${His} penis sometimes bulges ${his} monokini as ${he} moves.`; } else if (slave.vagina !== -1) { t += `${His} monokini clings to ${his} pussylips as ${he} moves.`; } else { t += `${His} monokini clings to ${his} featureless groin as ${he} moves.`; } break; case "an apron": if (slave.dick > 4) { t += `${His} dick sometimes creates a bulge in ${his} apron as ${he} moves.`; } else if ((slave.dick > 0) && (slave.vagina > -1)) { t += `${His} apron exposes ${his} hermaphroditic genitalia if ${he} moves too quickly.`; } else if (slave.dick > 0) { t += `${His} apron exposes ${his} cock if ${he} moves too quickly.`; } else if (slave.vagina > -1) { t += `${His} apron exposes ${his} featureless groin if ${he} moves too quickly.`; } else { t += `${His} apron exposes ${his} pussy if ${he} moves too quickly.`; } break; case "a cybersuit": if ((slave.dick > 4) && (slave.vagina !== -1)) { t += `${His} hermaphroditic genitalia tents out the front of ${his} bodysuit as ${he} moves.`; } else if ((slave.dick !== 0) && (slave.vagina !== -1)) { t += `${His} hermaphroditic genitalia sometimes bulges ${his} bodysuit as ${he} moves.`; } else if (slave.dick > 4) { t += `${His} penis tents out the front of ${his} bodysuit as ${he} moves.`; } else if (slave.dick !== 0) { t += `${His} penis sometimes bulges ${his} bodysuit as ${he} moves.`; } else if (slave.vagina !== -1) { t += `${His} bodysuit clings to ${his} pussylips as ${he} moves.`; } else { t += `${His} bodysuit clings to ${his} featureless crotch as ${he} moves.`; } break; case "a tight Imperial bodysuit": if ((slave.dick > 4) && (slave.vagina !== -1)) { t += `${His} hermaphroditic genitalia tents out the front of ${his} bodysuit as ${he} moves.`; } else if ((slave.dick !== 0) && (slave.vagina !== -1)) { t += `${His} hermaphroditic genitalia sometimes bulges ${his} bodysuit as ${he} moves.`; } else if (slave.dick > 4) { t += `${His} penis tents out the front of ${his} bodysuit as ${he} moves.`; } else if (slave.dick !== 0) { t += `${His} penis sometimes bulges ${his} bodysuit as ${he} moves.`; } else if (slave.vagina !== -1) { t += `${His} bodysuit clings to ${his} pussylips as ${he} moves.`; } else { t += `${His} bodysuit clings to ${his} featureless crotch as ${he} moves.`; } break; case "a string bikini": if ((slave.dick > 4) && (slave.vagina !== -1)) { t += `As ${he} moves, ${his} g-string totally fails to restrain ${his} hermaphroditic genitalia.`; } else if ((slave.dick !== 0) && (slave.vagina !== -1)) { t += `As ${he} moves, ${his} g-string struggles to restrain ${his} hermaphroditic genitalia.`; } else if ((slave.dick > 4) && (slave.balls > 3)) { t += `As ${he} moves, ${his} g-string totally fails to restrain ${his} huge penis, and occasionally gives ${his} huge scrotum a painful pinch.`; } else if (slave.dick > 4) { t += `As ${he} moves, ${his} g-string totally fails to restrain ${his} huge penis.`; } else if (slave.dick !== 0) { t += `As ${he} moves, ${his} pretty white g-string struggles to restrain ${his} penis, which adds to ${his} sluttiness as it escapes.`; } else { t += `As ${he} moves, ${his} g-string rides up between ${his} pussylips.`; } break; case "a scalemail bikini": if ((slave.dick > 4) && (slave.vagina !== -1)) { t += `As ${he} moves, ${his} scalemail bottom fails to conceal ${his} hermaphroditic genitalia.`; } else if (slave.dick > 4) { t += `As ${he} moves, ${his} scalemail bottom fails to conceal ${his} huge penis.`; } else if (slave.dick !== 0) { t += `As ${he} moves, ${his} scalemail bottom covers ${his} penis.`; } else { t += `As ${he} moves, ${his} scalemail bottom conceals all.`; } break; case "striped panties": if ((slave.dick > 4) && (slave.vagina !== -1)) { t += `As ${he} moves, ${his} cute panties fail to conceal ${his} hermaphroditic genitalia.`; } else if (slave.dick > 4) { t += `As ${he} moves, ${his} cute panties fail to conceal ${his} huge penis.`; } else if (slave.dick !== 0) { t += `As ${he} moves, ${his} cute panties cover ${his} penis.`; } else { t += `As ${he} moves, ${his} cute panties conceal all.`; } break; case "clubslut netting": if (slave.dick !== 0) { t += `As ${he} moves, ${his} bare cock flops around, sticking through its hole in ${his} netting.`; } else if (slave.vagina !== -1) { t += `As ${he} moves, ${his} bare pussy beckons from its hole in ${his} netting.`; } else { t += `As ${he} moves, ${his} netting displays ${his} featureless groin.`; } break; case "a cheerleader outfit": if (slave.dick !== 0) { t += `As ${he} moves, ${his} short pleated cheerleader skirt is bounced forward by something `; if (hasBothLegs(slave)) { t += `between ${his} legs.`; } else { t += `at ${his} crotch.`; } } else { t += `As ${he} moves, ${his} short pleated cheerleader skirt shows off ${his} butt.`; } break; case "cutoffs and a t-shirt": if ((slave.dick > 4) && (slave.balls > 3)) { t += `There's a huge bulge in the front of ${his} cutoffs.`; } else if (slave.dick > 1) { t += `There's a bulge in the front of ${his} cutoffs.`; } else { t += `${His} cutoffs conceal ${his} front enticingly.`; } break; case "spats and a tank top": if (slave.dick > 4) { t += `${His} spats have a large, attention-drawing bulge that looks uncomfortable as ${he} moves around.`; } else if (slave.dick > 1) { t += `Something bulges against the tight fit of ${his} spats as ${he} moves.`; } else { t += `${His} spats snugly fit to ${his} crotch as ${he} moves.`; } break; case "a slutty outfit": if ((slave.dick !== 0) && (slave.vagina !== -1)) { t += `For today's slutty outfit ${he}'s chosen ripped jean shorts whose holes tantalizingly hint that ${he}'s very unusual `; if (hasBothLegs(slave)) { t += `between the legs.`; } else { t += `down there.`; } } else if (slave.dick > 2) { t += `For today's slutty outfit ${he}'s chosen ripped jean shorts so brief that ${his} huge dick occasionally escapes and flops free.`; } else if (slave.dick !== 0) { t += `For today's slutty outfit ${he}'s chosen ripped jean shorts whose holes tantalizingly hint that ${he}'s got something other than a pussy `; if (hasBothLegs(slave)) { t += `between the legs.`; } else { t += `down there.`; } } else { t += `For today's slutty outfit ${he}'s chosen ripped jean shorts so tight that ${he} sports a raging cameltoe.`; } break; case "a slave gown": if (isAmputee(slave) && (slave.vagina !== -1)) { t += `${He}'s wearing a lovely 'dress' designed specifically for an amputee.`; } else if ((slave.dick !== 0) && (slave.vagina !== -1)) { t += `${His} gorgeous dress leaves little to the imagination; there's little doubt ${his} pussy is bare beneath it, and ${his} cock tents the fabric as ${he} moves.`; } else if (slave.dick !== 0) { t += `${His} gorgeous dress leaves little to the imagination; ${his} cock tents the fabric as ${he} moves.`; } else { t += `${His} gorgeous dress leaves little to the imagination; there's little doubt ${his} pussy is bare beneath it.`; } break; case "a halter top dress": if (isAmputee(slave) && (slave.vagina !== -1)) { t += `${He}'s wearing a 'beautiful halter top dress' designed specifically for an amputee.`; } else if ((slave.dick !== 0) && (slave.vagina !== -1)) { t += `${His} beautiful halter top dress is almost sculpted around ${him}, but ${his} cock tents the fabric as ${he} moves.`; } else if (slave.dick !== 0) { t += `${His} beautiful halter top dress is almost sculpted around ${him}; but ${his} cock tents the fabric as ${he} moves.`; } else { t += `${His} beautiful halter top dress is almost sculpted around ${him}.`; } break; case "a ball gown": if (isAmputee(slave) && (slave.vagina !== -1)) { t += `${He}'s wearing a 'fabulous silken ball gown' designed specifically for an amputee.`; } else if ((slave.dick !== 0) && (slave.vagina !== -1)) { t += `${His} fabulous silken ball gown is draped around ${him}, but ${his} cock tents the fabric as ${he} moves.`; } else if (slave.dick !== 0) { t += `${His} fabulous silken ball gown is draped around ${him}; but ${his} cock tents the fabric as ${he} moves.`; } else { t += `${His} fabulous silken ball gown is draped around ${him}.`; } break; case "slutty business attire": if (slave.dick > 4) { t += `As ${he} moves, something massive tents the front of ${his} short skirt.`; } else if (slave.dick > 1) { t += `As ${he} moves, something presses against the front of ${his} short skirt.`; } else { t += `${His} short skirt gives no hint of what's behind it.`; } break; case "a fallen nuns habit": if (slave.dick > 0) { t += `${His} slutty nun outfit leaves ${his} cock to swing sacrilegiously.`; } else { t += `${His} slutty nun outfit leaves ${his} pussy totally and sacrilegiously bare.`; } break; case "a chattel habit": t += `${His} chattel habit makes ${his} sexual status immediately and encouragingly obvious.`; break; case "a penitent nuns habit": if (slave.dick > 0) { t += `${He} moves with painful caution, desperately trying to keep ${his} coarse habit from chafing ${his} dick raw.`; } else { t += `${He} moves with painful caution, desperately trying to keep ${his} coarse habit from chafing ${his} pussy raw.`; } break; case "nice business attire": if (slave.dick > 4) { t += `As ${he} moves, something massive tents the front of ${his} skirt.`; } else if (slave.dick > 1) { t += `As ${he} moves, something presses against the front of ${his} skirt.`; } else { t += `Unusually, ${his} businesslike skirt gives no hint of what's behind it.`; } break; case "a slutty nurse outfit": t += `${His} tight skirt constantly threatens to ride up in front.`; break; case "a schoolgirl outfit": t += `${His} schoolgirl skirt is so short that it constantly threatens to ride up in front.`; break; case "a kimono": t += `${His} obi demurely covers ${his} front.`; break; case "a burqa": t += `${His} burqa billows slightly as ${he} moves.`; break; case "a bra": case "a button-up shirt": case "a sweater": case "a tank-top": case "a tube top": case "a striped bra": case "a sports bra": case "a t-shirt": case "an oversized t-shirt": t += `${His} clothing leaves ${his} genitals bare and visible.`; break; case "a button-up shirt and panties": case "a slutty klan robe": case "a sweater and panties": case "a tank-top and panties": case "an oversized t-shirt and boyshorts": case "a t-shirt and jeans": case "boyshorts": case "cutoffs": case "leather pants and pasties": case "leather pants": case "panties": case "sport shorts and a t-shirt": case "a t-shirt and panties": case "panties and pasties": case "striped underwear": case "sport shorts and a sports bra": case "jeans": case "a sweater and cutoffs": case "leather pants and a tube top": case "sport shorts": t += `${His} clothing clings to the outline of ${his} genitals.`; break; case "a gothic lolita dress": t += `${His} dress ends halfway down ${his} thighs.`; break; case "a hanbok": t += `${His} hanbok billows slightly as ${he} moves.`; break; case "a one-piece swimsuit": t += `${His} swimsuit clings to the outline of ${his} genitals.`; break; case "a police uniform": t += `${His} trousers cling to the outline of ${his} genitals.`; break; case "a nice pony outfit": case "a slutty pony outfit": t += `${His} leather outfit clings tightly to the outline of ${his} genitals.`; break; case "a skimpy loincloth": t += `${His} skimpy loincloth gives frequent glimpses of ${his} bare genitals underneath.`; break; case "a burkini": t += `${His} modest swimwear includes a tunic that ends halfway down ${his} thighs.`; break; case "a hijab and blouse": t += `${His} long skirt billows as ${he} moves.`; break; case "battledress": t += `${His} fatigue trousers are utilitarian and unflattering.`; break; case "a comfortable bodysuit": if (slave.dick !== 0) { t += `${His} bodysuit displays every `; if (V.showInches === 2) { t += `inch `; } else { t += `centimeter `; } t += `of ${his} member as ${he} moves.`; } else { t += `${His} bodysuit shows off ${his} womanhood as ${he} moves.`; } break; case "a leotard": if ((slave.dick > 0) && canAchieveErection(slave)) { t += `${He}'s got ${his} erection tucked vertically upward under the tight material of ${his} leotard.`; } else if (slave.dick > 0) { t += `The tight material of ${his} leotard hugs and minimizes the size of ${his} soft member as ${he} moves.`; } else { t += `The thin crotch piece of ${his} leotard occasionally threatens to ride up between ${his} pussylips as ${he} moves.`; } break; case "a bunny outfit": if ((slave.dick > 0) && canAchieveErection(slave)) { t += `${He}'s moving uncomfortably, as though ${his} teddy isn't tailored quite perfectly for what ${he}'s got going on in front.`; } else if (slave.dick > 0) { t += `${His} teddy is tailored well enough to minimize the fact that ${he} isn't a natural woman.`; } else { t += `As ${he} moves, the satin material of ${his} bunny outfit flashes just a hint of inviting pussy.`; } break; case "harem gauze": if ((slave.dick !== 0) && (slave.vagina !== -1)) { t += `${His} hermaphroditic genitals are clearly visible through the thin gauze that covers them.`; } else if (slave.dick !== 0) { t += `${His} dick is clearly visible through the thin gauze that covers it.`; } else { t += `${His} pussy is clearly visible through the thin gauze that covers it.`; } break; case "pasties": t += `${His} crotch pastie is eye-catching as it moves with ${him}.`; break; case "slutty jewelry": if ((slave.dick !== 0) && (slave.vagina !== -1)) { t += `${His} belt of light chain has a lewd bauble over ${his} stomach; its weight pulls it down towards ${his} hermaphroditic genitalia with each step.`; } else if (slave.dick !== 0) { t += `${His} belt of light chain has a lewd bauble over ${his} stomach; its weight pulls it down towards the base of ${his} penis with each step.`; } else { t += `${His} belt of light chain has a lewd bauble over ${his} stomach; its weight pulls it down towards ${his} mons with each step.`; } break; case "a t-shirt and thong": case "a thong": case "a tube top and thong": t += `You get a good view of ${his} `; if (slave.dick > 5) { t += `thong and the huge penis hanging out of it.`; } else if (slave.dick > 3) { t += `thong and the penis that escaped its confines.`; } else if (slave.dick !== 0) { t += `bulging thong as ${he} moves.`; } else { t += `thong as ${he} moves.`; } break; case "a bimbo outfit": t += `${His} miniskirt is so short it draws the eye right to ${his} `; if (slave.dick > 5) { t += `thong and the huge penis hanging out of it.`; } else if (slave.dick > 3) { t += `thong and the penis that escaped its confines.`; } else if (slave.dick !== 0) { t += `bulging thong.`; } else { t += `exposed thong.`; } break; case "a courtesan dress": t += `${He} is just begging to be splayed out so that ${his} skirt may 'bloom'.`; break; default: if (slave.chastityVagina) { t += `${His} chastity belt protects ${him} from vanilla intercourse.`; } else if ((slave.dick !== 0) && (slave.vagina !== -1)) { t += `You get a good view of ${his} cock and pussy: a marvel of modern surgery.`; } else if (slave.dick !== 0) { t += `You get a good view of ${his} cock.`; } else { t += `You get a good view of ${his} pussy.`; } } if ((slave.vaginalAccessory === "long dildo") || (slave.vaginalAccessory === "long, large dildo") || (slave.vaginalAccessory === "long, huge dildo")) { t += `With every motion ${he} makes, ${his} dildo shifts, bulging out ${his} stomach.`; if ((slave.buttplug === "long plug") || (slave.buttplug === "long, large plug") || (slave.buttplug === "long, huge plug")) { t += `Beside it, a second bulge caused by ${his} extra long buttplug.`; } } else if ((slave.buttplug === "long plug") || (slave.buttplug === "long, large plug") || (slave.buttplug === "long, huge plug")) { t += `With every motion ${he} makes, ${his} buttplug shifts, bulging out ${his} stomach.`; } return t; } /** Generate anus text for a given slave * @param {App.Entity.SlaveState} slave * @returns {string} */ function anusWatch(slave) { const { he, him, his, hers, himself, boy, He, His } = getPronouns(slave); target = "FAnus"; t += App.Desc.anus(slave); if (slave.chastityAnus === 0) { t += ` `; switch (slave.clothes) { case "a Fuckdoll suit": t += `${His} suit is expressly designed to encourage use of ${his} rear hole.`; break; case "uncomfortable straps": t += `The ring over ${his} asshole beckons.`; break; case "shibari ropes": t += `The rope between ${his} buttocks presses lewdly against ${his} anus as ${he} moves.`; break; case "restrictive latex": if (slave.clothingBaseColor) { t += `As some of the only islands in the sea of latex, ${his} holes are eye-catching.`; } else { t += `As some of the only islands in the sea of black latex, ${his} holes are eye-catching.`; } break; case "a fallen nuns habit": t += `${His} slutty nun outfit leaves ${his} butthole bare and available for anal sin.`; break; case "a chattel habit": t += `${His} chattel habit covers ${his} anus with a strip of cloth, but it's designed to be lifted readily.`; break; case "a penitent nuns habit": t += `${His} habit chafes ${his} rear end so cruelly that it would probably be a relief to ${him} to have it pulled up for a rough buttfuck.`; break; case "attractive lingerie": if (slave.anus > 1 && !hasAnyLegs(slave)) { t += `${His} pretty g-string frequently fails to cover ${his} big butthole.`; break; } else if (slave.anus > 1) { t += `As ${he} moves, ${his} pretty g-string frequently fails to cover ${his} big butthole.`; break; } else { t += `As ${he} moves, ${his} pretty g-string draws your attention to ${his} ass.`; } break; case "a succubus outfit": t += `${His} succubus outfit's tail holds ${his} skirt up high in back, inviting a damning buttfuck.`; break; case "a nice maid outfit": t += `${His} long maid's skirt will have to be gotten out of the way to permit access to ${his} ass.`; break; case "a slutty maid outfit": t += `${His} short maid's skirt can be lifted to reveal ${his} bare buttocks.`; break; case "a slutty nurse outfit": t += `${His} tight skirt flatters ${his} ass as ${he} moves.`; break; case "a schoolgirl outfit": if (slave.anus === 0) { t += `This school${boy} clearly needs to lose ${his} anal virginity.`; } else if (slave.vagina === 0) { t += `This school${boy} clearly takes it up the ass; that way, ${he} can remain a virgin, and be, like, totally pure and innocent.`; } else { t += `This school${boy} clearly takes it up the ass.`; } break; case "a kimono": t += ` While ${his} kimono may demurely cover ${his} behind, you know ${his} asshole is bare under it.`; break; case "attractive lingerie for a pregnant woman": t += `${His} silken panties are just begging to be torn off.`; break; case "a maternity dress": t += `${His} dress could easily be slide up over ${his} butt to expose ${his} backdoor.`; break; case "stretch pants and a crop-top": t += `${He} can easily be pantsed to reveal ${his} bare buttocks.`; break; case "a hijab and abaya": case "a niqab and abaya": t += `While ${his} abaya totally covers ${his} behind, it can be easily lifted to reveal ${his} asshole.`; break; case "a klan robe": t += `While ${his} robe totally covers ${his} behind, it can be lifted to reveal ${his} asshole.`; break; case "a burqa": t += `While ${his} burqa totally covers ${his} behind, it can be lifted to reveal ${his} asshole.`; break; case "an oversized t-shirt": t += `${His} t-shirt may be oversized, but it does little to hide ${his} asshole.`; break; case "a tube top and thong": case "a thong": case "a t-shirt and thong": if (slave.anus > 1 && !hasAnyLegs(slave)) { t += `${His} thong frequently fails to cover ${his} big butthole.`; break; } else if (slave.anus > 1) { t += `As ${he} moves, ${his} thong frequently fails to cover ${his} big butthole.`; break; } else { t += `As ${he} moves, ${his} thong draws your attention to ${his} ass.`; } break; case "a bra": case "a button-up shirt": case "a sweater": case "a tank-top": case "a tube top": case "a striped bra": case "a slutty klan robe": case "a sports bra": case "a t-shirt": case "pasties": t += `${His} outfit exposes ${his} bare butt and vulnerable asshole.`; break; case "an oversized t-shirt and boyshorts": case "boyshorts": t += `${His} boyshorts are tight enough to give hints of ${his} asshole.`; break; case "a button-up shirt and panties": case "a sweater and panties": case "a tank-top and panties": case "panties": case "a t-shirt and panties": case "panties and pasties": case "striped underwear": t += `${His} tightly clinging panties can be pulled aside to reveal ${his} asshole.`; break; case "cutoffs": case "sport shorts and a t-shirt": case "sport shorts": case "a sweater and cutoffs": case "sport shorts and a sports bra": t += `${His} shorts are practically begging to be pulled down to reveal ${his} naked butthole.`; break; case "a police uniform": case "a t-shirt and jeans": case "leather pants": case "jeans": case "leather pants and a tube top": case "leather pants and pasties": t += `${His} pants are practically begging to be pulled down to reveal ${his} naked butthole.`; break; case "a nice pony outfit": case "a slutty pony outfit": t += `${His} leather outfit is practically sculpted to fit ${his} ass, though would need to be undone to reach ${his} butthole.`; break; case "a skimpy loincloth": t += `${His} loincloth gives hints of ${his} bare ass and asshole beneath it.`; break; case "a gothic lolita dress": t += `${His} dress can be lifted easily to reveal ${his} asshole.`; break; case "a hanbok": t += `${His} hanbok can be lifted easily to reveal ${his} asshole.`; break; case "a one-piece swimsuit": t += `${His} swimsuit tightly clings to ${his} rear, but `; if (slave.butt > 3) { t += `${his} butt is too large to easily pull it aside and reach ${his} asshole.`; } else { t += `can be easily pulled aside to reveal ${his} asshole.`; } break; case "a burkini": t += `${His} burkini modestly covers ${his} rear.`; break; case "a hijab and blouse": t += `${His} modest skirt can be easily lifted to reveal ${his} asshole.`; break; case "battledress": t += `${His} fatigue trousers are not particularly flattering to ${his} butt but could be pulled down easily enough.`; break; case "a monokini": t += `The bottom of ${his} monokini is practically sculpted to fit ${his} ass.`; break; case "a cybersuit": t += `As ${his} buttocks work naturally with ${his} movement, ${his} tight bodysuit gives hints of ${his} asshole.`; break; case "a tight Imperial bodysuit": t += `As ${his} buttocks work naturally with ${his} movement, ${his} tight cybernetic bodysuit gives hints of ${his} asshole.`; break; case "a string bikini": if (slave.anus > 1) { t += `As ${he} moves, ${his} big butthole is clearly visible behind ${his} tiny g-string.`; } else { t += `As ${he} moves, ${his} tiny g-string draws your attention to ${his} ass.`; } break; case "a scalemail bikini": t += `${His} scalemail bottom draws attention to ${his} ass cheeks, while concealing ${his} rear hole.`; break; case "striped panties": t += `${His} cute panties draw attention to ${his} ass cheeks, while concealing ${his} rear hole.`; break; case "clubslut netting": t += `As ${he} moves, the hole in ${his} netting right over ${his} butthole looks inviting.`; break; case "a cheerleader outfit": t += `As ${he} moves, ${his} short pleated cheerleader skirt shows off ${his} butt.`; break; case "cutoffs and a t-shirt": t += `As ${he} moves, ${his} tight cutoffs flatter ${his} butt.`; break; case "spats and a tank top": t += `${His} spats show off every curve of ${his} ass.`; break; case "a slutty outfit": t += `For today's slutty outfit ${he}'s chosen `; if (slave.butt > 5) { t += `a leather skirt with zippers that permit ready access to ${his} butt.`; } else { t += `fishnets with a hole cut over ${his} asshole so ${he} can be sodomized without removing or damaging ${his} clothing.`; } break; case "a slave gown": t += `${His} gorgeous dress leaves little to the imagination; there's little doubt ${his} butt is bare beneath it.`; break; case "a halter top dress": t += `${His} dress should slide up over ${his} butt to reveal ${his} backdoor.`; break; case "a ball gown": t += `${His} ballgown and its petticoats could easily be flipped up to bare ${his} butt.`; break; case "slutty business attire": t += `${His} short skirt will easily slide up to bare ${his} asshole.`; break; case "nice business attire": t += `${His} conservative skirt can be slid up over ${his} hips to bare ${his} butthole.`; break; case "a comfortable bodysuit": t += `${His} bodysuit demands attention for ${his} tightly clad backdoor.`; break; case "a latex catsuit": t += `${His} latex catsuit's crotch zipper offers ready access to ${his} backdoor.`; break; case "a military uniform": t += `${His} uniform skirt can be slid up over ${his} hips to bare ${his} butthole.`; break; case "a schutzstaffel uniform": t += `${His} uniform's trousers can be easily slid down to expose ${his} butthole.`; break; case "a slutty schutzstaffel uniform": t += `${His} uniform miniskirt can be easily slid up over ${his} hips to bare ${his} butthole.`; break; case "a red army uniform": t += `${His} uniform skirt can be slid up over ${his} hips to bare ${his} butthole.`; break; case "a long qipao": t += `${His} dress can be slid up over ${his} hips to bare ${his} butthole.`; break; case "battlearmor": t += `${His} armor demands attention for ${his} tightly clad backdoor.`; break; case "Imperial Plate": t += `${His} ultra-heavy armor somehow manages to draw attention to the plated curvature of ${his} tight, heavily-armored backdoor. You suppose you could retract just the back-plating.`; break; case "a mounty outfit": t += `${His} uniform slacks can be slipped off ${his} hips to bare ${his} butthole.`; break; case "a dirndl": t += `${His} dress can be easily lifted to access ${his} bare ass.`; break; case "lederhosen": t += `${His} tight shorts can be slipped off ${his} hips to bare ${his} butthole.`; break; case "a biyelgee costume": t += `${His} costume can be easily lifted to access ${his} naked butt.`; break; case "a nice nurse outfit": t += `${His} nurse's trousers can be easily slid down to expose ${his} butthole.`; break; case "a mini dress": t += `${His} mini dress can be easily slid up to expose ${his} butthole.`; break; case "an apron": t += `${His} apron leaves ${his} asshole completely exposed.`; break; case "overalls": t += `${His} overalls totally cover ${his} asshole.`; break; case "a leotard": t += `As ${his} buttocks work naturally with ${his} movement, ${his} tight leotard gives hints of ${his} asshole.`; break; case "a bunny outfit": t += `${His} fluffy white cottontail draws attention to ${his} butt, inevitably bringing anal to mind.`; break; case "harem gauze": t += `${His} ass is clearly visible through the thin gauze that covers it.`; break; case "a toga": t += `${His} toga is so transparent it can't hide ${his} asscrack, which looks very seductive.`; break; case "a huipil": t += `${His} huipil can be easily lifted to access ${his} naked butt.`; break; case "slutty jewelry": t += `${His} belt of light chain threatens to dip into ${his} asscrack with each step.`; break; case "a bimbo outfit": t += `${His} scandalously short miniskirt leaves ${his} ass hanging out and begging for it.`; break; case "a courtesan dress": t += `As ${he} moves, you catch tantalizing glimpses of ${his} ass beneath the petals.`; break; default: if (slave.chastityVagina) { t += `${His} chastity belt leaves ${his} ass available.`; } else { t += `You run your eye over ${his} naked ass.`; } } } return t; } /** Generate lip/mouth text for a given slave * @param {App.Entity.SlaveState} slave * @returns {string} */ function lipWatch(slave) { const { he, him, his, hers, himself, boy, He, His } = getPronouns(slave); t += App.Desc.face(slave); t += ` `; t += App.Desc.mouth(slave); t += ` `; switch (slave.collar) { case "uncomfortable leather": t += `${His} uncomfortable leather collar makes ${him} swallow and lick ${his} lips periodically, making it look like ${he}'s offering oral even though ${he}'s just trying to relieve the discomfort.`; break; case "tight steel": case "cruel retirement counter": t += `${His} tight steel collar makes ${him} swallow and lick ${his} lips periodically, making it look like ${he}'s offering oral even though ${he}'s just trying to relieve the discomfort.`; break; case "preg biometrics": t += `${His} collar reveals everything about ${his} womb, bringing eyes straight to ${his} belly before drawing them back to ${his} neck.`; break; case "shock punishment": t += `${His} shock collar rests threateningly at ${his} throat, ready to compel ${him} to do anything you wish.`; break; case "neck corset": t += `${His} fitted neck corset keeps ${his} breaths shallow, and ${his} head posture rigidly upright.`; break; case "stylish leather": t += `${His} stylish leather collar is at once a fashion statement, and a subtle indication of ${his} enslavement.`; break; case "satin choker": t += `${His} elegant satin choker is at once a fashion statement, and a subtle indication of ${his} enslavement.`; break; case "silk ribbon": t += `${His} delicate, fitted silken ribbon is at once a fashion statement, and a subtle indication of ${his} enslavement.`; break; case "heavy gold": t += `${His} heavy gold collar draws attention to the sexual decadence of ${his} mouth.`; break; case "pretty jewelry": case "nice retirement counter": t += `${His} pretty necklace can hardly be called a collar, but it's just slavish enough to hint that the throat it rests on is available.`; break; case "bell collar": t += `${His} little bell tinkles merrily whenever ${he} moves, dispelling any grace or gravity.`; break; case "leather with cowbell": t += `${His} cowbell tinkles merrily whenever ${he} moves, instantly dispelling any grace or gravity.`; break; case "bowtie": t += `${His} black bowtie contrasts with ${his} white collar, drawing the eye towards ${his} neck and face.`; break; case "neck tie": t += `${His} neck tie is a reminder of old world business, although ${his} body is a reminder of the oldest business in the world.`; break; case "ancient Egyptian": t += `${His} wesekh glints richly as ${he} moves, sparkling with opulence and sensuality.`; break; default: if (slave.clothes === "a Fuckdoll suit") { t += `${His} suit is expressly designed to encourage use of ${his} face hole.`; } else { t += `${His} unadorned `; if (V.PC.dick !== 0) { t += `throat is just waiting to be wrapped around a thick shaft.`; } else { t += `lips are just begging for a cunt to lavish attention on.`; } } } switch (slave.mouthAccessory ) { case "dildo gag": t += `${His} ring gag would make ${him} ready for oral service, as soon as the formidable dildo it secures down ${his} throat is removed.`; break; case "massive dildo gag": t += `Your eyes are drawn to the distinct bulge in ${his} throat caused by the enormous dildo in it, though ${his} mouth would only be suitable for the largest of cocks right now.`; break; case "ball gag": t += `${His} ball gag uncomfortably holds ${his} jaw apart as it fills ${his} mouth.`; break; case "bit gag": t += `${His} bit gag uncomfortably keeps ${him} from closing ${his} jaw; drool visibly pools along the corners of ${his} mouth, where the rod forces back ${his} cheeks.`; break; case "ring gag": t += `${His} ring gag uncomfortably keeps ${him} from closing ${his} mouth; drool visibly pools around ${his} tongue, and trickles down ${his} chin unless ${he} can keep ${his} head back.`; break; } switch (slave.faceAccessory ) { case "porcelain mask": t += `${His} beautiful porcelain mask hides ${his} face and any unsightly facial features.`; break; } if (jsRandom(1, 3) === 1) { target = "FKiss"; } else { target = "FLips"; } return t; } return walkPast; })(); /** generate the specified walkPast vignette for all slaves (for debugging purposes) * @param {string} fixedTarget * @returns {DocumentFragment} */ globalThis.walkPastAll = function(fixedTarget) { return App.UI.DOM.combineNodes(...V.slaves.map( (s) => App.UI.DOM.makeElement("p", walkPast(s, fixedTarget)) )); };
MonsterMate/fc
src/interaction/main/walkPast.js
JavaScript
mit
406,868
globalThis.policies = (function() { return { countEugenicsSMRs: countEugenicsSMRs, cost: cost, }; function countEugenicsSMRs() { let value = 0; if (V.policies.SMR.eugenics.faceSMR === 1) { value++; } if (V.policies.SMR.eugenics.heightSMR === 1) { value++; } if (V.policies.SMR.eugenics.intelligenceSMR === 1) { value++; } return value; } function cost() { return 5000; } })(); /** * @param {string} category * @returns {JQuery} */ globalThis.policy = function(category) { const frag = new DocumentFragment; for (let policyVariable in App.Data.Policies.Selection[category]) { frag.append(policyElement(policyVariable)); } return jQuery(`#${category}`).empty().append(frag); /** * @param {string} policyVariable * @returns {Node} el */ function policyElement(policyVariable) { let el = document.createElement("p"); let div; let span; let link; const policyValue = _.get(V, policyVariable); /** @type {PolicySelector[]} */ const policyObject = App.Data.Policies.Selection[category][policyVariable]; if (policyValue === 0) { // apply for (let i = 0; i < policyObject.length; i++) { const p = policyObject[i]; const enable = p.enable || 1; if (p.hasOwnProperty("requirements") && p.requirements === false) { continue; } div = document.createElement("div"); span = document.createElement("span"); // title span.style.fontWeight = "bold"; if (p.hasOwnProperty("titleClass")) { span.classList.add(p.titleClass); } span.append(p.title); div.append(span); div.append(`: `); // Description text div.append(p.text); div.append(` `); // link if (!(p.hasOwnProperty("hide") && p.hide.button === 1)) { if (p.hasOwnProperty("requirements")) { if (p.requirements === true) { div.append(implement(p, enable)); } else { link = App.UI.DOM.disabledLink("Implement", [`You do not meet the requirements, or passed a conflicting policy already`]); link.style.color = "white"; div.append(link); } } else { div.append(implement(p, enable)); } } el.append(div); } } else if (typeof policyValue === "string" || typeof policyValue === "number") { // repeal let i = 0; for (const pol in policyObject) { if (policyObject[pol].hasOwnProperty("enable") && policyObject[pol].enable === policyValue) { i = pol; break; } } const p = policyObject[i]; if (p.hasOwnProperty("hide")) { if (p.hide.ifActivated === 1) { return el; } } let title; if (p.hasOwnProperty("activatedTitle")) { title = p.activatedTitle; } else { title = p.title; } let text; if (p.hasOwnProperty("activatedText")) { text = p.activatedText; } else { text = p.text; } div = document.createElement("div"); span = document.createElement("span"); // title span.style.fontWeight = "bold"; span.append(title); div.append(span); div.append(`: `); // Description text div.append(text); div.append(` `); // link div.append(repeal(p)); el.append(div); } else { throw `V.${policyVariable} not initialized properly, "${policyValue}"`; } return el; /** * @param {PolicySelector} p The data object that describes the policy being considered. * @returns {Node} Link to repeal. */ function repeal(p) { const frag = new DocumentFragment; let check = canAfford(); if (!(p.hasOwnProperty("hide") && p.hide.button === 1)) { if (check === true) { link = App.UI.DOM.link( "Repeal", () => { if (V.rep >= 1000) { _.set(V, policyVariable, 0); applyCost(); if (p.hasOwnProperty("onRepeal")) { p.onRepeal(); } } policy(category); } ); link.style.color = "yellow"; } else { link = App.UI.DOM.disabledLink("Repeal", [`You do not have enough ${check}`]); link.style.color = "red"; } frag.append(link); } if (p.hasOwnProperty("activatedNote")) { frag.append(App.UI.DOM.makeElement("div", p.activatedNote, ["note", "indent"])); } return frag; } /** * @param {PolicySelector} p The data object that describes the policy being considered. * @param {number|string} enable value to set the policy to in order to switch it on. * @returns {Node} Link to implement. */ function implement(p, enable) { let check = canAfford(); const frag = new DocumentFragment; if (check === true) { link = App.UI.DOM.link( "Implement", () => { if (V.rep >= 1000) { _.set(V, policyVariable, enable); applyCost(); if (p.hasOwnProperty("onImplementation")) { p.onImplementation(); } } policy(category); } ); link.style.color = "green"; } else { link = App.UI.DOM.disabledLink("Implement", [`You do not have enough ${check}`]); link.style.color = "red"; } frag.append(link); if (p.hasOwnProperty("note")) { frag.append(App.UI.DOM.makeElement("div", p.note, ["note", "indent"])); } return frag; } function canAfford() { if (V.cash < 5000) { return "cash"; } else if (V.rep < 1000 && !["EducationPolicies"].includes(category)) { return "reputation"; } return true; } function applyCost() { cashX(-5000, "policies"); if (!["EducationPolicies"].includes(category)) { repX(-1000, "policies"); } } } };
MonsterMate/fc
src/interaction/policies/policies.js
JavaScript
mit
5,503
:: Policies [nobr jump-to-safe jump-from-safe] <style> .active { background-color: grey; } </style> <<set $nextButton = "Back">> <<set $passageSwitchHandler = App.EventHandlers.societyChanged>> <<if $arcologies[0].FSSupremacistLawME && $PC.race != $arcologies[0].FSSupremacistRace>> <<set $nextLink = "Gameover", $gameover = "Idiot Ball 2 The Dumbassening">> <<elseif $arcologies[0].FSSubjugationistLawME && $PC.race == $arcologies[0].FSSubjugationistRace>> <<set $nextLink = "Gameover", $gameover = "Idiot Ball 3 Totally Not Idiot Ball 2 Again">> <<else>> <<set $nextLink = "Main">> <</if>> <<set $encyclopedia = "Future Societies">> <<run App.UI.tabBar.handlePreSelectedTab($tabChoice.policies)>> <p class="scene-intro"> Passing any law will cost <<print cashFormat(5000)>> and <<if $rep >= 1000>> <span class="green">a small amount of reputation.</span> <<else>> <span class="red">a better reputation.</span> <</if>> More policies will become available as the arcology develops. </p> <div class="tab-bar"> <button class="tab-links" onclick="App.UI.tabBar.openTab(event, 'SMRs')" id="tab SMRs">Slave Market Regulations</button> <button class="tab-links" onclick="App.UI.tabBar.openTab(event, 'ST')" id="tab ST">Sexual Trendsetting</button> <button class="tab-links" onclick="App.UI.tabBar.openTab(event, 'Population')" id="tab Population">Population & Domestic</button> <button class="tab-links" onclick="App.UI.tabBar.openTab(event, 'Education')" id="tab Education">Education</button> <button class="tab-links" onclick="App.UI.tabBar.openTab(event, 'FS')" id="tab FS">Future Societies</button> <button class="tab-links" onclick="App.UI.tabBar.openTab(event, 'SRP')" id="tab SRP">Slave Retirement Planning</button> </div> <div id="SMRs" class="tab-content"> <div class="content"> <p class="scene-intro"> Slave Market Regulations (SMRs) will affect slaves that come through the official slave markets in your arcology. The markets themselves will bear the cost of these regulations, but the minimum practicable slave prices may rise as a result. </p> <span id="SMR"></span> <script> policy("SMR"); </script> </div> </div> <div id="ST" class="tab-content"> <div class="content"> <span id="SexualTrendsetting"></span> <script> policy("SexualTrendsetting"); </script> </div> </div> <div id="Population" class="tab-content"> <div class="content"> <h1>Population</h1> <span id="PopulationPolicies"></span> <script> policy("PopulationPolicies"); </script> <h1>Domestic</h1> <span id="DomesticPolicies"></span> <script> policy("DomesticPolicies"); </script> </div> </div> <div id="Education" class="tab-content"> <div class="content"> <<if $schoolSuggestion == 0>> <p> You have yet to contact a school about adding a local branch. </p> <</if>> <span id="EducationPolicies"></span> <script> policy("EducationPolicies"); </script> </div> </div> <div id="SRP" class="tab-content"> <div class="content"> <<if $policies.retirement.customAgePolicy == 0 && $policies.retirement.physicalAgePolicy == 0>> <br>''Default Retirement Age:'' in the absence of a defined slave retirement age, slaves will not remain sex slaves after reaching age $retirementAge. <br>&nbsp;&nbsp;&nbsp;&nbsp;//This is a current content and mechanical limitation in FC $ver, not a universal Free Cities rule.// <</if>> <span id="RetirementPolicies"></span> <script> policy("RetirementPolicies"); </script> <h1>Menials</h1> <span id="MenialRetirementPolicies"></span> <script> policy("MenialRetirementPolicies"); </script> </div> </div> <div id="FS" class="tab-content"> <div class="content"> <span id="FutureSocietiesTab"></span> <script> policy("FutureSocietiesTab"); </script> <<if $arcologies[0].FSGenderFundamentalist >= 20>> <h2>Gender Fundamentalist</h2> <span id="FSGenderFundamentalist"></span> <script> policy("FSGenderFundamentalist"); </script> <<elseif $arcologies[0].FSGenderRadicalist >= 20>> <h2>Gender Radicalist</h2> <span id="FSGenderRadicalist"></span> <script> policy("FSGenderRadicalist"); </script> <</if>> <<if $arcologies[0].FSPaternalist >= 40>> <h2>Paternalist</h2> <span id="FSPaternalist"></span> <script> policy("FSPaternalist"); </script> <</if>> <<if $arcologies[0].FSDegradationist >= 40>> <h2>Degradationist</h2> <span id="FSDegradationist"></span> <script> policy("FSDegradationist"); </script> <</if>> <<if $arcologies[0].FSIntellectualDependency >= 40>> <h2>Intellectual Dependency</h2> <span id="FSIntellectualDependency"></span> <script> policy("FSIntellectualDependency"); </script> <</if>> <<if $arcologies[0].FSSlaveProfessionalism >= 40>> <h2>Slave Professionalism</h2> <span id="FSSlaveProfessionalism"></span> <script> policy("FSSlaveProfessionalism"); </script> <</if>> <<if $arcologies[0].FSBodyPurist >= 40>> <h2>Body Purist</h2> <span id="FSBodyPurist"></span> <script> policy("FSBodyPurist"); </script> <</if>> <<if $arcologies[0].FSTransformationFetishist >= 40>> <h2>Transformation Fetishist</h2> <span id="FSTransformationFetishist"></span> <script> policy("FSTransformationFetishist"); </script> <</if>> <<if $arcologies[0].FSYouthPreferentialist >= 40>> <h2>Youth Preferentialist</h2> <span id="FSYouthPreferentialist"></span> <script> policy("FSYouthPreferentialist"); </script> <</if>> <<if $arcologies[0].FSMaturityPreferentialist >= 40>> <h2>Maturity Preferentialist</h2> <span id="FSMaturityPreferentialist"></span> <script> policy("FSMaturityPreferentialist"); </script> <</if>> <<if $arcologies[0].FSPetiteAdmiration >= 40>> <h2>Petite Admiration</h2> <span id="FSPetiteAdmiration"></span> <script> policy("FSPetiteAdmiration"); </script> <</if>> <<if $arcologies[0].FSStatuesqueGlorification >= 40>> <h2>Statuesque Glorification</h2> <span id="FSStatuesqueGlorification"></span> <script> policy("FSStatuesqueGlorification"); </script> <</if>> <<if $arcologies[0].FSSlimnessEnthusiast >= 40>> <h2>Slimness Enthusiast</h2> <span id="FSSlimnessEnthusiast"></span> <script> policy("FSSlimnessEnthusiast"); </script> <</if>> <<if $arcologies[0].FSAssetExpansionist >= 40>> <h2>Asset Expansionist</h2> <span id="FSAssetExpansionist"></span> <script> policy("FSAssetExpansionist"); </script> <</if>> <<if $arcologies[0].FSPastoralist >= 40>> <h2>Pastoralist</h2> <span id="FSPastoralist"></span> <script> policy("FSPastoralist"); </script> <</if>> <<if $arcologies[0].FSPhysicalIdealist >= 40>> <h2>Physical Idealist</h2> <span id="FSPhysicalIdealist"></span> <script> policy("FSPhysicalIdealist"); </script> <</if>> <<if $arcologies[0].FSHedonisticDecadence >= 40>> <h2>Hedonistic Decadence</h2> <span id="FSHedonisticDecadence"></span> <script> policy("FSHedonisticDecadence"); </script> <</if>> <<if $arcologies[0].FSChattelReligionist >= 40>> <h2>Chattel Religionist</h2> <span id="FSChattelReligionist"></span> <script> policy("FSChattelReligionist"); </script> <</if>> <<if $nicaea.held>> <h2>Nicaea</h2> <span id="nicaea"></span> <script> policy("nicaea"); </script> <</if>> <<if $arcologies[0].FSRepopulationFocus >= 40>> <h2>Repopulation Focus</h2> <span id="FSRepopulationFocus"></span> <script> policy("FSRepopulationFocus"); </script> <</if>> <<if $arcologies[0].FSRestart >= 40 || $arcologies[0].FSSupremacist >= 40 || V.arcologies[0].FSSubjugationist >= 40>> <h2>Race</h2> <div> <<if $propOutcome>> ''Elite Breeder Eligibility:'' Societal Elite may use eligible slaves as breeders. <<elseif $propOutcome == -1>> ''Elite Breeder Eligibility:'' The Societal Elite have rejected your breeding proposal. <</if>> </div> <span id="FSRace"></span> <script> policy("FSRace"); </script> <</if>> <<if $arcologies[0].FSRomanRevivalist >= 40>> <h2>Roman Revivalist</h2> <span id="FSRomanRevivalist"></span> <script> policy("FSRomanRevivalist"); </script> <</if>> <<if $arcologies[0].FSNeoImperialist >= 40>> <h2>Neo-Imperialism</h2> <span id="FSNeoImperialist"></span> <script> policy("FSNeoImperialist"); </script> <</if>> <<if $arcologies[0].FSAztecRevivalist >= 40>> <h2>Aztec Revivalist</h2> <span id="FSAztecRevivalist"></span> <script> policy("FSAztecRevivalist"); </script> <</if>> <<if $arcologies[0].FSEgyptianRevivalist >= 40>> <h2>Egyptian Revivalist</h2> <span id="FSEgyptianRevivalist"></span> <script> policy("FSEgyptianRevivalist"); </script> <</if>> <<if $arcologies[0].FSEdoRevivalist >= 40>> <h2>Edo Revivalist</h2> <span id="FSEdoRevivalist"></span> <script> policy("FSEdoRevivalist"); </script> <</if>> <<if $arcologies[0].FSArabianRevivalist >= 40>> <h2>Arabian Revivalist</h2> <span id="FSArabianRevivalist"></span> <script> policy("FSArabianRevivalist"); </script> <</if>> <<if $arcologies[0].FSChineseRevivalist >= 40>> <h2>Chinese Revivalist</h2> <span id="FSChineseRevivalist"></span> <script> policy("FSChineseRevivalist"); </script> <</if>> </div> </div>
MonsterMate/fc
src/interaction/policies/policies.tw
tw
mit
9,257
:: Prosthetics Configuration [nobr] <<switch $prostheticsConfig>> <<case "main">> <<set $nextButton = "Confirm changes", $nextLink = "Slave Interact">> /* get all prosthetics that are ready for this slave */ <<if $adjustProstheticsCompleted > 0>> <<set $adjustProsthetics = $adjustProsthetics.filter(function(p) { if (p.workLeft <= 0 && p.slaveID == getSlave($AS).ID) { addProsthetic(getSlave($AS), p.id); $adjustProstheticsCompleted--; return false; } return true; })>> <</if>> /* base screen START */ <h1>Prosthetic Configuration</h1> <p class="scene-intro"> This room is lined with shelves and cabinets; it could be easily mistaken for a storage room if it were not for the examination table in its center. <div> <<if hasBothLegs(getSlave($AS))>> <<= getSlave($AS).slaveName>> is obediently waiting for your instructions. <<else>> <<= getSlave($AS).slaveName>> is lying on the table, waiting for your instructions. <</if>> </div> </p> <<if hasAnyCyberneticEyes(getSlave($AS))>> <h2>Eyes</h2> <p class="tab"> /* tab works better with links */ $He has <<if hasBothCyberneticEyes(getSlave($AS))>> ocular implants <<else>> an ocular implant <</if>> installed. You can change <<if hasBothCyberneticEyes(getSlave($AS))>>their<<else>>its<</if>> settings: <div class="eyeContainer"> <<set _on = 0, _blur = 0, _off = 0>> <<if getLeftEyeType(getSlave($AS)) === 3>> <div>Left:</div> <div> <<if getLeftEyeVision(getSlave($AS)) !== 2>> <<set _on++>> [["[ON]"|Prosthetics Configuration][eyeSurgery(getSlave($AS), "left", "fix")]] <<else>> <<print "[ON]">> <</if>> </div><div> <<if getLeftEyeVision(getSlave($AS)) !== 1>> <<set _blur++>> [["[BLUR]"|Prosthetics Configuration][eyeSurgery(getSlave($AS), "left", "blur")]] <<else>> <<print "[BLUR]">> <</if>> </div><div> <<if getLeftEyeVision(getSlave($AS)) !== 0>> <<set _off++>> [["[OFF]"|Prosthetics Configuration][eyeSurgery(getSlave($AS), "left", "blind")]] <<else>> <<print "[OFF]">> <</if>> </div> <</if>> <<if getRightEyeType(getSlave($AS)) === 3>> <div>Right:</div> <div> <<if getRightEyeVision(getSlave($AS)) !== 2>> <<set _on++>> [["[ON]"|Prosthetics Configuration][eyeSurgery(getSlave($AS), "right", "fix")]] <<else>> <<print "[ON]">> <</if>> </div><div> <<if getRightEyeVision(getSlave($AS)) !== 1>> <<set _blur++>> [["[BLUR]"|Prosthetics Configuration][eyeSurgery(getSlave($AS), "right", "blur")]] <<else>> <<print "[BLUR]">> <</if>> </div><div> <<if getRightEyeVision(getSlave($AS)) !== 0>> <<set _off++>> [["[OFF]"|Prosthetics Configuration][eyeSurgery(getSlave($AS), "right", "blind")]] <<else>> <<print "[OFF]">> <</if>> </div> <</if>> <<if hasBothCyberneticEyes(getSlave($AS))>> <div>Both:</div> <div> <<if _on > 0>> [["[ON]"|Prosthetics Configuration][eyeSurgery(getSlave($AS), "both", "fix")]] <<else>> <<print "[ON]">> <</if>> </div><div> <<if _blur > 0>> [["[BLUR]"|Prosthetics Configuration][eyeSurgery(getSlave($AS), "both", "blur")]] <<else>> <<print "[BLUR]">> <</if>> </div><div> <<if _off > 0>> [["[OFF]"|Prosthetics Configuration][eyeSurgery(getSlave($AS), "both", "blind")]] <<else>> <<print "[OFF]">> <</if>> </div> <</if>> </div> </p> <p class="indent"> $He has <<print App.Desc.eyesColor(getSlave($AS))>>. To change $his eye color visit the [[auto salon|Salon]]. </p> <</if>> <<if getSlave($AS).earImplant == 1>> <h2>Ears</h2> <p class="indent"> $He has cochlear implants installed. <<if getSlave($AS).hears == 0>> They are operating normally. <<elseif getSlave($AS).hears == -1>> They are set to muffle $his hearing. <<else>> They are turned off. <</if>> </p> <p class="indent"> <<if getSlave($AS).hears != 0>> [[Restore hearing|Prosthetics Configuration][getSlave($AS).hears = 0, $prostheticsConfig = "hearing"]] | <</if>> <<if getSlave($AS).hears != -1>> [[Muffle|Prosthetics Configuration][getSlave($AS).hears = -1, $prostheticsConfig = "hearing"]] <<if getSlave($AS).hears != -2>> | <</if>> <</if>> <<if getSlave($AS).hears != -2>> [[Disable|Prosthetics Configuration][getSlave($AS).hears = -2, $prostheticsConfig = "hearing"]] <</if>> </p> <</if>> <<if getSlave($AS).electrolarynx == 1>> <h2>Voice</h2> <p class="indent"> $He has an electrolarynx installed. <<if getSlave($AS).voice == 0>> It is turned off. <<elseif getSlave($AS).voice == 1>> It is set to its "deep voice" setting. <<elseif getSlave($AS).voice == 2>> It is set to its "normal voice" setting. <<elseif getSlave($AS).voice == 3>> It is set to its "high voice" setting. <</if>> </p> <p class="indent"> <<if getSlave($AS).voice != 0>> [[Disable|Prosthetics Configuration][getSlave($AS).voice = 0, $prostheticsConfig = "voice"]] | <</if>> <<if getSlave($AS).voice != 1>> [[Deep voice setting|Prosthetics Configuration][getSlave($AS).voice = 1, $prostheticsConfig = "voice"]] | <</if>> <<if getSlave($AS).voice != 2>> [[Standard voice setting|Prosthetics Configuration][getSlave($AS).voice = 2, $prostheticsConfig = "voice"]] <<if getSlave($AS).voice != 3>> | <</if>> <</if>> <<if getSlave($AS).voice != 3>> [[High voice setting|Prosthetics Configuration][getSlave($AS).voice = 3, $prostheticsConfig = "voice"]] <</if>> </p> <</if>> <h2>Limbs</h2> <p class="choices"> <<= App.Desc.limbChange().selector(getSlave($AS), App.Desc.limbChange().currentLimbs(getSlave($AS)))>> </p> <h2>Tail</h2> <p class="indent"> <<if getSlave($AS).PTail == 1>> <div> $He has a neural tail interface installed. You can assign and adjust $his tail here. </div> <div class="double-indent"> <<if getSlave($AS).tail != "none">> $He currently has a tail attached, if you wish to change it you will first need to detach it. <div> [[Detach|Prosthetics Configuration][$prostheticsConfig = "detachTail",$nextButton = "Continue", $nextLink = "Prosthetics Configuration"]] </div> <<else>> <<if isProstheticAvailable(getSlave($AS), "modT")>> <div> Attach a modular tail designed to look like a: </div> <div> [[Cat's Tail|Prosthetics Configuration][$prostheticsConfig = "attachTail", getSlave($AS).tail = "mod", getSlave($AS).tailShape = "neko", getSlave($AS).tailColor = getSlave($AS).hColor]] | [[Dog's Tail|Prosthetics Configuration][$prostheticsConfig = "attachTail", getSlave($AS).tail = "mod", getSlave($AS).tailShape = "inu", getSlave($AS).tailColor = getSlave($AS).hColor]] | [[Fox's Tail|Prosthetics Configuration][$prostheticsConfig = "attachTail", getSlave($AS).tail = "mod", getSlave($AS).tailShape = "kit", getSlave($AS).tailColor = getSlave($AS).hColor]] | [[Kitsune's Tail|Prosthetics Configuration][$prostheticsConfig = "attachTail", getSlave($AS).tail = "mod", getSlave($AS).tailShape = "kitsune", getSlave($AS).tailColor = getSlave($AS).hColor]] | [[Tanuki's Tail|Prosthetics Configuration][$prostheticsConfig = "attachTail", getSlave($AS).tail = "mod", getSlave($AS).tailShape = "tanuki", getSlave($AS).tailColor = getSlave($AS).hColor]] | [[Cow's Tail|Prosthetics Configuration][$prostheticsConfig = "attachTail", getSlave($AS).tail = "mod", getSlave($AS).tailShape = "ushi", getSlave($AS).tailColor = getSlave($AS).hColor]] | [[Rabbit's Tail|Prosthetics Configuration][$prostheticsConfig = "attachTail", getSlave($AS).tail = "mod", getSlave($AS).tailShape = "usagi", getSlave($AS).tailColor = getSlave($AS).hColor]] | [[Squirrel's Tail|Prosthetics Configuration][$prostheticsConfig = "attachTail", getSlave($AS).tail = "mod", getSlave($AS).tailShape = "risu", getSlave($AS).tailColor = getSlave($AS).hColor]] | [[Horse's Tail|Prosthetics Configuration][$prostheticsConfig = "attachTail", getSlave($AS).tail = "mod", getSlave($AS).tailShape = "uma", getSlave($AS).tailColor = getSlave($AS).hColor]] </div> <</if>> <div> <<if isProstheticAvailable(getSlave($AS), "combatT")>> [[Attach Combat Tail|Prosthetics Configuration][$prostheticsConfig = "attachTail", getSlave($AS).tail = "combat", getSlave($AS).tailColor = "jet black"]] <<if isProstheticAvailable(getSlave($AS), "sexT")>> | <</if>> <</if>> <<if isProstheticAvailable(getSlave($AS), "sexT")>> [[Attach Pleasure Tail|Prosthetics Configuration][$prostheticsConfig = "attachTail", getSlave($AS).tail = "sex", getSlave($AS).tailColor = "pink"]] <</if>> </div> <</if>> </div> <<else>> //$He does not have a neural tail interface installed so you cannot attach a tail.// <</if>> <<if getSlave($AS).tail == "mod">> <div> $He currently has a modular tail, styled to look like <<if getSlave($AS).tailShape == "neko">> a long, slender cat tail. <<elseif getSlave($AS).tailShape == "inu">> a bushy dog tail. <<elseif getSlave($AS).tailShape == "kit">> a soft, fluffy fox tail. <<elseif getSlave($AS).tailShape == "kitsune">> three incredibly soft, fluffy fox tails. <<elseif getSlave($AS).tailShape == "tanuki">> a long, fluffy tanuki tail. <<elseif getSlave($AS).tailShape == "ushi">> a long cow tail. <<elseif getSlave($AS).tailShape == "usagi">> a short rabbit tail. <<elseif getSlave($AS).tailShape == "risu">> a large squirrel tail. <<elseif getSlave($AS).tailShape == "uma">> a long horse tail. <</if>> </div> <div class="double-indent"> Modify $his tail's appearance: <div> [[Cat|Prosthetics Configuration][getSlave($AS).tailShape = "neko", cashX(forceNeg($modCost), "slaveMod", getSlave($AS))]] | [[Dog|Prosthetics Configuration][getSlave($AS).tailShape = "inu", cashX(forceNeg($modCost), "slaveMod", getSlave($AS))]] | [[Fox|Prosthetics Configuration][getSlave($AS).tailShape = "kit", cashX(forceNeg($modCost), "slaveMod", getSlave($AS))]] | [[Kitsune|Prosthetics Configuration][getSlave($AS).tailShape = "kitsune", cashX(forceNeg($modCost), "slaveMod", getSlave($AS))]] | [[Tanuki|Prosthetics Configuration][getSlave($AS).tailShape = "tanuki", cashX(forceNeg($modCost), "slaveMod", getSlave($AS))]] | [[Bovine|Prosthetics Configuration][getSlave($AS).tailShape = "ushi", cashX(forceNeg($modCost), "slaveMod", getSlave($AS))]] | [[Rabbit|Prosthetics Configuration][getSlave($AS).tailShape = "usagi", cashX(forceNeg($modCost), "slaveMod", getSlave($AS))]] | [[Squirrel|Prosthetics Configuration][getSlave($AS).tailShape = "risu", cashX(forceNeg($modCost), "slaveMod", getSlave($AS))]] | [[Horse|Prosthetics Configuration][getSlave($AS).tailShape = "uma", cashX(forceNeg($modCost), "slaveMod", getSlave($AS))]] </div> </div> <</if>> </p> <h2>Prosthetics</h2> <p class="choices"> //Fit prosthetics to $him:// <div class="buyProsthetics"> <div></div> <div>''Buy and fit''</div> <div> <<if $researchLab.level > 0>> <<= App.UI.disabledLink(`''Construct in lab''`, ["Depending on lab speed, it might be faster than fitting an existing prosthetic but should almost always be faster than first building and then fitting it to $him."])>> <<else>> <<= App.UI.disabledLink(`''Construct in lab''`, ["With a lab you could both increase speed and decrease cost."])>> <</if>> </div> <div style="text-align:right"> <<if $researchLab.speed >= 300>> /* max speed */ <<= App.UI.disabledLink(`''Fast assembly''`, ["Your lab is so fast that fitting prosthetics to your slave can done instantly though you will sacrifice some efficiency."])>> <<elseif $researchLab.level > 0>> <<= App.UI.disabledLink(`''Fast assembly''`, ["Your lab is not fast enough to fit prosthetics instantly."])>> <</if>> </div> <<for _p range setup.prostheticIDs>> <<if _p != "erectile">> /* exclude erectile implant */ <div><<= capFirstChar(setup.prosthetics[_p].name)>></div> <<if $adjustProsthetics.findIndex(function(p) {return p.id == _p && p.slaveID == getSlave($AS).ID}) != -1 || $researchLab.tasks.findIndex(function(p) {return p.type == "craftFit" && p.id == _p && p.slaveID == getSlave($AS).ID}) != -1>> <div class="full">//Currently being fitted to $him.//</div> <<elseif setup.prosthetics[_p].level > $prostheticsUpgrade>> <div class="full">//Better contracts are needed to buy this.//</div> <<elseif isProstheticAvailable(getSlave($AS), _p)>> <div class="full">//Completed.//</div> <<else>> <<capture _p>> <div> <<if $prosthetics[_p].amount > 0>> <<link "From storage" "Prosthetics Configuration">> <<set $adjustProsthetics.push({id: _p, workLeft: setup.prosthetics[_p].adjust, slaveID: getSlave($AS).ID}), $prosthetics[_p].amount -= 1>> <</link>> <<else>> <<link "<<= cashFormat(setup.prosthetics[_p].costs)>>" "Prosthetics Configuration">> <<set $adjustProsthetics.push({id: _p, workLeft: setup.prosthetics[_p].adjust, slaveID: getSlave($AS).ID}), cashX(forceNeg(setup.prosthetics[_p].costs), "slaveMod", getSlave($AS))>> <</link>> <</if>> </div> <<if $prosthetics[_p].research > 0>> <div style="text-align:center"> <<if $researchLab.level > 0 && $prosthetics[_p].research > 0>> <<link "Construct" "Prosthetics Configuration">> <<set $researchLab.tasks.push({ type: "craftFit", id: _p, workLeft: (setup.prosthetics[_p].adjust + setup.prosthetics[_p].craft) / 1.5, slaveID: $AS})>> /* 1.5: longer than adjust, but faster than adjust+craft. */ <</link>> <</if>> </div> <div style="text-align:right"> <<if $researchLab.speed >= 300 && $prosthetics[_p].research > 0>> /* max speed */ <<if $prosthetics[_p].amount > 0>> <<link "From storage: <<= cashFormat(setup.prosthetics[_p].adjust * 50)>>" "Prosthetics Configuration">> <<set cashX(forceNeg(setup.prosthetics[_p].costs * 1.5), "slaveMod", getSlave($AS)), addProsthetic(getSlave($AS), _p)>> <</link>> <<else>> <<link "<<= cashFormat(setup.prosthetics[_p].costs + setup.prosthetics[_p].adjust * 100)>>" "Prosthetics Configuration">> <<set cashX(forceNeg(setup.prosthetics[_p].costs + setup.prosthetics[_p].adjust * 100), "slaveMod", getSlave($AS)), addProsthetic(getSlave($AS), _p)>> <</link>> <</if>> <</if>> </div> <<elseif $researchLab.level > 0>> <div class="research"> //Not researched.// </div> <</if>> <</capture>> <</if>> <</if>> <</for>> </div> </p> /* base screen END */ /* <<case "eyes">> <<set $prostheticsConfig = "main", $nextButton = "Continue", $nextLink = "Prosthetics Configuration">> <<if getSlave($AS).eyes == 1>> $He blinks as $his vision returns. <<elseif getSlave($AS).eyes == -1>> $He squints at you as $his vision becomes a blur. <<else>> $He has a panicked expression when $his vision suddenly goes out. <</if>> */ <<case "limbs">> <<set $prostheticsConfig = "main", $nextButton = "Continue", $nextLink = "Prosthetics Configuration">> <<= App.Desc.limbChange().reaction(getSlave($AS), $oldLimbs)>> <<unset $oldLimbs>> /* <<case "basicPLimbs">> <<set $prostheticsConfig = "main", $nextButton = "Continue", $nextLink = "Prosthetics Configuration">> Attaching $his limbs is a simple procedure, you simply push a connector on each limb into the socket in $his implants until the lock engages.<<if getSlave($AS).PLimb == 2>> $He jumps a bit as limbs connect to $his nerves.<</if>> <<if getSlave($AS).fetish != "mindbroken" && getSlave($AS).fuckdoll == 0>> <<if getSlave($AS).devotion > 20>> $He's overwhelmed with gratitude and thanks you profusely the first chance $he gets. $He follows the acclimation program diligently, doing $his best to learn how to be a good slave despite, or sometimes even because of, $his artificial arms and legs. <<elseif getSlave($AS).devotion >= -20>> $He's overwhelmed with gratitude in part because $he didn't think you'd do something like this for $him. $He thanks you profusely the first chance $he gets, and follows the acclimation program diligently, trying to deserve the expense you went to. <<else>> Despite $his hatred of you, $he can't help but notice that you clearly have a plan for $him that involves putting a good deal of value into $him. Your goals might not be $hers, but at least $he has an indication that you're not toying with $him. <</if>> <</if>> <<case "sexPLimbs">> <<set $prostheticsConfig = "main", $nextButton = "Continue", $nextLink = "Prosthetics Configuration">> Attaching $his limbs is a simple procedure, you simply push a connector on each limb into the socket in $his implants until the lock engages.<<if getSlave($AS).PLimb == 2>> $He jumps a bit as limbs connect to $his nerves.<</if>> While exiting the prosthetic lab $he is experimenting with $his new arms and legs. <<if getSlave($AS).fetish != "mindbroken" && getSlave($AS).fuckdoll == 0>> <<if getSlave($AS).devotion <= 20>> $He rapidly discovers that $his fingertips are now vibrators, and then makes a mess when $he figures out that $his hands can dispense lube without figuring out how to make them stop dispensing lube. $He's frustrated and frightened, realizing that even $his prosthetics are now customized to suit $his purpose as a human sex toy. $He knew $he was a toy before, but somehow, being a literal vibrator is a bit much for $him. <<elseif getSlave($AS).energy > 95>> Since $he's a nympho, $he discovers $his new sexual functions in a hurry. They trigger in part is based on arousal, and $he's never not aroused, so they activate one by one as $he leaves the surgery. The vibration, lube, and other dirty functions surprise $him, and it takes $him a moment to realize what's going on, but $he begins to breathe hard when $he understands. <<else>> $He discovers $his sexy new functions one by one. The vibration, lube, and other dirty functions surprise $him, and it takes $him a moment to realize what's going on, but $he begins to shake with amusement when $he understands. $He heads off to try them out. <</if>> <</if>> <<case "beautyPLimbs">> <<set $prostheticsConfig = "main", $nextButton = "Continue", $nextLink = "Prosthetics Configuration">> Attaching $his limbs is a simple procedure, you simply push a connector on each limb into the socket in $his implants until the lock engages.<<if getSlave($AS).PLimb == 2>> $He jumps a bit as limbs connect to $his nerves.<</if>> $He exits the prosthetic lab <<if canSee(getSlave($AS))>>marveling at the beautiful, natural appearance of $his new arms and legs<<else>>thanking you for $his new arms and legs, unaware of how natural they look<</if>>. <<if getSlave($AS).fetish != "mindbroken" && getSlave($AS).fuckdoll == 0>> <<if getSlave($AS).devotion <= 20>> If $he doubts that you have some sort of long term plan for $him, all $he has to do is <<if canSee(getSlave($AS))>>look down and examine<<else>>feel<</if>> $his elegant, natural prosthetics, which are often mistaken for the genuine article. Even $he makes the mistake at times as $he gets used to them. <<elseif getSlave($AS).skill.entertainment >= 100>> Since $he's a masterful entertainer, $he knows multiple styles of dance, though $his straightforward modern prosthetics never allowed $him to be anything more than a mechanically competent dancer. $He finds that $he has far better balance now, in addition to looking more natural. Before long, $he goes //en pointe// and holds the position, before collapsing in a heap. It soon becomes apparent that this wasn't due to clumsiness: $he's sobbing so hard $he can barely breathe. $He thanks you profusely the next time $he sees you, eyes still puffy with tears of joy. <<else>> When $he first <<if canSee(getSlave($AS))>>catches sight of $himself in a mirror<<else>>runs a new finger over $his natural feeling skin<</if>>, $he begins to cry. Terribly complex emotions war across $his face: gratitude, joy, regret, and something undefinable. Blinking, $he uses newly elegant fingertips to trace the scarcely visible seams where $his artificial and natural skin meet. $He thanks you profusely the next time $he sees you, eyes still puffy with tears. <</if>> <</if>> <<case "combatPLimbs">> <<set $prostheticsConfig = "main", $nextButton = "Continue", $nextLink = "Prosthetics Configuration">> Attaching $his limbs is a simple procedure, you simply push a connector on each limb into the socket in $his implants until the lock engages.<<if getSlave($AS).PLimb == 2>> $He jumps a bit as limbs connect to $his nerves.<</if>> While exiting the prosthetic lab $he is wondering over the bulky <<if canSee(getSlave($AS))>>appearance<<else>>weight<</if>> of $his reinforced arms and legs. <<if getSlave($AS).fetish != "mindbroken" && getSlave($AS).fuckdoll == 0>> <<if getSlave($AS).devotion <= 20>> $He's frightened, once $he discovers what $he can do, and what $he is. $His integral weapons are locked out by the arcology systems, for now, but $he quickly realizes what they are. $He is not, to say the least, thrilled by the revelation that $he is now a living weapon, and is kept awake by thoughts of what you might be planning for $him. <<elseif (getSlave($AS).skill.combat == 1) && (getSlave($AS).devotion > 75)>> $He leaves the prosthetic lab with a purpose, $his footsteps a bit heavier than before. $He heads down to the armory's range, still naked, and when $he gets there, $he places $his dominant hand over $his thigh on that side. It folds open, revealing a handgun, which $he draws and empties into a <<if canSee(getSlave($AS))>>target<<else>>beeping target<</if>>; as $he fires the last rounds, $he uses $his off hand to reach down to that thigh, which folds open and reveals spare magazines. $He knows that $his prosthetics are a wash, at best, in terms of actual combat effectiveness; they'll never match the reliability and dexterity of the genuine article. But $he thinks they are //cool.// <<else>> $He has mixed feelings about what $he soon discovers. $He's a living weapon now, and has to live with the constant knowledge that $he can incapacitate or kill with nothing more than what's contained within $his arms and legs. $He's touched, though, by the tremendous trust this shows. $He knows that the arcology would instantly lock out $his weapons if $he were to misbehave, but $he's still affected. <</if>> <</if>> <<case "cyberPLimbs">> <<set $prostheticsConfig = "main", $nextButton = "Continue", $nextLink = "Prosthetics Configuration">> Attaching $his limbs is a simple procedure, you simply push a connector on each limb into the socket in $his implants until the lock engages.<<if getSlave($AS).PLimb == 2>> $He jumps a bit as limbs connect to $his nerves.<</if>> $He exits the prosthetic lab marveling <<if canSee(getSlave($AS))>>at the shiny artificial skin of $his new arms and legs<<else>>at the feel of the artificial skin of $his new arms and legs under $his new fingers<</if>>. <<if getSlave($AS).fetish != "mindbroken" && getSlave($AS).fuckdoll == 0>> <<if getSlave($AS).devotion <= 20>> $He's frightened, once $he discovers what $he can do, and what $he is. $His cybernetic limbs are restricted by the arcology systems, for now, but $he quickly realizes what they are. $He is not, to say the least, thrilled by the revelation that $he is now a living weapon, and is kept awake by thoughts of what you might be planning for $him. <<elseif (getSlave($AS).skill.combat == 1) && (getSlave($AS).devotion > 75)>> $He leaves the surgery with a purpose, $his footsteps a bit heavier than before. $He heads down to the armory's range, still naked, and when $he gets there, $he places $his dominant hand over $his thigh on that side. It folds open, revealing a handgun, which $he draws and empties into a <<if canSee(getSlave($AS))>>target<<else>>beeping target<</if>>; as $he fires the last rounds, $he uses $his off hand to reach down to that thigh, which folds open and reveals spare magazines. $He knows that $his prosthetics will enhance $his combat effectiveness and $he thinks they are //cool.// <<else>> $He has mixed feelings about what $he soon discovers. $He's a living weapon now, and has to live with the constant knowledge that $he can incapacitate or kill with nothing more than $his arms and legs themselves. $He's touched, though, by the tremendous trust this shows. $He knows that the arcology would instantly lock out $his limbs if $he were to misbehave, but $he's still affected. <</if>> <</if>> <<case "removeLimbs">> <<set $prostheticsConfig = "main", $nextButton = "Continue", $nextLink = "Prosthetics Configuration">> Due to built-in safeties it is necessary to remove each limb separately, first releasing the lock and then waiting for automated seal release.<br> <<if (getSlave($AS).devotion > 20)>> You instruct $him to lie down on the table and proceed to remove $his limbs. $He <<if canSee(getSlave($AS))>>watches<<elseif canHear(getSlave($AS))>>listens<<else>>waits<</if>> with interest as you work.<<if (getSlave($AS).devotion > 50)>> As you remove the last limb $he playfully wiggles $his stumps at you.<</if>> <<else>> You order $him to lie down on the table and proceed to remove $his limbs. $He <<if canSee(getSlave($AS))>>watches<<elseif canHear(getSlave($AS))>>listens<<else>>waits<</if>> with a bitter expression as you work. <</if>> */ <<case "hearing">> <<set $prostheticsConfig = "main", $nextButton = "Continue", $nextLink = "Prosthetics Configuration">> <<if getSlave($AS).hears == 0>> $He tilts $his head as $his hearing returns. <<elseif getSlave($AS).hears == -1>> $He shakes $his head as $his hearing becomes muffled. <<else>> $He has a panicked expression when $his hearing is suddenly silenced. <</if>> <<case "voice">> <<set $prostheticsConfig = "main", $nextButton = "Continue", $nextLink = "Prosthetics Configuration">> <<if getSlave($AS).voice == 0>> $He tries testing out $his new voice, only to discover $he's been made mute. <<elseif getSlave($AS).voice == 1>> $He tests out the <<if canHear(getSlave($AS))>>sound<<else>>feeling<</if>> of $his new, deep voice. <<elseif getSlave($AS).voice == 2>> $He tests out the <<if canHear(getSlave($AS))>>sound<<else>>feeling<</if>> of $his new, normal voice. <<elseif getSlave($AS).voice == 3>> $He tests out the <<if canHear(getSlave($AS))>>sound<<else>>feeling<</if>> of $his new, high voice. <</if>> <<case "detachTail">> <<set $prostheticsConfig = "main", $nextButton = "Continue", $nextLink = "Prosthetics Configuration">> <<set getSlave($AS).tail = "none", getSlave($AS).tailShape = "none", getSlave($AS).tailColor = "none">> You send the release signal and the mechanical lock disengages allowing the artificial tail to pop right off. <<case "attachTail">> <<set $prostheticsConfig = "main", $nextButton = "Continue", $nextLink = "Prosthetics Configuration">> Attaching $his tail is a simple procedure, you simply push the connector into a socket, right where $his tailbone ends, until the lock engages.<br> When you are done, $he looks back and <<if getSlave($AS).tailShape == "neko">>sways $his tail side to side enigmatically. <<elseif getSlave($AS).tailShape == "inu">>wags $his tail side to side energetically. <<elseif getSlave($AS).tailShape == "kit">>slowly sways $his tail feeling the soft fur brush against $his skin. <<elseif getSlave($AS).tailShape == "kitsune">>slowly sways $his tails luxuriating in the incredibly soft, fluffy fur brushing against $his skin. <<elseif getSlave($AS).tailShape == "tanuki">>admires $his long, thick fluffy tail. <<elseif getSlave($AS).tailShape == "ushi">>swats $himself playfully. <<elseif getSlave($AS).tailShape == "usagi">>wiggles $his little tail a bit. <<elseif getSlave($AS).tailShape == "risu">>admires $his the size of $his fluffy tail. <<elseif getSlave($AS).tailShape == "uma">>sways $his tail back and forth. <<elseif getSlave($AS).tail == "combat">>experimentally whips the long tail side to side then takes aim at a prepared fruit, lashes out with blinding speed and smiles as it explodes into chunks. <<elseif getSlave($AS).tail == "sex">>accidentally engages the vibrating and lube functions, startling $him and making quite a mess. <<else>>admires $his new tail. <</if>> /* <<case "interface">> <span id="attach"> <<set _first = 1>> /*TODO save .legsTat and .armsTat / link them to prosthetic*/ /* <<if getLeftArmID(getSlave($AS)) !== 2 && isProstheticAvailable(getSlave($AS), "basicL")) != -1>> <<if _first>> <br><br>Since you already have prepared limbs for $him you might as well attach them while you are working on $him:<br> <<set _first = 0>> <</if>> <<link "Attach <<= addA(setup.prosthetics.basicL.name)>>">> <<set removeLimbs(getSlave($AS), "all"), attachLimbs(getSlave($AS), "all", 2), $prostheticsConfig = "basicPLimbs">> <<replace #attach>><br><br><<include "Prosthetics Configuration">><<set $nextLink = "Remote Surgery">><</replace>> <</link>> <br> <</if>> <<if getLeftArmID(getSlave($AS)) !== 3 && isProstheticAvailable(getSlave($AS), "sexL"))>> <<if _first>> <br><br>Since you already have prepared limbs for $him you might as well attach them while you are working on $him:<br> <<set _first = 0>> <</if>> <<link "Attach <<= addA(setup.prosthetics.sexL.name)>>">> <<set removeLimbs(getSlave($AS), "all"), attachLimbs(getSlave($AS), "all", 3), $prostheticsConfig = "sexPLimbs">> <<replace #attach>><br><br><<include "Prosthetics Configuration">><<set $nextLink = "Remote Surgery">><</replace>> <</link>> <br> <</if>> <<if getLeftArmID(getSlave($AS)) !== 4 && isProstheticAvailable(getSlave($AS), "beautyL")>> <<if _first>> <br><br>Since you already have prepared limbs for $him you might as well attach them while you are working on $him:<br> <<set _first = 0>> <</if>> <<link "Attach <<= addA(setup.prosthetics.beautyL.name)>>">> <<set removeLimbs(getSlave($AS), "all"), attachLimbs(getSlave($AS), "all", 4), $prostheticsConfig = "beautyPLimbs">> <<replace #attach>><br><br><<include "Prosthetics Configuration">><<set $nextLink = "Remote Surgery">><</replace>> <</link>> <br> <</if>> <<if getLeftArmID(getSlave($AS)) !== 5 && isProstheticAvailable(getSlave($AS), "combatL")>> <<if _first>> <br><br>Since you already have prepared limbs for $him you might as well attach them while you are working on $him:<br> <<set _first = 0>> <</if>> <<link "Attach <<= addA(setup.prosthetics.combatL.name)>>">> <<set removeLimbs(getSlave($AS), "all"), attachLimbs(getSlave($AS), "all", 5), $prostheticsConfig = "combatPLimbs">> <<replace #attach>><br><br><<include "Prosthetics Configuration">><<set $nextLink = "Remote Surgery">><</replace>> <</link>> <br> <</if>> <<if getLeftArmID(getSlave($AS)) !== 6 && isProstheticAvailable(getSlave($AS), "cyberneticL")>> <<if getSlave($AS).PLimb == 2>> <<if _first>> <br><br>Since you already have prepared limbs for $him you might as well attach them while you are working on $him:<br> <<set _first = 0>> <</if>> <<link "Attach <<= addA(setup.prosthetics.cyberneticL.name)>>" "Prosthetics Configuration">> <<set removeLimbs(getSlave($AS), "all"), attachLimbs(getSlave($AS), "all", 6), $prostheticsConfig = "cyberPLimbs">> <<replace #attach>><br><br><<include "Prosthetics Configuration">><<set $nextLink = "Remote Surgery">><</replace>> <</link>> <</if>> <</if>> </span> */ <</switch>>
MonsterMate/fc
src/interaction/prostheticConfig.tw
tw
mit
31,203
:: Prosthetic Lab [nobr jump-to-safe jump-from-safe] <<set $nextButton = "Back", $nextLink = "Manage Penthouse">> <<set $researchLab.speed = (($researchLab.hired * 3) + $researchLab.menials) * $researchLab.aiModule>> <h1>Prosthetic Lab</h1> <<if $adjustProsthetics.length > $adjustProstheticsCompleted>> <h2>External contract workers</h2> Currently adjusting these prosthetics: <<for _p range $adjustProsthetics>> <<if _p.workLeft > 0>> <div class="indent"> <<= capFirstChar(setup.prosthetics[_p.id].name)>> for <<= SlaveFullName($slaves[$slaveIndices[_p.slaveID]])>> </div> <</if>> <</for>> <</if>> <<if $researchLab.level > 0>> <h2>Research Department</h2> //You switch one of the screens in your office to the feed from your research facility.// <h3>Personnel</h3> <<if $researchLab.aiModule == 1>> <div> [[Buy and install research module|Prosthetic Lab][cashX(forceNeg(35000*$upgradeMultiplierArcology), "capEx"), $researchLab.aiModule = 2]] //This module enables your personal assistant to assist staff and direct menials assigned to your research facility, increasing efficiency. It costs <<= cashFormat(35000*$upgradeMultiplierArcology)>>// </div> <</if>> <<if ($researchLab.hired + $researchLab.menials) == 0>> //Facility is currently unstaffed.// <<else>> //You have <<if $researchLab.hired == 1>> one scientist <<elseif $researchLab.hired > 1>> $researchLab.hired scientists <</if>> <<if $researchLab.hired > 0 && $researchLab.menials > 0 >> and<</if>> <<if $researchLab.menials == 1>> one menial slave <<elseif $researchLab.menials > 1>> $researchLab.menials menials <</if>> working in your lab. <<setAssistantPronouns>> <<if $researchLab.aiModule > 1>>Occasionally you hear the voice of your assistant as _heA helps direct and organize work.<</if>>// <</if>> <div class="indent"> Currently, this facility can employ $researchLab.maxSpace people. <<if $researchLab.maxSpace == 5>> [[Expand facility|Prosthetic Lab][cashX(forceNeg(Math.trunc(5000*$upgradeMultiplierArcology)), "capEx"), $researchLab.maxSpace = 10]] //Costs <<= cashFormat(Math.trunc(5000*$upgradeMultiplierArcology))>>// <<elseif $researchLab.maxSpace == 10>> [[Expand facility|Prosthetic Lab][cashX(forceNeg(Math.trunc(10000*$upgradeMultiplierArcology)), "capEx"), $researchLab.maxSpace = 20]] //Costs <<= cashFormat(Math.trunc(10000*$upgradeMultiplierArcology))>>// <<elseif $researchLab.maxSpace == 20>> [[Expand facility|Prosthetic Lab][cashX(forceNeg(Math.trunc(15000*$upgradeMultiplierArcology)), "capEx"), $researchLab.maxSpace = 30]] //Costs <<= cashFormat(Math.trunc(15000*$upgradeMultiplierArcology))>>// <<elseif $researchLab.maxSpace == 30>> [[Expand facility|Prosthetic Lab][cashX(forceNeg(Math.trunc(20000*$upgradeMultiplierArcology)), "capEx"), $researchLab.maxSpace = 40]] //Costs <<= cashFormat(Math.trunc(20000*$upgradeMultiplierArcology))>>// <<elseif $researchLab.maxSpace == 40>> [[Expand facility|Prosthetic Lab][cashX(forceNeg(Math.trunc(25000*$upgradeMultiplierArcology)), "capEx"), $researchLab.maxSpace = 50]] //Costs <<= cashFormat(Math.trunc(25000*$upgradeMultiplierArcology))>>// <<elseif $researchLab.maxSpace == 50>> //Facility is fully expanded.// <</if>> </div> <div style="padding-top:1em"> <<if ($researchLab.hired + $researchLab.menials) < $researchLab.maxSpace>> <div> Hire [[x1|Prosthetic Lab][$researchLab.hired += 1,cashX(forceNeg(2000), "labScientistsTransfer")]] <<if ($researchLab.maxSpace - ($researchLab.hired + $researchLab.menials)) >= 5>> | [[x5|Prosthetic Lab][$researchLab.hired += 5,cashX(forceNeg(10000), "labScientistsTransfer")]] <</if>> <<if ($researchLab.maxSpace - ($researchLab.hired + $researchLab.menials)) >= 10>> | [[x10|Prosthetic Lab][$researchLab.hired += 10,cashX(forceNeg(10000), "labScientistsTransfer")]] <</if>> scientists. </div> <div class="indent"> //Each scientist will require an initial fee of <<= cashFormat(2000)>> and incur <<= cashFormat(300)>> weekly.// </div> <div> <<if $menials > 0>> Assign [[x1|Prosthetic Lab][$researchLab.menials += 1,$menials -= 1]] <<if ($researchLab.maxSpace - ($researchLab.hired + $researchLab.menials)) >= 5 && $menials >= 5>> | [[x5|Prosthetic Lab][$researchLab.menials += 5,$menials -= 5]] <</if>> <<if ($researchLab.maxSpace - ($researchLab.hired + $researchLab.menials)) >= 10 && $menials >= 10>> | [[x10|Prosthetic Lab][$researchLab.menials += 10,$menials -= 10]] <</if>> menial slaves to lab. <<else>> You do not own any <<if $researchLab.menials != 0>>unassigned <</if>>menial slaves. <</if>> </div> <div class="indent"> //Using menial slaves is much cheaper than hiring scientists, but they are less effective. <<= cashFormat(100)>> per slave each week.// </div> <<else>> <div class="indent">//Facility is fully staffed.//</div> <</if>> </div> <div style="padding-top:1em"> <<if $researchLab.hired > 0>> <div> Fire [[x1|Prosthetic Lab][$researchLab.hired -= 1]] <<if $researchLab.hired >= 5>> | [[x5|Prosthetic Lab][$researchLab.hired -= 5]] <</if>> <<if $researchLab.hired >= 10>> | [[x10|Prosthetic Lab][$researchLab.hired -= 10]] <</if>> | [[All|Prosthetic Lab][$researchLab.hired = 0]] scientists. </div> <</if>> <<if $researchLab.menials > 0>> <div> Dismiss [[x1|Prosthetic Lab][$researchLab.menials -= 1,$menials += 1]] <<if $researchLab.menials >= 5>> | [[x5|Prosthetic Lab][$researchLab.menials -= 5,$menials += 5]] <</if>> <<if $researchLab.menials >= 10>> | [[x10|Prosthetic Lab][$researchLab.menials -= 10,$menials += 10]] <</if>> | [[All|Prosthetic Lab][$menials += $researchLab.menials, $researchLab.menials = 0]] menial slaves. </div> <</if>> </div> <h3>Tasks</h3> <<if $researchLab.tasks.length > 0>> <<set _j = 0>> <<if $researchLab.speed > 0>> The following tasks are queued: <<else>> You have projects planned but without researchers you won't be able to work on them: <</if>> <br> <<for _i = 0; _i < $researchLab.tasks.length; _i++>> <div class="indent"> <<switch $researchLab.tasks[_i].type>> <<case "research">> You <<if _i == 0>>are researching<<else>> plan to research<</if>> <<case "craft">> You <<if _i == 0>>are constructing<<else>> plan to construct<</if>> <<case "craftFit">> For @@.noteworthy;<<= SlaveFullName($slaves[$slaveIndices[$researchLab.tasks[_i].slaveID]])>>@@ you <<if _i == 0>>are constructing<<else>> plan to construct<</if>> <<default>> @@.error;Error: Unknown $researchLab.tasks[].type: $researchLab.tasks[_i].type@@ <</switch>> <<set _j += $researchLab.tasks[_i].workLeft>> @@.noteworthy;<<= capFirstChar(setup.prosthetics[$researchLab.tasks[_i].id].name)>>@@. <<if $researchLab.speed > 0>> Finished in approximately <<= (Math.floor(_j / $researchLab.speed) + 1)>> week(s). <</if>> <<if $researchLab.tasks[_i].type == "research">> <<set _link = "Cancel: Will not return investments.">> <<else>> <<set _link = "Cancel">> <</if>> <<capture _i>> <<link _link "Prosthetic Lab">> <<if $researchLab.tasks[_i].type == "research">> <<set $prosthetics[$researchLab.tasks[_i].id].research = 0>> <</if>> <<set $researchLab.tasks.deleteAt(_i)>> <</link>> <</capture>> </div> <</for>> <<else>> //Currently the research lab has no tasks planned.// <</if>> <h3>Research</h3> Available research projects: <<for _p range setup.prostheticIDs>> <<if $prosthetics[_p].research == 0>> <<if _p != "erectile">> /*excludes erectile*/ <div class="indent"> <<if setup.prosthetics[_p].level <= $prostheticsUpgrade>> <<capture _p>> <<link "Reverse engineer <<= addA(setup.prosthetics[_p].name)>>" "Prosthetic Lab">> <<set cashX(forceNeg(setup.prosthetics[_p].costs), "labResearch"), $prosthetics[_p].research = -1, $researchLab.tasks.push({type: "research", id: _p, workLeft: setup.prosthetics[_p].research})>> <</link>> <</capture>> //Costs <<= cashFormat(setup.prosthetics[_p].costs)>> of initial investment.// <<else>> //You need better contracts to get the required research material for reverse engineering <<= addA(setup.prosthetics[_p].name)>>.// <</if>> </div> <</if>> <</if>> <</for>> <h3>Manufacture</h3> Available building projects: <<for _p range setup.prostheticIDs>> <<if $prosthetics[_p].research == 1>> <<if _p != "erectile">> /*excludes erectile*/ <div class="indent"> <<capture _p>> <<link "Build <<= addA(setup.prosthetics[_p].name)>>" "Prosthetic Lab">> <<set $researchLab.tasks.push({type: "craft", id: _p, workLeft: setup.prosthetics[_p].craft})>> <</link>> <</capture>> </div> <</if>> <</if>> <</for>> <h3>Prepared prosthetics</h3> <p> <<= getProstheticsStockpile()>> </p> <</if>>
MonsterMate/fc
src/interaction/prostheticLab.tw
tw
mit
8,907
/** * @param {App.Entity.SlaveState} slave * @param {object} params * @param {string} [params.oldName] Their name before you renamed them by calling this function * @param {string} [params.oldSurname] Their surname before you renamed them by calling this function */ App.UI.SlaveInteract.rename = function(slave, {oldName = "", oldSurname = ""} = {}) { const r = []; const { He, he, His, his, him, girl, himself, wife } = getPronouns(slave); if (slave.slaveName === oldName && slave.slaveSurname === oldSurname) { return; } else { /* First time renaming reaction */ if (slave.slaveName === "" || !(slave.hasOwnProperty("slaveName"))) { r.push(`${oldName} needs to be called something on the records, so ${oldName} ${he} stays.`); slave.slaveName = oldName; } else if (slave.fetish === "mindbroken") { r.push(`${slave.slaveName} doesn't even recognize that ${he}'s been renamed. It simply does not register.`); } else if ((oldName !== slave.birthName && slave.slaveName === slave.birthName) || (oldSurname !== slave.birthSurname && slave.slaveSurname === slave.birthSurname)) { r.push(`${slave.slaveName}`); if (slave.devotion > 50) { r.push(`cheerfully accepts ${his} old name back.`); } else if (slave.devotion >= -20) { r.push(`obediently accepts ${his} old name back.`); } else if (slave.devotion >= -50) { r.push(`happily accepts ${his} original name.`); } else if (slave.trust > 20) { r.push(`scoffs at the notion that ${he} was ever anything other than ${SlaveFullBirthName(slave)}, <span class="orangered">weakening your control over ${him}.</span>`); slave.trust += 5; } else { r.push(`cautiously accepts the return of ${his} name.`); } } else if ((oldName === slave.birthName && slave.slaveName !== slave.birthName) || (oldSurname === slave.birthSurname && slave.slaveSurname !== slave.birthSurname)) { r.push(`${slave.slaveName}`); if (slave.devotion > 50) { r.push(`accepts ${his} new name cheerfully. This attachment to you <span class="devotion inc">increases ${his} devotion.</span>`); slave.devotion += 4; } else if (slave.devotion >= -20) { r.push(`obediently accepts ${his} new name. This surrender to you <span class="devotion inc">increases ${his} obedience.</span>`); slave.devotion += 4; } else if (slave.devotion >= -50) { r.push(`reluctantly accepts ${his} new name.`); } else { r.push(`angrily tries to resist ${his} new name, insisting that ${his} name is ${SlaveFullBirthName(slave)}. This resistance <span class="devotion dec">increases ${his} rebelliousness.</span>`); slave.devotion -= 5; } } else { r.push(`Since ${slave.slaveName} has already had a new name`); if (slave.devotion > 20) { r.push(`given to`); } else { r.push(`forced on`); } r.push(`${him} before, the mere fact of having it changed again doesn't really affect ${him}.`); } let insultingName = false; let toSearch; if (oldName !== slave.slaveName && typeof slave.slaveName === "string") { toSearch = slave.slaveName.toLowerCase(); insultingName = setup.badWords.some((s) => toSearch.includes(s)); } if (!insultingName) { if (oldSurname !== slave.slaveSurname && typeof slave.slaveSurname === "string") { toSearch = slave.slaveSurname.toLowerCase(); insultingName = setup.badWords.some((s) => toSearch.includes(s)); } } if (insultingName) { if (slave.fetish === "mindbroken") { r.push(`${His} new name would be insulting to a normal ${girl}, but ${he} dully accepts that it is an accurate description and goes about ${his} duties.`); } else if (slave.devotion < -50) { r.push(`Being given such a degrading name <span class="devotion dec">further increases ${his} hatred</span> of you.`); slave.devotion -= 5; } else if (slave.devotion <= 50) { r.push(`Being given such a degrading name <span class="trust dec">terrifies ${him},</span> since ${he} thinks it's fair warning for what ${he}'ll suffer in the future.`); slave.trust -= 5; } } /* Wife's surname reaction */ if (oldSurname !== slave.slaveSurname) { if (slave.relationship >= 5) { const slaveWife = getSlave(slave.relationshipTarget); if (!slaveWife) { r.push(`<span class="red">Error, relationshipTarget not found.</span>`); } else { if (slaveWife.slaveSurname) { const {wife2} = getPronouns(slaveWife).appendSuffix('2'); if (slave.slaveSurname === slaveWife.slaveSurname) { r.push(`${He}'s touched that ${he} now shares a surname with ${his} ${wife2} ${slaveWife.slaveName} ${slaveWife.slaveSurname}, and is <span class="trust inc">more confident than ever</span> that you intend to keep them together in marital bliss.`); slave.trust += 5; } else if (oldSurname === slaveWife.slaveSurname) { r.push(`${He}'s concerned that ${he} no longer shares a surname with ${his} ${wife2} ${slaveWife.slaveName} ${slaveWife.slaveSurname}, and is <span class="trust dec">very worried</span> that you might be considering splitting them up.`); slave.trust -= 5; } } } } } /* PC's surname reaction */ if (oldSurname !== slave.slaveSurname) { if (slave.relationship === -3) { if (V.PC.slaveSurname) { if (slave.fetish === "mindbroken") { r.push(`Names are meaningless to ${him} and it is unlikely ${he}'ll remember it.`); } else if (slave.devotion + slave.trust >= 175) { if (slave.slaveSurname === V.PC.slaveSurname) { r.push(`When you tell ${him} that ${he}'s to be known as ${slave.slaveName} ${slave.slaveSurname} now, ${he} starts to cry. ${He} tries to get ${himself} under control and thank you as best ${he} can,`); if (hasAnyArms(slave)) { r.push(`wiping at the tears running down ${his} ${slave.skin} cheeks,`); } r.push(`but ${he} can't seem to stop weeping as ${he} thanks you over and over. ${He}'s a sex slave, your property, and it's understandable that some doubts about the permanence of ${his} place as your slave ${wife}. This has <span class="trust inc">helped reassure ${him},</span> and explains the strength of ${his} emotional reaction. The next time you make love to ${him}, ${he} <span class="devotion inc">presses ${himself} as close to you as ${he} can,</span> eager to drink in as much of your presence as ${he} can get.`); slave.devotion += 5; slave.trust += 5; } else if (oldSurname === V.PC.slaveSurname) { r.push(`${He}'s devastated that you'd rename ${him} something other than your name. ${He}'s <span class="trust dec">terrified</span> that you intend to discard ${him} as your slave ${wife}, and <span class="devotion dec">saddened</span> that you would take away something that was precious to ${him}.`); slave.devotion -= 5; slave.trust -= 5; } } else if (slave.devotion < -20 && slave.trust > 20) { if (slave.slaveSurname === V.PC.slaveSurname) { r.push(`When you tell ${him} that ${he}'s to be known as ${slave.slaveName} ${slave.slaveSurname} now, ${he} shows no reaction. You already took everything from ${him}, what's a name at this point?`); } else if (oldSurname === V.PC.slaveSurname) { r.push(`${He} doesn't care about losing your surname at first, but it quickly sets in that ${he} may have <span class="trust dec">pushed ${his} position too far.</span>`); slave.trust -= 20; } } else if (slave.devotion < -20) { if (slave.slaveSurname === V.PC.slaveSurname) { r.push(`When you tell ${him} that ${he}'s to be known as ${slave.slaveName} ${slave.slaveSurname} now, ${he} pleads with you not to steal ${his} name. It matters little to you, and ${he} is forced to <span class="devotion inc">accept your will.</span>`); slave.devotion += 5; } else if (oldSurname === V.PC.slaveSurname) { r.push(`${He}'s <span class="devotion dec">happy</span> to no longer have to share a name with ${his} tormentor, but the bliss doesn't last long as <span class="trust dec">dread</span> quickly sets in about what this may mean.`); slave.devotion += 5; slave.trust -= 10; } } else { if (slave.slaveSurname === V.PC.slaveSurname) { r.push(`When you tell ${him} that ${he}'s to be known as ${slave.slaveName} ${slave.slaveSurname} now, ${he} nods with approval feeling <span class="trust inc">that ${he} may hold at least some value in your eyes.</span>`); slave.trust += 5; } else if (oldSurname === V.PC.slaveSurname) { r.push(`${He} accepts that you'd rename ${him} something other than your name. ${He}'s <span class="trust dec">a little scared</span> that you intend to discard ${him} as your slave ${wife}, or worse, but realizes this was not only a possibility, but likely.`); slave.trust -= 5; } } } } } } return jQuery("#rename").empty().append(r.join(" ")); };
MonsterMate/fc
src/interaction/rename.js
JavaScript
mit
8,943
App.UI.SlaveInteract.custom = function(slave) { const { He, His, he, his, him, } = getPronouns(slave); const el = document.createElement('div'); el.appendChild(intro()); App.UI.DOM.appendNewElement("h3", el, `Art`); el.appendChild(customSlaveImage()); el.appendChild(customHairImage()); App.UI.DOM.appendNewElement("h3", el, `Names`); el.appendChild(playerTitle()); el.appendChild(slaveFullName()); App.UI.DOM.appendNewElement("h3", el, `Description`); el.appendChild(hair()); el.appendChild(eyeColor()); el.appendChild(customTattoo()); el.appendChild(customOriginStory()); el.appendChild(customDescription()); el.appendChild(customLabel()); return el; function intro() { const frag = new DocumentFragment(); let p; p = document.createElement('p'); p.id = "rename"; frag.append(p); p = document.createElement('p'); p.className = "scene-p"; p.append(`You may enter custom descriptors for your slave's hair color, hair style, tattoos, or anything else here. After typing, press `); p.appendChild(App.UI.DOM.makeElement("kbd", "enter")); p.append(` to commit your change. These custom descriptors will appear in descriptions of your slave, but will have no gameplay effect. Changing them is free.`); frag.append(p); return frag; } function playerTitle() { let playerTitle = document.createElement('p'); const label = document.createElement('div'); let result; if (slave.devotion >= -50) { if (slave.custom.title !== "") { label.textContent = `You have instructed ${him} to always refer to you as ${slave.custom.title}, which, should ${he} lisp, comes out as ${slave.custom.titleLisp}.`; } else { label.textContent = `You expect ${him} to refer to you as all your other slaves do.`; } result = document.createElement('div'); result.id = "result"; result.className = "choices"; let hiddenTextBox = document.createElement('span'); let shownTextBox = document.createElement('span'); if (slave.custom.title === "") { hiddenTextBox.appendChild( App.UI.DOM.link( `Set a custom title for ${him} to address you as`, () => { jQuery('#result').empty().append(shownTextBox); } ) ); result.appendChild(hiddenTextBox); shownTextBox.textContent = `Custom title: `; shownTextBox.append( App.UI.DOM.makeTextBox( "", v => { slave.custom.title = v; jQuery('#result').empty().append( document.createTextNode(`${He}'ll try ${his} best to call you ${slave.custom.title}.`) ); slave.custom.titleLisp = lispReplace(slave.custom.title); } ) ); } else { result.append(`${He}'s trying ${his} best to call you `); result.append( App.UI.DOM.makeTextBox( slave.custom.title, v => { slave.custom.title = v; jQuery('#result').empty().append( document.createTextNode(`${He}'ll try ${his} best to call you ${slave.custom.title}.`) ); slave.custom.titleLisp = lispReplace(slave.custom.title); } ) ); result.appendChild( App.UI.DOM.link( ` Stop using a custom title`, () => { jQuery('#result').empty().append( document.createTextNode(`${He} will no longer refer to you with a special title.`) ); slave.custom.title = ""; slave.custom.titleLisp = ""; } ) ); } label.appendChild(result); } else { label.textContent = `You must break ${his} will further before ${he} will refer to you by a new title. `; if (SlaveStatsChecker.checkForLisp(slave)) { if (slave.custom.titleLisp && slave.custom.titleLisp !== "") { label.textContent += `For now, ${he} intends to keep calling you "${slave.custom.titleLisp}."`; } } else { if (slave.custom.title && slave.custom.title !== "") { label.textContent += `For now, ${he} intends to keep calling you "${slave.custom.title}."`; } } } playerTitle.appendChild(label); return playerTitle; } function slaveFullName() { let slaveFullNameNode = document.createElement('span'); if ( ((slave.devotion >= -50 || slave.trust < -20) && (slave.birthName !== slave.slaveName)) || (slave.devotion > 20 || slave.trust < -20) ) { slaveFullNameNode.appendChild(slaveName()); slaveFullNameNode.appendChild(slaveSurname()); } else { slaveFullNameNode.textContent = `You must break ${his} will further before you can successfully force a new name on ${him}.`; slaveFullNameNode.className = "note"; } return slaveFullNameNode; function slaveName() { const oldName = slave.slaveName; const oldSurname = slave.slaveSurname; // Slave Name let slaveNameNode = document.createElement('p'); let label = document.createElement('div'); let result = document.createElement('div'); result.id = "result"; result.className = "choices"; const linkArray = []; label.append(`Change ${his} given name`); if (slave.birthName !== slave.slaveName) { label.append(` (${his} birth name was ${slave.birthName})`); } label.append(`: `); label.append( App.UI.DOM.makeTextBox( slave.slaveName, v => { slave.slaveName = v; updateName(slave, {oldName: oldName, oldSurname: oldSurname}); }, false, ) ); slaveNameNode.appendChild(label); if (slave.slaveName === slave.birthName) { linkArray.push(App.UI.DOM.disabledLink(`${He} has ${his} birth name`, [`Nothing to reset`])); } else { linkArray.push(App.UI.DOM.link( `Restore ${his} birth name`, () => { slave.slaveName = slave.birthName; updateName(slave, {oldName: oldName, oldSurname: oldSurname}); }, false, )); } if (V.arcologies[0].FSPastoralist !== "unset") { if (slave.lactation > 0) { linkArray.push(chooseThreeNames(`Choose a random cow name for ${him}`, setup.cowSlaveNames, "cow-names")); } } if (V.arcologies[0].FSIntellectualDependency !== "unset") { if (slave.intelligence + slave.intelligenceImplant < -10) { linkArray.push(chooseThreeNames(`Give ${him} a random stripper given name`, setup.bimboSlaveNames, "bimbo-names")); } } if (V.arcologies[0].FSChattelReligionist !== "unset") { linkArray.push(chooseThreeNames(`Give ${him} a random devotional given name`, setup.chattelReligionistSlaveNames, "devotional-names")); } result.append(App.UI.DOM.generateLinksStrip(linkArray)); slaveNameNode.appendChild(result); return slaveNameNode; function chooseThreeNames(title, array, id) { const el = document.createElement("span"); el.id = id; el.append( App.UI.DOM.link( title, () => { linkGuts(); } ) ); return el; function linkGuts() { // Randomize the array const shuffled = array.sort(() => 0.5 - Math.random()); // Get the first three new names const names = []; for (let i = 0; names.length < 3; i++) { if (i > shuffled.length) { break; } if (shuffled[i] !== slave.slaveName) { names.push(shuffled[i]); } } // return the three names as links const nameLinks = []; for (const name of names) { nameLinks.push( App.UI.DOM.link( name, () => { slave.slaveName = name; updateName(slave, {oldName: oldName, oldSurname: oldSurname}); } ) ); } nameLinks.push( App.UI.DOM.link( "...", () => { linkGuts(); } ) ); jQuery(`#${id}`).empty().append(App.UI.DOM.generateLinksStrip(nameLinks)); } } } function slaveSurname() { // Slave Surname const oldName = slave.slaveName; const oldSurname = slave.slaveSurname; const linkArray = []; let slaveSurnameNode = document.createElement('p'); let label = document.createElement('div'); let result = document.createElement('div'); result.id = "result"; result.className = "choices"; label.append(`Change ${his} surname`); if (slave.birthSurname !== slave.slaveSurname) { label.append(` (${his} birth surname was ${slave.birthSurname})`); } label.append(`: `); label.append( App.UI.DOM.makeTextBox( slave.slaveSurname, v => { slave.slaveSurname = v; updateName(slave, {oldName: oldName, oldSurname: oldSurname}); }, false, ) ); slaveSurnameNode.appendChild(label); if (slave.slaveSurname === slave.birthSurname) { linkArray.push( App.UI.DOM.disabledLink( `Restore ${his} birth surname`, [`${He} has ${his} birth surname`] ) ); } else { linkArray.push(App.UI.DOM.link( ` Restore ${his} birth surname`, () => { slave.slaveSurname = slave.birthSurname; updateName(slave, {oldName: oldName, oldSurname: oldSurname}); }, false, )); } if (slave.slaveSurname) { linkArray.push(App.UI.DOM.link( `Take ${his} surname away`, () => { slave.slaveSurname = 0; updateName(slave, {oldName: oldName, oldSurname: oldSurname}); }, false, )); } if (slave.relationship >= 5) { const spouse = getSlave(slave.relationshipTarget); if (spouse.slaveSurname && slave.slaveSurname !== spouse.slaveSurname) { const wifePronouns = getPronouns(spouse); linkArray.push( App.UI.DOM.link( `Give ${him} ${his} ${wifePronouns.wife}'s surname`, () => { slave.slaveSurname = spouse.slaveSurname; updateName(slave, {oldName: oldName, oldSurname: oldSurname}); }, false, ) ); } } if (slave.relationship === -3) { if (V.PC.slaveSurname && slave.slaveSurname !== V.PC.slaveSurname) { linkArray.push( App.UI.DOM.link( `Give ${him} your surname`, () => { slave.slaveSurname = V.PC.slaveSurname; updateName(slave, {oldName: oldName, oldSurname: oldSurname}); }, false, ) ); } } if (V.arcologies[0].FSRomanRevivalist !== "unset") { linkArray.push( App.UI.DOM.link( `Give ${him} a random full Roman name`, () => { slave.slaveName = setup.romanSlaveNames.random(); slave.slaveSurname = setup.romanSlaveSurnames.random(); updateName(slave, {oldName: oldName, oldSurname: oldSurname}); }, false, ) ); } else if (V.arcologies[0].FSAztecRevivalist !== "unset") { linkArray.push( App.UI.DOM.link( `Give ${him} a random full Aztec name`, () => { slave.slaveName = setup.aztecSlaveNames.random(); slave.slaveSurname = 0; updateName(slave, {oldName: oldName, oldSurname: oldSurname}); }, false, ) ); } else if (V.arcologies[0].FSEgyptianRevivalist !== "unset") { linkArray.push( App.UI.DOM.link( `Give ${him} a random full ancient Egyptian name`, () => { slave.slaveName = setup.ancientEgyptianSlaveNames.random(); slave.slaveSurname = 0; updateName(slave, {oldName: oldName, oldSurname: oldSurname}); }, false, ) ); } else if (V.arcologies[0].FSEdoRevivalist !== "unset") { linkArray.push( App.UI.DOM.link( `Give ${him} a random full feudal Japanese name`, () => { slave.slaveName = setup.edoSlaveNames.random(); slave.slaveSurname = setup.edoSlaveSurnames.random(); updateName(slave, {oldName: oldName, oldSurname: oldSurname}); }, false, ) ); } if (V.arcologies[0].FSDegradationist > -1) { linkArray.push( App.UI.DOM.link( `Give ${him} a degrading full name`, () => { DegradingName(slave); updateName(slave, {oldName: oldName, oldSurname: oldSurname}); }, false, ) ); } result.append(App.UI.DOM.generateLinksStrip(linkArray)); slaveSurnameNode.appendChild(result); return slaveSurnameNode; } function updateName(slave, {oldName: oldName, oldSurname: oldSurname}) { App.UI.SlaveInteract.rename(slave, {oldName: oldName, oldSurname: oldSurname}); refresh(); } } function hair() { let hairNode = new DocumentFragment(); hairNode.appendChild(hairStyle()); hairNode.appendChild(hairColor()); return hairNode; function hairStyle() { let hairStyleNode = document.createElement('p'); let label = document.createElement('div'); label.append(`Custom hair description: `); label.append( App.UI.DOM.makeTextBox( slave.hStyle, v => { slave.hStyle = v; refresh(); } ) ); switch (slave.hStyle) { case "tails": case "dreadlocks": case "cornrows": label.append(` "${His} hair is in ${slave.hStyle}."`); break; case "ponytail": label.append(` "${His} hair is in a ${slave.hStyle}."`); break; default: label.append(` "${His} hair is ${slave.hStyle}."`); break; } hairStyleNode.appendChild(label); let choices = document.createElement('div'); choices.className = "choices"; choices.appendChild(App.UI.DOM.makeElement('span', ` For best results, use a short, uncapitalized and unpunctuated description; for example: 'back in a ponytail'`, 'note')); hairStyleNode.appendChild(choices); return hairStyleNode; } function hairColor() { let hairStyleNode = document.createElement('p'); let label = document.createElement('div'); label.append(`Custom hair color: `); label.append( App.UI.DOM.makeTextBox( slave.hColor, v => { slave.hColor = v; refresh(); } ) ); label.append(` "${His} hair is ${slave.hColor}."`); hairStyleNode.appendChild(label); let choices = document.createElement('div'); choices.className = "choices"; choices.appendChild(App.UI.DOM.makeElement('span', ` For best results, use a short, uncapitalized and unpunctuated description; for example: 'black with purple highlights'`, 'note')); hairStyleNode.appendChild(choices); return hairStyleNode; } } function eyeColor() { let eyeColorNode = document.createElement('p'); let label = document.createElement('div'); if (getLenseCount(slave) > 0) { label.textContent = `${He} is wearing ${App.Desc.eyesColor(slave, "", "lense", "lenses")}.`; } else { label.textContent = `${He} has ${App.Desc.eyesColor(slave)}.`; } eyeColorNode.appendChild(label); let choices = document.createElement('div'); choices.className = "choices"; let eye; if (hasLeftEye(slave)) { eye = document.createElement('div'); eye.append(`Custom left eye color: `); eye.append( App.UI.DOM.makeTextBox( slave.eye.left.iris, v => { slave.eye.left.iris = v; refresh(); } ) ); choices.appendChild(eye); } if (hasRightEye(slave)) { eye = document.createElement('div'); eye.append(`Custom right eye color: `); eye.append( App.UI.DOM.makeTextBox( slave.eye.right.iris, v => { slave.eye.right.iris = v; refresh(); } ) ); choices.appendChild(eye); } choices.appendChild(App.UI.DOM.makeElement('span', `For best results, use a short, uncapitalized and unpunctuated description; for example: 'blue'`, 'note')); eyeColorNode.appendChild(choices); return eyeColorNode; } function customTattoo() { let el = document.createElement('p'); el.append(`Change ${his} custom tattoo: `); el.appendChild(App.UI.DOM.makeTextBox( slave.custom.tattoo, v => { slave.custom.tattoo = v; refresh(); })); let choices = document.createElement('div'); choices.className = "choices"; choices.appendChild(App.UI.DOM.makeElement('span', `For best results, use complete sentences; for example: '${He} has blue stars tattooed along ${his} cheekbones.'`, 'note')); el.appendChild(choices); return el; } function customOriginStory() { let el = document.createElement('p'); el.append(`Change ${his} origin story: `); el.appendChild(App.UI.DOM.makeTextBox( slave.origin, v => { slave.origin = v; refresh(); })); let choices = document.createElement('div'); choices.className = "choices"; choices.appendChild(App.UI.DOM.makeElement('span', ` For best results, use complete, capitalized and punctuated sentences; for example: '${He} followed you home from the pet store.'`, 'note')); el.appendChild(choices); return el; } function customDescription() { let el = document.createElement('p'); el.append(`Change ${his} custom description: `); el.appendChild( App.UI.DOM.makeTextBox( pronounsForSlaveProp(slave, slave.custom.desc), v => { slave.custom.desc = v; refresh(); } ) ); let choices = document.createElement('div'); choices.className = "choices"; choices.appendChild(App.UI.DOM.makeElement('span', ` For best results, use complete, capitalized and punctuated sentences; for example: '${He} has a beauty mark above ${his} left nipple.'`, 'note')); el.appendChild(choices); return el; } function customLabel() { let el = document.createElement('p'); el.append(`Change ${his} custom label: `); el.appendChild(App.UI.DOM.makeTextBox( slave.custom.label, v => { slave.custom.label = v; refresh(); })); let choices = document.createElement('div'); choices.className = "choices"; choices.appendChild(App.UI.DOM.makeElement('span', ` For best results, use a short phrase; for example: 'Breeder.'`, 'note')); el.appendChild(choices); return el; } function customSlaveImage() { let el = document.createElement('p'); el.append(`Assign ${him} a custom image: `); const textbox = document.createElement("INPUT"); textbox.id = "customImageValue"; el.appendChild(textbox); let kbd = document.createElement('kbd'); let select = document.createElement('SELECT'); select.id = "customImageFormatSelector"; select.style.border = "none"; let filetypes = [ "png", "jpg", "gif", "webm", "webp", "mp4" ]; filetypes.forEach((fileType) => { let el = document.createElement('OPTION'); el.value = fileType; el.text = fileType.toUpperCase(); select.add(el); }); kbd.append(`.`); kbd.appendChild(select); el.appendChild(kbd); el.appendChild( App.UI.DOM.link( ` Reset`, () => { slave.custom.image = null; refresh(); App.Art.refreshSlaveArt(slave, 3, "art-frame"); }, ) ); let choices = document.createElement('div'); choices.className = "choices"; let note = document.createElement('span'); note.className = "note"; note.append(`Place file in the `); kbd = document.createElement('kbd'); kbd.append(`resources`); note.appendChild(kbd); note.append(` folder. Choose the extension from the menu first, then enter the filename in the space and press enter. For example, for a file with the path `); kbd = document.createElement('kbd'); kbd.textContent = `\\bin\\resources\\headgirl.`; let filetypeDesc = document.createElement('span'); filetypeDesc.id = "customImageFormatValue"; filetypeDesc.textContent = "png"; kbd.appendChild(filetypeDesc); note.appendChild(kbd); note.append(`, choose `); kbd = document.createElement('kbd'); kbd.textContent = `PNG`; note.appendChild(kbd); note.append(` then enter `); kbd = document.createElement('kbd'); kbd.textContent = `headgirl`; note.appendChild(kbd); note.append(`.`); choices.appendChild(note); el.appendChild(choices); jQuery(function() { function activeSlave() { return slave; } jQuery("#customImageFormatValue").text(activeSlave().custom.image === null ? "png" : activeSlave().custom.image.format); jQuery("#customImageValue") .val(activeSlave().custom.image === null ? "" : activeSlave().custom.image.filename) .on("change", function(e) { const c = activeSlave().custom; if (this.value.length === 0) { c.image = null; } else { if (c.image === null) { c.image = { filename: this.value, format: jQuery("#customImageFormatSelector").val() }; App.Art.refreshSlaveArt(slave, 3, "art-frame"); } else { c.image.filename = this.value; App.Art.refreshSlaveArt(slave, 3, "art-frame"); } } }); jQuery("#customImageFormatSelector") .val(activeSlave().custom.image ? activeSlave().custom.image.format : "png") .on("change", function(e) { if (activeSlave().custom.image !== null) { activeSlave().custom.image.format = this.value; } jQuery("#customImageFormatValue").text(this.value); }); }); return el; } function customHairImage() { let el = document.createElement('p'); if (V.seeImages === 1 && V.imageChoice === 1) { if (!slave.custom.hairVector) { slave.custom.hairVector = 0; } el.append(`Assign ${him} a custom hair SVG image: `); el.appendChild(App.UI.DOM.makeTextBox( slave.custom.hairVector, v => { slave.custom.hairVector = v; refresh(); })); el.appendChild( App.UI.DOM.link( ` Reset`, () => { slave.custom.hairVector = 0; refresh(); App.Art.refreshSlaveArt(slave, 3, "art-frame"); }, ) ); } return el; } function refresh() { jQuery("#content-custom").empty().append(App.UI.SlaveInteract.custom(slave)); } };
MonsterMate/fc
src/interaction/siCustom.js
JavaScript
mit
21,360
App.UI.SlaveInteract.description = function(slave) { const el = new DocumentFragment(); const descriptionLink = document.createElement("div"); descriptionLink.style.fontStyle = "italic"; descriptionLink.id = "description-link"; if (V.seeDetails === 1) { descriptionLink.append(showOptions()); el.append(descriptionLink); const descriptionOptions = document.createElement("div"); descriptionOptions.id = "description-options"; el.append(descriptionOptions); el.append(App.Desc.longSlave(slave, {noArt: true})); } else { descriptionLink.append( App.UI.DOM.link( "Show descriptions", () => { V.seeDetails = 1; }, [], "Slave Interact" ) ); el.append(descriptionLink); } return el; function showOptions() { return App.UI.DOM.link( "Description Options", () => { jQuery("#description-link").empty().append(hideOptions()); jQuery("#description-options").empty().append(App.UI.DOM.renderPassage("Description Options")); } ); } function hideOptions() { return App.UI.DOM.link( "Description Options", () => { jQuery("#description-link").empty().append(showOptions()); jQuery("#description-options").empty().append(); } ); } };
MonsterMate/fc
src/interaction/siDescription.js
JavaScript
mit
1,226
/** * @returns {HTMLParagraphElement} */ App.UI.SlaveInteract.family = function() { let element; const p = document.createElement("p"); p.id = "family"; element = document.createElement("div"); element.id = "family-tree"; p.append(element); element = document.createElement("span"); element.id = "family-tree-link"; p.append(element); return p; };
MonsterMate/fc
src/interaction/siFamily.js
JavaScript
mit
363
App.UI.SlaveInteract.financial = function(slave) { const el = new DocumentFragment(); let r; let linkArray; const { He, His, his, him } = getPronouns(slave); if (V.studio === 1) { App.UI.DOM.appendNewElement("h3", el, "Media"); slave.porn.spending = Math.clamp(Math.ceil(slave.porn.spending / 1000) * 1000, 0, 5000); if (slave.porn.prestige === 3) { App.UI.DOM.appendNewElement("div", el, `${He} is so prestigious in the realm of ${slave.porn.fameType} porn that ${his} fame is self-sustaining.`, "note") } else if (slave.porn.feed === 0) { r = []; r.push(`The media hub is not releasing highlights of ${his} sex life.`); r.push( App.UI.DOM.link( "Release", () => { slave.porn.feed = 1; refresh(); } ) ); App.Events.addNode(el, r, "div"); } else { r = []; r.push(`The media hub is releasing highlights of ${his} sex life`); if (slave.porn.spending < 500) { r.push(`to those who can find it.`); } else if (slave.porn.spending < 2500) { r.push(`on several websites.`); } else if (slave.porn.spending > 5000) { r.push(`through your old distributor.`); } else { r.push(`on many websites.`); } if (slave.porn.spending === 0) { linkArray = []; linkArray.push( App.UI.DOM.link( "Halt", () => { slave.porn.feed = 0; slave.porn.focus = "none"; refresh(); } ) ); linkArray.push( App.UI.DOM.link( "Publicize", () => { slave.porn.spending += 1000; refresh(); }, [], "", `Will cost ${cashFormat(1000)} weekly.` ) ); r.push(App.UI.DOM.generateLinksStrip(linkArray)); App.Events.addNode(el, r, "div"); } else { r.push( App.UI.DOM.makeTextBox( slave.porn.spending, v => { slave.porn.spending = v; }, true ) ); r.push(`weekly is spent to publicize them.`); linkArray = []; linkArray.push( App.UI.DOM.link( "Halt", () => { slave.porn.spending = 0; slave.porn.feed = 0; slave.porn.focus = "none"; V.PCSlutContacts = 1; refresh(); } ) ); if (slave.porn.spending <= 4000) { linkArray.push( App.UI.DOM.link( "Increase", () => { slave.porn.spending += 1000; refresh(); }, [], "", `Spending more than ${cashFormat(5000)} weekly will have no effect.` ) ); } linkArray.push( App.UI.DOM.link( "Decrease", () => { slave.porn.spending -= 1000; refresh(); }, [], "", `Will cost ${cashFormat(1000)} weekly.` ) ); r.push(App.UI.DOM.generateLinksStrip(linkArray)); App.Events.addNode(el, r, "div"); if (V.PC.career === "escort") { r = []; r.push(`You retain some contacts from your past life in the industry that may be willing to cut you some discounts should you return to it.`); if (V.PCSlutContacts !== 2) { r.push(`You are not baring your body for all to see.`); r.push( App.UI.DOM.link( `Star in porn for a discount`, () => { V.PCSlutContacts = 2; refresh(); } ) ); } else { r.push(`You are starring in hardcore porn once more.`); r.push( App.UI.DOM.link( `Stop doing porn for a discount`, () => { V.PCSlutContacts = 1; refresh(); } ) ); } App.Events.addNode(el, r, "div"); } } if (V.studioFeed === 1) { r = []; if (slave.porn.viewerCount < 100) { r.push(`${He} lacks the fame in porn needed to discern what ${his} feed is getting tagged as.`); } else { if (slave.porn.prestige > 0) { r.push(`${He} is known for ${slave.porn.fameType}${(slave.porn.prestige > 1) ? ` and viewers have grown to expect it from ${him}` : ``}.`); } if (slave.porn.focus === "none") { r.push(`You are allowing ${his} viewers to guide the direction of ${his} content.`); } else { r.push(`You are focusing attention on the ${slave.porn.focus} aspect of ${his} content.`); } r.push(App.Porn.genreChoiceLinks("Slave Interact", slave)); } App.Events.addNode(el, r, "div"); } } } App.UI.DOM.appendNewElement("h3", el, "Financial"); App.UI.DOM.appendNewElement("p", el, slaveExpenses(slave)); r = []; linkArray = []; if (V.slaveCostFactor > 1) { r.push(App.UI.DOM.makeElement("span", `The slave market is bullish; the price of slaves is high.`, "yellow")); } else if ((V.slaveCostFactor < 1)) { r.push(App.UI.DOM.makeElement("span", `The slave market is bearish; the price of slaves is low.`, "yellow")); } if (V.slaves.length < 2) { r.push("You cannot sell your last save"); } else if (slave.origin === "You bought ${him} from a body dump, completely broken." && (V.week - slave.weekAcquired <= 8)) { r.push(`A discarded slave must be kept for at least two months to ensure health before being sold.`); } else if (slave.accent > 3) { r.push(`${His} lack of language and basic life skills is a red sign to most slave appraisers. ${He} must not act like a child to be sold without raising suspicion.`); } else { linkArray.push( App.UI.DOM.link( `Sell ${him}`, () => { cashX(-500, "personalBusiness", slave); }, [], "Sell Slave", `Listing ${him} for sale will cost ${cashFormat(500)}` ) ); if ((V.seeAge !== 0) && (slave.indenture < 1)) { linkArray.push( App.UI.DOM.link( `Retire ${him}`, () => { V.retiree = slave.ID; V.retired = 1; }, [], "SE retirement", ) ); } linkArray.push( App.UI.DOM.passageLink( `Discard ${him}`, "Discard Confirm", ) ); if (V.seeExtreme === 1 && V.arcologies[0].FSPaternalist === "unset" && V.cheatMode === 1) { linkArray.push( App.UI.DOM.passageLink( `Threaten ${his} life`, "KillSlave", ) ); } } linkArray.push( App.UI.DOM.passageLink( `Export this slave`, "Export Slave", ) ); if (V.cheatMode) { linkArray.push( App.UI.DOM.passageLink( `Import a slave`, "Import Slave", ) ); } r.push(App.UI.DOM.generateLinksStrip(linkArray)); App.Events.addNode(el, r, "p"); return el; function refresh() { jQuery("#content-financial").empty().append(App.UI.SlaveInteract.financial(slave)); } };
MonsterMate/fc
src/interaction/siFinancial.js
JavaScript
mit
6,475
/** * @param {App.Entity.SlaveState} slave * @returns {Node} */ App.UI.SlaveInteract.modify = function(slave) { const {he, his} = getPronouns(slave); let el = new DocumentFragment(); const isAgent = [Job.AGENT, Job.AGENTPARTNER].includes(slave.assignment); App.UI.DOM.appendNewElement('p', el, isAgent ? "Recall your agent to modify them." : "Take slave to another room.", "scene-intro"); if (isAgent) { return el; } /** * Create a link with a note to send a slave to a specific room * @param {Node} c * @param {string} caption * @param {string} passage * @param {string} note * @param {function ():void} [handler] */ function makeRoomLink(c, caption, passage, note, handler = () => {}) { const res = document.createElement('div'); c.appendChild(res); res.appendChild(App.UI.DOM.link(caption, handler, [], passage)); App.UI.DOM.appendNewElement('span', res, note, "note"); return res; } makeRoomLink(el, "Auto salon", "Salon", ' Modify hair (color, length, style), nails, and even skin color.'); makeRoomLink(el, "Body mod studio", "Body Modification", ' Mark your slave with piercings, tattoos, brands or even scars.', () => { V.degradation = 0; V.tattooChoice = undefined; }, ); makeRoomLink(el, "Remote surgery", "Remote Surgery", ` Surgically modify your slave with state of the art plastic surgery and more. Alter ${his} senses, skeletal structure, organs, and even more.`); // Prosthetics if (V.prostheticsUpgrade > 0) { makeRoomLink(el, "Configure cybernetics", "Prosthetics Configuration", ` Configure prosthetics, if ${he} has been surgically implanted with interfaces that support it.`, () => { V.prostheticsConfig = "main"; } ); } // Analyze Pregnancy if (V.pregnancyMonitoringUpgrade > 0) { makeRoomLink(el, "Internal scan", "Analyze Pregnancy", ` Full scan of abdomen and reproductive organs.`); } return el; };
MonsterMate/fc
src/interaction/siModify.js
JavaScript
mit
1,911
/** * @param {App.Entity.SlaveState} slave * @returns {HTMLParagraphElement} */ App.UI.SlaveInteract.navigation = function(slave) { const p = document.createElement("p"); const linkArray = []; p.classList.add("center"); if (V.cheatMode) { linkArray.push(App.UI.DOM.passageLink("Cheat Edit Slave", "MOD_Edit Slave Cheat", () => { V.cheater = 1; })); linkArray.push(App.UI.DOM.passageLink("Cheat Edit Slave Alternative", "MOD_Edit Slave Cheat New", () => { V.cheater = 1; })); App.UI.DOM.appendNewElement("div", p, App.UI.DOM.generateLinksStrip(linkArray), "note"); } App.UI.DOM.appendNewElement("span", p, App.UI.Hotkeys.hotkeys("prev-slave"), "hotkey"); const prevSpan = App.UI.DOM.makeElement("span", App.UI.DOM.passageLink("Prev", "Slave Interact", () => { V.AS = App.UI.SlaveInteract.placeInLine(slave)[0]; }), "adjacent-slave"); prevSpan.id = "prev-slave"; p.append(" ", prevSpan); const centerSpan = document.createElement("span"); centerSpan.classList.add("interact-name"); App.UI.DOM.appendNewElement("span", centerSpan, slave.slaveName, "slave-name"); const favSpan = document.createElement("span"); favSpan.id = "fav-span"; favSpan.append(favLink()); centerSpan.append(" ", favSpan); p.append(centerSpan); const nextSpan = App.UI.DOM.makeElement("span", App.UI.DOM.passageLink("Next", "Slave Interact", () => { V.AS = App.UI.SlaveInteract.placeInLine(slave)[1]; }), "adjacent-slave"); nextSpan.id = "next-slave"; p.append(nextSpan, " "); App.UI.DOM.appendNewElement("span", p, App.UI.Hotkeys.hotkeys("next-slave"), "hotkey"); return p; function favLink() { if (V.favorites.includes(slave.ID)) { const link = App.UI.DOM.link(String.fromCharCode(0xe800), () => { V.favorites.delete(slave.ID); App.UI.DOM.replace("#fav-span", favLink()); }); link.classList.add("icons", "favorite"); return link; } else { const link = App.UI.DOM.link(String.fromCharCode(0xe801), () => { V.favorites.push(slave.ID); App.UI.DOM.replace("#fav-span", favLink()); }); link.classList.add("icons", "not-favorite"); return link; } } };
MonsterMate/fc
src/interaction/siNavigation.js
JavaScript
mit
2,112
App.UI.SlaveInteract.physicalRegimen = function(slave) { const { // eslint-disable-next-line no-unused-vars he, him, his, himself, He, His } = getPronouns(slave); const el = new DocumentFragment(); el.append(drugs()); el.append(curatives()); el.append(aphrodisiacs()); el.append(fertility()); el.append(incubator()); el.append(nursery()); el.append(breederEligibility()); el.append(bloating()); el.append(hormones()); el.append(diet()); el.append(dietBase()); el.append(snacks()); return el; function drugs() { let el = document.createElement('div'); const drugLevelOptions = []; const lips = []; const breasts = []; const nipples = []; const butt = []; const dick = []; const balls = []; const fertility = []; const hormones = []; const psych = []; const misc = []; if (slave.drugs !== "no drugs") { drugLevelOptions.push({text: `None`, updateSlave: {drugs: `no drugs`}}); } if (slave.indentureRestrictions < 2) { // Psych if (slave.intelligence > -100 && slave.indentureRestrictions < 1) { psych.push({text: `Psychosuppressants`, updateSlave: {drugs: `psychosuppressants`}}); } else if (slave.intelligence > -100) { psych.push({text: `Psychosuppressants`, disabled: `Cannot suppress indentured slave`}); } else if (slave.indentureRestrictions < 1) { psych.push({text: `Psychosuppressants`, disabled: `Too stupid to suppress`}); } else { psych.push({text: `Psychosuppressants`, disabled: `Too stupid and indentured to suppress`}); } if (V.arcologies[0].FSSlaveProfessionalismResearch === 1) { if (canImproveIntelligence(slave)) { psych.push({text: `Psychostimulants`, updateSlave: {drugs: `psychostimulants`}}); } else { psych.push({text: `Psychostimulants`, disabled: `Cannot improve intelligence`}); } } // Breasts if (V.arcologies[0].FSSlimnessEnthusiastResearch === 1) { if ((slave.boobs - slave.boobsImplant - slave.boobsMilk) > 100) { breasts.push({text: `Reducers`, updateSlave: {drugs: `breast redistributors`}}); } else { breasts.push({text: `Reducers`, disabled: `Boobs are too small`}); } } if (slave.boobs < 50000) { breasts.push({text: `Enhancement`, updateSlave: {drugs: `breast injections`}}); breasts.push({text: `Intensive enhancement`, updateSlave: {drugs: `intensive breast injections`}}); } else { breasts.push({text: `Enhancement`, disabled: `Boobs are too large`}); } if (V.arcologies[0].FSAssetExpansionistResearch === 1) { if (slave.boobs < 50000) { breasts.push({text: `Hyper enhancement`, updateSlave: {drugs: `hyper breast injections`}}); } else { breasts.push({text: `Hyper enhancement`, disabled: `Boobs are too large`}); } } // Nipples if (V.arcologies[0].FSSlimnessEnthusiastResearch === 1) { if (slave.nipples === "huge" || slave.nipples === "puffy" || slave.nipples === "cute") { nipples.push({text: `Reducers`, updateSlave: {drugs: `nipple atrophiers`}}); } else { nipples.push({text: `Reducers`, disabled: `Nipples are ${slave.nipples}`}); } } if (V.dispensary) { if (["inverted", "partially inverted", "cute", "tiny", "puffy"].includes(slave.nipples)) { nipples.push({text: `Enhancement`, updateSlave: {drugs: `nipple enhancers`}}); } else if (slave.nipples === "huge") { nipples.push({text: `Enhancement`, disabled: `Nipples are already huge`}); } else { nipples.push({text: `Enhancement`, disabled: `Has no effect on ${slave.nipples} nipples`}); } } // Butt if (V.arcologies[0].FSSlimnessEnthusiastResearch === 1) { if (slave.butt - slave.buttImplant > 0) { butt.push({text: `Reducers`, updateSlave: {drugs: `butt redistributors`}}); } else { butt.push({text: `Reducers`, disabled: `Butt is too small`}); } } if (slave.butt < 9) { butt.push({text: `Enhancement`, updateSlave: {drugs: `butt injections`}}); butt.push({text: `Intensive enhancement`, updateSlave: {drugs: `intensive butt injections`}}); } else { butt.push({text: `Enhancement`, disabled: `Butt is too large`}); } if (V.arcologies[0].FSAssetExpansionistResearch === 1) { if (slave.butt < 20) { butt.push({text: `Hyper enhancement`, updateSlave: {drugs: `hyper butt injections`}}); } else { butt.push({text: `Hyper enhancement`, disabled: `Butt is too large`}); } } // Lips if (V.arcologies[0].FSSlimnessEnthusiastResearch === 1) { if (slave.lips - slave.lipsImplant > 0) { lips.push({text: `Reducers`, updateSlave: {drugs: `lip atrophiers`}}); } else { lips.push({text: `Reducers`, disabled: `Lips are too small`}); } } if (slave.lips <= 95 || (slave.lips <= 85 && V.seeExtreme !== 1)) { lips.push({text: `Enhancement`, updateSlave: {drugs: `lip injections`}}); } else { lips.push({text: `Enhancement`, disabled: `Lips are too large`}); } // Fertility fertility.push({text: `Fertility`, updateSlave: {drugs: `fertility drugs`}}); if (V.seeHyperPreg === 1 && slave.indentureRestrictions < 1 && V.superFertilityDrugs === 1 && (slave.breedingMark !== 1 || V.propOutcome === 0 || V.eugenicsFullControl === 1 || V.arcologies[0].FSRestart === "unset")) { fertility.push({text: `Fertility+`, updateSlave: {drugs: `super fertility drugs`}}); } // Dick/clit if (V.arcologies[0].FSSlimnessEnthusiastResearch === 1) { if (slave.dick > 1) { dick.push({text: `Reducers`, updateSlave: {drugs: `penis atrophiers`}}); } else if (slave.dick === 1) { dick.push({text: `Reducers`, disabled: `Dick is already at minimum size`}); } if (slave.clit > 0) { dick.push({text: `Reducers`, updateSlave: {drugs: `clitoris atrophiers`}}); } } if (slave.dick > 0) { if (slave.dick < 10) { dick.push({text: `Enhancement`, updateSlave: {drugs: `penis enhancement`}}); dick.push({text: `Intensive enhancement`, updateSlave: {drugs: `intensive penis enhancement`}}); } else { dick.push({text: `Enhancement`, disabled: `Dick is too large`}); } } else { if (slave.clit < 5) { dick.push({text: `Enhancement`, updateSlave: {drugs: `penis enhancement`}}); dick.push({text: `Intensive enhancement`, updateSlave: {drugs: `intensive penis enhancement`}}); } else { dick.push({text: `Enhancement`, disabled: `Clit is too large`}); } } if (V.arcologies[0].FSAssetExpansionistResearch === 1) { if (slave.dick > 0) { if (slave.dick < 31) { dick.push({text: `Hyper enhancement`, updateSlave: {drugs: `hyper penis enhancement`}}); } else { dick.push({text: `Hyper enhancement`, disabled: `Dick is too large`}); } } else { if (slave.clit < 5) { dick.push({text: `Hyper enhancement`, updateSlave: {drugs: `penis enhancement`}}); } else { dick.push({text: `Hyper enhancement`, disabled: `Clit is too large`}); } } } if (slave.dick > 0 && slave.dick < 11 && !canAchieveErection(slave) && slave.chastityPenis !== 1) { dick.push({text: `Erectile dysfunction circumvention`, updateSlave: {drugs: `priapism agents`}}); } // Balls if (V.arcologies[0].FSSlimnessEnthusiastResearch === 1) { if (slave.balls > 1) { balls.push({text: `Reducers`, updateSlave: {drugs: `testicle atrophiers`}}); } else if (slave.balls === 1) { balls.push({text: `Reducers`, disabled: `Balls are already at minimum size`}); } } if (slave.balls > 0) { balls.push({text: `Enhancement`, updateSlave: {drugs: `testicle enhancement`}}); balls.push({text: `Intensive enhancement`, updateSlave: {drugs: `intensive testicle enhancement`}}); if (V.arcologies[0].FSAssetExpansionistResearch === 1) { balls.push({text: `Hyper enhancement`, updateSlave: {drugs: `hyper testicle enhancement`}}); } } // Hormones if (V.precociousPuberty === 1 && V.pubertyHormones === 1 && (slave.breedingMark !== 1 || V.propOutcome === 0 || V.eugenicsFullControl === 1 || V.arcologies[0].FSRestart === "unset")) { if ((slave.ovaries === 1 || slave.mpreg === 1) && slave.pubertyXX === 0) { hormones.push({text: `Female injections`, updateSlave: {drugs: `female hormone injections`}}); } if (slave.balls > 0 && slave.pubertyXY === 0) { hormones.push({text: `Male injections`, updateSlave: {drugs: `male hormone injections`}}); } } hormones.push({text: `Blockers`, updateSlave: {drugs: `hormone blockers`}}); hormones.push({text: `Enhancement`, updateSlave: {drugs: `hormone enhancers`}}); // Misc if (V.arcologies[0].FSSlimnessEnthusiastResearch === 1) { if (slave.labia > 0) { misc.push({text: `Labia reducers`, updateSlave: {drugs: `labia atrophiers`}}); } } if (V.growthStim === 1) { if (canImproveHeight(slave)) { misc.push({text: `Growth Stimulants`, updateSlave: {drugs: `growth stimulants`}}); } else { misc.push({text: `Growth Stimulants`, disabled: `Cannot increase height further`}); } } if (V.arcologies[0].FSSlimnessEnthusiastResearch === 1) { if (slave.weight > -95) { misc.push({text: `Weight loss pills`, updateSlave: {drugs: `appetite suppressors`}}); } else { misc.push({text: `Weight loss pills`, disabled: `Slave is already at low weight`}); } } misc.push({text: `Steroids`, updateSlave: {drugs: `steroids`}}); if (slave.boobs > 250 && slave.boobShape !== "saggy" && V.purchasedSagBGone === 1) { misc.push({text: `Sag-B-Gone breast lifting cream`, updateSlave: {drugs: `sag-B-gone`}}); } if (V.arcologies[0].FSYouthPreferentialistResearch === 1) { if (slave.visualAge > 18) { misc.push({text: `Anti-aging cream`, updateSlave: {drugs: `anti-aging cream`}}); } else { misc.push({text: `Anti-aging cream`, disabled: `Slave already looks young enough`}); } } } let title = document.createElement('div'); title.textContent = `Drugs: `; let chosenDrug = document.createElement('span'); chosenDrug.textContent = `${capFirstChar(slave.drugs)}. `; chosenDrug.style.fontWeight = "bold"; title.append(chosenDrug); title.appendChild(App.UI.SlaveInteract.generateRows(drugLevelOptions, slave, "", false, refresh)); el.append(title); appendLabeledChoiceRow("Lips", lips, el); appendLabeledChoiceRow("Breasts", breasts, el); appendLabeledChoiceRow("Nipples", nipples, el); appendLabeledChoiceRow("Butt", butt, el); appendLabeledChoiceRow(slave.dick > 0 ? "Dick" : "Clit", dick, el); appendLabeledChoiceRow("Balls", balls, el); appendLabeledChoiceRow("Fertility", fertility, el); appendLabeledChoiceRow("Hormones", hormones, el); appendLabeledChoiceRow("Psych", psych, el); appendLabeledChoiceRow("Misc", misc, el); return el; } function curatives() { const curativeOptions = []; curativeOptions.push({text: `None`, updateSlave: {curatives: 0}}); curativeOptions.push({text: `Preventatives`, updateSlave: {curatives: 1}}); curativeOptions.push({text: `Curatives`, updateSlave: {curatives: 2}}); let el = document.createElement('div'); let title = document.createElement('div'); title.append(`Health: `); let chosenOption = document.createElement('span'); chosenOption.style.fontWeight = "bold"; if (slave.curatives > 1) { chosenOption.textContent = `curatives`; } else if (slave.curatives > 0) { chosenOption.textContent = `preventatives`; } else { chosenOption.textContent = `none`; } title.appendChild(chosenOption); title.append(`.`); let link = document.createElement('div'); link.className = "choices"; link.appendChild(App.UI.SlaveInteract.generateRows(curativeOptions, slave, "", false, refresh)); el.append(title); el.append(link); return el; } function aphrodisiacs() { const aphrodisiacOptions = []; aphrodisiacOptions.push({text: `None`, updateSlave: {aphrodisiacs: 0}}); aphrodisiacOptions.push({text: `Aphrodisiacs`, updateSlave: {aphrodisiacs: 1}}); aphrodisiacOptions.push({text: `Extreme aphrodisiacs`, updateSlave: {aphrodisiacs: 2}}); aphrodisiacOptions.push({text: `Anaphrodisiacs`, updateSlave: {aphrodisiacs: -1}, note: `Suppresses libido`}); let el = document.createElement('div'); let title = document.createElement('div'); title.append(`Aphrodisiacs: `); let chosenOption = document.createElement('span'); chosenOption.style.fontWeight = "bold"; if (slave.aphrodisiacs > 1) { chosenOption.textContent = `extreme`; } else if (slave.aphrodisiacs > 0) { chosenOption.textContent = `applied`; } else if (slave.aphrodisiacs === -1) { chosenOption.textContent = `anaphrodisiacs`; } else { chosenOption.textContent = `none`; } title.appendChild(chosenOption); title.append(`.`); let link = document.createElement('div'); link.className = "choices"; link.appendChild(App.UI.SlaveInteract.generateRows(aphrodisiacOptions, slave, "", false, refresh)); el.append(title); el.append(link); return el; } function fertility() { let fertilityBlock = document.createElement('span'); let linkArray = []; if (slave.ovaries === 1 || slave.mpreg === 1 || slave.preg > 0) { let note = ""; if (slave.preg < -1) { note += `${He} is sterile`; } else if (slave.pubertyXX === 0 && slave.preg < 1) { note += `${He} is not yet fertile`; } else if (slave.ovaryAge >= 47 && slave.preg < 1) { note += `${He} is too old to become pregnant`; if (slave.preg === -1) { slave.preg = 0; SetBellySize(slave); } } else if (slave.broodmotherOnHold === 1) { note += `${His} pregnancy implant is turned off`; if (slave.broodmotherCountDown > 0) { note += `${he} is expected to be completely emptied of ${his} remaining brood in ${slave.broodmotherCountDown} week`; if (slave.broodmotherCountDown > 1) { note += `s`; } note += `.`; linkArray.push(App.UI.DOM.link( `Turn on implant`, () => { slave.broodmotherOnHold = 0; slave.broodmotherCountDown = 0; refresh(); }, )); } } else if (slave.preg >= -1) { fertilityBlock.append("Contraception and fertility: "); let fertility = ""; // fertility.id = "fertility"; if (slave.preg === -1) { fertility = "using contraceptives"; } else if (slave.pregWeek < 0) { fertility = "postpartum"; } else if (slave.preg === 0) { fertility = "fertile"; } else if (slave.preg < 4 && (slave.broodmother === 0 || slave.broodmotherOnHold === 1)) { fertility = "may be pregnant"; } else if (slave.preg < 2) { fertility = "1 week pregnant"; } else { fertility = `${Math.trunc(slave.preg * 1000) / 1000} weeks pregnant`; // * and / needed to avoid seeing something like 20.1000000008 in some cases. if (slave.broodmother > 0) { fertility += " broodmother"; } } fertility += ". "; App.UI.DOM.appendNewElement("span", fertilityBlock, fertility, "bold"); if (slave.preg === 0) { linkArray.push(App.UI.DOM.link( `Use contraceptives`, () => { slave.preg = -1; refresh(); }, )); } else if (slave.preg === -1) { linkArray.push(App.UI.DOM.link( `Let ${him} get pregnant`, () => { slave.preg = 0; refresh(); }, )); } else if (isInduced(slave)) { note += `Hormones are being slipped into ${his} food; ${he} will give birth suddenly and rapidly this week`; } else if ( slave.preg > slave.pregData.normalBirth - 2 && slave.preg > slave.pregData.minLiveBirth && slave.broodmother === 0 && !isInLabor(slave) ) { linkArray.push(App.UI.DOM.link( `Induce labor`, () => { induce(slave); refresh(); }, )); linkArray.push(App.UI.DOM.passageLink(`Give ${him} a cesarean section`, "csec")); } else if (slave.broodmother > 0) { if (slave.broodmotherOnHold !== 1) { linkArray.push(App.UI.DOM.link( `Turn off implant`, () => { slave.broodmotherOnHold = 1; slave.broodmotherCountDown = 38 - WombMinPreg(slave); refresh(); }, )); } if (slave.preg > 37) { linkArray.push(App.UI.DOM.passageLink(`Induce mass childbirth`, "BirthStorm")); } } else if (slave.preg > slave.pregData.minLiveBirth) { linkArray.push(App.UI.DOM.link( `Give ${him} a cesarean section`, () => { slave.broodmotherOnHold = 0; slave.broodmotherCountDown = 0; }, [], "csec" )); } else if (slave.preg > 0 && slave.breedingMark === 1 && V.propOutcome === 1 && V.arcologies[0].FSRestart !== "unset" && V.eugenicsFullControl !== 1 && (slave.pregSource === -1 || slave.pregSource === -6)) { note += "You are forbidden from aborting an Elite child"; } else if (slave.preg > 0) { linkArray.push(App.UI.DOM.link( `Abort ${his} pregnancy`, () => { slave.broodmotherOnHold = 0; slave.broodmotherCountDown = 0; }, [], "Abort" )); } } App.UI.DOM.appendNewElement("span", fertilityBlock, note, "note"); App.UI.DOM.appendNewElement("div", fertilityBlock, App.UI.DOM.generateLinksStrip(linkArray), "choices"); } if ( (slave.pregKnown === 1) && (V.pregSpeedControl === 1) && ( slave.breedingMark !== 1 || V.propOutcome === 0 || V.eugenicsFullControl === 1 || V.arcologies[0].FSRestart === "unset" ) && (slave.indentureRestrictions < 1) && (slave.broodmother === 0) && V.seePreg !== 0 ) { let title = document.createElement('div'); let underline = document.createElement('span'); underline.style.textDecoration = "underline"; underline.textContent = "Pregnancy control"; title.appendChild(underline); title.append(": "); if (slave.pregControl === "labor suppressors") { title.append("Labor is suppressed. "); } else if (slave.pregControl === "slow gestation") { title.append("Slowed gestation speed. "); } else if (slave.pregControl === "speed up") { title.append("Faster gestation speed, staffed clinic recommended. "); } else { title.append("Normal gestation and birth. "); } fertilityBlock.appendChild(title); linkArray = []; if (slave.pregControl !== "none") { linkArray.push(App.UI.DOM.link( `Normal ${slave.preg < slave.pregData.normalBirth ? "Gestation" : "Birth"}`, () => { slave.pregControl = "none"; refresh(); }, )); } if (slave.preg < slave.pregData.normalBirth) { if (slave.pregControl !== "slow gestation") { linkArray.push(App.UI.DOM.link( `Slow Gestation`, () => { slave.pregControl = "slow gestation"; refresh(); }, )); } if (slave.pregControl !== "speed up") { linkArray.push(App.UI.DOM.link( `Fast Gestation`, () => { slave.pregControl = "speed up"; refresh(); }, )); } } if (slave.preg >= slave.pregData.minLiveBirth) { if (slave.pregControl !== "labor suppressors") { linkArray.push(App.UI.DOM.link( `Suppress Labor`, () => { slave.pregControl = "labor suppressors"; refresh(); }, )); } } App.UI.DOM.appendNewElement("div", fertilityBlock, App.UI.DOM.generateLinksStrip(linkArray), "choices"); } return fertilityBlock; } function incubator() { const reservedChildren = FetusGlobalReserveCount("incubator"); let _reservedIncubator = WombReserveCount(slave, "incubator"); let _reservedNursery = WombReserveCount(slave, "nursery"); let _WL = slave.womb.length; let el = document.createElement('div'); const linkArray = []; if (V.incubator > 0) { if (slave.preg > 0 && slave.broodmother === 0 && slave.pregKnown === 1 && slave.eggType === "human") { if ((slave.assignment !== Job.DAIRY || V.dairyPregSetting === 0) && (slave.assignment !== Job.FARMYARD || V.farmyardBreeding === 0)) { let title = document.createElement('div'); if (_WL - _reservedNursery === 0) { title.textContent = `${His} children are already reserved for ${V.nurseryName}`; title.style.fontStyle = "italic"; } else { const freeTanks = (V.incubator - V.tanks.length); if (_reservedIncubator > 0) { if (_WL === 1) { title.textContent = `${His} child will be placed in ${V.incubatorName}. `; } else if (_reservedIncubator < _WL) { title.textContent = `${_reservedIncubator} of ${his} children will be placed in ${V.incubatorName}.`; } else if (_WL === 2) { title.textContent = `Both of ${his} children will be placed in ${V.incubatorName}. `; } else { title.textContent = `All ${_reservedIncubator} of ${his} children will be placed in ${V.incubatorName}. `; } if ((_reservedIncubator + _reservedNursery < _WL) && (reservedChildren < freeTanks)) { linkArray.push( App.UI.DOM.link(`Keep another child`, () => wombUpdateIncubator(1, true)) ); if (_reservedIncubator > 0) { linkArray.push( App.UI.DOM.link(`Keep one less child`, () => wombUpdateIncubator(1, false)) ); } if (_reservedIncubator > 1) { linkArray.push( App.UI.DOM.link(`Keep none of ${his} children`, () => wombUpdateIncubator(9999, false)) ); } if ((reservedChildren + _WL - _reservedIncubator) <= freeTanks) { linkArray.push( App.UI.DOM.link(`Keep the rest of ${his} children`, () => wombUpdateIncubator(9999, true)) ); } } else if ((_reservedIncubator === _WL) || (reservedChildren === freeTanks) || (_reservedIncubator - _reservedNursery >= 0)) { linkArray.push( App.UI.DOM.link(`Keep one less child`, () => wombUpdateIncubator(1, false)) ); if (_reservedIncubator > 1) { linkArray.push( App.UI.DOM.link(`Keep none of ${his} children`, () => wombUpdateIncubator(9999, false)) ); } } } else if (reservedChildren < freeTanks) { title.textContent = `${He} is pregnant and you have `; if (freeTanks === 1) { title.textContent += `an `; } let tank = document.createElement('span'); tank.className = "lime"; tank.textContent = `available aging tank`; if (freeTanks > 1) { tank.textContent += `s`; } tank.textContent += `.`; let _cCount = (_WL > 1 ? "a" : "the"); linkArray.push( App.UI.DOM.link(`Keep ${_cCount} child`, () => wombUpdateIncubator(1, true)) ); title.appendChild(tank); if ((_WL > 1) && (reservedChildren + _WL) <= freeTanks) { linkArray.push( App.UI.DOM.link(`Keep all of ${his} children`, () => wombUpdateIncubator(9999, true)) ); } } else if (reservedChildren === freeTanks) { title.textContent = `You have no available tanks for ${his} children. `; } } el.append(title); App.UI.DOM.appendNewElement("div", el, App.UI.DOM.generateLinksStrip(linkArray), "choices"); } } } function wombUpdateIncubator(count, addToWomb) { if (addToWomb) { WombAddToGenericReserve(slave, "incubator", count); } else { WombCleanGenericReserve(slave, "incubator", count); } refresh(); } return el; } function nursery() { let el = document.createElement('div'); if (V.nursery > 0) { const reservedChildrenNursery = FetusGlobalReserveCount("nursery"); let reservedIncubator = WombReserveCount(slave, "incubator"); let reservedNursery = WombReserveCount(slave, "nursery"); let _WL = slave.womb.length; if (slave.preg > 0 && slave.broodmother === 0 && slave.pregKnown === 1 && slave.eggType === "human") { if ((slave.assignment !== Job.DAIRY || V.dairyPregSetting === 0) && (slave.assignment !== Job.FARMYARD || V.farmyardBreeding === 0)) { let title = document.createElement('div'); const linkArray = []; if (_WL - reservedIncubator === 0) { title.textContent = `${His} children are already reserved for ${V.incubatorName}`; title.style.fontStyle = "italic"; } else { const freeCribs = (V.nursery - V.cribs.length); if (reservedNursery > 0) { if (_WL === 1) { title.textContent = `${His} child will be placed in ${V.nurseryName}. `; } else if (reservedNursery < _WL) { title.textContent = `_reservedNursery of ${his} children will be placed in ${V.nurseryName}.`; } else if (_WL === 2) { title.textContent = `Both of ${his} children will be placed in ${V.nurseryName}. `; } else { title.textContent = `All ${reservedNursery} of ${his} children will be placed in ${V.nurseryName}. `; } if ((reservedIncubator + reservedNursery < _WL) && (reservedChildrenNursery < freeCribs)) { linkArray.push( App.UI.DOM.link(`Keep another child`, () => wombUpdateNursery(1, true)) ); if (reservedNursery > 0) { linkArray.push( App.UI.DOM.link(`Keep one less child`, () => wombUpdateNursery(1, false)) ); } if (reservedNursery > 1) { linkArray.push( App.UI.DOM.link(`Keep none of ${his} children`, () => wombUpdateNursery(9999, false)) ); } if ((reservedChildrenNursery + _WL - reservedNursery) <= freeCribs) { linkArray.push( App.UI.DOM.link(`Keep the rest of ${his} children`, () => wombUpdateNursery(9999, true)) ); } } else if ((reservedNursery === _WL) || (reservedChildrenNursery === freeCribs) || (reservedNursery - reservedIncubator >= 0)) { linkArray.push( App.UI.DOM.link(`Keep one less child`, () => wombUpdateNursery(1, false)) ); if (reservedNursery > 1) { linkArray.push( App.UI.DOM.link(`Keep none of ${his} children`, () => wombUpdateNursery(9999, false)) ); } } } else if (reservedChildrenNursery < freeCribs) { title.textContent = `${He} is pregnant and you have `; if (freeCribs === 1) { title.textContent += `an `; } let crib = document.createElement('span'); crib.className = "lime"; crib.textContent = `available room`; if (freeCribs > 1) { crib.textContent += `s`; } crib.textContent += `.`; let _cCount = (_WL > 1 ? "a" : "the"); linkArray.push( App.UI.DOM.link(`Keep ${_cCount} child`, () => wombUpdateNursery(1, true)) ); title.appendChild(crib); if ((_WL > 1) && (reservedChildrenNursery + _WL) <= freeCribs) { linkArray.push( App.UI.DOM.link(`Keep all of ${his} children`, () => wombUpdateNursery(9999, true)) ); } } else if (reservedChildrenNursery === freeCribs) { title.textContent = `You have no available rooms for ${his} children. `; } } el.append(title); App.UI.DOM.appendNewElement("div", el, App.UI.DOM.generateLinksStrip(linkArray), "choices"); } } } function wombUpdateNursery(count, addToWomb) { if (addToWomb) { WombAddToGenericReserve(slave, "nursery", count); } else { WombCleanGenericReserve(slave, "nursery", count); } refresh(); } return el; } function breederEligibility() { const el = document.createElement("div"); if (V.propOutcome === 1 && V.arcologies[0].FSRestart !== "unset") { if (slave.breedingMark === 0 && slave.fuckdoll === 0 && slave.eggType === "human" && isFertile(slave) && slave.preg === 0) { el.classList.add("choices"); el.append( App.UI.DOM.passageLink( `Breeder Eligibility Exam`, `BreedingTest` ) ); } } return el; } function bloating() { let bloating = document.createElement('div'); if (slave.inflation > 0) { let intro = document.createElement('span'); intro.textContent = "Required Bloating"; intro.style.textDecoration = "underline"; bloating.append(intro); bloating.append(": "); let requirement = document.createElement('span'); requirement.style.fontWeight = "bold"; requirement.id = "inflate"; if (slave.inflation === 3) { requirement.textContent = `${He} is required to keep 2 gallons of ${slave.inflationType} in ${him} at all times`; } else if (slave.inflation === 2) { requirement.textContent = `${He} is required to keep 4 liters of ${slave.inflationType} in ${him} at all times`; } else if (slave.inflation === 1) { requirement.textContent = `${He} is required to keep 2 liters of ${slave.inflationType} in ${him} at all times`; } bloating.append(requirement); bloating.append(". "); let link = App.UI.DOM.link( `Let ${him} deflate`, () => { deflate(slave); refresh(); }, ); bloating.append(link); } // make sure it updates itself after run return bloating; } function hormones() { let el = document.createElement('div'); const options = []; const level = []; if (slave.hormones !== 0) { level.push({text: `None`, updateSlave: {hormones: 0}}); } if (slave.indentureRestrictions < 2) { options.push({text: `Intensive Female`, updateSlave: {hormones: 2}}); } else { options.push({text: `Intensive Female`, disabled: `Cannot use intensive hormones on indentured slaves`}); } options.push({text: `Female`, updateSlave: {hormones: 1}}); options.push({text: `Male`, updateSlave: {hormones: -1}}); if (slave.indentureRestrictions < 2) { options.push({text: `Intensive Male`, updateSlave: {hormones: -2}}); } else { options.push({text: `Intensive Male`, disabled: `Cannot use intensive hormones on indentured slaves`}); } let title = document.createElement('div'); title.textContent = `Hormones: `; let choice = document.createElement('span'); choice.style.fontWeight = "bold"; switch (slave.hormones) { case 2: { choice.textContent = `intensive female. `; break; } case 1: { choice.textContent = `female. `; break; } case 0: { choice.textContent = `none. `; break; } case -1: { choice.textContent = `male. `; break; } case -2: { choice.textContent = `intensive male. `; break; } default: { choice.textContent = `Not set. `; } } title.append(choice); title.appendChild(App.UI.SlaveInteract.generateRows(level, slave, "", false, refresh)); el.append(title); let links = document.createElement('div'); links.appendChild(App.UI.SlaveInteract.generateRows(options, slave, "", false, refresh)); links.className = "choices"; el.append(links); return el; } function diet() { let el = document.createElement('div'); let title = document.createElement('div'); title.textContent = `Diet: `; let choice = document.createElement('span'); choice.style.fontWeight = "bold"; choice.textContent = `${capFirstChar(slave.diet)}. `; title.append(choice); el.append(title); const health = []; health.push({text: `Healthy`, updateSlave: {diet: "healthy"}}); if (V.dietCleanse === 1) { if (slave.health.condition < 90 || slave.chem >= 10) { health.push({text: `Cleanse`, updateSlave: {diet: "cleansing"}}); } else { health.push({text: `Cleanse`, disabled: `${He} is already healthy`}); } } const weight = []; if (slave.weight >= -95) { weight.push({text: `Lose weight`, updateSlave: {diet: "restricted"}}); } else { weight.push({text: `Lose weight`, disabled: `${He} is already underweight`}); } if (slave.fuckdoll === 0 && slave.fetish !== "mindbroken" && V.feeder === 1) { if (slave.weight > 10 || slave.weight < -10) { weight.push({text: `Correct weight`, updateSlave: {diet: "corrective"}}); } else { weight.push({text: `Correct weight`, disabled: `${He} is already a healthy weight`}); } } if (slave.weight <= 200) { weight.push({text: `Fatten`, updateSlave: {diet: "fattening"}}); } else { weight.push({text: `Fatten`, disabled: `${He} is already overweight`}); } const muscle = []; if (slave.muscles < 100 && !isAmputee(slave)) { muscle.push({text: `Build muscle`, updateSlave: {diet: "muscle building"}}); } else if (!isAmputee(slave)) { muscle.push({text: `Build muscle`, disabled: `${He} is maintaining ${his} enormous musculature`}); } else { muscle.push({text: `Build muscle`, disabled: `${He} has no limbs and thus can't effectively build muscle`}); } if ((slave.muscles > 0 || slave.fuckdoll === 0) && canWalk(slave)) { muscle.push({text: `Slim down`, updateSlave: {diet: "slimming"}}); } else if (!canWalk(slave)) { muscle.push({text: `Slim down`, disabled: `${He} can't walk and thus can't trim down`}); } else if (slave.fuckdoll > 0) { muscle.push({text: `Slim down`, disabled: `${He} has no muscles left to lose`}); } const production = []; if (slave.balls > 0 && V.cumProDiet === 1) { production.push({text: `Cum production`, updateSlave: {diet: "cum production"}}); } if (((isFertile(slave) && slave.preg === 0) || (slave.geneticQuirks.superfetation === 2 && canGetPregnant(slave) && V.geneticMappingUpgrade !== 0)) && V.dietFertility === 1) { production.push({text: `Fertility`, updateSlave: {diet: "fertility"}}); } const hormone = []; if (V.feeder === 1) { hormone.push({text: `Estrogen enriched`, updateSlave: {diet: "XX"}}); hormone.push({text: `Testosterone enriched`, updateSlave: {diet: "XY"}}); if (V.dietXXY === 1 && slave.balls > 0 && (slave.ovaries === 1 || slave.mpreg === 1)) { hormone.push({text: `Herm hormone blend`, updateSlave: {diet: "XXY"}}); } } appendLabeledChoiceRow("Health", health, el); appendLabeledChoiceRow("Weight", weight, el); appendLabeledChoiceRow("Muscle", muscle, el); appendLabeledChoiceRow("Production", production, el); appendLabeledChoiceRow("Hormone", hormone, el); return el; } function dietBase() { let el = document.createElement('div'); const milk = []; const cum = []; // Milk if (slave.dietCum < 2) { milk.push({text: `Milk added`, updateSlave: {dietMilk: 1}}); if (slave.dietCum < 2) { milk.push({text: `Milk based`, updateSlave: {dietMilk: 2, dietCum: 0}}); } if (slave.dietMilk) { milk.push({text: `Remove milk`, updateSlave: {dietMilk: 0}}); } } else { milk.push({text: `Milk`, disabled: `Diet is based entirely on cum`}); } // Cum if (slave.dietMilk < 2) { cum.push({text: `Cum added`, updateSlave: {dietCum: 1}}); cum.push({text: `Cum based`, updateSlave: {dietCum: 2, dietMilk: 0}}); if (slave.dietCum) { cum.push({text: `Remove cum`, updateSlave: {dietCum: 0}}); } } else { cum.push({text: `Cum`, disabled: `Diet is based entirely on milk`}); } let title = document.createElement('div'); title.textContent = `Diet base: `; let choice = document.createElement('span'); choice.style.fontWeight = "bold"; if (slave.dietCum === 2) { choice.textContent = `cum based. `; } else if (slave.dietCum === 1 && slave.dietMilk === 0) { choice.textContent = `cum added. `; } else if (slave.dietCum === 1 && slave.dietMilk === 1) { choice.textContent = `cum and milk added. `; } else if (slave.dietMilk === 1 && slave.dietCum === 0) { choice.textContent = `milk added. `; } else if (slave.dietMilk === 2) { choice.textContent = `milk based. `; } else if (slave.dietCum === 0 && slave.dietMilk === 0) { choice.textContent = `normal. `; } else { choice.textContent = `THERE HAS BEEN AN ERROR.`; } title.append(choice); el.append(title); appendLabeledChoiceRow("Milk", milk, el); appendLabeledChoiceRow("Cum", cum, el); return el; } function snacks() { let el = document.createElement('div'); let options = []; if (V.arcologies[0].FSHedonisticDecadenceResearch === 1) { let title = document.createElement('div'); title.textContent = `Solid Slave Food Access: `; let choice = document.createElement('span'); choice.style.fontWeight = "bold"; if (slave.onDiet === 0) { choice.textContent = `Free to stuff ${himself}.`; } else { choice.textContent = `On a strict diet.`; } title.append(choice); el.append(title); options.push({text: `No access`, updateSlave: {onDiet: 1}}); options.push({text: `Full access`, updateSlave: {onDiet: 0}}); let links = document.createElement('div'); links.appendChild(App.UI.SlaveInteract.generateRows(options, slave, "", false, refresh)); links.className = "choices"; el.append(links); } return el; } function refresh() { jQuery("#content-physical-regimen").empty().append(App.UI.SlaveInteract.physicalRegimen(slave)); } /** Append a simple row of choices with a label to a container, if there are choices to be made. * @param {string} label * @param {RowItem[]} array * @param {HTMLElement} el */ function appendLabeledChoiceRow(label, array, el) { if (array.length > 0) { const links = document.createElement('div'); links.append(`${label}: `); links.appendChild(App.UI.SlaveInteract.generateRows(array, slave, "", false, refresh)); links.className = "choices"; return el.appendChild(links); } } };
MonsterMate/fc
src/interaction/siPhysicalRegimen.js
JavaScript
mit
37,302
App.UI.SlaveInteract.rules = function(slave) { const frag = new DocumentFragment(); let p; let div; let array; let choices; const { He, His, he, him, his, himself } = getPronouns(slave); if (V.seePreg !== 0) { if (V.universalRulesImpregnation === "PC") { updateBreederLink("you", "PCExclude"); } else if (V.universalRulesImpregnation === "HG") { updateBreederLink("the Head Girl", "HGExclude"); } else if (V.universalRulesImpregnation === "Stud") { updateBreederLink("your Stud", "StudExclude"); } } function updateBreederLink(breeder, exclude) { p = document.createElement('p'); const exempt = slave[exclude] ? "Exempt" : "Include"; p.append(`Will be bred by ${breeder} when fertile. `); p.append( App.UI.DOM.link(`${exempt} ${him}`, () => { slave[exclude] = slave[exclude] ^ 1; // switch 0 and 1 refresh(); }) ); frag.append(p); } p = document.createElement('p'); array = []; if (slave.useRulesAssistant === 0) { App.UI.DOM.appendNewElement("span", p, `Not subject `, ["bold", "gray"]); App.UI.DOM.appendNewElement("span", p, `to the Rules Assistant.`, "gray"); array.push( App.UI.DOM.link( `Include ${him}`, () => { slave.useRulesAssistant = 1; refresh(); } ) ); } else { App.UI.DOM.appendNewElement("h3", p, `Rules Assistant`); if (slave.hasOwnProperty("currentRules") && slave.currentRules.length > 0) { const ul = document.createElement("UL"); ul.style.margin = "0"; V.defaultRules.filter( x => ruleApplied(slave, x) ).map( x => { const li = document.createElement('li'); li.append(x.name); ul.append(li); } ); // set up rules display if ($("ul").has("li").length) { App.UI.DOM.appendNewElement("div", p, `Rules applied: `); p.append(ul); } else { App.UI.DOM.appendNewElement("div", p, `There are no rules that would apply to ${him}.`, "gray"); } } array.push( App.UI.DOM.link( `Apply rules`, () => { DefaultRules(slave); refresh(); } ) ); array.push( App.UI.DOM.link( `Exempt ${him}`, () => { slave.useRulesAssistant = 0; refresh(); } ) ); array.push( App.UI.DOM.link( `Apply all rules to ${him} again`, () => { removeFromRulesToApplyOnce(slave); DefaultRules(slave); refresh(); } ) ); array.push(App.UI.DOM.passageLink("Rules Assistant Options", "Rules Assistant")); } p.append(App.UI.DOM.generateLinksStrip(array)); frag.append(p); p = document.createElement('p'); App.UI.DOM.appendNewElement("h3", p, `Other Rules`); if (slave.fuckdoll > 0) { App.UI.DOM.appendNewElement("span", p, "Rules have little meaning for living sex toys", "note"); } else { // Living penthouseCensus(); p.append("Living standard: "); if (setup.facilityCareers.includes(slave.assignment)) { App.UI.DOM.appendNewElement("span", p, ` ${His} living conditions are managed by ${his} assignment.`, "note"); } else if ((slave.assignment === "be your Head Girl") && (V.HGSuite === 1)) { App.UI.DOM.appendNewElement("span", p, ` ${He} has ${his} own little luxurious room in the penthouse with everything ${he} needs to be a proper Head Girl.`, "note"); } else if ((slave.assignment === "guard you") && (V.dojo > 1)) { App.UI.DOM.appendNewElement("span", p, ` ${He} has a comfortable room in the armory to call ${his} own.`, "note"); } else { choices = [ {value: "spare"}, {value: "normal"}, ]; if (canMoveToRoom(slave) || slave.rules.living === "luxurious") { choices.push({value: "luxurious"}); } else { choices.push({ title: `Luxurious`, disabled: ["No luxurious rooms available"] }); } p.append(listChoices(choices, "living")); } // Rest if (["be a servant", "be a subordinate slave", "get milked", "please you", "serve in the club", "serve the public", "whore", "work as a farmhand", "work in the brothel", "work a glory hole"].includes(slave.assignment) || (V.dairyRestraintsSetting < 2 && slave.assignment === "work in the dairy")) { div = document.createElement("div"); div.append("Sleep rules: "); choices = [ {value: "none"}, {value: "cruel"}, {value: "restrictive"}, {value: "permissive"}, {value: "mandatory"}, ]; div.append(listChoices(choices, "rest")); p.append(div); } // Mobility Aids if (!canWalk(slave) && canMove(slave)) { div = document.createElement("div"); div.append("Use of mobility aids: "); choices = [ {value: "restrictive"}, {value: "permissive"}, ]; div.append(listChoices(choices, "mobility")); p.append(div); } // Punishment div = document.createElement("div"); div.append("Typical punishment: "); choices = [ {value: "confinement"}, {value: "whipping"}, {value: "chastity"}, {value: "situational"}, ]; div.append(listChoices(choices, "punishment")); p.append(div); // Reward div = document.createElement("div"); div.append("Typical reward: "); choices = [ {value: "relaxation"}, {value: "drugs"}, {value: "orgasm"}, {value: "situational"}, ]; div.append(listChoices(choices, "reward")); p.append(div); // Lactation if (slave.lactation !== 2) { div = document.createElement("div"); div.append("Lactation maintenance: "); choices = [ { title: "Left alone", value: "none", }, ]; if (slave.lactation === 0) { choices.push( { title: "Induce lactation", value: "induce", } ); } else { choices.push( { title: "Maintain lactation", value: "maintain", } ); } div.append(listChoices(choices, "lactation")); p.append(div); } p.append(orgasm(slave)); if (slave.voice !== 0) { div = document.createElement("div"); div.append("Speech rules: "); choices = [ {value: "restrictive"}, {value: "permissive"}, ]; if (slave.accent > 0 && slave.accent < 4) { choices.push( {value: "accent elimination"}, ); } else if (slave.accent > 3) { choices.push( {value: "language lessons"}, ); } div.append(listChoices(choices, "speech")); p.append(div); } div = document.createElement("div"); div.append("Relationship rules: "); choices = [ {value: "restrictive"}, {value: "just friends"}, {value: "permissive"}, ]; div.append(listChoices(choices, "relationship")); p.append(div); p.append(smartSettings(slave)); } frag.append(p); return frag; function listChoices(choices, property) { const links = []; for (const c of choices) { const title = c.title || capFirstChar(c.value); if (c.disabled) { links.push( App.UI.DOM.disabledLink( title, c.disabled ) ); } else if (slave.rules[property] === c.value) { links.push( App.UI.DOM.disabledLink( title, ["Current Setting"] ) ); } else { links.push( App.UI.DOM.link( title, () => { slave.rules[property] = c.value; refresh(); } ) ); } } return App.UI.DOM.generateLinksStrip(links); } function orgasm(slave) { let el = document.createElement('div'); let title = document.createElement('div'); title.textContent = `Non-assignment orgasm rules: `; el.append(title); const choices = [ { title: "Masturbation", value: "masturbation", note: `Controls whether ${he} is allowed to pleasure ${himself}, should ${he} feel the need` }, { title: "Partner", value: "partner", note: `Controls whether ${he} is allowed sexual contact with ${his} romantic partner, should you permit ${him} to have one` }, { title: "Facility Leader", value: "facilityLeader", note: `Controls whether development facility leaders (Nurse, Attendant, etc) are allowed to satisfy ${his} sexual needs while ${he} is assigned to their facility; does not apply to production facilities` }, { title: "Family", value: "family", note: `Controls whether ${he} is allowed sexual contact with close family members` }, { title: "Other slaves", value: "slaves", note: `Controls whether ${he} is allowed sexual contact with your other slaves that do not fit any of the above categories` }, { title: "Master", value: "master", note: `Controls whether you will fuck ${him} personally when ${he} needs it`, master: true }, ]; for (const orgasmObj of choices) { const row = document.createElement("div"); row.classList.add("choices"); row.append(`${orgasmObj.title}: `); row.append(makeLinks(orgasmObj)); App.UI.DOM.appendNewElement("span", row, ` ${orgasmObj.note}`, "note"); el.append(row); } return el; function makeLinks(orgasmObj) { const linkArray = []; makeALink(1); makeALink(0); return App.UI.DOM.generateLinksStrip(linkArray); function makeALink(onOff) { const allow = orgasmObj.master ? `Grant` : `Allow`; const forbid = orgasmObj.master ? `Deny` : `Forbid`; const title = onOff ? allow : forbid; if (slave.rules.release[orgasmObj.value] === onOff) { linkArray.push(App.UI.DOM.makeElement("span", title, "bold")); } else { linkArray.push( App.UI.DOM.link( title, () => { slave.rules.release[orgasmObj.value] = onOff; refresh(); } ) ); } } } } function smartSettings(slave) { let el = document.createElement('div'); const smartBulletVibe = slave.vaginalAccessory === "smart bullet vibrator" || slave.dickAccessory === "smart bullet vibrator"; const smartDildoVibe = slave.vaginalAttachment === "smart vibrator"; if (slave.clitPiercing === 3 || smartBulletVibe || smartDildoVibe) { const level = new Map(); const bodyPart = new Map(); const BDSM = new Map(); const gender = new Map(); // Level level.set(`No sex`, `none`); level.set(`All sex`, `all`); // Body part bodyPart.set(`Vanilla`, `vanilla`); bodyPart.set(`Oral`, `oral`); bodyPart.set(`Anal`, `anal`); bodyPart.set(`Boobs`, `boobs`); if (V.seePreg !== 0) { bodyPart.set(`Preg`, `pregnancy`); } // BDSM BDSM.set(`Sub`, `submissive`); BDSM.set(`Dom`, `dom`); BDSM.set(`Masochism`, `masochist`); BDSM.set(`Sadism`, `sadist`); BDSM.set(`Humiliation`, `humiliation`); // Gender gender.set(`Men`, `men`); gender.set(`Women`, `women`); gender.set(`Anti-men`, `anti-men`); gender.set(`Anti-women`, `anti-women`); let label = null; if (slave.clitPiercing === 3) { label = `Smart ${slave.dick < 1 ? "clit" : "frenulum"} piercing `; label += (smartBulletVibe || smartDildoVibe) ? `and smart vibrator setting: ` : `setting: `; } else if (smartBulletVibe) { label = `Smart bullet vibrator setting: `; } else if (smartDildoVibe) { label = `Smart vibrating dildo attachment setting: `; } let title = App.UI.DOM.appendNewElement('div', el, label); let selected = App.UI.DOM.appendNewElement('span', title, `${slave.clitSetting}. `); selected.style.fontWeight = "bold"; choices("Level", level); choices("Body part", bodyPart); choices("Body part", BDSM); choices("Gender", gender); } return el; function choices(title, map) { const row = document.createElement("div"); row.classList.add("choices"); row.append(`${title}: `); const linkArray = []; for (const [text, value] of map) { if (slave.clitSetting === value) { linkArray.push( App.UI.DOM.disabledLink( text, ["Currently selected"] ) ); } else { linkArray.push( App.UI.DOM.link( text, () => { slave.clitSetting = value; refresh(); } ) ); } } row.append(App.UI.DOM.generateLinksStrip(linkArray)); el.append(row); } } function refresh() { jQuery("#content-rules").empty().append(App.UI.SlaveInteract.rules(slave)); } };
MonsterMate/fc
src/interaction/siRules.js
JavaScript
mit
11,992
/** Find the previous and next slaves' IDs based on the current sort order * @param {App.Entity.SlaveState} slave * @returns {[number, number]} - previous and next slave ID */ App.UI.SlaveInteract.placeInLine = function(slave) { const useSlave = assignmentVisible(slave) ? ((s) => assignmentVisible(s)) : ((s) => slave.assignment === s.assignment); const slaveList = V.slaves.filter(useSlave); SlaveSort.slaves(slaveList); const curSlaveIndex = slaveList.findIndex((s) => s.ID === slave.ID); let nextIndex; if (curSlaveIndex + 1 > slaveList.length - 1) { nextIndex = 0; // wrap around to first slave } else { nextIndex = curSlaveIndex + 1; } let prevIndex; if (curSlaveIndex - 1 < 0) { prevIndex = slaveList.length - 1; // wrap around to last slave } else { prevIndex = curSlaveIndex - 1; } return [slaveList[prevIndex].ID, slaveList[nextIndex].ID]; }; /** @typedef RowItem * @type {object} * @property {string} [FS] - FS requirement, if any * @property {string} [text] - link text * @property {object} [updateSlave] - properties to be merged onto the slave * @property {object} [update] - properties to be merged into global state * @property {string} [disabled] - text indicating why the option is unavailable * @property {string} [note] */ /** Generate a row of choices * @param {RowItem[]} array * @param {App.Entity.SlaveState} slave * @param {string} [category] - should be in the form of slave.category, the thing we want to update. * @param {boolean} [accessCheck=false] * @param {Function} refresh * @returns {HTMLSpanElement} */ App.UI.SlaveInteract.generateRows = function(array, slave, category, accessCheck = false, refresh) { const linkArray = []; for (const item of array) { let link; // Some items will never be in App.Data.slaveWear, especially "none" if it falls in between harsh and nice data sets. Trying to look it up would cause an error, which is what access check works around. let unlocked = false; if (accessCheck === true) { const itemName = (category === "chastity") ? item.text.toLowerCase() : item.updateSlave[category]; // Yucky. Category name does not match for chastity (since it sets multiple kinds of chastity at once). Compare using a lowercase name instead. unlocked = isItemAccessible.entry(itemName, category, slave); } if (accessCheck === false || unlocked) { // is it just text? if (item.disabled) { link = App.UI.DOM.disabledLink(item.text, [item.disabled]); } else if (typeof unlocked === 'string') { link = App.UI.DOM.disabledLink(item.text, [unlocked]); } else { link = document.createElement('span'); // Set up the link link.appendChild( App.UI.DOM.link( `${item.text} `, () => { click(item); }, ) ); if (item.FS) { let FS = App.UI.DOM.disabledLink(`FS`, [FutureSocieties.displayAdj(item.FS)]); FS.style.fontStyle = "italic"; link.appendChild(FS); } // add a note node if required if (item.note) { link.appendChild(App.UI.DOM.makeElement('span', ` ${item.note}`, 'note')); } } linkArray.push(link); } } return App.UI.DOM.generateLinksStrip(linkArray); /** @param {RowItem} arrayOption */ function click(arrayOption) { if (arrayOption.updateSlave) { for (const slaveProperty in arrayOption.updateSlave) { _.set(slave, slaveProperty, arrayOption.updateSlave[slaveProperty]); } } if (arrayOption.update) { Object.assign(V, arrayOption.update); } refresh(); } };
MonsterMate/fc
src/interaction/siUtilities.js
JavaScript
mit
3,507
App.UI.SlaveInteract.wardrobe = function(slave) { const { // eslint-disable-next-line no-unused-vars he, him, his, } = getPronouns(slave); const el = new DocumentFragment(); el.append(clothes()); if (slave.fuckdoll === 0) { el.append(collar()); el.append(mask()); el.append(mouth()); el.append(armAccessory()); el.append(shoes()); el.append(legAccessory()); el.append(bellyAccessory()); el.append(buttplug()); el.append(buttplugAttachment()); el.append(vaginalAccessory()); el.append(vaginalAttachment()); el.append(dickAccessory()); el.append(chastity()); } App.UI.DOM.appendNewElement("h3", el, `Shopping`); el.append(shopping()); return el; function clothes() { let el = document.createElement('div'); let links; if (slave.fuckdoll === 0) { // <<= App.Desc.clothing($activeSlave)>> let label = document.createElement('div'); label.append(`Clothes: `); let choice = document.createElement('span'); choice.style.fontWeight = "bold"; choice.textContent = (`${slave.clothes} `); label.appendChild(choice); // Choose her own if (slave.clothes !== `choosing her own clothes`) { let choiceOptionsArray = []; choiceOptionsArray.push({text: `Let ${him} choose`, updateSlave: {clothes: `choosing her own clothes`, choosesOwnClothes: 1}}); label.appendChild(App.UI.SlaveInteract.generateRows(choiceOptionsArray, slave, "clothes", false, refresh)); } el.appendChild(label); let niceOptionsArray = []; let harshOptionsArray = []; let clothingOption; // Nice clothes App.Data.slaveWear.niceClothes.forEach(item => { clothingOption = { text: item.name, updateSlave: {clothes: item.value, choosesOwnClothes: 0}, FS: item.fs }; niceOptionsArray.push(clothingOption); }); // Harsh clothes App.Data.slaveWear.harshClothes.forEach(item => { clothingOption = { text: item.name, updateSlave: {clothes: item.value, choosesOwnClothes: 0}, FS: item.fs }; if (item.value !== "choosing her own clothes") { harshOptionsArray.push(clothingOption); } }); // Sort niceOptionsArray = niceOptionsArray.sort((a, b) => (a.text > b.text) ? 1 : -1); harshOptionsArray = harshOptionsArray.sort((a, b) => (a.text > b.text) ? 1 : -1); // Nice options links = document.createElement('div'); links.className = "choices"; links.append(`Nice: `); links.appendChild(App.UI.SlaveInteract.generateRows(niceOptionsArray, slave, "clothes", true, refresh)); el.appendChild(links); // Harsh options links = document.createElement('div'); links.className = "choices"; links.append(`Harsh: `); links.appendChild(App.UI.SlaveInteract.generateRows(harshOptionsArray, slave, "clothes", true, refresh)); el.appendChild(links); } if (slave.fuckdoll !== 0 || slave.clothes === "restrictive latex" || slave.clothes === "a latex catsuit" || slave.clothes === "a cybersuit" || slave.clothes === "a comfortable bodysuit") { if (V.seeImages === 1 && V.imageChoice === 1) { // Color options links = document.createElement('div'); links.className = "choices"; links.append(`Color: `); links.appendChild(colorOptions("clothingBaseColor")); el.appendChild(links); } } return el; } function collar() { // <<= App.Desc.collar($activeSlave)>> let el = document.createElement('div'); let label = document.createElement('div'); label.append(`Collar: `); let choice = document.createElement('span'); choice.style.fontWeight = "bold"; choice.textContent = (`${slave.collar} `); label.appendChild(choice); // Choose her own if (slave.collar !== `none`) { let choiceOptionsArray = []; choiceOptionsArray.push({text: `None`, updateSlave: {collar: `none`}}); label.appendChild(App.UI.SlaveInteract.generateRows(choiceOptionsArray, slave, "collar", false, refresh)); } el.appendChild(label); let niceOptionsArray = []; let harshOptionsArray = []; let clothingOption; // Nice collar App.Data.slaveWear.niceCollars.forEach(item => { clothingOption = { text: item.name, updateSlave: {collar: item.value}, FS: item.fs }; niceOptionsArray.push(clothingOption); }); // Harsh collar App.Data.slaveWear.harshCollars.forEach(item => { clothingOption = { text: item.name, updateSlave: {collar: item.value}, FS: item.fs }; harshOptionsArray.push(clothingOption); }); // Sort niceOptionsArray = niceOptionsArray.sort((a, b) => (a.text > b.text) ? 1 : -1); harshOptionsArray = harshOptionsArray.sort((a, b) => (a.text > b.text) ? 1 : -1); // Nice options let links = document.createElement('div'); links.className = "choices"; links.append(`Nice: `); links.appendChild(App.UI.SlaveInteract.generateRows(niceOptionsArray, slave, "collar", true, refresh)); el.appendChild(links); // Harsh options links = document.createElement('div'); links.className = "choices"; links.append(`Harsh: `); links.appendChild(App.UI.SlaveInteract.generateRows(harshOptionsArray, slave, "collar", true, refresh)); el.appendChild(links); return el; } function mask() { let el = document.createElement('div'); let label = document.createElement('div'); label.append(`Mask: `); let choice = document.createElement('span'); choice.style.fontWeight = "bold"; choice.textContent = (`${slave.faceAccessory} `); label.appendChild(choice); // Choose her own if (slave.faceAccessory !== `none`) { let choiceOptionsArray = []; choiceOptionsArray.push({text: `None`, updateSlave: {faceAccessory: `none`}}); label.appendChild(App.UI.SlaveInteract.generateRows(choiceOptionsArray, slave, "faceAccessory", false, refresh)); } el.appendChild(label); let array = []; let clothingOption; App.Data.slaveWear.faceAccessory.forEach(item => { clothingOption = { text: item.name, updateSlave: {faceAccessory: item.value}, FS: item.fs }; array.push(clothingOption); }); // Sort array = array.sort((a, b) => (a.text > b.text) ? 1 : -1); let links = document.createElement('div'); links.className = "choices"; links.appendChild(App.UI.SlaveInteract.generateRows(array, slave, "faceAccessory", true, refresh)); el.appendChild(links); if (slave.eyewear === "corrective glasses" || slave.eyewear === "glasses" || slave.eyewear === "blurring glasses" || slave.faceAccessory === "porcelain mask") { // Color options links = document.createElement('div'); links.className = "choices"; links.append(`Color: `); links.appendChild(colorOptions("glassesColor")); let note = document.createElement('span'); note.className = "note"; note.textContent = ` Only glasses and porcelain masks support a custom color. If both are worn, they will share the same color.`; links.appendChild(note); el.appendChild(links); } return el; } function mouth() { let el = document.createElement('div'); let label = document.createElement('div'); label.append(`Gag: `); let choice = document.createElement('span'); choice.style.fontWeight = "bold"; choice.textContent = (`${slave.mouthAccessory} `); label.appendChild(choice); // Choose her own if (slave.mouthAccessory !== `none`) { let choiceOptionsArray = []; choiceOptionsArray.push({text: `None`, updateSlave: {mouthAccessory: `none`}}); label.appendChild(App.UI.SlaveInteract.generateRows(choiceOptionsArray, slave, "mouthAccessory", false, refresh)); } el.appendChild(label); let array = []; let clothingOption; // mouthAccessory App.Data.slaveWear.mouthAccessory.forEach(item => { clothingOption = { text: item.name, updateSlave: {mouthAccessory: item.value}, FS: item.fs }; array.push(clothingOption); }); // Sort array = array.sort((a, b) => (a.text > b.text) ? 1 : -1); let links = document.createElement('div'); links.className = "choices"; links.appendChild(App.UI.SlaveInteract.generateRows(array, slave, "mouthAccessory", true, refresh)); el.appendChild(links); return el; } function armAccessory() { let el = document.createElement('div'); // App.Desc.armwear(slave) let label = document.createElement('div'); label.append(`Arm accessory: `); let choice = document.createElement('span'); choice.style.fontWeight = "bold"; choice.textContent = (`${slave.armAccessory} `); label.appendChild(choice); let array = []; // Choose her own if (slave.armAccessory !== "none") { array.push({text: `None`, updateSlave: {armAccessory: `none`}}); label.appendChild(App.UI.SlaveInteract.generateRows(array, slave, "armAccessory", false, refresh)); } el.appendChild(label); let links = document.createElement('div'); links.className = "choices"; array = [ {text: "Hand gloves", updateSlave: {armAccessory: "hand gloves"}}, {text: "Elbow gloves", updateSlave: {armAccessory: "elbow gloves"}} ]; links.appendChild(App.UI.SlaveInteract.generateRows(array, slave, "armAccessory", false, refresh)); el.appendChild(links); return el; } function shoes() { let el = document.createElement('div'); let label = document.createElement('div'); label.append(`Shoes: `); let choice = document.createElement('span'); choice.style.fontWeight = "bold"; choice.textContent = (`${slave.shoes} `); label.appendChild(choice); /* We have "barefoot" in App.Data.slaveWear to cover for this // Choose her own if (slave.shoes !== `none`) { let choiceOptionsArray = []; choiceOptionsArray.push({text: `None`, updateSlave: {shoes: `none`}}); label.appendChild(App.UI.SlaveInteract.generateRows(choiceOptionsArray, slave, "shoes", false, refresh)); } */ el.appendChild(label); let optionsArray = []; let clothingOption; App.Data.slaveWear.shoes.forEach(item => { clothingOption = { text: item.name, updateSlave: {shoes: item.value}, FS: item.fs }; optionsArray.push(clothingOption); }); // Sort // No sort here since we want light -> advanced. optionsArray = optionsArray.sort((a, b) => (a.text > b.text) ? 1 : -1); // Options let links = document.createElement('div'); links.className = "choices"; links.appendChild(App.UI.SlaveInteract.generateRows(optionsArray, slave, "shoes", true, refresh)); el.appendChild(links); if (V.seeImages === 1 && V.imageChoice === 1 && slave.shoes !== "none") { // Color options links = document.createElement('div'); links.className = "choices"; links.append(`Color: `); links.appendChild(colorOptions("shoeColor")); el.appendChild(links); } return el; } function legAccessory() { let el = document.createElement('div'); let label = document.createElement('div'); label.append(`Leg accessory: `); let choice = document.createElement('span'); choice.style.fontWeight = "bold"; choice.textContent = (`${slave.legAccessory} `); label.appendChild(choice); let array = []; // Choose her own if (slave.legAccessory !== "none") { array.push({text: `None`, updateSlave: {legAccessory: `none`}}); label.appendChild(App.UI.SlaveInteract.generateRows(array, slave, "legAccessory", false, refresh)); } el.appendChild(label); let links = document.createElement('div'); links.className = "choices"; array = [ {text: "Short stockings", updateSlave: {legAccessory: "short stockings"}}, {text: "Long stockings", updateSlave: {legAccessory: "long stockings"}} ]; links.appendChild(App.UI.SlaveInteract.generateRows(array, slave, "legAccessory", false, refresh)); el.appendChild(links); return el; } function bellyAccessory() { // <<waistDescription>><<= App.Desc.pregnancy($activeSlave)>><<clothingCorsetDescription>> let choiceOptionsArray = []; choiceOptionsArray.push({text: `None`, updateSlave: {bellyAccessory: `none`}}); let optionsArray = []; let clothingOption; App.Data.slaveWear.bellyAccessories.forEach(item => { clothingOption = { text: item.name, updateSlave: {bellyAccessory: item.value}, FS: item.fs }; if (item.value !== "none") { // skip none in set, we set the link elsewhere. optionsArray.push(clothingOption); } }); // Sort // No sort here since we want small -> large.optionsArray = optionsArray.sort((a, b) => (a.text > b.text) ? 1 : -1); let el = document.createElement('div'); let label = document.createElement('div'); label.append(`Belly accessory: `); let choice = document.createElement('span'); choice.style.fontWeight = "bold"; choice.textContent = (`${slave.bellyAccessory} `); label.appendChild(choice); // Choose her own if (slave.bellyAccessory !== `none`) { label.appendChild(App.UI.SlaveInteract.generateRows(choiceOptionsArray, slave, "bellyAccessory", false, refresh)); } el.appendChild(label); // Options let links = document.createElement('div'); links.className = "choices"; links.appendChild(App.UI.SlaveInteract.generateRows(optionsArray, slave, "bellyAccessory", true, refresh)); if (slave.pregKnown === 1) { let note = document.createElement('span'); note.className = "note"; note.textContent = ` Extreme corsets will endanger the life within ${him}.`; links.appendChild(note); } el.appendChild(links); return el; } function buttplug() { // App.Desc.buttplug(slave) let el = document.createElement('div'); let label = document.createElement('div'); label.append(`Anal accessory: `); let choice = document.createElement('span'); choice.style.fontWeight = "bold"; choice.textContent = (`${slave.buttplug} `); label.appendChild(choice); if (slave.buttplug !== `none`) { let choiceOptionsArray = []; choiceOptionsArray.push({text: `None`, updateSlave: {buttplug: `none`, buttplugAttachment: `none`}}); label.appendChild(App.UI.SlaveInteract.generateRows(choiceOptionsArray, slave, "buttplug", false, refresh)); } el.appendChild(label); let optionsArray = []; let clothingOption; App.Data.slaveWear.buttplugs.forEach(item => { clothingOption = { text: item.name, updateSlave: {buttplug: item.value}, FS: item.fs }; if (item.value !== "none") { // skip none in set, we set the link elsewhere. optionsArray.push(clothingOption); } }); // Sort // No sort here since we want small -> large. optionsArray = optionsArray.sort((a, b) => (a.text > b.text) ? 1 : -1); // Options let links = document.createElement('div'); links.className = "choices"; links.appendChild(App.UI.SlaveInteract.generateRows(optionsArray, slave, "buttplug", true, refresh)); el.appendChild(links); return el; } function buttplugAttachment() { let el = document.createElement('div'); if (slave.buttplug === "none") { return el; } let label = document.createElement('div'); label.append(`Anal accessory attachment: `); let choice = document.createElement('span'); choice.style.fontWeight = "bold"; choice.textContent = (`${slave.buttplugAttachment} `); label.appendChild(choice); if (slave.buttplugAttachment !== `none`) { let choiceOptionsArray = []; choiceOptionsArray.push({text: `None`, updateSlave: {buttplugAttachment: `none`}}); label.appendChild(App.UI.SlaveInteract.generateRows(choiceOptionsArray, slave, "buttplugAttachment", false, refresh)); } el.appendChild(label); let optionsArray = []; let clothingOption; App.Data.slaveWear.buttplugAttachments.forEach(item => { clothingOption = { text: item.name, updateSlave: {buttplugAttachment: item.value}, FS: item.fs }; if (item.value !== "none") { // skip none in set, we set the link elsewhere. optionsArray.push(clothingOption); } }); // Sort optionsArray = optionsArray.sort((a, b) => (a.text > b.text) ? 1 : -1); // Options let links = document.createElement('div'); links.className = "choices"; links.appendChild(App.UI.SlaveInteract.generateRows(optionsArray, slave, "buttplugAttachment", true, refresh)); el.appendChild(links); return el; } function vaginalAccessory() { // <<vaginalAccessoryDescription>> let el = document.createElement('div'); let label = document.createElement('div'); label.append(`Vaginal accessory: `); let choice = document.createElement('span'); choice.style.fontWeight = "bold"; choice.textContent = (`${slave.vaginalAccessory} `); label.appendChild(choice); if (slave.vaginalAccessory !== `none`) { let choiceOptionsArray = []; choiceOptionsArray.push({text: `None`, updateSlave: {vaginalAccessory: `none`}}); label.appendChild(App.UI.SlaveInteract.generateRows(choiceOptionsArray, slave, "vaginalAccessory", false, refresh)); } el.appendChild(label); let optionsArray = []; let clothingOption; App.Data.slaveWear.vaginalAccessories.forEach(item => { clothingOption = { text: item.name, updateSlave: {vaginalAccessory: item.value}, FS: item.fs }; if (item.value !== "none") { // skip none in set, we set the link elsewhere. optionsArray.push(clothingOption); } }); // Sort // No sort here since we want small -> large. optionsArray = optionsArray.sort((a, b) => (a.text > b.text) ? 1 : -1); // Options let links = document.createElement('div'); links.className = "choices"; links.appendChild(App.UI.SlaveInteract.generateRows(optionsArray, slave, "vaginalAccessory", true, refresh)); el.appendChild(links); return el; } function vaginalAttachment() { let el = document.createElement('div'); if (["none", "bullet vibrator", "smart bullet vibrator"].includes(slave.vaginalAccessory)) { return el; } let label = document.createElement('div'); label.append(`Vaginal accessory attachment: `); let choice = document.createElement('span'); choice.style.fontWeight = "bold"; choice.textContent = (`${slave.vaginalAttachment} `); label.appendChild(choice); if (slave.vaginalAttachment !== `none`) { let choiceOptionsArray = []; choiceOptionsArray.push({text: `None`, updateSlave: {vaginalAttachment: `none`}}); label.appendChild(App.UI.SlaveInteract.generateRows(choiceOptionsArray, slave, "vaginalAttachment", false, refresh)); } el.appendChild(label); let optionsArray = []; let clothingOption; App.Data.slaveWear.vaginalAttachments.forEach(item => { clothingOption = { text: item.name, updateSlave: {vaginalAttachment: item.value}, FS: item.fs }; if (item.value !== "none") { // skip none in set, we set the link elsewhere. optionsArray.push(clothingOption); } }); // Sort optionsArray = optionsArray.sort((a, b) => (a.text > b.text) ? 1 : -1); // Options let links = document.createElement('div'); links.className = "choices"; links.appendChild(App.UI.SlaveInteract.generateRows(optionsArray, slave, "vaginalAttachment", true, refresh)); el.appendChild(links); return el; } function dickAccessory() { // <<= App.Desc.dickAccessory($activeSlave)>> let el = document.createElement('div'); let label = document.createElement('div'); label.append(`Dick accessory: `); let choice = document.createElement('span'); choice.style.fontWeight = "bold"; choice.textContent = (`${slave.dickAccessory} `); label.appendChild(choice); if (slave.dickAccessory !== `none`) { let choiceOptionsArray = []; choiceOptionsArray.push({text: `None`, updateSlave: {dickAccessory: `none`}}); label.appendChild(App.UI.SlaveInteract.generateRows(choiceOptionsArray, slave, "dickAccessory", false, refresh)); } el.appendChild(label); let optionsArray = []; let clothingOption; App.Data.slaveWear.dickAccessories.forEach(item => { clothingOption = { text: item.name, updateSlave: {dickAccessory: item.value}, FS: item.fs }; if (item.value !== "none") { // skip none in set, we set the link elsewhere. optionsArray.push(clothingOption); } }); // Sort // No sort here since we want small -> large. optionsArray = optionsArray.sort((a, b) => (a.text > b.text) ? 1 : -1); // Options let links = document.createElement('div'); links.className = "choices"; links.appendChild(App.UI.SlaveInteract.generateRows(optionsArray, slave, "dickAccessory", true, refresh)); el.appendChild(links); return el; } function chastity() { let el = document.createElement('div'); let label = document.createElement('div'); label.append(`Chastity devices: `); let choice = document.createElement('span'); choice.style.fontWeight = "bold"; if (slave.choosesOwnChastity === 1) { choice.textContent = `choosing ${his} own chastity `; } else if (slave.chastityAnus === 1 && slave.chastityPenis === 1 && slave.chastityVagina === 1) { choice.textContent = `full chastity `; } else if (slave.chastityPenis === 1 && slave.chastityVagina === 1) { choice.textContent = `genital chastity `; } else if (slave.chastityAnus === 1 && slave.chastityPenis === 1) { choice.textContent = `combined chastity cage `; } else if (slave.chastityAnus === 1 && slave.chastityVagina === 1) { choice.textContent = `combined chastity belt `; } else if (slave.chastityVagina === 1) { choice.textContent = `chastity belt `; } else if (slave.chastityPenis === 1) { choice.textContent = `chastity cage `; } else if (slave.chastityAnus === 1) { choice.textContent = `anal chastity `; } else if (slave.chastityAnus === 0 && slave.chastityPenis === 0 && slave.chastityVagina === 0) { choice.textContent = `none `; } else { choice.textContent = `THERE HAS BEEN AN ERROR `; } label.appendChild(choice); if (slave.chastityAnus !== 0 || slave.chastityPenis !== 0 || slave.chastityVagina !== 0) { let choiceOptionsArray = []; choiceOptionsArray.push({ text: `None`, updateSlave: { choosesOwnChastity: 0, chastityAnus: 0, chastityPenis: 0, chastityVagina: 0 } }); label.appendChild(App.UI.SlaveInteract.generateRows(choiceOptionsArray, slave, "chastity", false, refresh)); } el.appendChild(label); let optionsArray = []; let clothingOption; App.Data.slaveWear.chastityDevices.forEach(item => { clothingOption = { text: item.name, updateSlave: {}, FS: item.fs }; Object.assign(clothingOption.updateSlave, item.updateSlave); if (item.value !== "none") { // skip none in set, we set the link elsewhere. optionsArray.push(clothingOption); } }); // Sort // skip sort for this one too. optionsArray = optionsArray.sort((a, b) => (a.text > b.text) ? 1 : -1); // Options let links = document.createElement('div'); links.className = "choices"; links.appendChild(App.UI.SlaveInteract.generateRows(optionsArray, slave, "chastity", true, refresh)); el.appendChild(links); return el; } function shopping() { return App.UI.DOM.passageLink( `Go shopping for more options`, "Wardrobe" ); } /** * @param {string} update * @returns {Node} */ function colorOptions(update) { let el = new DocumentFragment(); let colorChoice = App.UI.DOM.colorInput( slave[update], v => { slave[update] = v; refresh(); } ); el.appendChild(colorChoice); if (slave[update]) { el.appendChild( App.UI.DOM.link( ` Reset`, () => { delete slave[update]; refresh(); }, ) ); } return el; } function refresh() { App.Art.refreshSlaveArt(slave, 3, "art-frame"); jQuery("#content-appearance").empty().append(App.UI.SlaveInteract.wardrobe(slave)); } };
MonsterMate/fc
src/interaction/siWardrobe.js
JavaScript
mit
23,546
App.UI.SlaveInteract.work = function(slave) { let el = new DocumentFragment(); let p; let div; let span; const links = []; const { His, He, his, him } = getPronouns(slave); function appendLink(text, whoreClass, enabled, disabledText) { const link = {text: text}; if (enabled) { link.whoreClass = whoreClass; } else { link.disabled = disabledText; } links.push(link); } p = document.createElement('p'); if (slave.assignment === Job.AGENT) { const arc = V.arcologies.find((a) => a.leaderID === slave.ID); p.className = "scene-intro"; p.textContent = `${He} is serving as your Agent${arc ? ` leading ${arc.name}` : ` but is not currently assigned to an arcology`}. `; p.appendChild(App.UI.DOM.link(`Recall and reenslave ${him}`, () => { removeJob(slave, slave.assignment, false); refresh(); })); } else if (slave.assignment === Job.AGENTPARTNER) { const agent = getSlave(slave.relationshipTarget); const arc = agent ? V.arcologies.find((a) => a.leaderID === agent.ID) : null; p.className = "scene-intro"; p.textContent = `${He} is living with your Agent ${SlaveFullName(agent)}${arc ? ` in ${arc.name}` : ``}. `; p.appendChild(App.UI.DOM.link(`Recall ${him}`, () => { removeJob(slave, slave.assignment, false); refresh(); })); } else { div = document.createElement('div'); div.id = "mini-scene"; p.appendChild(div); span = document.createElement('span'); span.id = "useSlave"; p.appendChild(span); p.appendChild(useSlaveDisplay()); } el.append(p); p = document.createElement('p'); span = document.createElement('span'); span.className = "note"; switch (slave.assignment) { case Job.BODYGUARD: span.textContent = `${He} is your Bodyguard and is not available for other work`; break; case Job.MADAM: span.textContent = `${He} is the Madam and is not available for other work`; break; case Job.DJ: span.textContent = `${He} is the DJ and is not available for other work`; break; case Job.MILKMAID: span.textContent = `${He} is the Milkmaid and is not available for other work`; break; case Job.FARMER: span.textContent = `${He} is the Farmer and is not available for other work`; break; case Job.STEWARD: span.textContent = `${He} is the Stewardess and is not available for other work`; break; case Job.HEADGIRL: span.textContent = `${He} is your Head Girl and is not available for other work`; break; case Job.RECRUITER: span.textContent = `${He} is recruiting slaves and is not available for other work`; break; case Job.NURSE: span.textContent = `${He} is the Nurse and is not available for other work`; break; case Job.ATTENDANT: span.textContent = `${He} is the Attendant of the spa and is not available for other work`; break; case Job.MATRON: span.textContent = `${He} is the Matron of the nursery and is not available for other work`; break; case Job.TEACHER: span.textContent = `${He} is the Schoolteacher and is not available for other work`; break; case Job.CONCUBINE: span.textContent = `${He} is your Concubine and is not available for other work`; break; case Job.WARDEN: span.textContent = `${He} is the Wardeness and is not available for other work`; break; default: // CAN BE REASSIGNED span.classList.remove("note"); span.id = "assignmentLinks"; span.appendChild(assignmentBlock()); if ((V.brothel + V.club + V.dairy + V.farmyard + V.servantsQuarters + V.masterSuite + V.spa + V.nursery + V.clinic + V.schoolroom + V.cellblock + V.arcade + V.HGSuite) > 0) { span.append(`Transfer to: `); span.appendChild(App.UI.jobLinks.transfersFragment(slave.ID)); } div = document.createElement('div'); div.id = "fucktoy-pref"; div.append(fucktoyPref()); span.appendChild(div); } el.append(span); if (slave.assignment === Job.WHORE || slave.assignment === Job.BROTHEL) { div = document.createElement('div'); div.textContent = `Whoring Target: `; span = document.createElement('span'); span.style.fontWeight = "bold"; span.id = "whoreClass"; if (!slave.whoreClass) { span.textContent = `auto`; } else if (slave.whoreClass === 1) { span.textContent = `the lower class`; } else if (slave.whoreClass === 2) { span.textContent = `the middle class`; } else if (slave.whoreClass === 3) { span.textContent = `the upper class`; } else if (slave.whoreClass === 4) { span.textContent = `millionaires`; } else { span.textContent = `THERE HAS BEEN AN ERROR`; } div.append(span); div.append(`. `); div.append(App.UI.DOM.makeElement('span', `This is the highest class they are allowed to service, when eligible `, 'note')); appendLink(`Auto`, 0, true); appendLink(`Lower Class`, 1, true); appendLink(`Middle Class`, 2, true); appendLink(`Upper Class`, 3, true); appendLink(`Millionaires Class`, 4, true); div.appendChild(App.UI.DOM.generateLinksStrip(links.map(generateLink))); el.append(div); } el.append(tutorBlock()); return el; function generateLink(linkDesc) { // is it just text? if (linkDesc.disabled) { return App.UI.DOM.disabledLink(linkDesc.text, [linkDesc.disabled]); } // Are they already on this whoreClass? if (linkDesc.whoreClass === slave.whoreClass) { return document.createTextNode(linkDesc.text); } // Set up the link const link = App.UI.DOM.link( linkDesc.text, () => { slave.whoreClass = linkDesc.whoreClass; refresh(); }, ); // add a note node if required if (linkDesc.note) { App.UI.DOM.appendNewElement("span", link, linkDesc.note, "note"); } return link; } function assignmentBlock() { let el = document.createElement('div'); let title = document.createElement('div'); const linkArray = []; title.append(`Assignment: `); let assign = document.createElement('span'); assign.style.fontWeight = "bold"; if (slave.sentence) { assign.textContent = `${slave.assignment} (${slave.sentence} weeks). `; } else { assign.textContent = `${slave.assignment}. `; } title.appendChild(assign); if (V.assignmentRecords[slave.ID] && V.assignmentRecords[slave.ID] !== slave.assignment) { title.append(`Previously: `); assign = document.createElement('span'); assign.style.fontWeight = "bold"; assign.textContent = `${V.assignmentRecords[slave.ID]}. `; title.appendChild(assign); } if (slave.assignment === Job.SUBORDINATE) { const target = getSlave(slave.subTarget); let linkText = ``; if (target) { title.appendChild(document.createTextNode(`Serving ${target.slaveName} exclusively. `)); linkText = `Change`; } else if (slave.subTarget === -1) { title.appendChild(document.createTextNode(`Serving as a Stud. `)); linkText = `Change role`; } else { title.appendChild(document.createTextNode(`Serving all your other slaves. `)); linkText = `Choose a specific slave to submit to`; } linkArray.push(App.UI.DOM.passageLink(linkText, "Subordinate Targeting", () => { V.returnTo = "Slave Interact"; })); } if (slave.assignment !== Job.CHOICE) { linkArray.push( App.UI.DOM.link( `Stay on this assignment for another month`, () => { slave.sentence += 4; refresh(); }, ) ); } title.append(App.UI.DOM.generateLinksStrip(linkArray)); el.appendChild(title); let links = document.createElement('div'); links.className = "choices"; links.appendChild( App.UI.jobLinks.assignmentsFragment( slave.ID, passage(), (slave, assignment) => { assignJob(slave, assignment); } ) ); el.appendChild(links); return el; } function tutorBlock() { let el = App.UI.DOM.makeElement("div"); let title = App.UI.DOM.appendNewElement("div", el, `Private tutoring: `); let tutor = tutorForSlave(slave); if (tutor === null) { App.UI.DOM.appendNewElement("span", title, `none.`, "bold"); } else { App.UI.DOM.appendNewElement("span", title, tutor + `.`, "bold"); } if (tutor != null) { App.UI.DOM.appendNewElement("span", title, ` To progress slave needs to be assigned to: "` + Job.CLASSES + `" or "` + Job.SCHOOL + `".`, "note"); } let list = ["None"]; for (const keys of Object.keys(V.slaveTutor)) { list.push(keys); } const array = list.map((s) => { if (shouldBeEnabled(slave, s)) { return App.UI.DOM.link(s, () => setTutorForSlave(slave, s)); } else { let reason = ["Already being taught this skill."]; return App.UI.DOM.disabledLink(s, reason); } }); App.UI.DOM.appendNewElement("div", el, App.UI.DOM.generateLinksStrip(array)); function shouldBeEnabled(slave, key) { let tutor = tutorForSlave(slave); if (tutor === null) { return "None"; } return (tutor !== key); } function setTutorForSlave(slave, tutor) { const cur = tutorForSlave(slave); if (tutor !== cur && cur != null) { V.slaveTutor[cur].delete(slave.ID); } if (cur !== tutor && tutor !== "None") { V.slaveTutor[tutor].push(slave.ID); } refresh(); } return el; } function useSlaveDisplay() { // Goal: Be able to write the entire "use her" block with only dom fragments. let el = document.createElement('div'); /* Array of objects. Each object follows the form: { text: "Link text", scene: "scene to include", goto: if another passage is needed updateSlave: update slave itself if needed, like {trust: 2}, update: updates V., note: if a note must appear after the link } */ const sexOptions = []; const fillFaceOptions = []; const fillAssOptions = []; const dairyNameCaps = capFirstChar(V.dairyName); // if no scene, it's just text, no link. Italicize it. if (slave.fuckdoll === 0) { if (slave.vagina > -1) { if (canDoVaginal(slave)) { sexOptions.push({text: `Fuck ${him}`, scene: `FVagina`}); if (canDoAnal(slave)) { sexOptions.push({text: `Use ${his} holes`, scene: `FButt`}); } } else { sexOptions.push({text: `Fuck ${him}`, disabled: `Remove ${his} chastity belt if you wish to fuck ${him}`}); } } if (slave.bellyPreg >= 300000) { if (canDoVaginal(slave) || canDoAnal(slave)) { sexOptions.push({text: `Fuck ${him} on ${his} belly`, scene: `FBellyFuck`}); if (V.pregInventions >= 1) { sexOptions.push({text: `Fuck ${him} in ${his} maternity swing`, scene: `FMaternitySwing`}); sexOptions.push({text: `Fuck ${him} with the help of ${his} assistants`, scene: `FAssistedSex`}); sexOptions.push({text: `Fuck ${him} in your goo pool`, scene: `FPoolSex`}); } } } if (canDoAnal(slave)) { sexOptions.push({text: `Fuck ${his} ass`, scene: `FAnus`}); } else { sexOptions.push({text: `Fuck ${his} ass`, disabled: `Remove ${his} chastity belt if you wish to fuck ${his} ass`}); } sexOptions.push({text: `Use ${his} mouth`, scene: `FLips`}); sexOptions.push({text: `Kiss ${him}`, scene: `FKiss`}); if (hasAnyLegs(slave)) { sexOptions.push({text: `Have ${him} dance for you`, scene: `FDance`}); } sexOptions.push({text: `Play with ${his} tits`, scene: `FBoobs`}); sexOptions.push({text: `Caress ${him}`, scene: `FCaress`}); sexOptions.push({text: `Give ${him} a hug`, scene: `FEmbrace`}); if (V.cheatMode === 1) { sexOptions.push({text: `Pat ${his} head`, scene: `FPat`}); } sexOptions.push({text: `Grope ${his} boobs`, scene: `FondleBoobs`}); if (slave.nipples === "fuckable" && V.PC.dick > 0) { sexOptions.push({text: `Fuck ${his} nipples`, scene: `FNippleFuck`}); } if (slave.lactation > 0 && slave.boobs >= 2000 && slave.belly < 60000 && hasAnyArms(slave)) { sexOptions.push({text: `Drink ${his} milk`, scene: `FSuckle`}); } if (canDoAnal(slave)) { sexOptions.push({text: `Grope ${his} butt`, scene: `FondleButt`}); } if (slave.vagina > -1) { if (canDoVaginal(slave)) { sexOptions.push({text: `Grope ${his} pussy`, scene: `FondleVagina`}); sexOptions.push({text: `Eat ${him} out`, scene: `FLickPussy`}); } } if (slave.dick > 0) { if (!(slave.chastityPenis)) { sexOptions.push({text: `Grope ${his} dick`, scene: `FondleDick`}); if (canPenetrate(slave)) { if (V.policies.sexualOpenness === 1 || slave.toyHole === "dick") { sexOptions.push({text: `Ride ${his} dick`, scene: `FDick`}); } } } else { sexOptions.push({text: `Use ${his} dick`, disabled: `Remove ${his} dick chastity belt if you wish to play with ${his} cock`}); } } if (hasAnyLegs(slave) && V.PC.dick > 0) { sexOptions.push({text: `Get a footjob`, scene: `FFeet`}); } if (canGetPregnant(slave) && (slave.geneticQuirks.superfetation !== 2 || V.geneticMappingUpgrade !== 0) && (slave.fuckdoll === 0) && V.seePreg !== 0) { if (canImpreg(slave, V.PC)) { sexOptions.push({text: `Impregnate ${him} yourself`, scene: `FPCImpreg`}); } if (canImpreg(slave, slave)) { sexOptions.push({text: `Use ${his} own seed to impregnate ${him}`, scene: `FSlaveSelfImpreg`}); } sexOptions.push({text: `Use another slave to impregnate ${him}`, scene: `FSlaveImpreg`}); } if (slave.assignment !== Job.DAIRY && slave.assignment !== Job.ARCADE && slave.assignment !== Job.CELLBLOCK) { if (V.dairyPiping === 1) { if ((V.milkPipeline > 88 && V.milkPipeline !== 0) || V.arcologies[0].FSPastoralistLaw === 1) { if ((slave.inflation < 3 && slave.pregKnown === 0 && slave.bellyImplant < 1500) || slave.inflation < 1) { if (slave.inflationType === "milk" || slave.inflationType === "none") { fillAssOptions.push({text: `Milk`, scene: `FillUpButt`, updateSlave: {inflationType: "milk", inflationMethod: 2}}); fillFaceOptions.push({text: `Milk`, scene: `FillUpFace`, updateSlave: {inflationType: "milk", inflationMethod: 1}}); } } } else { fillAssOptions.push({text: `Milk`, disabled: `${dairyNameCaps} is not producing enough milk to pump through the pipes`}); fillFaceOptions.push({text: `Milk`, disabled: `${dairyNameCaps} is not producing enough milk to pump through the pipes`}); } if ((V.cumPipeline > 88 && V.cumPipeline !== 0) || V.arcologies[0].FSPastoralistLaw === 1) { if ((slave.inflation < 3 && slave.pregKnown === 0 && slave.bellyImplant < 1500) || slave.inflation < 1) { if (slave.inflationType === "cum" || slave.inflationType === "none") { fillAssOptions.push({text: `Cum`, scene: `FillUpButt`, updateSlave: {inflationType: "cum", inflationMethod: 2}}); fillFaceOptions.push({text: `Cum`, scene: `FillUpFace`, updateSlave: {inflationType: "cum", inflationMethod: 1}}); } } } else { fillAssOptions.push({text: `Cum`, disabled: `${dairyNameCaps} is not producing enough cum to pump through the pipes`}); fillFaceOptions.push({text: `Cum`, disabled: `${dairyNameCaps} is not producing enough cum to pump through the pipes`}); } } /* dairyPiping === 1 */ if (V.boughtItem.toys.enema === 1) { if ((slave.inflation < 3 && slave.pregKnown === 0 && slave.bellyImplant < 1500) || slave.inflation < 1) { if (slave.inflationType === "water" || slave.inflationType === "none") { fillAssOptions.push({text: `Water`, scene: `FillUpButt`, updateSlave: {inflationType: "water", inflationMethod: 2}}); } if (V.boughtItem.toys.medicalEnema === 1) { if (slave.inflationType === "aphrodisiac" || slave.inflationType === "none") { fillAssOptions.push({text: `Aphrodisiacs`, scene: `FillUpButt`, updateSlave: {inflationType: "aphrodisiac", inflationMethod: 2}}); } if (slave.inflationType === "curative" || slave.inflationType === "none") { fillAssOptions.push({text: `Curatives`, scene: `FillUpButt`, updateSlave: {inflationType: "curative", inflationMethod: 2}}); } if (slave.inflationType === "tightener" || slave.inflationType === "none") { fillAssOptions.push({text: `Rectal tighteners`, scene: `FillUpButt`, updateSlave: {inflationType: "tightener", inflationMethod: 2}}); } } } /* inflation < 3 */ } /* enema === 1 */ if (V.wcPiping === 1) { if ((slave.inflation < 3 && slave.pregKnown === 0 && slave.bellyImplant < 1500) || slave.inflation < 1) { if (slave.inflationType === "urine" || slave.inflationType === "none") { fillAssOptions.push({text: `Urine`, scene: `FillUpButt`, updateSlave: {inflationType: "urine", inflationMethod: 2}}); } } } /* wcPiping === 1 */ } /* assigned to dairy or arcade */ if (slave.inflation === 0 && slave.bellyImplant < 1500) { if (slave.assignment !== Job.DAIRY && slave.assignment !== Job.ARCADE && slave.assignment !== Job.CELLBLOCK) { if (V.boughtItem.toys.buckets === 1) { fillFaceOptions.push({text: `Two liters of slave food`, scene: `forceFeeding`, updateSlave: {inflation: 1, inflationType: "food", inflationMethod: 1}}); if (slave.pregKnown === 0) { fillFaceOptions.push({text: `A gallon of slave food`, scene: `forceFeeding`, updateSlave: {inflation: 2, inflationType: "food", inflationMethod: 1}}); fillFaceOptions.push({text: `Two gallons of slave food`, scene: `forceFeeding`, updateSlave: {inflation: 3, inflationType: "food", inflationMethod: 1}}); } } fillFaceOptions.push({text: `Get another slave to do it`, goto: `SlaveOnSlaveFeedingWorkAround`}); } } if (canDoVaginal(slave)) { sexOptions.push({text: `Have another slave fuck ${his} pussy`, scene: `FSlaveSlaveVag`}); } if (canPenetrate(slave)) { sexOptions.push({text: `Have another slave ride ${his} cock`, scene: `FSlaveSlaveDick`}); } else if (slave.clit >= 4) { sexOptions.push({text: `Have another slave ride ${his} clit-dick`, scene: `FSlaveSlaveDick`}); } if (V.seeBestiality) { if (V.farmyardKennels > 0 && V.activeCanine) { sexOptions.push({text: `Have a ${V.activeCanine.species} mount ${him}`, scene: `BeastFucked`, update: {animalType: "canine"}}); } if (V.farmyardStables > 0 && V.activeHooved) { sexOptions.push({text: `Let a ${V.activeHooved.species} mount ${him}`, scene: `BeastFucked`, update: {animalType: "hooved"}}); } if (V.farmyardCages > 0 && V.activeFeline) { sexOptions.push({text: `Have a ${V.activeFeline.species} mount ${him}`, scene: `BeastFucked`, update: {animalType: "feline"}}); } } sexOptions.push({text: `Abuse ${him}`, scene: `FAbuse`}); if (V.seeIncest === 1) { const availRelatives = availableRelatives(slave); if (availRelatives.mother) { sexOptions.push({text: `Fuck ${him} with ${his} mother`, scene: `FRelation`, update: {partner: "mother"}}); } else if (availRelatives.motherName !== null) { sexOptions.push({text: `${His} mother, ${availRelatives.motherName}, is unavailable`}); } /* if (availRelatives.father) { sexOptions.push({text: `Fuck ${him} with ${his} father`, scene: `FRelation`, update: {partner: "father"}}); } else if (availRelatives.fatherName !== null) { sexOptions.push({text: `${His} father, ${availRelatives.motherName}, is unavailable`}); } */ if (slave.daughters > 0) { if (availRelatives.daughters === 0) { if (slave.daughters === 1) { sexOptions.push({text: `Fuck ${him} with ${his} daughter`, disabled: `${His} ${availRelatives.oneDaughterRel} is unavailable`}); } else { sexOptions.push({text: `Fuck ${him} with one of ${his} daughters`, disabled: `${His} daughters are unavailable`}); } } else { if (slave.daughters === 1) { sexOptions.push({text: `Fuck ${him} with ${his} ${availRelatives.oneDaughterRel}`, scene: `FRelation`, update: {partner: "daughter"}}); } else { sexOptions.push({text: `Fuck ${him} with one of ${his} daughters`, scene: `FRelation`, update: {partner: "daughter"}}); } /* if (availRelatives.daughters > 1) { sexOptions.push({text: `Fuck ${him} with ${his} daughters`, scene: `FRelation`, update: {partner: "daughter"}}); } */ } } if (slave.sisters > 0) { if (availRelatives.sisters === 0) { if (slave.sisters === 1) { sexOptions.push({text: `Fuck ${him} with ${his} sister`, disabled: `${His} ${availRelatives.oneSisterRel} is unavailable`}); } else { sexOptions.push({text: `Fuck ${him} with one of ${his} sisters`, disabled: `${His} sisters are unavailable`}); } } else { if (slave.sisters === 1) { sexOptions.push({text: `Fuck ${him} with ${his} ${availRelatives.oneSisterRel}`, scene: `FRelation`, update: {partner: "sister"}}); } else { sexOptions.push({text: `Fuck ${him} with one of ${his} sisters`, scene: `FRelation`, update: {partner: "sister"}}); } /* if (availRelatives.sisters > 1) { sexOptions.push({text: `Fuck ${him} with ${his} sisters`, scene: `FRelation`, update: {partner: "sisters}}); } */ } } } if (slave.relationship > 0) { const lover = getSlave(slave.relationshipTarget); if (isSlaveAvailable(lover)) { sexOptions.push({text: `Fuck ${him} with ${his} ${relationshipTermShort(slave)} ${SlaveFullName(lover)}`, scene: `FRelation`, update: {partner: "relationship"}}); } else if (lover.assignment === Job.AGENT) { if (slave.broodmother < 2) { sexOptions.push({text: `Send ${him} to live with your agent ${SlaveFullName(lover)}`, goto: `Agent Company`, update: {subSlave: lover}}); } else { sexOptions.push({text: `A hyper-broodmother cannot be sent to live with your agent`}); } } else { sexOptions.push({text: `${SlaveFullName(lover)} is unavailable`}); } } if (slave.rivalryTarget !== 0 && hasAllLimbs(slave)) { const rival = getSlave(slave.relationshipTarget); if (isSlaveAvailable(rival) && hasAnyLegs(rival)) { sexOptions.push({text: `Abuse ${his} rival with ${him}`, scene: `FRival`}); } } if (slave.fetish !== "mindbroken" && (canTalk(slave) || hasAnyArms(slave))) { sexOptions.push({text: `Ask ${him} about ${his} feelings`, scene: `FFeelings`}); if (V.PC.dick > 0) { sexOptions.push({text: `Make ${him} beg`, scene: `FBeg`}); } } if (slave.devotion >= 100 && slave.relationship < 0 && slave.relationship > -3) { sexOptions.push({text: `Talk to ${him} about relationships`, goto: `Matchmaking`, update: {subSlave: 0}}); } let ML = V.marrying.length; if ((V.policies.mixedMarriage === 1 || V.cheatMode === 1) && slave.relationship !== 5 && slave.relationship !== -3) { if (V.marrying.includes(slave.ID)) { sexOptions.push({text: `Marry ${him}`, disabled: `You are already marrying ${him} this weekend`}); } else { if (ML < 2) { if (V.cheatMode === 1 || ML === 0) { sexOptions.push({text: `Marry ${him}`, goto: "FMarry"}); } else { sexOptions.push({text: `Marry ${him}`, disabled: `You already have a wedding planned for this weekend`}); } } else { sexOptions.push({text: `Marry ${him}`, disabled: `You can only marry up to two slaves per week`}); } } } if (V.cheatMode === 1) { sexOptions.push({text: `Check ${his} stats`, goto: `Slave Stats`}); } } else { /* IS A FUCKDOLL */ sexOptions.push({text: `Fuck ${his} face hole`, scene: `FFuckdollOral`}); if (canDoVaginal(slave)) { sexOptions.push({text: `Fuck ${his} front hole`, scene: `FFuckdollVaginal`}); } if (canGetPregnant(slave) && (slave.geneticQuirks.superfetation !== 2 || V.geneticMappingUpgrade !== 0) && V.seePreg !== 0) { if (canImpreg(slave, V.PC)) { sexOptions.push({text: `Put a baby in ${him}`, scene: `FFuckdollImpreg`}); } } if (canDoAnal(slave)) { sexOptions.push({text: `Fuck ${his} rear hole`, scene: `FFuckdollAnal`}); } } let activeSlaveRepSacrifice = repGainSacrifice(slave, V.arcologies[0]); if (activeSlaveRepSacrifice > 0 && V.arcologies[0].FSPaternalist === "unset" && (slave.breedingMark === 0 || V.propOutcome === 0 || V.eugenicsFullControl === 1 || V.arcologies[0].FSRestart === "unset")) { sexOptions.push({ text: `Sacrifice ${him} on the altar`, goto: `Aztec Slave Sacrifice`, note: `This will kill ${him} and gain you ${activeSlaveRepSacrifice} reputation`, update: {sacrificeType: "life"} }); } el.append(`Use ${him}: `); el.appendChild(generateRows(sexOptions)); if (!jQuery.isEmptyObject(fillFaceOptions)) { let fill = document.createElement('div'); fill.appendChild(document.createTextNode(` Fill ${his} mouth with: `)); fill.appendChild(generateRows(fillFaceOptions)); el.appendChild(fill); } if (!jQuery.isEmptyObject(fillAssOptions)) { let fill = document.createElement('div'); fill.appendChild(document.createTextNode(` Fill ${his} ass with: `)); fill.appendChild(generateRows(fillAssOptions)); el.appendChild(fill); } function generateRows(sexArray) { const linkArray = []; for (let i = 0; i < sexArray.length; i++) { let link; // is it just text? if (sexArray[i].disabled) { link = App.UI.DOM.disabledLink(sexArray[i].text, [sexArray[i].disabled]); } else { let passage = ""; if (sexArray[i].goto) { passage = sexArray[i].goto; } // Set up the link link = App.UI.DOM.link( sexArray[i].text, () => { click(sexArray[i]); }, [], passage ); // add a note node if required if (sexArray[i].note) { link.appendChild(App.UI.DOM.makeElement('span', sexArray[i].note, 'note')); } } linkArray.push(link); } return App.UI.DOM.generateLinksStrip(linkArray); function click(sexOption) { if (sexOption.updateSlave) { Object.assign(slave, sexOption.updateSlave); } if (sexOption.update) { Object.assign(V, sexOption.update); } if (sexOption.goto) { // just play the passage, no need to refresh anything here Engine.play(sexOption.goto); } else if (sexOption.scene) { // Run scene and store render results temporarily let frag = App.UI.DOM.renderPassage(sexOption.scene); // Refresh (clears scene display) refresh(); // Display scene render results $("#mini-scene").append(frag); } else { // just refresh refresh(); } } } return el; } function fucktoyPref() { const el = document.createElement('div'); let links = []; function appendLink(text, toyHole, enabled, disabledText) { const link = {text: text}; if (enabled) { link.toyHole = toyHole; } else { link.disabled = disabledText; } links.push(link); } if ((slave.assignment === App.Data.Facilities.penthouse.jobs.fucktoy.assignment) || (slave.assignment === App.Data.Facilities.masterSuite.jobs.fucktoy.assignment) || (slave.assignment === App.Data.Facilities.masterSuite.manager.assignment)) { App.UI.DOM.appendNewElement("span", el, "Fucktoy use preference:", "story-label"); el.append(` `); const hole = App.UI.DOM.appendNewElement('span', el, `${slave.toyHole}. `); hole.style.fontWeight = "bold"; appendLink('Mouth', 'mouth', true); appendLink('Tits', 'boobs', true); if (slave.vagina >= 0) { appendLink('Pussy', 'pussy', slave.vagina > 0 && canDoVaginal(slave), `Take ${his} virginity before giving ${his} pussy special attention`); } appendLink('Ass', 'ass', (slave.anus > 0) && canDoAnal(slave), `Take ${his} anal virginity before giving ${his} ass special attention`); if (slave.dick > 0 && canPenetrate(slave)) { appendLink('Dick', 'dick', true); } appendLink('No Preference', "all her holes", true); } function generateLink(linkDesc) { // is it just text? if (linkDesc.disabled) { return App.UI.DOM.disabledLink(linkDesc.text, [linkDesc.disabled]); } // Are they already on this toyHole? if (linkDesc.toyHole === slave.toyHole) { return document.createTextNode(linkDesc.text); } // Set up the link const link = App.UI.DOM.link( linkDesc.text, () => { slave.toyHole = linkDesc.toyHole; jQuery('#fucktoy-pref').empty().append(fucktoyPref()); }, ); // add a note node if required if (linkDesc.note) { App.UI.DOM.appendNewElement("span", link, linkDesc.note, "note"); } return link; } el.appendChild(App.UI.DOM.generateLinksStrip(links.map(generateLink))); return el; } function refresh() { jQuery("#content-work").empty().append(App.UI.SlaveInteract.work(slave)); } };
MonsterMate/fc
src/interaction/siWork.js
JavaScript
mit
28,561
App.UI.SlaveInteract.mainPage = function(slave) { const el = new DocumentFragment(); App.UI.tabBar.handlePreSelectedTab(V.tabChoice.SlaveInteract); if (!assignmentVisible(slave)) { switch (slave.assignment) { case "work in the brothel": case "be the Madam": V.nextLink = "Brothel"; break; case "be confined in the arcade": V.nextLink = "Arcade"; break; case "serve in the club": case "be the DJ": V.nextLink = "Club"; break; case "work in the dairy": case "be the Milkmaid": V.nextLink = "Dairy"; break; case "work as a farmhand": case "be the Farmer": V.nextLink = "Farmyard"; break; case "rest in the spa": case "be the Attendant": V.nextLink = "Spa"; break; case "work as a nanny": case "be the Matron": V.nextLink = "Nursery"; break; case "learn in the schoolroom": case "be the Schoolteacher": V.nextLink = "Schoolroom"; break; case "work as a servant": case "be the Stewardess": V.nextLink = "Servants' Quarters"; break; case "serve in the master suite": case "be your Concubine": V.nextLink = "Master Suite"; break; case "be confined in the cellblock": case "be the Wardeness": V.nextLink = "Cellblock"; break; case "get treatment in the clinic": case "be the Nurse": V.nextLink = "Clinic"; break; case "live with your Head Girl": V.nextLink = "Head Girl Suite"; break; case "be your agent": case "live with your agent": V.nextLink = "Neighbor Interact"; } } V.encyclopedia = either("Costs Summary", "Disease in the Free Cities", "Drugs and Their Effects", "From Rebellious to Devoted", "Gender", "Independent Slaves", "Modern Anal", "Nymphomania", "Slave Couture"); if (slave.dick > 0) { V.encyclopedia = "Gender"; } App.Utils.scheduleSidebarRefresh(); /** * @typedef {Object} siCategory * @property {string} title * @property {string} id * @property {Node} node * @property {Function} [onClick] */ /** @type {Array<siCategory>} */ const buttons = [ { title: "Description", id: "description", get node() { return App.UI.SlaveInteract.description(slave); } }, { title: "Modify", id: "modify", get node() { return App.UI.SlaveInteract.modify(slave); } }, { title: "Work", id: "work", get node() { return App.UI.SlaveInteract.work(slave); } }, { title: "Appearance", id: "appearance", get node() { return App.UI.SlaveInteract.wardrobe(slave); } }, { title: "Physical Regimen", id: "physical-regimen", get node() { return App.UI.SlaveInteract.physicalRegimen(slave); } }, { title: "Rules", id: "rules", get node() { return App.UI.SlaveInteract.rules(slave); } }, { title: "Financial", id: "financial", get node() { return App.UI.SlaveInteract.financial(slave); } }, { title: "Customize", id: "customize", get node() { return App.UI.SlaveInteract.custom(slave); } }, { title: "Family", id: "family-tab", onClick: () => { renderFamilyTree(V.slaves, slave.ID); }, get node() { return App.UI.SlaveInteract.family(); } } ]; el.append(App.UI.SlaveInteract.navigation(slave)); if (V.slaveInteractLongForm) { el.append(displayWithoutTabs()); } else { el.append(displayWithTabs()); } return el; function displayWithTabs() { const el = new DocumentFragment(); const tabBar = document.createElement("div"); tabBar.classList.add("tab-bar"); const tabContents = new DocumentFragment(); for (const item of buttons) { tabBar.append(makeTabButton(item)); tabContents.append(makeTabContents(item)); } el.append(tabBar); App.Events.drawEventArt(el, slave); el.append(tabContents); return el; function makeTabButton(item) { const btn = document.createElement("button"); btn.className = "tab-links"; btn.id = `tab ${item.id}`; btn.innerHTML = item.title; btn.onclick = (event) => { App.UI.tabBar.openTab(event, item.id); jQuery(`#content-${item.id}`).empty().append(item.node); if (item.hasOwnProperty("onClick")){ item.onClick(); } }; return btn; } } function displayWithoutTabs() { const el = new DocumentFragment(); App.Events.drawEventArt(el, slave); for (const item of buttons) { App.UI.DOM.appendNewElement("h2", el, item.title); el.append(item.node); if (item.hasOwnProperty("onClick")) { item.onClick(); } } return el; } function makeTabContents(item) { const wrapperEl = document.createElement("div"); wrapperEl.id = item.id; wrapperEl.classList.add("tab-content"); const classEl = document.createElement("div"); classEl.classList.add("content"); const uniqueContent = document.createElement("span"); uniqueContent.id = `content-${item.id}`; uniqueContent.append(item.node); classEl.append(uniqueContent); wrapperEl.append(classEl); return wrapperEl; } };
MonsterMate/fc
src/interaction/slaveInteract.js
JavaScript
mit
4,950
/** * Contains the parameters for the player's custom slave order. * Some members are ignored by huskSlave (particularly mental properties). * NOTE: $customSlave/$huskSlave IS NOT A SLAVE. Do not treat them like you would treat an instance of SlaveState. */ App.Entity.CustomSlaveOrder = class CustomSlaveOrder { constructor() { /** desired age, approximately * Only certain values are valid; check seCustomSlaveDelivery.tw. * @type {number} */ this.age = 19; /** desired health * 0 = healthy, 1 = extremely healthy * @type {number} */ this.health = 1; /** desired musculature * Values as in SlaveState. * @type {number} */ this.muscles = 0; /** desired lips * Values as in SlaveState. * @type {number} */ this.lips = 15; /** desired voice * -1 = unimportant; other values as in SlaveState. * @type {number} */ this.voice = -1; /** desired height category * "greatly below average", "below average", "normal", "above average", or "greatly above average" * @type {string} */ this.heightMod = "normal"; /** desired weight * Values as in SlaveState. * @type {number} */ this.weight = 0; /** desired facial attractiveness * Values as in SlaveState. * @type {number} */ this.face = 0; /** desired race * "ethnicity is unimportant" or other values as in SlaveState * @type {string} */ this.race = "white"; /** desired skin color * "left natural" or other values as in SlaveState * @type {string} */ this.skin = "left natural"; /** desired boob size * Values as in SlaveState. * @type {number} */ this.boobs = 500; /** desired butt size * Values as in SlaveState. * @type {number} */ this.butt = 3; /** desired genetic sex and genitalia * 1 = female (XX), 2 = male (XY), 3 = futanari (XX) * @type {number} */ this.sex = 1; /** virginity required * 0 = yes, 1 = no (and yes, you are reading that correctly) * @type {number} */ this.virgin = 0; /** desired dick and foreskin size, male and futa only * Values as in SlaveState. * @type {number} */ this.dick = 2; /** desired balls and scrotum size, male and futa only * Values as in SlaveState. * @type {number} */ this.balls = 2; /** desired clit size, female and futa only * Values as in SlaveState. * @type {number} */ this.clit = 0; /** desired labia size, female and futa only * Values as in SlaveState. * @type {number} */ this.labia = 0; /** desired vaginal lubrication, female and futa only * Values as in SlaveState. * @type {number} */ this.vaginaLube = 1; /** anal virginity required * 0 = yes, 1 = no (and yes, you are reading that correctly) * @type {number} */ this.analVirgin = 0; /** desired sex skill rating (anal, oral, and vaginal) * Values as in SlaveState. * @type {number} */ this.skills = 15; /** desired skills rating (.whore controls both whoring and entertainment, .combat controls combat) * Values as in SlaveState. * @type {Object.<string, number>} */ this.skill = {whore: 15, combat: 0}; /** desired intelligence level * Range -3 to +3 (NOT the same range as SlaveState!) * @type {number} */ this.intelligence = 0; /** desired education * Values as in SlaveState. * @type {number} */ this.intelligenceImplant = 0; /** desired nationality * "Nationality is unimportant" or other values as in SlaveState. * @type {string} */ this.nationality = "Stateless"; /** desired left and right leg state * @type {{left: App.Entity.LimbState, right: App.Entity.LimbState}} */ this.leg = {left: new App.Entity.LimbState(), right: new App.Entity.LimbState()}; /** desired left and right arm state * @type {{left: App.Entity.LimbState, right: App.Entity.LimbState}} */ this.arm = {left: new App.Entity.LimbState(), right: new App.Entity.LimbState()}; /** desired eye state * Only the "vision" property is used, all others are ignored * @type {App.Entity.EyeState} */ this.eye = new App.Entity.EyeState(); /** hearing * Values as in SlaveState. * @type {number} */ this.hears = 0; /** sense of smell * Values as in SlaveState. * @type {number} */ this.smells = 0; /** sense of taste * Values as in SlaveState. * @type {number} */ this.tastes = 0; } }; /** * Checks to see if the custom slave has accidentally been turned into an actual slave object. * IF THIS FUNCTION RETURNS TRUE, YOU HAVE PROBABLY FUCKED UP A BACKCOMPAT. CHANGE YOUR BACKCOMPAT, NOT THIS FUNCTION! * @param {App.Entity.CustomSlaveOrder} slaveOrder * @returns {boolean} */ App.Utils.IsCustomSlaveMutated = function(slaveOrder) { /* ensure the absence of a few properties that slave orders definitely should not have, but every real slave has */ if (slaveOrder.hasOwnProperty("rules") || slaveOrder.hasOwnProperty("pronoun")) { return true; /* ensure the presence of a few properties that slave orders definitely should have, but no real slave should */ } else if (!slaveOrder.hasOwnProperty("age") || !slaveOrder.hasOwnProperty("sex")) { return true; } return false; };
MonsterMate/fc
src/js/CustomSlave.js
JavaScript
mit
5,240
// this code applies RA rules onto slaves globalThis.DefaultRules = (function() { "use strict"; const assignedTypes = { "auto": {success: "has been automatically assigned", unable: "could not be assigned"}, "allowed": {success: "is allowed", unable: "could not be allowed"}, }; const getAssignmentDescription = function({rule, slave, assignmentResult, append = null}) { const assignment = rule.setAssignment === Job.CHOICE ? { descriptionType: "allowed", work: `select ${pronouns.his} own assignments` } : { descriptionType: "auto", work: App.Utils.jobForAssignment(rule.setAssignment).assignment }; const assignedTypeInfo = assignedTypes[assignment.descriptionType]; const hasBeenAssigned = assignedTypeInfo[assignmentResult]; return `<br>${slave.slaveName} ${hasBeenAssigned} to ${assignment.work}${append || ''}.`; }; /** @type {string} */ let r; let pronouns, he, him, his; /** * @param {App.Entity.SlaveState} slave * @returns {string} */ function DefaultRules(slave) { if (slave.useRulesAssistant === 0) { return r; } // exempted r = ""; ({he, him, his} = pronouns = getPronouns(slave)); const slaveReadOnly = createReadonlyProxy(slave); const {rule, ruleIds} = runWithReadonlyProxy(()=>ProcessSlaveRules(slaveReadOnly)); slave.currentRules = ruleIds; if (ruleIds.length === 0) { return r; } // no rules apply AssignJobToSlave(slave, rule); if (slave.fuckdoll === 0) { ProcessClothing(slave, rule); ProcessCollar(slave, rule); ProcessMask(slave, rule); ProcessGag(slave, rule); ProcessEyewear(slave, rule); ProcessEarwear(slave, rule); ProcessDildos(slave, rule); ProcessDickAccessories(slave, rule); ProcessAnalAccessories(slave, rule); ProcessChastity(slave, rule); ProcessShoes(slave, rule); ProcessBellyAccessories(slave, rule); ProcessArmAccessory(slave, rule); ProcessLegAccessory(slave, rule); } ProcessPit(slave, rule); ProcessBellyImplant(slave, rule); if (isFertile(slave) || slave.pregWeek < 0) { ProcessContraceptives(slave, rule); } if (slave.preg > 0 && slave.pregKnown === 1 && slave.broodmother === 0) { ProcessAbortions(slave, rule); } ProcessOtherDrugs(slave, rule); ProcessAssetGrowthDrugs(slave, rule); ProcessEnema(slave, rule); ProcessDiet(slave, rule); ProcessCuratives(slave, rule); ProcessAphrodisiacs(slave, rule); ProcessPenisHormones(slave, rule); ProcessFemaleHormones(slave, rule); ProcessPregnancyDrugs(slave, rule); if (slave.fuckdoll === 0) { ProcessLivingStandard(slave, rule); ProcessRest(slave, rule); ProcessSpeech(slave, rule); ProcessRelationship(slave, rule); ProcessRelease(slave, rule); ProcessLactation(slave, rule); if (!canWalk(slave) && canMove(slave)) { ProcessMobility(slave, rule); } ProcessPunishment(slave, rule); ProcessReward(slave, rule); } ProcessToyHole(slave, rule); ProcessDietCum(slave, rule); ProcessDietMilk(slave, rule); if (V.arcologies[0].FSHedonisticDecadenceResearch === 1) { ProcessSolidFood(slave, rule); } ProcessTeeth(slave, rule); ProcessStyle(slave, rule); ProcessPiercings(slave, rule); ProcessSmartPiercings(slave, rule); ProcessTattoos(slave, rule); ProcessPornFeedEnabled(slave, rule); ProcessPorn(slave, rule); ProcessLabel(slave, rule); return r; } /** * @param {App.Entity.SlaveState} slave * @returns {{ruleIds: string[], rule: FC.RA.RuleSetters}}} */ function ProcessSlaveRules(slave) { // merge all rules applying on a slave into one big rule /** @type {FC.RA.Rule[]} */ const rules = V.defaultRules.filter((rule) => ruleAppliesP(rule, slave)); const ruleIds = [], assignments = []; for (const rule of rules) { ruleIds.push(rule.ID); assignments.push(ProcessAssignments(slave, Object.assign({}, rule.set))); } return {ruleIds, rule: mergeRules(assignments)}; } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule * @returns {FC.RA.RuleSetters} */ function ProcessAssignments(slave, rule) { // Before merging rules, we process assignments for each rule separately so we can remove slaves from facilities when they no longer qualify, even if the final "winning" rule assigns them elsewhere // We also ignore inapplicable assignments for the current slave, so we only merge assignments that are valid if (rule.setAssignment === null) { delete rule.setAssignment; return rule; } const job = App.Utils.jobForAssignment(rule.setAssignment); if (job === undefined) { r += `<span class="red">raWidgets missing case for assignment 'V.{rule.setAssignment}'.</span>`; return rule; } const removeAssignment = ()=> { if (job.facility !== App.Entity.facilities.penthouse) { RAFacilityRemove(slave, rule); // before deleting rule.setAssignment } delete rule.setAssignment; }; switch (rule.setAssignment) { case Job.REST: case Job.FUCKTOY: // slaves always qualify for this assignment break; default: if (job.checkRequirements(slave).length !== 0) { // no message to prevent spam removeAssignment(); } else if (!job.facility.hasFreeSpace) { r += getAssignmentDescription({ rule, slave, assignmentResult: "unable", append: " because it was full" }); removeAssignment(); } break; } return rule; } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function AssignJobToSlave(slave, rule) { // place slave on assignment defined by the rule if (rule.setAssignment !== undefined && rule.setAssignment !== null) { if (((rule.setAssignment === Job.CHOICE && !slave.choosesOwnAssignment) || rule.setAssignment !== slave.assignment)) { r += getAssignmentDescription({rule, slave, assignmentResult: "success"}); assignJob(slave, rule.setAssignment); } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessClothing(slave, rule) { // apply clothes to slave if ((rule.clothes !== undefined) && (rule.clothes !== null)) { if ((rule.clothes === "choosing her own clothes")) { if (slave.choosesOwnClothes === 0) { slave.clothes = "choosing her own clothes"; slave.choosesOwnClothes = 1; r += `<br>${slave.slaveName} is now allowed to choose ${his} own clothes.`; } } else if (slave.clothes !== rule.clothes) { slave.clothes = rule.clothes; slave.choosesOwnClothes = 0; r += `<br>${slave.slaveName} is now wearing ${slave.clothes}.`; } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessCollar(slave, rule) { // apply collar to slave if ((rule.collar !== undefined) && (rule.collar !== null)) { if (slave.collar !== rule.collar) { r += "<br>"; if (rule.collar === "preg biometrics" && slave.preg <= -1 && slave.ovaries === 0 && slave.mpreg === 0) { slave.collar = "none"; r += `${slave.slaveName} cannot utilize preg biometrics. `; } else { slave.collar = rule.collar; } if ((slave.collar === "none")) { r += `${slave.slaveName} has been given no collar.`; } else if ((slave.collar === "pretty jewelry")) { r += `${slave.slaveName} has been given ${slave.collar}.`; } else if ((["bell collar", "bowtie", "neck corset", "neck tie"].includes(slave.collar))) { r += `${slave.slaveName} has been given a ${slave.collar}.`; } else { r += `${slave.slaveName} has been given a ${slave.collar} collar.`; } } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessMask(slave, rule) { // apply faceAccessory to slave if ((rule.faceAccessory !== undefined) && (rule.faceAccessory !== null)) { if (slave.faceAccessory !== rule.faceAccessory) { r += "<br>"; slave.faceAccessory = rule.faceAccessory; if (slave.faceAccessory === "none") { r += `${slave.slaveName} has had their mask removed.`; } else { r += `${slave.slaveName} has been given a ${slave.faceAccessory}.`; } } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessGag(slave, rule) { // apply mouthAccessory to slave if ((rule.mouthAccessory !== undefined) && (rule.mouthAccessory !== null)) { if (slave.mouthAccessory !== rule.mouthAccessory) { r += "<br>"; if ((rule.mouthAccessory === "massive dildo gag" && slave.skill.oral <= 50)) { slave.mouthAccessory = "none"; r += `${slave.slaveName} lacks the oral skill to successfully keep the massive dildo gag in ${his} throat. `; } else { slave.mouthAccessory = rule.mouthAccessory; } if (slave.mouthAccessory === "none") { r += `${slave.slaveName} has been given no gag.`; } else { r += `${slave.slaveName} has been given a ${slave.mouthAccessory}.`; } } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessEyewear(slave, rule) { // apply glasses, contacts to slave if ((rule.eyewear !== undefined) && (rule.eyewear !== null)) { switch (rule.eyewear) { case "correct with glasses": if (anyVisionEquals(slave, 1)) { if (slave.eyewear !== "corrective glasses") { slave.eyewear = "corrective glasses"; cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName} has been given corrective glasses.`; } } else { if (slave.eyewear !== "none") { slave.eyewear = "none"; r += `<br>${slave.slaveName}'s eyewear has been removed.`; } } break; case "correct with contacts": if (anyVisionEquals(slave, 1)) { if (slave.eyewear !== "corrective contacts") { slave.eyewear = "corrective contacts"; cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName} has been given corrective contacts.`; } } else { if (slave.eyewear !== "none") { slave.eyewear = "none"; r += `<br>${slave.slaveName}'s eyewear has been removed.`; } } break; case "blur with glasses": if (anyVisionEquals(slave, 2)) { if (slave.eyewear !== "blurring glasses") { slave.eyewear = "blurring glasses"; cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName} has been given blurring glasses.`; } } else { if (slave.eyewear !== "none") { slave.eyewear = "none"; r += `<br>${slave.slaveName}'s eyewear has been removed.`; } } break; case "blur with contacts": if (anyVisionEquals(slave, 2)) { if (slave.eyewear !== "blurring contacts") { slave.eyewear = "blurring contacts"; cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName} has been given blurring contacts.`; } } else { if (slave.eyewear !== "none") { slave.eyewear = "none"; r += `<br>${slave.slaveName}'s eyewear has been removed.`; } } break; case "universal glasses": if (anyVisionEquals(slave, 1)) { if (slave.eyewear !== "corrective glasses") { slave.eyewear = "corrective glasses"; cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName} has been given corrective glasses.`; } } else { if (slave.eyewear !== "glasses") { slave.eyewear = "glasses"; cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName} has been given decorative glasses.`; } } break; default: if (slave.eyewear !== "none") { slave.eyewear = "none"; r += `<br>${slave.slaveName}'s eyewear has been removed.`; } break; } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessEarwear(slave, rule) { // apply earplugs to slave if ((rule.earwear !== undefined) && (rule.earwear !== null)) { switch (rule.earwear) { case "correct with hearing aids": if (slave.hears === -1) { if (slave.earwear !== "hearing aids") { slave.earwear = "hearing aids"; cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName} has been given hearing aids.`; } } else { if (slave.earwear !== "none") { slave.earwear = "none"; r += `<br>${slave.slaveName}'s earwear has been removed.`; } } break; case "muffle with ear plugs": if (slave.hears > -1) { if (slave.earwear !== "muffling ear plugs") { slave.earwear = "muffling ear plugs"; cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName} has been given muffling ear plugs.`; } } else { if (slave.earwear !== "none") { slave.earwear = "none"; r += `<br>${slave.slaveName}'s earwear has been removed.`; } } break; case "deafen with ear plugs": if (slave.hears > -2) { if (slave.earwear !== "deafening ear plugs") { slave.earwear = "deafening ear plugs"; cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName} has been given deafening ear plugs.`; } } else { if (slave.earwear !== "none") { slave.earwear = "none"; r += `<br>${slave.slaveName}'s earwear has been removed.`; } } break; default: if (slave.earwear !== "none") { slave.earwear = "none"; r += `<br>${slave.slaveName}'s earwear has been removed.`; } break; } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessDildos(slave, rule) { // apply vaginal dildos to slave if (slave.vagina === 0) { ProcessVVirginDildos(slave, rule); } else if ((slave.vagina > 0) && (slave.anus === 0)) { ProcessAVirginDildos(slave, rule); } else if (slave.vagina > 0) { ProcessNonVirginDildos(slave, rule); ProcessVaginalAttachments(slave, rule); } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessVVirginDildos(slave, rule) { // apply vaginal dildos to vaginal virgins if ((rule.virginAccessory !== undefined) && (rule.virginAccessory !== null)) { if (slave.vaginalAccessory !== rule.virginAccessory) { slave.vaginalAccessory = rule.virginAccessory; switch (slave.vaginalAccessory) { case "huge dildo": r += `<br>${slave.slaveName} is a virgin and has been given a `; if (slave.vagina >= 2) { r += `massive dildo to permanently gape ${his} cunt.`; } else { r += `large dildo for ${his} pussy, since it must be stretched before it can accommodate a huge one.`; slave.vaginalAccessory = "large dildo"; } break; case "long dildo": if (slave.breedingMark === 1 && V.propOutcome === 1 && V.eugenicsFullControl !== 1 && V.arcologies[0].FSRestart !== "unset") { r += `<br>Breeding regulations forbid the use of cervix penetrating dildos on marked slaves, so the virgin ${slave.slaveName} has been given a standard length dildo for ${his} pussy.`; slave.vaginalAccessory = "dildo"; } break; case "long, large dildo": if (slave.breedingMark === 1 && V.propOutcome === 1 && V.eugenicsFullControl !== 1 && V.arcologies[0].FSRestart !== "unset") { r += `<br>Breeding regulations forbid the use of cervix penetrating dildos on marked slaves, so the virgin ${slave.slaveName} has been given a standard length large dildo for ${his} pussy.`; slave.vaginalAccessory = "large dildo"; } break; case "long, huge dildo": if (slave.breedingMark === 1 && V.propOutcome === 1 && V.eugenicsFullControl !== 1 && V.arcologies[0].FSRestart !== "unset") { r += `<br>Breeding regulations forbid the use of cervix penetrating dildos on marked slaves, so the virgin ${slave.slaveName} has been given a standard length huge dildo for ${his} pussy.`; slave.vaginalAccessory = "huge dildo"; } else { r += `<br>${slave.slaveName} is a virgin and has been given a `; if (slave.vagina >= 2) { r += `massive and oversized dildo to permanently gape ${his} cunt.`; } else { r += `long, large dildo for ${his} pussy, since it must be stretched before it can accommodate a huge one.`; slave.vaginalAccessory = "long, large dildo"; } } break; case "none": r += `<br>${slave.slaveName} is a virgin and has been instructed not to use a vaginal accessory.`; break; default: r += `<br>${slave.slaveName} is a virgin and has been given a ${slave.vaginalAccessory} for ${his} pussy.`; break; } } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessAVirginDildos(slave, rule) { // apply vaginal dildos to anal virgins if ((rule.aVirginAccessory !== undefined) && (rule.aVirginAccessory !== null)) { if (slave.vaginalAccessory !== rule.aVirginAccessory) { slave.vaginalAccessory = rule.aVirginAccessory; switch (slave.vaginalAccessory) { case "huge dildo": r += `<br>${slave.slaveName} is a virgin and has been given a `; if (slave.vagina >= 2) { r += `massive dildo to permanently gape ${his} cunt.`; } else { r += `large dildo for ${his} pussy, since it must be stretched before it can accommodate a huge one.`; slave.vaginalAccessory = "large dildo"; } break; case "long dildo": if (slave.breedingMark === 1 && V.propOutcome === 1 && V.eugenicsFullControl !== 1 && V.arcologies[0].FSRestart !== "unset") { r += `<br>Breeding regulations forbid the use of cervix penetrating dildos on marked slaves, so the virgin ${slave.slaveName} has been given a standard length dildo for ${his} pussy.`; slave.vaginalAccessory = "dildo"; } break; case "long, large dildo": if (slave.breedingMark === 1 && V.propOutcome === 1 && V.eugenicsFullControl !== 1 && V.arcologies[0].FSRestart !== "unset") { r += `<br>Breeding regulations forbid the use of cervix penetrating dildos on marked slaves, so the virgin ${slave.slaveName} has been given a standard length large dildo for ${his} pussy.`; slave.vaginalAccessory = "large dildo"; } break; case "long, huge dildo": if (slave.breedingMark === 1 && V.propOutcome === 1 && V.eugenicsFullControl !== 1 && V.arcologies[0].FSRestart !== "unset") { r += `<br>Breeding regulations forbid the use of cervix penetrating dildos on marked slaves, so the virgin ${slave.slaveName} has been given a standard length huge dildo for ${his} pussy.`; slave.vaginalAccessory = "huge dildo"; } else { r += `<br>${slave.slaveName} is a virgin and has been given a `; if (slave.vagina >= 2) { r += `massive and oversized dildo to permanently gape ${his} cunt.`; } else { r += `long, large dildo for ${his} pussy, since it must be stretched before it can accommodate a huge one.`; slave.vaginalAccessory = "long, large dildo"; } } break; case "none": r += `<br>${slave.slaveName} is a virgin and has been instructed not to use a vaginal accessory.`; break; default: r += `<br>${slave.slaveName} is a virgin and has been given a ${slave.vaginalAccessory} for ${his} pussy.`; break; } } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessNonVirginDildos(slave, rule) { // apply vaginal dildos to non-virgins if ((rule.vaginalAccessory !== undefined) && (rule.vaginalAccessory !== null)) { if (slave.vaginalAccessory !== rule.vaginalAccessory) { slave.vaginalAccessory = rule.vaginalAccessory; switch (slave.vaginalAccessory) { case "huge dildo": r += `<br>${slave.slaveName} has been given a `; if (slave.vagina >= 2) { r += `massive dildo to permanently gape ${his} cunt.`; } else { r += `large dildo for ${his} pussy, since it must be stretched before it can accommodate a huge one.`; slave.vaginalAccessory = "large dildo"; } break; case "long dildo": if (slave.breedingMark === 1 && V.propOutcome === 1 && V.eugenicsFullControl !== 1 && V.arcologies[0].FSRestart !== "unset") { r += `<br>Breeding regulations forbid the use of cervix penetrating dildos on marked slaves, so ${slave.slaveName} has been given a standard length dildo for ${his} pussy.`; slave.vaginalAccessory = "dildo"; } break; case "long, large dildo": if (slave.breedingMark === 1 && V.propOutcome === 1 && V.eugenicsFullControl !== 1 && V.arcologies[0].FSRestart !== "unset") { r += `<br>Breeding regulations forbid the use of cervix penetrating dildos on marked slaves, so ${slave.slaveName} has been given a standard length large dildo for ${his} pussy.`; slave.vaginalAccessory = "large dildo"; } break; case "long, huge dildo": if (slave.breedingMark === 1 && V.propOutcome === 1 && V.eugenicsFullControl !== 1 && V.arcologies[0].FSRestart !== "unset") { r += `<br>Breeding regulations forbid the use of cervix penetrating dildos on marked slaves, so ${slave.slaveName} has been given a standard length huge dildo for ${his} pussy.`; slave.vaginalAccessory = "huge dildo"; } else { r += `<br>${slave.slaveName} has been given a `; if (slave.vagina >= 2) { r += `massive and oversized dildo to permanently gape ${his} cunt.`; } else { r += `long, large dildo for ${his} pussy, since it must be stretched before it can accommodate a huge one.`; slave.vaginalAccessory = "long, large dildo"; } } break; case "none": r += `<br>${slave.slaveName} has been instructed not to use a vaginal accessory.`; break; default: r += `<br>${slave.slaveName} has been given a ${slave.vaginalAccessory} for ${his} pussy.`; break; } } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessVaginalAttachments(slave, rule) { // apply vaginal accessories to slaves if (slave.vaginalAccessory === "none" && slave.vaginalAttachment !== "none") { slave.vaginalAttachment = "none"; // clears dildo attachment when dildos are removed above } else if ((rule.vaginalAttachment !== undefined) && (rule.vaginalAttachment !== null)) { if (slave.vaginalAttachment !== rule.vaginalAttachment) { slave.vaginalAttachment = rule.vaginalAttachment; if (slave.vaginalAccessory !== "none") { switch (slave.vaginalAttachment) { case "none": r += `<br>${slave.slaveName} has been instructed not to use an attachment for ${his} dildo.`; break; case "vibrator": r += `<br>${slave.slaveName}'s dildo has been replaced with a vibrating model.`; break; case "smart vibrator": r += `<br>${slave.slaveName}'s dildo has been replaced with a smart vibrating model.`; break; default: r += `<br>${slave.slaveName} has been given a ${slave.vaginalAttachment}.`; break; } } else { switch (slave.vaginalAttachment) { case "none": r += `<br>${slave.slaveName} has been instructed not to use any vaginal accessories.`; break; default: r += `<br>${slave.slaveName} has been given a ${slave.vaginalAttachment}.`; break; } } } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessDickAccessories(slave, rule) { // apply dick accessories to slave if (slave.dick > 0) { if (slave.anus === 0) { if ((rule.aVirginDickAccessory !== undefined) && (rule.aVirginDickAccessory !== null)) { if (slave.dickAccessory !== rule.aVirginDickAccessory) { slave.dickAccessory = rule.aVirginDickAccessory; if (slave.dickAccessory === "none") { r += `<br>${slave.slaveName} is a virgin and has been instructed not to wear a dick accessory.`; } else { r += `<br>${slave.slaveName} is a virgin and has been given a ${slave.dickAccessory} accessory for ${his} cock.`; } } } } else { if ((rule.dickAccessory !== undefined) && (rule.dickAccessory !== null)) { if (slave.dickAccessory !== rule.dickAccessory) { slave.dickAccessory = rule.dickAccessory; if (slave.dickAccessory === "none") { r += `<br>${slave.slaveName} has been instructed not to wear a dick accessory.`; } else { r += `<br>${slave.slaveName} has been given a ${slave.dickAccessory} accessory for ${his} cock.`; } } } } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessChastity(slave, rule) { // apply chastity to slave if ((rule.chastityVagina !== undefined) && (rule.chastityVagina !== null)) { if (slave.vagina > -1) { if (slave.chastityVagina !== rule.chastityVagina) { slave.chastityVagina = rule.chastityVagina; if (rule.chastityVagina === 1) { r += `<br>${slave.slaveName} has been given a chastity belt to wear.`; } else { r += `<br>${slave.slaveName}'s vaginal chastity has been removed.`; } } } } if ((rule.chastityPenis !== undefined) && (rule.chastityPenis !== null)) { if (slave.dick > 0) { if (slave.chastityPenis !== rule.chastityPenis) { slave.chastityPenis = rule.chastityPenis; if (rule.chastityPenis === 1) { r += `<br>${slave.slaveName} has been given a chastity cage to wear.`; } else { r += `<br>${slave.slaveName}'s chastity cage has been removed.`; } } } } if ((rule.chastityAnus !== undefined) && (rule.chastityAnus !== null)) { if (slave.chastityAnus !== rule.chastityAnus) { slave.chastityAnus = rule.chastityAnus; if (rule.chastityAnus === 1) { r += `<br>${slave.slaveName} has been given anal chastity to wear.`; } else { r += `<br>${slave.slaveName}'s anal chastity has been removed.`; } } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessShoes(slave, rule) { // apply shoes to slave if ((rule.shoes !== undefined) && (rule.shoes !== null)) { if (slave.shoes !== rule.shoes) { if (hasAnyLegs(slave)) { slave.shoes = rule.shoes; r += `<br>${slave.slaveName}'s shoes have been set to ${slave.shoes}.`; } } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessBellyAccessories(slave, rule) { // apply belly accessories to slave if ((rule.bellyAccessory !== undefined) && (rule.bellyAccessory !== null)) { if (slave.bellyAccessory !== rule.bellyAccessory) { if ((slave.belly >= 1500 || slave.weight >= 130) && setup.fakeBellies.includes(rule.bellyAccessory)) { r += `<br>${slave.slaveName}'s natural belly is too big to properly wear an empathy belly.`; slave.bellyAccessory = "none"; } else { slave.bellyAccessory = rule.bellyAccessory; if (slave.bellyAccessory === "none") { r += `<br>${slave.slaveName} has been instructed not to wear a torso accessory.`; } else { r += `<br>${slave.slaveName} has been given ${slave.bellyAccessory} to wear.`; } } } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessArmAccessory(slave, rule) { if (rule.armAccessory !== undefined && rule.armAccessory !== null && hasAnyArms(slave) && slave.armAccessory !== rule.armAccessory) { slave.armAccessory = rule.armAccessory; r += `<br>${slave.slaveName}'s arm accessory was set to ${rule.armAccessory}.`; } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessLegAccessory(slave, rule) { if (rule.legAccessory !== undefined && rule.legAccessory !== null && hasAnyLegs(slave) && slave.legAccessory !== rule.legAccessory) { slave.legAccessory = rule.legAccessory; r += `<br>${slave.slaveName}'s leg accessory was set to ${rule.legAccessory}.`; } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessAnalAccessories(slave, rule) { // apply buttplugs and buttplug accessories to slave if (slave.chastityAnus !== 1) { if (slave.anus === 0) { ProcessAnalVirginButtplugs(slave, rule); } else { ProcessNonVirginButtplugs(slave, rule); } } ProcessButtplugAttachments(slave, rule); } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessAnalVirginButtplugs(slave, rule) { // apply buttplugs to virgins if ((rule.aVirginButtplug !== undefined) && (rule.aVirginButtplug !== null)) { if (slave.buttplug !== rule.aVirginButtplug) { slave.buttplug = rule.aVirginButtplug; switch (slave.buttplug) { case "huge plug": r += `<br>${slave.slaveName} is an anal virgin and has been given a `; if (slave.anus >= 2) { r += `massive plug to permanently gape ${his} asshole.`; } else { slave.buttplug = "large plug"; r += `large buttplug for ${his} asshole, since it must be stretched before it can accommodate a huge one.`; } break; case "long plug": if (slave.breedingMark === 1 && V.propOutcome === 1 && V.eugenicsFullControl !== 1 && V.arcologies[0].FSRestart !== "unset") { r += `<br>Breeding regulations forbid the use of anal plugs that can damage a growing fetus on marked slaves, so the anal virgin ${slave.slaveName} has been given a standard length plug for ${his} anus.`; slave.buttplug = "plug"; } break; case "long, large plug": if (slave.breedingMark === 1 && V.propOutcome === 1 && V.eugenicsFullControl !== 1 && V.arcologies[0].FSRestart !== "unset") { r += `<br>Breeding regulations forbid the use of anal plugs that can damage a growing fetus on marked slaves, so the anal virgin ${slave.slaveName} has been given a standard length large plug for ${his} anus.`; slave.buttplug = "large plug"; } break; case "long, huge plug": if (slave.breedingMark === 1 && V.propOutcome === 1 && V.eugenicsFullControl !== 1 && V.arcologies[0].FSRestart !== "unset") { r += `<br>Breeding regulations forbid the use of anal plugs that can damage a growing fetus on marked slaves, so the anal virgin ${slave.slaveName} has been given a standard length huge plug for ${his} anus.`; slave.buttplug = "huge plug"; } else { r += `<br>${slave.slaveName} is an anal virgin and has been given a `; if (slave.anus >= 2) { r += `massive and oversized plug to permanently gape ${his} asshole.`; } else { r += `long, large buttplug for ${his} asshole, since it must be stretched before it can accommodate a huge one.`; slave.buttplug = "long, large plug"; } } break; case "none": r += `<br>${slave.slaveName} is an anal virgin and has been instructed not to use an anal accessory.`; break; default: r += `<br>${slave.slaveName} is an anal virgin and has been given a ${slave.buttplug} for ${his} asshole.`; break; } } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessNonVirginButtplugs(slave, rule) { // apply buttplugs to non-virgins if ((rule.buttplug !== undefined) && (rule.buttplug !== null)) { if (slave.buttplug !== rule.buttplug) { slave.buttplug = rule.buttplug; switch (slave.buttplug) { case "huge plug": r += `<br>${slave.slaveName} has been given a `; if (slave.anus >= 2) { r += `massive plug to permanently gape ${his} asshole.`; } else { slave.buttplug = "large plug"; r += `large buttplug for ${his} asshole, since it must be stretched before it can accommodate a huge one.`; } break; case "long plug": if (slave.breedingMark === 1 && V.propOutcome === 1 && V.eugenicsFullControl !== 1 && V.arcologies[0].FSRestart !== "unset") { r += `<br>Breeding regulations forbid the use of anal plugs that can damage a growing fetus on marked slaves, so ${slave.slaveName} has been given a standard length plug for ${his} anus.`; slave.buttplug = "plug"; } break; case "long, large plug": if (slave.breedingMark === 1 && V.propOutcome === 1 && V.eugenicsFullControl !== 1 && V.arcologies[0].FSRestart !== "unset") { r += `<br>Breeding regulations forbid the use of anal plugs that can damage a growing fetus on marked slaves, so ${slave.slaveName} has been given a standard length large plug for ${his} anus.`; slave.buttplug = "large plug"; } break; case "long, huge plug": if (slave.breedingMark === 1 && V.propOutcome === 1 && V.eugenicsFullControl !== 1 && V.arcologies[0].FSRestart !== "unset") { r += `<br>Breeding regulations forbid the use of anal plugs that can damage a growing fetus on marked slaves, so ${slave.slaveName} has been given a standard length huge plug for ${his} anus.`; slave.buttplug = "huge plug"; } else { r += `<br>${slave.slaveName} has been given a `; if (slave.anus >= 2) { r += `massive and oversized plug to permanently gape ${his} asshole.`; } else { r += `long, large buttplug for ${his} asshole, since it must be stretched before it can accommodate a huge one.`; slave.buttplug = "long, large plug"; } } break; case "none": r += `<br>${slave.slaveName} has been instructed not to use an anal accessory.`; break; default: r += `<br>${slave.slaveName} has been given a ${slave.buttplug} for ${his} asshole.`; break; } } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessButtplugAttachments(slave, rule) { // apply buttplug accessories to slaves if (slave.buttplug === "none") { if (slave.buttplugAttachment !== "none") { slave.buttplugAttachment = "none"; // clears buttplug attachments when buttplugs are removed above } // otherwise ignores the rule since the slave is not wearing a buttplug } else if ((rule.buttplugAttachment !== undefined) && (rule.buttplugAttachment !== null)) { if (slave.buttplugAttachment !== rule.buttplugAttachment) { slave.buttplugAttachment = rule.buttplugAttachment; switch (slave.buttplugAttachment) { case "none": r += `<br>${slave.slaveName} has been instructed not to use an attachment for ${his} anal accessory.`; break; default: r += `<br>${slave.slaveName} has been given a ${slave.buttplugAttachment} to attach to ${his} buttplug.`; break; } } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessBellyImplant(slave, rule) { // Here is belly implant size control, it's used in Surgery Degradation passage to setup devotion and trust changes. // silent calls to surgery degradation have been replaced with a js function, which is less hacky if ((rule.bellyImplantVol !== undefined) && slave.bellyImplant >= 0 && rule.bellyImplantVol >= 0) { r += "<br>"; if (slave.health.condition > -10) { let diff = rule.bellyImplantVol - slave.bellyImplant; if (diff >= 5000 && slave.bellyPain === 0 && slave.health.condition > 50) { r += `${slave.slaveName}'s belly is way too small, so ${he} has been directed to have intensive belly implant filling procedures throughout this week.`; slave.bellyImplant += 1000; slave.bellyPain += 2; BellySurgery(slave, diff); } else if (diff >= 500 && slave.bellyPain < 2) { r += `${slave.slaveName}'s belly has not reached the desired size, so ${he} has been directed to have belly implant filling procedures throughout this week.`; slave.bellyImplant += 500; slave.bellyPain += 1; BellySurgery(slave, diff); } else if (diff <= -5000) { r += `${slave.slaveName}'s belly is way too big, so ${he} has been directed to have intensive belly implant draining procedures throughout this week.`; slave.bellyImplant -= 1000; BellySurgery(slave, diff); } else if (diff <= -500) { r += `${slave.slaveName}'s belly is too big, so ${he} has been directed to have belly implant draining procedures throughout this week.`; slave.bellyImplant -= 500; BellySurgery(slave, diff); } } else { r += `${slave.slaveName} is not healthy enough to safely adjust ${his} belly implant.`; } } } /** * @param {App.Entity.SlaveState} slave * @param {number} volume */ function BellySurgery(slave, volume) { // this is a port of the belly implant portion of surgeryDegradation.tw // that way, we don't have to use ugly hacks // the original still exists, and may be worth replacing if (volume > 0) { // bellyUp SetBellySize(slave); if (slave.bellyPain === 1) { if (slave.devotion > 50) { slave.devotion += 4; } else if (slave.devotion >= -20) { slave.trust -= 5; } else { slave.trust -= 10; slave.devotion -= 5; } } else if (slave.bellyPain === 2) { if (slave.devotion > 50) { slave.devotion += 2; } else if (slave.devotion >= -20) { slave.trust -= 7; } else { slave.trust -= 12; slave.devotion -= 7; } } } else { // bellyDown if (slave.bellyImplant < 0) { slave.bellyImplant = 0; } SetBellySize(slave); if (slave.devotion > 50) { slave.devotion += 3; slave.trust += 3; } else if (slave.devotion >= -20) { slave.trust += 2; } else { slave.devotion += 1; slave.trust -= 10; } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessContraceptives(slave, rule) { if ((rule.preg !== undefined) && (rule.preg !== null)) { if (rule.preg === true && slave.preg === 0 && slave.pubertyXX === 1) { r += `<br>${slave.slaveName} is being given contraceptives.`; slave.preg = -1; } else if (slave.preg === -1 && rule.preg === false) { r += `<br>${slave.slaveName} is no longer being put on contraceptives.`; slave.preg = 0; } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessAbortions(slave, rule) { function conditionalTermination(slave, predicate) { let res = false; if (slave.preg < 4) { let WL = slave.womb.length; for (let index = 0; index < WL; index++) { if (predicate(slave.womb[index])) { WombRemoveFetus(slave, index); index--; WL--; res = true; } } if (WL === 0) { TerminatePregnancy(slave); actX(slave, "abortions"); } } return res; } if ((rule.abortion !== undefined) && (rule.abortion !== null)) { for (const ar of rule.abortion) { if (ar === "all") { if (slave.preg < 4 || (slave.fetish === "mindbroken" || slave.fuckdoll !== 0)) { r += `<br>${slave.slaveName}'s pregnancy has been terminated.`; } else { r += `<br>${slave.slaveName}'s pregnancy has been terminated; `; if (slave.sexualFlaw === "breeder") { r += `it broke ${his} mind.`; slave.fetish = "mindbroken"; slave.behavioralQuirk = "none"; slave.behavioralFlaw = "none"; slave.sexualQuirk = "none"; slave.sexualFlaw = "none"; slave.devotion = 0; slave.trust = 0; } else if (slave.devotion < -50) { r += `${he} did not handle it well.`; slave.trust -= 10; slave.devotion -= 25; } else if (slave.devotion < -20) { r += `${he} did not handle it well.`; slave.trust -= 10; slave.devotion -= 10; } else if (slave.fetish === "pregnancy") { r += `${he} did not handle it well.`; let fetishModifier = slave.fetishStrength / 2; slave.devotion -= fetishModifier; slave.trust -= fetishModifier; } else if (slave.devotion <= 20) { r += `${he} did not handle it well.`; slave.trust -= 10; slave.devotion -= 5; } else if (slave.devotion <= 50) { r += `${he} did not handle it well.`; slave.trust -= 10; } else { r += "it had little mental effect."; } } if (lastPregRule(slave, V.defaultRules)) { slave.preg = -1; } else { slave.preg = 0; } if (slave.abortionTat > -1) { slave.abortionTat++; cashX(forceNeg(V.modCost), "slaveMod", slave); } TerminatePregnancy(slave); actX(slave, "abortions"); } else if (ar === "male") { if (conditionalTermination(slave, fetus => fetus.genetics.gender === "XY")) { r += `<br>${slave.slaveName}'s male fetuses have been terminated.`; } } else if (ar === "female") { if (conditionalTermination(slave, fetus => fetus.genetics.gender === "XX")) { r += `<br>${slave.slaveName}'s female fetuses have been terminated.`; } } else if (ar.startsWith("race:")) { // ar is the race name in the notation "race:<lowercase_race_name>" const race = ar.substr("race:".length); if (conditionalTermination(slave, fetus => fetus.genetics.race === race)) { r += `<br>${slave.slaveName}'s ${race} fetuses have been terminated.`; } } SetBellySize(slave); } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessAssetGrowthDrugs(slave, rule) { if ((slave.drugs === "super fertility drugs" || slave.drugs === "fertility drugs") && isFertile(slave)) { r += `<br>${slave.slaveName} is on ${slave.drugs} and will not be considered for drug enhancement until that regime is complete.`; return; } else if (slave.indentureRestrictions > 1 || (rule.growth.boobs === null && rule.growth.butt === null && rule.growth.lips === null && rule.growth.dick === null && rule.growth.balls === null)) { return; } /** @typedef {"lips" | "boobs" | "butt" | "dick" | "balls"} DrugTarget */ // Asset Growth const growthDrugs = new Set(["breast injections", "breast redistributors", "butt injections", "butt redistributors", "hyper breast injections", "hyper butt injections", "hyper penis enhancement", "hyper testicle enhancement", "intensive breast injections", "intensive butt injections", "intensive penis enhancement", "intensive testicle enhancement", "lip atrophiers", "lip injections", "penis atrophiers", "penis enhancement", "testicle atrophiers", "testicle enhancement"]); // WARNING: property names in fleshFunc, growDrugs, and shrinkDrugs must be identical and this fact is used by the drugs() below /** @type {Record<DrugTarget, (s: App.Entity.SlaveState) => number>} */ const fleshFunc = { lips: s => s.lips - s.lipsImplant, boobs: s => s.boobs - s.boobsImplant - s.boobsMilk, butt: s => Math.trunc(s.butt - s.buttImplant), dick: s => s.dick, balls: s => s.balls, }; /** @type {Record<DrugTarget, number>} */ const maxAssetSize = { lips: V.seeExtreme ? 95 : 85, boobs: 48000, butt: 20, dick: 31, balls: 125 }; /** @type {Record<DrugTarget, FC.Drug>} */ const growDrugs = { lips: "lip injections", boobs: "breast injections", butt: "butt injections", dick: null, balls: null }; if (slave.dick > 0) { growDrugs.dick = "penis enhancement"; } if (slave.balls > 0) { growDrugs.balls = "testicle enhancement"; } if (rule.hyper_drugs === 1 && V.arcologies[0].FSAssetExpansionistResearch === 1) { growDrugs.boobs = "hyper breast injections"; growDrugs.butt = "hyper butt injections"; if (slave.dick > 0) { growDrugs.dick = "hyper penis enhancement"; } if (slave.balls > 0) { growDrugs.balls = "hyper testicle enhancement"; } } else if (rule.growth.intensity && slave.indentureRestrictions < 2 && slave.health.condition > 0) { growDrugs.boobs = "intensive breast injections"; growDrugs.butt = "intensive butt injections"; if (slave.dick > 0) { growDrugs.dick = "intensive penis enhancement"; } if (slave.balls > 0) { growDrugs.balls = "intensive testicle enhancement"; } } /** @type {Record<DrugTarget, FC.Drug>} */ const shrinkDrugs = { lips: null, boobs: null, butt: null, dick: null, balls: null }; if (V.arcologies[0].FSSlimnessEnthusiastResearch === 1) { shrinkDrugs.lips = "lip atrophiers"; if (slave.dick > 0) { shrinkDrugs.dick = "penis atrophiers"; } if (slave.balls > 0) { shrinkDrugs.balls = "testicle atrophiers"; } if (slave.weight < 100) { shrinkDrugs.boobs = "breast redistributors"; shrinkDrugs.butt = "butt redistributors"; } } /** * @param {App.Entity.SlaveState} slave * @param {DrugTarget} asset * @param {FC.RA.NumericTarget} target * @param {{drug: FC.Drug, weight: number}[]} priorities * @param {number} step */ function drugs(slave, asset, target, priorities, step) { if (target === null || (growDrugs[asset] === null && shrinkDrugs[asset] === null)) { return; } const flesh = fleshFunc[asset](slave); if (growDrugs[asset] !== null && App.RA.shallGrow(flesh, target, step) && maxAssetSize[asset] > slave[asset]) { priorities.push({ drug: growDrugs[asset], weight: 1.0 - (flesh / target.val) }); } else if (shrinkDrugs[asset] !== null && App.RA.shallShrink(flesh, target, step)) { priorities.push({ drug: shrinkDrugs[asset], weight: flesh / target.val - 1.0 }); } } /** @type {{drug: FC.Drug, weight: number}[]} */ let _priorities = []; drugs(slave, "boobs", rule.growth.boobs, _priorities, 200); drugs(slave, "butt", rule.growth.butt, _priorities, 1); drugs(slave, "lips", rule.growth.lips, _priorities, 1); drugs(slave, "dick", rule.growth.dick, _priorities, 1); drugs(slave, "balls", rule.growth.balls, _priorities, 1); if (_priorities.length > 0) { const action = _priorities.reduce((acc, cur) => (acc.weight > cur.weight) ? acc : cur); if (slave.drugs !== action.drug) { slave.drugs = action.drug; r += `<br>${slave.slaveName} has been put on ${slave.drugs}, since `; if (action.drug.startsWith("intensive")) { r += `${he}'s healthy enough to take them, and `; } if (_priorities.length > 1) { r += `that part of ${his} body is `; if (!isNaN(action.weight)) { r += `${Math.trunc(action.weight * 100)}% `; } if (action.weight < 1) { r += "below "; } else { r += "above "; } r += "the targeted size."; } else { r += `that is the only part of ${his} body that does not meet the targeted size.`; } } } else if (growthDrugs.has(slave.drugs)) { slave.drugs = "no drugs"; r += `<br>${slave.slaveName}'s body has met all relevant growth targets, so ${his} pharmaceutical regime has been ended.`; } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessOtherDrugs(slave, rule) { // Other Drugs if (slave.indentureRestrictions < 2 && rule.drug !== null && slave.drugs !== rule.drug) { let flag = true; switch (rule.drug) { case "anti-aging cream": if (slave.visualAge < 18) { flag = false; } break; case "growth stimulants": if (!canImproveHeight(slave)) { flag = false; } break; case "sag-B-gone": if (!(slave.boobs > 250 && slave.boobShape !== "saggy")) { flag = false; } break; case "female hormone injections": if (!((slave.breedingMark !== 1 || V.propOutcome === 0 || V.eugenicsFullControl === 1 || V.arcologies[0].FSRestart === "unset") && (slave.ovaries === 1 || slave.mpreg === 1) && slave.pubertyXX === 0)) { flag = false; } break; case "male hormone injections": if (!((slave.breedingMark !== 1 || V.propOutcome === 0 || V.eugenicsFullControl === 1 || V.arcologies[0].FSRestart === "unset") && slave.balls > 0 && slave.pubertyXY === 0)) { flag = false; } break; case "psychosuppressants": if (!(slave.intelligence > -100 && slave.indentureRestrictions < 1)) { flag = false; } break; case "psychostimulants": if (!canImproveIntelligence(slave)) { flag = false; } break; case "breast injections": if (slave.boobs >= 50000) { flag = false; } break; case "hyper breast injections": if (slave.boobs >= 50000) { flag = false; } break; case "nipple enhancers": if (!(["inverted", "partially inverted", "cute", "tiny", "puffy"].includes(slave.nipples))) { flag = false; } break; case "breast redistributors": if (slave.boobs - slave.boobsImplant <= 100) { flag = false; } break; case "butt injections": if (slave.butt >= 9) { flag = false; } break; case "hyper butt injections": if (slave.butt >= 20) { flag = false; } break; case "nipple atrophiers": if (!(["cute", "huge", "puffy"].includes(slave.nipples))) { flag = false; } break; case "butt redistributors": if (slave.buttImplant <= 0) { flag = false; } break; case "lip injections": if (!(slave.lips <= 95 || (slave.lips <= 85 && V.seeExtreme !== 1))) { flag = false; } break; case "lip atrophiers": if (slave.lips - slave.lipsImplant <= 0) { flag = false; } break; case "super fertility drugs": if (!(slave.indentureRestrictions < 1 && (slave.breedingMark !== 1 || V.propOutcome === 0 || V.eugenicsFullControl === 1 || V.arcologies[0].FSRestart === "unset"))) { flag = false; } break; case "penis enhancement": if (!((slave.dick > 0 && slave.dick < 10) || slave.clit < 5)) { flag = false; } break; case "hyper penis enhancement": if (!((slave.dick > 0 && slave.dick < 31) || slave.clit < 5)) { flag = false; } break; case "penis atrophiers": if (slave.dick <= 1) { flag = false; } break; case "testicle enhancement": if (slave.balls <= 0) { flag = false; } break; case "hyper testicle enhancement": if (slave.balls <= 0) { flag = false; } break; case "testicle atrophiers": if (slave.balls <= 1) { flag = false; } break; case "clitoris atrophiers": if (slave.clit <= 0) { flag = false; } break; case "labia atrophiers": if (slave.labia <= 0) { flag = false; } break; case "appetite suppressors": if (slave.weight > -95) { flag = false; } break; case "priapism agents": if (slave.dick === 0 || slave.dick > 10 || slave.chastityPenis === 1 || (canAchieveErection(slave) && slave.drugs !== "priapism agents")) { flag = false; } break; } if (flag) { slave.drugs = rule.drug; r += `<br>${slave.slaveName} has been put on ${slave.drugs}.`; } else { slave.drugs = "no drugs"; r += `<br>${slave.slaveName} cannot benefit from ${his} assigned drug and has been defaulted to ${slave.drugs}`; } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessEnema(slave, rule) { if ((rule.inflationType !== undefined) && (rule.inflationType !== null)) { if (slave.inflationType !== rule.inflationType) { if ((slave.inflationType === "curative" && slave.health.condition > 90) || (slave.inflationType === "tightener" && slave.anus <= 1 && slave.vagina <= 1)) { r += `<br>${slave.slaveName} cannot benefit from ${his} assigned enema and has been defaulted to none.`; deflate(slave); } else if ((rule.inflationType === "curative" && slave.health.condition > 90) || (rule.inflationType === "tightener" && slave.anus <= 1 && slave.vagina <= 1)) { // empty block } else { r += `<br>${slave.slaveName}'s current enema regimen has been set to ${rule.inflationType}.`; slave.inflation = 1; slave.inflationType = rule.inflationType; slave.inflationMethod = 2; slave.milkSource = 0; slave.cumSource = 0; SetBellySize(slave); } } if (slave.inflationType !== "none" && slave.inflation > 1 && slave.health.condition < -50) { r += `<br>${slave.slaveName}'s current enema regimen risks death, so it has been reduced to a less threatening level.`; slave.inflation = 1; SetBellySize(slave); } else if (slave.inflation > 1 && (slave.bellyPreg >= 1500 || slave.bellyImplant >= 1500)) { r += `<br>${slave.slaveName}'s current enema is too much for ${his} body, so it has been reduced.`; slave.inflation = 1; SetBellySize(slave); } else if (slave.inflationType === "none") { deflate(slave); } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessPit(slave, rule) { if (rule.pitRules !== undefined && rule.pitRules !== null) { if (V.pit) { if (rule.pitRules === 0) { removeJob(slave, Job.PIT, true); r += `<br>${slave.slaveName} has been removed from the pit.`; } else { if (App.Entity.facilities.pit.job().checkRequirements(slave).length !== 0) { removeJob(slave, Job.PIT, true); r += `<br>${slave.slaveName} is not eligible to fight.`; } else { assignJob(slave, Job.PIT); r += `<br>${slave.slaveName} has been automatically assigned to fight in the pit.`; } } } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessDiet(slave, rule) { // Diet Setting if ((rule.diet !== undefined && rule.diet !== null) || rule.weight !== null || rule.muscles !== null) { /* if ((slave.boobs >= 1600) && (slave.muscles <= 5) && !isAmputee(slave) && ((rule.muscles == null) || (rule.muscles === 0))) { if ((slave.diet !== "muscle building")) { slave.diet = "muscle building" r += `<br>${slave.slaveName} has big tits and no back muscles, so ${he}'s been assigned to gain some.` } } else if ((slave.boobs >= 1600) && (slave.muscles > 5) && (slave.diet == "muscle building") && ((rule.muscles == null) || (rule.muscles === 0))) { */ if (rule.diet === "healthy" && slave.diet !== "healthy") { slave.diet = "healthy"; r += `<br>${slave.slaveName} has been assigned to a healthy diet.`; } else if ((slave.boobs >= 1600) && (slave.muscles > 5) && (slave.diet === "muscle building") && ((rule.muscles === null) || (rule.muscles.val === 0))) { slave.diet = "healthy"; r += `<br>${slave.slaveName} has huge boobs, but ${he} already has the back muscles to bear them, so ${he}'s been assigned to stop working out so hard.`; } else if ((rule.dietGrowthSupport === 1) && ((slave.drugs === "breast injections") || (slave.drugs === "butt injections")) && (slave.weight <= 95)) { if (slave.diet !== "fattening") { slave.diet = "fattening"; r += `<br>${slave.slaveName} is on drugs designed to expand major body parts, so ${he}'s been put on a fattening diet to provide ${his} body as much fuel for growth as possible.`; } } else { // priority to growing/losing muscles, then general body mass, then rest of the diets if (!isAmputee(slave) && App.RA.shallShrink(slave.muscles, rule.muscles, 8)) { if ((slave.diet !== "slimming")) { slave.diet = "slimming"; r += `<br>${slave.slaveName} has been put on a slimming exercise regime.`; } } else if (!isAmputee(slave) && App.RA.shallGrow(slave.muscles, rule.muscles, 2)) { if ((slave.diet !== "muscle building")) { slave.diet = "muscle building"; r += `<br>${slave.slaveName} has been put on a muscle building exercise regime.`; } } else if (!isAmputee(slave) && ["slimming", "muscle building"].includes(slave.diet)) { slave.diet = "healthy"; r += `<br>${slave.slaveName} is at the target musculature, so ${his} diet has been normalized.`; } else if (rule.weight !== null && slave.weight > rule.weight.max) { if (slave.diet !== "restricted") { slave.diet = "restricted"; r += `<br>${slave.slaveName} is too fat so ${his} diet has been set to restricted.`; } } else if (rule.weight !== null && slave.weight < rule.weight.min) { if (slave.diet !== "fattening") { slave.diet = "fattening"; r += `<br>${slave.slaveName} is too skinny so ${his} diet has been set to fattening.`; } } else if (rule.weight !== null && ["restricted", "fattening"].includes(slave.diet)) { slave.diet = "healthy"; r += `<br>${slave.slaveName} is at the target weight, so ${his} diet has been normalized.`; } else if ((rule.diet === "attractive")) { if (((slave.weight > 95) || ((slave.weight > 30) && (slave.hips < 2)))) { if ((slave.diet !== "restricted")) { slave.diet = "restricted"; r += `<br>${slave.slaveName} is too fat so ${his} diet has been set to restricted.`; } } else if (((slave.weight < -95) || ((slave.weight < -30) && (slave.hips > -2)))) { if ((slave.diet !== "fattening")) { slave.diet = "fattening"; r += `<br>${slave.slaveName} is too skinny so ${his} diet has been set to fattening.`; } } else { if ((slave.diet !== "healthy")) { slave.diet = "healthy"; r += `<br>${slave.slaveName} is at the target weight, so ${his} diet has been normalized.`; } } } else if ((rule.diet === "XX")) { if ((slave.diet !== "XX")) { slave.diet = "XX"; r += `<br>${slave.slaveName} has been put on a diet that favors feminine development.`; } } else if ((rule.diet === "XY")) { if ((slave.diet !== "XY")) { slave.diet = "XY"; r += `<br>${slave.slaveName} has been put on a diet that favors masculine development.`; } } else if ((rule.diet === "XXY")) { if (slave.balls > 0 && (slave.ovaries === 1 || slave.mpreg === 1)) { if ((slave.diet !== "XXY")) { slave.diet = "XXY"; r += `<br>${slave.slaveName} has been put on a diet that enhances a herm's unique sexuality.`; } } else { if ((slave.diet !== "healthy")) { slave.diet = "healthy"; r += `<br>${slave.slaveName} has been put on a standard diet since ${he} is not a hermaphrodite.`; } } } else if ((rule.diet === "cleansing")) { if ((slave.diet !== "cleansing") && (slave.health.condition < 90 || slave.chem >= 10)) { slave.diet = "cleansing"; r += `<br>${slave.slaveName} has been put on a diet of cleansers.`; } } else if ((rule.diet === "fertility")) { if ((isFertile(slave) && slave.preg === 0) || (slave.geneticQuirks.superfetation === 2 && canGetPregnant(slave) && V.geneticMappingUpgrade !== 0)) { if ((slave.diet !== "fertility")) { slave.diet = "fertility"; r += `<br>${slave.slaveName} has been put on a diet to enhance fertility.`; } } else { if ((slave.diet !== "healthy")) { slave.diet = "healthy"; if (slave.pregKnown === 0 && slave.preg > 0) { r += `<br>${slave.slaveName} has been put on a standard diet since tests reveal ${he} has become pregnant.`; slave.pregKnown = 1; } else { r += `<br>${slave.slaveName} has been put on a standard diet since ${he} is currently unable to become pregnant.`; } } } } else if ((rule.diet === "cum production")) { if (slave.balls > 0) { if ((slave.diet !== "cum production")) { slave.diet = "cum production"; r += `<br>${slave.slaveName} has been put on a diet to promote cum production.`; } } else { if ((slave.diet !== "healthy")) { slave.diet = "healthy"; r += `<br>${slave.slaveName} has been put on a standard diet since ${he} is no longer able to produce cum.`; } } } } if (slave.drugs === "appetite suppressors" && slave.diet !== "restricted") { slave.drugs = "no drugs"; r += `<br>${slave.slaveName} no longer needs to lose weight, so ${he}'s no longer being given appetite suppressors.`; } else if (slave.diet === "restricted" && V.arcologies[0].FSSlimnessEnthusiastResearch === 1 && slave.drugs === "no drugs") { slave.drugs = "appetite suppressors"; r += `<br>${slave.slaveName} needs to lose weight so ${he} will be given weight loss pills.`; } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessCuratives(slave, rule) { if ((rule.curatives !== undefined) && (rule.curatives !== null)) { if (slave.curatives !== rule.curatives) { if (rule.curatives === 2) { if (slave.health.condition > 100) { if (slave.curatives !== 1) { r += `<br>${slave.slaveName} has been put on preventatives, since curatives cannot improve ${his} health further.`; slave.curatives = 1; } } else { r += `<br>${slave.slaveName} has been put on curatives.`; slave.curatives = rule.curatives; } } else { r += `<br>${slave.slaveName} has been ${rule.curatives > 0 ? "put on preventatives" : "taken off health drugs"}`; slave.curatives = rule.curatives; } } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessAphrodisiacs(slave, rule) { if ((rule.aphrodisiacs !== undefined) && (rule.aphrodisiacs !== null)) { if (slave.aphrodisiacs !== rule.aphrodisiacs) { r += `<br>${slave.slaveName} has been ${rule.aphrodisiacs > 0 ? "put on the proper" : "taken off"} aphrodisiacs.`; slave.aphrodisiacs = rule.aphrodisiacs; } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessPenisHormones(slave, rule) { if (slave.dick > 0) { if (slave.balls === 0) { if ((rule.gelding !== undefined) && (rule.gelding !== null)) { if (slave.hormones !== rule.gelding) { const _oldHormones = slave.hormones; slave.hormones = rule.gelding; if (slave.indentureRestrictions >= 2) { slave.hormones = Math.clamp(slave.hormones, -1, 1); } if (slave.hormones !== _oldHormones) { r += `<br>${slave.slaveName} is a gelding, so ${he} has been put on the appropriate hormonal regime.`; } } } } else if (slave.balls > 0) { if ((rule.XY !== undefined) && (rule.XY !== null)) { if (slave.hormones !== rule.XY) { if (slave.assignment !== Job.RECRUITER) { if (slave.assignment !== Job.WARDEN) { if (slave.assignment !== Job.MADAM) { const _oldHormones = slave.hormones; slave.hormones = rule.XY; if (slave.indentureRestrictions >= 2) { slave.hormones = Math.clamp(slave.hormones, -1, 1); } if (slave.hormones !== _oldHormones) { r += `<br>${slave.slaveName} is a shemale, so ${he} has been put on the appropriate hormonal regime.`; } } } } } } } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessFemaleHormones(slave, rule) { if ((slave.vagina > -1) && (slave.dick === 0) && (rule.XX !== undefined) && (rule.XX !== null)) { if (slave.hormones !== rule.XX) { const _oldHormones = slave.hormones; slave.hormones = rule.XX; if (slave.indentureRestrictions >= 2) { slave.hormones = Math.clamp(slave.hormones, -1, 1); } if (slave.hormones !== _oldHormones) { r += `<br>${slave.slaveName} is a female, so ${he} has been put on the appropriate hormonal regime.`; } } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessPregnancyDrugs(slave, rule) { if (slave.pregKnown === 1 && rule.pregSpeed !== null && (slave.breedingMark !== 1 || V.propOutcome === 0 || V.eugenicsFullControl === 1 || V.arcologies[0].FSRestart === "unset") && slave.indentureRestrictions < 1 && slave.broodmother === 0) { if (rule.pregSpeed === "slow" && slave.preg < slave.pregData.normalBirth) { slave.pregControl = "slow gestation"; r += `<br>${slave.slaveName} is pregnant, so ${he} has been put on the gestation slowing agents.`; } else if (rule.pregSpeed === "fast" && slave.preg < slave.pregData.normalBirth && slave.health.condition > -50) { slave.pregControl = "speed up"; r += `<br>${slave.slaveName} is pregnant, so ${he} has been put on rapid gestation agents. CAUTION! Can be dangerous. Clinic supervision is recommended.`; } else if (rule.pregSpeed === "suppress" && slave.preg >= slave.pregData.minLiveBirth && slave.health.condition > -50) { slave.pregControl = "labor suppressors"; r += `<br>${slave.slaveName} is ready to birth, so ${he} has been put on labor suppressing agents.`; } else if (rule.pregSpeed === "stimulate" && slave.preg > slave.pregData.normalBirth - 2 && slave.preg > slave.pregData.minLiveBirth && slave.health.condition > -50) { startLabor(slave); slave.induce = 1; V.birthee = 1; r += `<br>${slave.slaveName} is ready to birth, so ${his} labor has been stimulated.`; } else if (rule.pregSpeed === "fast" && slave.pregControl === "speed up" && slave.health.condition <= -50) { slave.pregControl = "none"; r += `<br>${slave.slaveName} is on rapid gestation agents and dangerously unhealthy, so ${his} agent regimen has been stopped.`; } else if (rule.pregSpeed === "suppress" && slave.pregControl === "labor suppressors" && slave.health.condition <= -50) { slave.pregControl = "none"; r += `<br>${slave.slaveName} is on labor suppression agents and unhealthy, so ${his} agent regimen has been stopped.`; } else if (rule.pregSpeed === "none" && slave.pregControl !== "none") { slave.pregControl = "none"; r += `<br>${slave.slaveName}'s pregnancy control regimen has been stopped.`; } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessLivingStandard(slave, rule) { if ((rule.livingRules !== undefined) && (rule.livingRules !== null)) { if (setup.facilityCareers.includes(slave.assignment)) { r += ""; // `<br>${slave.slaveName}'s living standards are controlled by ${his} assignment.`; } else if (((slave.assignment === Job.HEADGIRL) && (V.HGSuite === 1)) || ((slave.assignment === Job.BODYGUARD) && (V.dojo > 1))) { r += `<br>${slave.slaveName} has a private room.`; } else if ((slave.fetish === "mindbroken")) { if ((slave.rules.living !== "spare")) { slave.rules.living = "spare"; r += `<br>Since ${slave.slaveName} is mindbroken, ${his} living standard has been set to spare.`; } } else if (slave.rules.living !== rule.livingRules) { if (rule.livingRules !== "luxurious") { if (canMoveToRoom(slave)) { slave.rules.living = rule.livingRules; r += `<br>${slave.slaveName}'s living standard has been set to ${rule.livingRules}.`; } else { slave.rules.living = "normal"; r += `<br>${slave.slaveName}'s living standard has been set to normal, since there is no room for ${him} to occupy.`; } } else { slave.rules.living = rule.livingRules; r += `<br>${slave.slaveName}'s living standard has been set to ${rule.livingRules}.`; } penthouseCensus(); } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessRest(slave, rule) { if ((rule.restRules !== undefined) && (rule.restRules !== null)) { if (slave.rules.rest !== rule.restRules ) { slave.rules.rest = rule.restRules; r += `<br>${slave.slaveName}'s resting time has been set to ${rule.restRules}.`; } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessSpeech(slave, rule) { if ((rule.speechRules !== undefined) && (rule.speechRules !== null) && (slave.rules.speech !== rule.speechRules)) { if (slave.fetish === "mindbroken") { if (slave.rules.speech !== "restrictive") { slave.rules.speech = "restrictive"; r += `<br>Since ${slave.slaveName} is mindbroken, ${his} speech rules have been set to restrictive.`; } } else if (slave.accent === 4) { if ((rule.speechRules === "accent elimination" || rule.speechRules === "permissive") && slave.rules.speech !== "language lessons") { slave.rules.speech = "language lessons"; r += `<br>Since ${slave.slaveName} does not know how to talk, ${his} speech rules have been set to language learning.`; } else if (slave.rules.speech !== "language lessons" && slave.rules.speech !== "restrictive") { slave.rules.speech = "restrictive"; r += `<br>Since ${slave.slaveName} does not know how to talk, ${his} speech rules have been set to restrictive.`; } } else if (rule.speechRules === "accent elimination") { if (slave.accent > 0) { slave.rules.speech = "accent elimination"; r += `<br>${slave.slaveName}'s speech rules have been set to ${rule.speechRules}.`; } else { slave.rules.speech = "restrictive"; r += `<br>Since ${slave.slaveName} has no accent, ${his} speech rules have been set to restrictive.`; } } else if (slave.rules.speech !== rule.speechRules) { slave.rules.speech = rule.speechRules; r += `<br>${slave.slaveName}'s speech rules have been set to ${rule.speechRules}.`; } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessRelationship(slave, rule) { if ((slave.fetish !== "mindbroken")) { if ((rule.relationshipRules !== undefined) && (rule.relationshipRules !== null)) { if (slave.rules.relationship !== rule.relationshipRules ) { slave.rules.relationship = rule.relationshipRules; r += `<br>${slave.slaveName}'s relationship rules have been set to ${rule.relationshipRules}.`; } } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessRelease(slave, rule) { if ((rule.releaseRules !== undefined) && (rule.releaseRules !== null)) { let changed = false; let processReleaseProp = (property) => { if (rule.releaseRules[property] !== undefined && rule.releaseRules[property] !== null) { if (slave.rules.release[property] !== rule.releaseRules[property]) { slave.rules.release[property] = rule.releaseRules[property]; return true; } } return false; }; changed = processReleaseProp('masturbation') || false; changed = processReleaseProp('partner') || false; changed = processReleaseProp('facilityLeader') || false; changed = processReleaseProp('family') || false; changed = processReleaseProp('slaves') || false; changed = processReleaseProp('master') || false; if (changed) { r += `<br>${slave.slaveName}'s release rules have been set to: ${App.Utils.releaseSummaryLong(slave)}.`; } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessLactation(slave, rule) { if ((rule.lactationRules !== undefined) && (rule.lactationRules !== null)) { if (slave.rules.lactation !== rule.lactationRules ) { if ((rule.lactationRules === "induce" && slave.lactation === 0) || (rule.lactationRules === "maintain" && slave.lactation === 1) || (rule.lactationRules === "none")) { slave.rules.lactation = rule.lactationRules; r += `<br>${slave.slaveName}'s lactation rules have been set to ${rule.lactationRules}.`; } } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessMobility(slave, rule) { if ((rule.mobilityRules !== undefined) && (rule.mobilityRules !== null)) { if (slave.rules.mobility !== rule.mobilityRules ) { slave.rules.mobility = rule.mobilityRules; r += `<br>${slave.slaveName}'s usage of mobility aids has been set to ${rule.mobilityRules}.`; } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessPunishment(slave, rule) { if ((rule.standardPunishment !== undefined) && (rule.standardPunishment !== null)) { if (slave.rules.punishment !== rule.standardPunishment) { slave.rules.punishment = rule.standardPunishment; r += `<br>${slave.slaveName}'s typical punishment has been updated to ${rule.standardPunishment}.`; } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessReward(slave, rule) { if ((rule.standardReward !== undefined) && (rule.standardReward !== null)) { if (slave.rules.reward !== rule.standardReward) { slave.rules.reward = rule.standardReward; r += `<br>${slave.slaveName}'s typical reward has been updated to ${rule.standardReward}.`; } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessToyHole(slave, rule) { if ((rule.toyHole !== undefined) && (rule.toyHole !== null)) { if (rule.toyHole === "pussy") { if (slave.vagina > 0 && canDoVaginal(slave)) { slave.toyHole = rule.toyHole; r += `<br>${slave.slaveName} has been instructed to use ${his} ${rule.toyHole} to please you.`; } else if (slave.toyHole !== "all her holes") { slave.toyHole = "all her holes"; r += `<br>${slave.slaveName}'s hole preference has defaulted to all ${his} holes.`; } } else if (rule.toyHole === "ass") { if (slave.anus > 0 && canDoAnal(slave)) { slave.toyHole = rule.toyHole; r += `<br>${slave.slaveName} has been instructed to use ${his} ${rule.toyHole} to please you.`; } else if (slave.toyHole !== "all her holes") { slave.toyHole = "all her holes"; r += `<br>${slave.slaveName}'s hole preference has defaulted to all ${his} holes.`; } } else if (rule.toyHole === "dick") { if (slave.dick > 0 && canPenetrate(slave)) { slave.toyHole = rule.toyHole; r += `<br>${slave.slaveName} has been instructed to use ${his} ${rule.toyHole} to please you.`; } else if (slave.toyHole !== "all her holes") { slave.toyHole = "all her holes"; r += `<br>${slave.slaveName}'s hole preference has defaulted to all ${his} holes.`; } } else if (slave.toyHole !== rule.toyHole) { slave.toyHole = rule.toyHole; r += `<br>${slave.slaveName} has been instructed to use ${his} ${rule.toyHole} to please you.`; } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessDietCum(slave, rule) { if ((rule.dietCum !== undefined) && (rule.dietCum !== null)) { if (slave.dietCum !== rule.dietCum) { slave.dietCum = rule.dietCum; if (slave.dietCum === 2) { r += `<br>${slave.slaveName} has been put on a diet based on cum.`; slave.dietMilk = 0; } else if (slave.dietCum === 1) { r += `<br>${slave.slaveName} has had cum added to ${his} diet.`; } else { r += `<br>${slave.slaveName} has had cum removed from ${his} diet.`; } } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessDietMilk(slave, rule) { if ((rule.dietMilk !== undefined) && (rule.dietMilk !== null)) { if (slave.dietMilk !== rule.dietMilk) { slave.dietMilk = rule.dietMilk; if (slave.dietMilk === 2) { r += `<br>${slave.slaveName} has been put on a diet based on human milk.`; slave.dietCum = 0; } else if (slave.dietMilk === 1) { r += `<br>${slave.slaveName} has had human milk added to ${his} diet.`; } else { r += `<br>${slave.slaveName} has had human milk removed from ${his} diet.`; } } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessSolidFood(slave, rule) { if ((rule.onDiet !== undefined) && (rule.onDiet !== null)) { if (slave.onDiet !== rule.onDiet) { slave.onDiet = rule.onDiet; if (slave.onDiet === 1) { r += `<br>${slave.slaveName} is not permitted to eat the solid slave food.`; } else { r += `<br>${slave.slaveName} is permitted to eat the solid slave food.`; } } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessTeeth(slave, rule) { if ((rule.teeth !== undefined) && (rule.teeth !== null)) { if ((rule.teeth === "universal")) { if ((slave.teeth === "crooked")) { slave.teeth = "straightening braces"; cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); r += `<br>${slave.slaveName} has been given braces for ${his} crooked teeth.`; } else if (slave.teeth === "gapped") { slave.teeth = "straightening braces"; cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); r += `<br>${slave.slaveName} has been given braces to close the gap in ${his} teeth.`; } else if ((slave.teeth === "normal")) { slave.teeth = "cosmetic braces"; cashX(forceNeg(V.modCost), "slaveSurgery", slave); r += `<br>${slave.slaveName} has been given cosmetic braces.`; } } else if ((rule.teeth === "straighten")) { if ((slave.teeth === "crooked")) { slave.teeth = "straightening braces"; cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); r += `<br>${slave.slaveName} has been given braces for ${his} crooked teeth.`; } else if (slave.teeth === "gapped") { slave.teeth = "straightening braces"; cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); r += `<br>${slave.slaveName} has been given braces to close the gap in ${his} teeth.`; } else if ((slave.teeth === "cosmetic braces")) { slave.teeth = "normal"; r += `<br>${slave.slaveName} has had ${his} braces removed, since ${his} teeth are straight.`; } } else if ((rule.teeth === "none")) { if ((slave.teeth === "straightening braces")) { slave.teeth = "crooked"; r += `<br>${slave.slaveName} has had ${his} braces removed.`; } else if ((slave.teeth === "cosmetic braces")) { slave.teeth = "normal"; r += `<br>${slave.slaveName} has had ${his} braces removed.`; } } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessStyle(slave, rule) { if ( (rule.iris !== undefined && rule.iris !== null) || (rule.pupil !== undefined && rule.pupil !== null) || (rule.sclera !== undefined && rule.sclera !== null) ) { if ( getLeftEyeColor(slave) !== rule.iris || getRightEyeColor(slave) !== rule.iris || getLeftEyePupil(slave) !== rule.pupil || getRightEyePupil(slave) !== rule.pupil || getLeftEyeSclera(slave) !== rule.sclera || getRightEyeSclera(slave) !== rule.sclera ) { let iris = rule.iris || getLeftEyeColor(slave); let pupil = rule.pupil || getLeftEyePupil(slave); let sclera = rule.sclera || getLeftEyeSclera(slave); setEyeColorFull(slave, iris, pupil, sclera, "left"); iris = rule.iris || getRightEyeColor(slave); pupil = rule.pupil || getRightEyePupil(slave); sclera = rule.sclera || getRightEyeSclera(slave); setEyeColorFull(slave, iris, pupil, sclera, "right"); cashX(forceNeg(V.modCost), "slaveMod", slave); const lensDesc = []; if (rule.iris) { if (hasBothEyes(slave)) { lensDesc.push(`${rule.iris} irises`); } else { lensDesc.push(`a ${rule.iris} iris`); } } if (rule.pupil) { if (hasBothEyes(slave)) { lensDesc.push(`${rule.pupil} pupils`); } else { lensDesc.push(`a ${rule.pupil} pupil`); } } if (rule.sclera) { lensDesc.push(`${rule.sclera} sclera`); } const lens = lensDesc.slice(0, lensDesc.length - 1).join(', ') + ", and " + lensDesc.slice(-1); r += `<br>${slave.slaveName} has been given ${hasBothEyes(slave) ? `contact lenses` : `a contact lens`} with ${lens}.`; } } if (rule.makeup !== undefined && (rule.makeup !== null)) { if (slave.makeup !== rule.makeup) { slave.makeup = rule.makeup; cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName} has been assigned the standard makeup.`; } } if (hasAnyArms(slave)) { if (rule.nails !== undefined && (rule.nails !== null)) { if (slave.nails !== rule.nails) { slave.nails = rule.nails; cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName} has been assigned the standard nails.`; } } } if (rule.hColor !== undefined && (rule.hColor !== null)) { if (slave.bald !== 1) { if (slave.hColor !== rule.hColor) { slave.hColor = rule.hColor; cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName}'s hair has been dyed ${rule.hColor}.`; } } } if (rule.hornColor !== undefined && (rule.hornColor !== null)) { if (slave.horn !== "none") { if (slave.hornColor !== rule.hornColor) { slave.hornColor = rule.hornColor; cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName}'s horns has been dyed ${rule.hornColor}.`; } } } if (rule.hStyle !== undefined && (rule.hStyle !== null)) { if (slave.bald !== 1) { if (slave.hStyle !== rule.hStyle) { slave.hStyle = rule.hStyle; cashX(forceNeg(V.modCost), "slaveMod", slave); if ((rule.hStyle === "shaved")) { slave.hLength = 0; r += `<br>${slave.slaveName}'s hair has been shaved.`; } else { r += `<br>${slave.slaveName}'s hair has been restyled`; // Cut hair if needed for (const style of App.Medicine.Modification.hairStyles.Cut) { if (style.value === rule.hStyle) { if (slave.hLength > style.hLength) { slave.hLength = style.hLength; r += ` and shortened`; } break; } } r += `.`; } } } } if (rule.hLength !== undefined && (rule.hLength !== null)) { if (slave.bald !== 1) { if (slave.hLength !== rule.hLength) { if (slave.hLength > rule.hLength) { cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName}'s hair has been cut; it `; } else { cashX(forceNeg(V.modCost * Math.trunc((rule.hLength - slave.hLength) / 10)), "slaveMod", slave); r += `<br>${slave.slaveName} has been given extensions; ${his} hair `; } r += `is now ${lengthToEitherUnit(rule.hLength)} long.`; slave.hLength = rule.hLength; } } } if (rule.haircuts !== undefined && (rule.haircuts !== null)) { if (slave.bald !== 1) { if (rule.haircuts === 1 && slave.haircuts !== 1) { r += `<br>${slave.slaveName}'s hair will now be maintained at ${lengthToEitherUnit(slave.hLength)} long.`; slave.haircuts = 1; } else if (rule.haircuts === 0 && slave.haircuts !== 0) { r += `<br>${slave.slaveName}'s hair length will no longer be maintained.`; slave.haircuts = 0; } } } if (rule.eyebrowHColor !== undefined && (rule.eyebrowHColor !== null)) { if (slave.eyebrowHStyle !== "bald" && slave.eyebrowHStyle !== "hairless") { if (slave.eyebrowHColor !== rule.eyebrowHColor) { slave.eyebrowHColor = rule.eyebrowHColor; cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName}'s eyebrow hair, if present, has been dyed ${rule.eyebrowHColor}.`; } } } if (rule.eyebrowHStyle !== undefined && (rule.eyebrowHStyle !== null)) { if (slave.eyebrowHStyle !== "bald" && slave.eyebrowHStyle !== "hairless") { if (slave.eyebrowHStyle !== rule.eyebrowHStyle) { slave.eyebrowHStyle = rule.eyebrowHStyle; cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName}'s eyebrow hair has been restyled; they are now ${rule.eyebrowHStyle}.`; } } } if (rule.eyebrowFullness !== undefined && (rule.eyebrowFullness !== null)) { if (slave.eyebrowHStyle !== "bald" && slave.eyebrowHStyle !== "hairless") { if (slave.eyebrowFullness !== rule.eyebrowFullness) { slave.eyebrowFullness = rule.eyebrowFullness; cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName}'s eyebrow hair thickness has been adjusted; they are now ${rule.eyebrowFullness}.`; } } } if (rule.pubicHColor !== undefined && (rule.pubicHColor !== null)) { if (slave.pubicHStyle !== "bald" && slave.pubicHStyle !== "hairless") { if (slave.pubicHColor !== rule.pubicHColor) { slave.pubicHColor = rule.pubicHColor; cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName}'s pubic hair, if present, has been dyed ${rule.pubicHColor}.`; } } } if (rule.pubicHStyle !== undefined && (rule.pubicHStyle !== null)) { if (slave.pubicHStyle !== "bald" && slave.pubicHStyle !== "hairless") { if (slave.pubicHStyle !== rule.pubicHStyle) { slave.pubicHStyle = rule.pubicHStyle; cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName}'s pubic hair has been restyled; it is now ${rule.pubicHStyle}.`; } } } if (rule.underArmHColor !== undefined && (rule.underArmHColor !== null)) { if (slave.underArmHStyle !== "bald" && slave.underArmHStyle !== "hairless") { if (slave.underArmHColor !== rule.underArmHColor) { slave.underArmHColor = rule.underArmHColor; cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName}'s underarm hair, if present, has been dyed ${rule.underArmHColor}.`; } } } if (rule.underArmHStyle !== undefined && (rule.underArmHStyle !== null)) { if (slave.underArmHStyle !== "bald" && slave.underArmHStyle !== "hairless") { if (slave.underArmHStyle !== rule.underArmHStyle) { slave.underArmHStyle = rule.underArmHStyle; cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName}'s underarm hair has been restyled; it is now ${rule.underArmHStyle}.`; } } } if (rule.eyebrowHColor !== undefined && (rule.eyebrowHColor !== null)) { if (slave.eyebrowHStyle !== "bald") { if (slave.eyebrowHColor !== rule.eyebrowHColor) { slave.eyebrowHColor = rule.eyebrowHColor; cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName}'s eyebrow hair, if present, has been dyed ${rule.eyebrowHColor}.`; } } } if (rule.eyebrowHStyle !== undefined && (rule.eyebrowHStyle !== null)) { if (slave.eyebrowHStyle !== "bald") { if (slave.eyebrowHStyle !== rule.eyebrowHStyle) { slave.eyebrowHStyle = rule.eyebrowHStyle; cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName}'s eyebrow hair has been restyled; it is now ${rule.eyebrowHStyle}.`; } } } if (rule.eyebrowFullness !== undefined && (rule.eyebrowFullness !== null)) { if (slave.eyebrowHStyle !== "bald") { if (slave.eyebrowFullness !== rule.eyebrowFullness) { slave.eyebrowFullness = rule.eyebrowFullness; cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName}'s eyebrow hair has been reshaped; it is now ${rule.eyebrowFullness}.`; } } } if (rule.markings !== undefined && (rule.markings !== null)) { if (slave.markings === "beauty mark" && (rule.markings === "remove beauty marks" || rule.markings === "remove both")) { r += `<br>${slave.slaveName}'s beauty mark has been removed.`; slave.markings = "none"; cashX(forceNeg(V.modCost), "slaveMod", slave); } if (slave.markings === "birthmark" && (rule.markings === "remove birthmarks" || rule.markings === "remove both")) { r += `<br>${slave.slaveName}'s birthmark has been bleached away.`; cashX(forceNeg(V.modCost), "slaveMod", slave); slave.markings = "none"; } } if (rule.skinColor !== undefined && rule.skinColor !== null && rule.skinColor !== slave.skin) { if (rule.skinColor === "natural") { slave.skin = slave.origSkin; r += `<br>${slave.slaveName}'s skin color has been returned to ${slave.origSkin}.`; } else { slave.skin = rule.skinColor; r += `<br>${slave.slaveName}'s skin color has been set to ${rule.skinColor}.`; } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessPiercings(slave, rule) { if (rule.nipplesPiercing !== undefined && (rule.nipplesPiercing !== null)) { if (slave.nipplesPiercing !== rule.nipplesPiercing) { if (rule.nipplesPiercing === 0) { slave.nipplesPiercing = 0; r += `<br>${slave.slaveName}'s nipple piercings have been removed.`; } else if (slave.nipples !== "fuckable") { slave.nipplesPiercing = rule.nipplesPiercing; cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName}'s nipples have been pierced.`; } else { r += `<br>${slave.slaveName}'s nipples are inverted and cannot be pierced.`; } } } if (rule.areolaePiercing !== undefined && (rule.areolaePiercing !== null)) { if (slave.areolaePiercing !== rule.areolaePiercing) { if (rule.areolaePiercing === 0) { slave.areolaePiercing = 0; r += `<br>${slave.slaveName}'s areolae piercings have been removed.`; } else { slave.areolaePiercing = rule.areolaePiercing; cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName}'s areolae have been given stud piercings.`; } } } if (rule.clitPiercing !== undefined && (rule.clitPiercing !== null)) { if (slave.clitPiercing !== rule.clitPiercing) { if (rule.clitPiercing === 0) { slave.clitPiercing = 0; if (slave.dick > 0) { r += `<br>${slave.slaveName}'s frenulum piercing has been removed.`; } else { r += `<br>${slave.slaveName}'s clit piercing has been removed.`; } } else if ((slave.vagina !== -1) || (slave.dick !== 0)) { slave.clitPiercing = rule.clitPiercing; if (slave.dick > 0) { r += `<br>${slave.slaveName}'s frenulum has been pierced.`; } else { r += `<br>${slave.slaveName}'s clit has been pierced.`; } if (rule.clitPiercing === 3) { cashX(forceNeg(V.SPcost), "slaveMod", slave); } else { cashX(forceNeg(V.modCost), "slaveMod", slave); } } } } if (slave.vagina !== -1) { if (rule.vaginaPiercing !== undefined && (rule.vaginaPiercing !== null)) { if (slave.vaginaPiercing !== rule.vaginaPiercing) { if (rule.vaginaPiercing === 0) { slave.vaginaPiercing = 0; r += `<br>${slave.slaveName}'s labia piercings have been removed.`; } else { slave.vaginaPiercing = rule.vaginaPiercing; cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName}'s pussylips have been pierced.`; } } } } if (slave.dick > 0) { if (rule.dickPiercing !== undefined && (rule.dickPiercing !== null)) { if (slave.dickPiercing !== rule.dickPiercing) { if (rule.dickPiercing === 0) { slave.dickPiercing = 0; r += `<br>${slave.slaveName}'s shaft piercings have been removed.`; } else { slave.dickPiercing = rule.dickPiercing; cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName}'s shaft has been pierced.`; } } } } if (rule.anusPiercing !== undefined && (rule.anusPiercing !== null)) { if (slave.anusPiercing !== rule.anusPiercing) { if (rule.anusPiercing === 0) { slave.anusPiercing = 0; r += `<br>${slave.slaveName}'s asshole piercings have been removed.`; } else { slave.anusPiercing = rule.anusPiercing; cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName}'s asshole has been pierced.`; } } } if (rule.lipsPiercing !== undefined && (rule.lipsPiercing !== null)) { if (slave.lipsPiercing !== rule.lipsPiercing) { if (rule.lipsPiercing === 0) { slave.lipsPiercing = 0; r += `<br>${slave.slaveName}'s lip piercings have been removed.`; } else { slave.lipsPiercing = rule.lipsPiercing; cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName}'s lips have been pierced.`; } } } if (rule.tonguePiercing !== undefined && (rule.tonguePiercing !== null)) { if (slave.tonguePiercing !== rule.tonguePiercing) { if (rule.tonguePiercing === 0) { slave.tonguePiercing = 0; r += `<br>${slave.slaveName}'s tongue piercings have been removed.`; } else { slave.tonguePiercing = rule.tonguePiercing; cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName}'s tongue has been pierced.`; } } } if (rule.earPiercing !== undefined && (rule.earPiercing !== null)) { if (slave.earPiercing !== rule.earPiercing) { if (rule.earPiercing === 0) { slave.earPiercing = 0; r += `<br>${slave.slaveName}'s ear piercings have been removed.`; } else { slave.earPiercing = rule.earPiercing; cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName}'s ears have been pierced.`; } } } if (rule.nosePiercing !== undefined && (rule.nosePiercing !== null)) { if (slave.nosePiercing !== rule.nosePiercing) { if (rule.nosePiercing === 0) { slave.nosePiercing = 0; r += `<br>${slave.slaveName}'s nose piercing has been removed.`; } else { slave.nosePiercing = rule.nosePiercing; cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName}'s nose has been pierced.`; } } } if (rule.eyebrowPiercing !== undefined && (rule.eyebrowPiercing !== null)) { if (slave.eyebrowPiercing !== rule.eyebrowPiercing) { if (rule.eyebrowPiercing === 0) { slave.eyebrowPiercing = 0; r += `<br>${slave.slaveName}'s eyebrow piercings have been removed.`; } else { slave.eyebrowPiercing = rule.eyebrowPiercing; cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName}'s eyebrows have been pierced.`; } } } if (rule.navelPiercing !== undefined && (rule.navelPiercing !== null)) { if (slave.navelPiercing !== rule.navelPiercing) { if (rule.navelPiercing === 0) { slave.navelPiercing = 0; r += `<br>${slave.slaveName}'s navel piercing have been removed.`; } else { slave.navelPiercing = rule.navelPiercing; cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName}'s navel has been pierced.`; } } } if (rule.corsetPiercing !== undefined && (rule.corsetPiercing !== null)) { if (slave.corsetPiercing !== rule.corsetPiercing) { if (rule.corsetPiercing === 0) { slave.corsetPiercing = 0; r += `<br>${slave.slaveName}'s corset piercings have been removed.`; } else { slave.corsetPiercing = rule.corsetPiercing; cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName} has been given a set of corset piercings.`; } } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessSmartPiercings(slave, rule) { if (slave.clitPiercing === 3) { let _used = 0; if (rule.clitSetting !== undefined && rule.clitSetting !== null && rule.clitSetting !== "random") { if (slave.clitSetting !== rule.clitSetting) { slave.clitSetting = rule.clitSetting; _used = 1; r += `<br>${slave.slaveName}'s smart piercing has been set to ${slave.clitSetting}.`; } else if (slave.fetishStrength < 100) { _used = 1; } } else if (rule.clitSetting === "random") { slave.clitSetting = either("vanilla", "oral", "anal", "boobs", "submissive", "dom", "humiliation", "pregnancy", "masochist", "sadist"); _used = 1; r += `<br>${slave.slaveName}'s smart piercing has been set to ${slave.clitSetting}.`; } if (_used === 0) { if (rule.clitSettingEnergy !== undefined && (rule.clitSettingEnergy !== null)) { if (slave.energy < rule.clitSettingEnergy) { if (slave.clitSetting !== "all") { r += `<br>${slave.slaveName}'s smart piercing has been set to enhance libido.`; } slave.clitSetting = "all"; _used = 1; } else if (slave.energy >= rule.clitSettingEnergy + 10) { if (slave.clitSetting !== "none") { r += `<br>${slave.slaveName}'s smart piercing has been set to suppress libido.`; } slave.clitSetting = "none"; _used = 1; } } } if (_used === 0) { if (rule.clitSettingXY !== undefined && (rule.clitSettingXY !== null)) { if (slave.attrXY < rule.clitSettingXY) { if (slave.clitSetting !== "men") { r += `<br>${slave.slaveName}'s smart piercing has been set to encourage attraction to men.`; } slave.clitSetting = "men"; _used = 1; } else if (slave.attrXY >= rule.clitSettingXY + 10) { if (slave.clitSetting !== "anti-men") { r += `<br>${slave.slaveName}'s smart piercing has been set to discourage attraction to men.`; } slave.clitSetting = "anti-men"; _used = 1; } } } if (_used === 0) { if (rule.clitSettingXX !== undefined && (rule.clitSettingXX !== null)) { if (slave.attrXX < rule.clitSettingXX) { if (slave.clitSetting !== "women") { r += `<br>${slave.slaveName}'s smart piercing has been set to encourage attraction to women.`; } slave.clitSetting = "women"; _used = 1; } else if (slave.attrXX >= rule.clitSettingXX + 10) { if (slave.clitSetting !== "anti-women") { r += `<br>${slave.slaveName}'s smart piercing has been set to discourage attraction to women.`; } slave.clitSetting = "anti-women"; _used = 1; } } } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessTattoos(slave, rule) { if (rule.boobsTat !== undefined && (rule.boobsTat !== null)) { if (slave.boobsTat !== rule.boobsTat) { slave.boobsTat = rule.boobsTat; cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName}'s chest has been tattooed.`; } } if (rule.buttTat !== undefined && (rule.buttTat !== null)) { if (slave.buttTat !== rule.buttTat) { slave.buttTat = rule.buttTat; cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName}'s butt has been tattooed.`; } } if (rule.vaginaTat !== undefined && (rule.vaginaTat !== null)) { if (slave.vaginaTat !== rule.vaginaTat) { slave.vaginaTat = rule.vaginaTat; cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName}'s abdomen has been tattooed.`; } } if (slave.dick > 0) { if (rule.dickTat !== undefined && (rule.dickTat !== null)) { if (slave.dickTat !== rule.dickTat) { slave.dickTat = rule.dickTat; cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName}'s dick has been tattooed.`; } } } if (rule.lipsTat !== undefined && (rule.lipsTat !== null)) { if (slave.lipsTat !== rule.lipsTat) { slave.lipsTat = rule.lipsTat; cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName}'s face has been tattooed.`; } } if (rule.anusTat !== undefined && (rule.anusTat !== null)) { if (slave.anusTat !== rule.anusTat) { slave.anusTat = rule.anusTat; cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName}'s asshole has been modded.`; } } if (rule.backTat !== undefined && (rule.backTat !== null)) { if (slave.backTat !== rule.backTat) { slave.backTat = rule.backTat; cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName}'s back has been tattooed.`; } } if (rule.shouldersTat !== undefined && (rule.shouldersTat !== null)) { if (slave.shouldersTat !== rule.shouldersTat) { slave.shouldersTat = rule.shouldersTat; cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName}'s shoulders have been tattooed.`; } } if (rule.armsTat !== undefined && (rule.armsTat !== null)) { if (slave.armsTat !== rule.armsTat) { slave.armsTat = rule.armsTat; cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName}'s `; if (hasBothArms(slave)) { r += `arms have`; } else { r += `arm has`; } r += ` been tattooed.`; } } if (rule.legsTat !== undefined && (rule.legsTat !== null)) { if (slave.legsTat !== rule.legsTat) { slave.legsTat = rule.legsTat; cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName}'s legs have been tattooed.`; } } if (rule.stampTat !== undefined && (rule.stampTat !== null)) { if (slave.stampTat !== rule.stampTat) { slave.stampTat = rule.stampTat; cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName}'s lower back has been tattooed.`; } } if (rule.birthsTat !== undefined && (rule.birthsTat !== null)) { if (rule.birthsTat === "remove") { if (slave.birthsTat > 0) { cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName}'s birth tallies have been removed.`; } else if (slave.birthsTat > -1) { r += `<br>${slave.slaveName} will no longer be tattooed with each birth.`; } slave.birthsTat = -1; } else if (rule.birthsTat === "tally") { if (slave.birthsTat < 0) { r += `<br>${slave.slaveName} will be tattooed with each birth.`; slave.birthsTat = 0; } } } if (rule.abortionTat !== undefined && (rule.abortionTat !== null)) { if (rule.abortionTat === "remove") { if (slave.abortionTat > 0) { cashX(forceNeg(V.modCost), "slaveMod", slave); r += `<br>${slave.slaveName}'s abortion tallies have been removed.`; } else if (slave.abortionTat > -1) { r += `<br>${slave.slaveName} will no longer be tattooed with each abortion and miscarriage.`; } slave.abortionTat = -1; } else if (rule.abortionTat === "tally") { if (slave.abortionTat < 0) { r += `<br>${slave.slaveName} will be tattooed with each abortion and miscarriage.`; slave.abortionTat = 0; } } } if (rule.autoBrand === 1) { if (slave.health.condition > -20) { let brandPlace = ""; let left; let right; // Brand location needs to be split into a left and right if (["ankles", "calves", "feet", "hands", "lower arms", "shoulders", "upper arms", "wrists", "cheeks", "ears", "buttocks", "breasts"].includes(rule.brandTarget)) { if (rule.brandTarget === "ankles") { left = "left ankle"; right = "right ankle"; } else if (rule.brandTarget === "calves") { left = "left calf"; right = "right calf"; } else if (rule.brandTarget === "feet") { left = "left foot"; right = "right foot"; } else if (rule.brandTarget === "hands") { left = "left hand"; right = "right hand"; } else if (rule.brandTarget === "lower arms") { left = "left lower arm"; right = "right lower arm"; } else if (rule.brandTarget === "shoulders") { left = "left shoulder"; right = "right shoulder"; } else if (rule.brandTarget === "upper arms") { left = "left upper arm"; right = "right upper arm"; } else if (rule.brandTarget === "wrists") { left = "left wrist"; right = "right wrist"; } else if (rule.brandTarget === "cheeks") { left = "left cheek"; right = "right cheek"; } else if (rule.brandTarget === "ears") { left = "left ear"; right = "right ear"; } else if (rule.brandTarget === "buttocks") { left = "left buttock"; right = "right buttock"; } else if (rule.brandTarget === "breasts") { left = "left breast"; right = "right breast"; } if (rule.brandDesign !== slave.brand[left] && rule.brandDesign !== slave.brand[right]) { brandPlace = "both"; } else if (rule.brandDesign !== slave.brand[left]) { brandPlace = "left"; } else if (rule.brandDesign !== slave.brand[right]) { brandPlace = "right"; } // Check for amputations: if (["upper arms", "lower arms", "wrists", "hands"].includes(rule.brandTarget)) { // Arms if (!hasAnyArms(slave)) { brandPlace = ""; } else if (!hasLeftArm(slave)) { if (brandPlace === "both") { brandPlace = "right"; } if (brandPlace === "left") { brandPlace = ""; } } else if (!hasRightArm(slave)) { if (brandPlace === "both") { brandPlace = "left"; } if (brandPlace === "right") { brandPlace = ""; } } } else if (["thighs", "calves", "ankles", "feet"].includes(rule.brandTarget)) { // Legs if (!hasAnyLegs(slave)) { brandPlace = ""; } else if (!hasLeftLeg(slave)) { if (brandPlace === "both") { brandPlace = "right"; } if (brandPlace === "left") { brandPlace = ""; } } else if (!hasRightLeg(slave)) { if (brandPlace === "both") { brandPlace = "left"; } if (brandPlace === "right") { brandPlace = ""; } } } else if (["ears"].includes(rule.brandTarget)) { // Ears if (slave.earShape === "none") { brandPlace = ""; } } // Brand location does NOT need to be split into a left and right, (and may or may not contain left OR right already.) } else if (slave.brand[rule.brandTarget] !== rule.brandDesign) { if ( (!hasLeftArm(slave) && ["left upper arm", "left lower arm", "left wrist", "left hand"].includes(rule.brandTarget)) || (!hasRightArm(slave) && ["right upper arm", "right lower arm", "right wrist", "right hand"].includes(rule.brandTarget)) || (!hasLeftLeg(slave) && ["left thigh", "left calf", "left ankle", "left foot"].includes(rule.brandTarget)) || (!hasRightLeg(slave) && ["right thigh", "right calf", "right ankle", "right foot"].includes(rule.brandTarget)) || (slave.earShape === "none" && ["left ear"].includes(rule.brandTarget)) || (slave.earShape === "none" && ["right ear"].includes(rule.brandTarget)) ) { brandPlace = ""; } else { brandPlace = "anywhere"; } } // Apply brands: if (["left", "right", "anywhere"].includes(brandPlace)) { healthDamage(slave, 10); r += `<br>${slave.slaveName} has been branded on the `; if (brandPlace === "left") { slave.brand[left] = rule.brandDesign; r += `${left}`; } else if (brandPlace === "right") { slave.brand[right] = rule.brandDesign; r += `${right}`; } else if (brandPlace === "anywhere") { slave.brand[rule.brandTarget] = rule.brandDesign; r += `${rule.brandTarget}`; } r += `, with <span class="trust dec">fear</span>${slave.devotion < 18 ? `, <span class="devotion dec">regard,</span>` : ``} and <span class="red">health</span> consequences.`; if (slave.devotion < 18) { slave.devotion -= 5; } slave.trust -= 5; } else if (brandPlace === "both") { slave.brand[left] = rule.brandDesign; slave.brand[right] = rule.brandDesign; healthDamage(slave, 20); r += `<br>${slave.slaveName} has been branded on both ${rule.brandTarget}, with <span class="trust dec">fear</span>${slave.devotion < 18 ? `, <span class="devotion dec">regard,</span>` : ``} and <span class="red">health</span> consequences.`; if (slave.devotion < 18) { slave.devotion -= 10; } slave.trust -= 10; } } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessPornFeedEnabled(slave, rule) { if (rule.pornFeed === undefined || rule.pornFeed == null) { return; } if (rule.pornFeed === slave.porn.feed) { return; } slave.porn.feed = rule.pornFeed; let yesno = slave.porn.feed ? "are now" : "are no longer"; if (slave.porn.feed === 0) { slave.porn.spending = 0; } r += `<br>Highlights of ${slave.slaveName}'s sex life ${yesno} being released.`; } /** @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessPorn(slave, rule) { if ((rule.pornFameSpending !== undefined) && (rule.pornFameSpending !== null)) { if (slave.porn.prestige < 3) { if (slave.porn.spending !== rule.pornFameSpending) { slave.porn.spending = rule.pornFameSpending; r += `<br>${slave.slaveName}'s porn publicity has been corrected.`; } } } } /** * @param {App.Entity.SlaveState} slave * @param {FC.RA.RuleSetters} rule */ function ProcessLabel(slave, rule) { // mass removal of old tags, variant from '*' mask. if (rule.removeLabel !== null && rule.removeLabel !== '' && rule.removeLabel === '*') { slave.custom.label = slave.custom.label.replace(/(?:\[.+\])+/, ""); r += `<br>All of ${slave.slaveName}'s tags have been removed.`; } // mass removal of old tags, variant from GUI switch. if (rule.labelTagsClear === true) { slave.custom.label = slave.custom.label.replace(/(?:\[.+\])+/, ""); r += `<br>All of ${slave.slaveName}'s tags have been removed.`; } // removing tags selected for removal. let tags = [], i; if (rule.removeLabel != null && rule.removeLabel !== '') { tags = rule.removeLabel.split("|"); } for (i in tags) { if (tags[i] !== null && tags[i] !== '' && slave.custom.label.includes(`[${tags[i]}]`)) { slave.custom.label = slave.custom.label.replace(`[${tags[i]}]`, ""); r += `<br>${slave.slaveName}'s tag [${tags[i]}] is removed.`; } } // finally adding new tags. tags = []; if (rule.label != null && rule.label !== '') { tags = rule.label.split("|"); } for (i in tags) { if (tags[i] != null && tags[i] !== '' && !slave.custom.label.includes(`[${tags[i]}]`)) { slave.custom.label = `${slave.custom.label}[${tags[i]}]`; r += `<br>${slave.slaveName} has been tagged as ${tags[i]}`; } } } return DefaultRules; })(); globalThis.RuleHasError = function() { const rxCheckEqual = /[^!=<>]=[^=<>]/gi; const compileCheck = function(code) { try { // TODO: This should use a cached Function, which should be the same as below. new Function(`return ${code}`); } catch (e) { return false; } return true; }; /** * @param {FC.RA.Rule} rule * @returns {boolean} */ function check(rule) { return rule.condition.function === "custom" && (rule.condition.data.match(rxCheckEqual) || !compileCheck(rule.condition.data)); } return check; }(); globalThis.DefaultRulesError = () => V.defaultRules.some(r => RuleHasError(r)); /** * @param {App.Entity.SlaveState} slave */ globalThis.removeFromRulesToApplyOnce = function(slave) { for (const rule of Object.keys(V.rulesToApplyOnce)) { if (V.rulesToApplyOnce[rule].includes(slave.ID)) { V.rulesToApplyOnce[rule].delete(slave.ID); } } };
MonsterMate/fc
src/js/DefaultRules.js
JavaScript
mit
111,361
/** * @param {App.Entity.SlaveState} slave */ globalThis.SetBellySize = function(slave) { WombNormalizePreg(slave); /* now with support for legacy code that advances pregnancy by setting .preg++ */ const _implantSize = (slave.bellyImplant > 0) ? slave.bellyImplant : 0; if (slave.inflation === 3) { slave.bellyFluid = 10000; } else if (slave.inflation === 2) { slave.bellyFluid = 5000; } else if (slave.inflation === 1) { slave.bellyFluid = 2000; } else { slave.bellyFluid = 0; } slave.belly = slave.bellyPreg + slave.bellyFluid + _implantSize; };
MonsterMate/fc
src/js/SetBellySize.js
JavaScript
mit
569
/** * Encapsulates the full description of a slave state. Serializable by the SugarCube state * management. */ /** * Encapsulates sexual release rules to be followed by a slave. Used inside of the * App.Entity.RuleState class. * @see App.Entity.RuleState */ App.Entity.ReleaseRulesState = class ReleaseRulesState { constructor() { /** Can the slave masturbate? * @type {FC.Bool} */ this.masturbation = 0; /** Can the slave fuck her romantic partner (relationship = FWB or higher)? * @type {FC.Bool} */ this.partner = 1; /** Can the slave's development facility leader (Nurse, Attendant, etc) fuck her if she needs it? * @type {FC.Bool} */ this.facilityLeader = 1; /** Can the slave fuck her close family members (siblings/parents/children)? * @type {FC.Bool} */ this.family = 0; /** Can the slave fuck the general slave population? * @type {FC.Bool} */ this.slaves = 0; /** Will the master allow her to solicit sex from him? * @type {FC.Bool} */ this.master = 1; } }; /** * Encapsulates rules to be followed by a slave. Used inside of the * App.Entity.SlaveState class. * @see App.Entity.SlaveState */ App.Entity.RuleState = class RuleState { constructor() { /** * * "spare" * * "normal" * * "luxurious" * @type {FC.Rules.Living} */ this.living = "spare"; /** * * "none" * * "cruel" * * "restrictive" * * "permissive" * * "mandatory" * @type {FC.Rules.Rest} */ this.rest = "restrictive"; /** * Is the slave allowed to use mobility aids * * "restrictive" * * "permissive" * @type {FC.Rules.Mobility} */ this.mobility = "restrictive"; /** * * "restrictive" * * "permissive" * * "accent elimination" * * "language lessons" * @type {FC.Rules.Speech} */ this.speech = "restrictive"; /** release rules */ this.release = new App.Entity.ReleaseRulesState(); /** * * "restrictive" * * "just friends" * * "permissive" * @type {FC.Rules.Relationship} */ this.relationship = "restrictive"; /** * * "none" * * "induce" * * "maintain" * @type {FC.Rules.Lactation} */ this.lactation = "none"; /** * * "confinement" * * "whipping" * * "chastity" * * "situational" * @type {FC.Rules.Punishment} */ this.punishment = "situational"; /** * * "relaxation" * * "drugs" * * "orgasm" * * "situational" * @type {FC.Rules.Reward} */ this.reward = "situational"; } }; /** * Encapsulates porn performance of a slave. Used inside of the * App.Entity.SlaveState class. * @see App.Entity.SlaveState */ App.Entity.SlavePornPerformanceState = class { constructor() { /** is the studio outputting porn of her? * 0: no; 1: yes * @type {FC.Bool} */ this.feed = 0; /** how famous her porn is? */ this.viewerCount = 0; /** how much money is being spent on promoting her porn */ this.spending = 0; /** * how famous she is in porn * * 0: not * * 1: some * * 2: recognized * * 3: world renowned */ this.prestige = 0; /** description to go with @see pornPrestige * @type {FC.Zeroable<string>} */ this.prestigeDesc = 0; /** what porn she is known for */ this.fameType = "none"; /** what aspect of her the upgraded studio is focusing on for porn */ this.focus = "none"; /** fame values for each porn genre */ this.fame = { }; for (const genre of App.Porn.getAllGenres()) { this.fame[genre.fameVar] = 0; } } }; /** * Encapsulates skills of a slave. Used inside of the * App.Entity.SlaveState class. * @see App.Entity.SlaveState */ App.Entity.SlaveSkillsState = class { constructor() { /** * skill in vaginal sex * * 0-10: unskilled * * 11-30: basic * * 31-60: skilled * * 61-99: expert * * 100+: master */ this.vaginal = 0; /** * skill in oral sex * * 0-10: unskilled * * 11-30: basic * * 31-60: skilled * * 61-99: expert * * 100+: master */ this.oral = 0; /** * skill in anal sex * * 0-10: unskilled * * 11-30: basic * * 31-60: skilled * * 61-99: expert * * 100+: master */ this.anal = 0; /** * whoring skill * * 0-10: unskilled * * 11-30: basic * * 31-60: skilled * * 61-99: expert * * 100+: master */ this.whoring = 0; /** * entertaining skill * * 0-10: unskilled * * 11-30: basic * * 31-60: skilled * * 61-99: expert * * 100+: master */ this.entertainment = 0; /** * combating skill * * 0-10: unskilled * * 11-30: basic * * 31-60: skilled * * 61-99: expert * * 100+: master */ this.combat = 0; /** Her skill as a Head Girl * * default cap is 200 */ this.headGirl = 0; /** Her skill as a recruiter * * default cap is 200 */ this.recruiter = 0; /** Her skill as a bodyguard * * default cap is 200 */ this.bodyguard = 0; /** Her skill as a brothel madam * * default cap is 200 */ this.madam = 0; /** Her skill as a DJ * * default cap is 200 */ this.DJ = 0; /** Her skill as a nurse * * default cap is 200 */ this.nurse = 0; /** Her skill as a teacher * * default cap is 200 */ this.teacher = 0; /** Her skill as an attendant * * default cap is 200 */ this.attendant = 0; /** Her skill as a matron * * default cap is 200 */ this.matron = 0; /** Her skill as a stewardess * * default cap is 200 */ this.stewardess = 0; /** Her skill as a milkmaid * * default cap is 200 */ this.milkmaid = 0; /** Her skill as a farmer * * default cap is 200 */ this.farmer = 0; /** Her skill as a wardeness * * default cap is 200 */ this.wardeness = 0; /** Her skill as a servant. * * default cap is 200 */ this.servant = 0; /** Her skill as an entertainer * * default cap is 200 */ this.entertainer = 0; /** Her skill as a whore * * default cap is 200 */ this.whore = 0; } }; App.Entity.SlaveActionsCountersState = class { constructor() { /** amount of milk given */ this.milk = 0; /** amount of cum given */ this.cum = 0; /** number of births as your slave */ this.births = 0; /** How many known times the slave has given birth. */ this.birthsTotal = 0; /** number of abortions as your slave */ this.abortions = 0; /** number of miscarriages as your slave */ this.miscarriages = 0; /** number of labors slave has undergone */ this.laborCount = 0; /** oral sex count */ this.oral = 0; /** vaginal sex count */ this.vaginal = 0; /** anal sex count */ this.anal = 0; /** breast sex count */ this.mammary = 0; /** penetrative sex count */ this.penetrative = 0; /** */ this.publicUse = 0; /** number of slaves killed in pit fights*/ this.pitKills = 0; /** number of pit fights won */ this.pitWins = 0; /** number of pit fights lost */ this.pitLosses = 0; /** How many slaves she has sired under your ownership. */ this.slavesFathered = 0; /** How many children she has fucked into you that you later birthed. */ this.PCChildrenFathered = 0; /** How many of your slaves she has knocked up. */ this.slavesKnockedUp = 0; /** How many times she has knocked you up. */ this.PCKnockedUp = 0; } }; /** * Encapsulates various custom properties, set by users */ App.Entity.SlaveCustomAddonsState = class SlaveCustomAddonsState { constructor() { /** adds a custom tattoo */ this.tattoo = ""; /** a label appended after the slave's name */ this.label = ""; /** adds a custom description */ this.desc = ""; /** What the slave refers to you as. */ this.title = ""; /** What the slave refers to you as, with a lisp.*/ this.titleLisp = ""; /** * @typedef {object} CustomImage * @property {string} filename file name * @property {string} format one of "png", "jpg", "gif" or "webm" */ /** * holds the custom slave image file name (used if images are enabled) * * null: no custom image * @type {CustomImage} */ this.image = null; /** * holds the custom hair vector base file name * * used if vector images are enabled * @type {FC.Zeroable<string>} */ this.hairVector = 0; } }; App.Entity.scarState = class { constructor() { /** * generic scar * * 0: no scar * * 1+: increasing intensity of scar */ this.generic = 0; /** * whip scar * * 0: no scar * * 1+: increasing intensity of scar */ this.whip = 0; /** * burn scar * * 0: no scar * * 1+: increasing intensity of scar */ this.burn = 0; /** * surgical scar * * 0: no scar * * 1+: increasing intensity of scar */ this.surgical = 0; /** * cutting scar * * 0: no scar * * 1+: increasing intensity of scar */ this.cutting = 0; /** * chain/manacles scar, focused on wrists ankles or neck * * 0: no scar * * 1+: increasing intensity of scar * 1+: increasing intensity of scar */ this.chain = 0; /** * exotic scar for the face * * 0: no scar * * 1: scar */ this.exotic = 0; /** * menacing scar for the face * * 0: no scar * * 1: scar */ this.menacing = 0; /** * custom scars can vary in number and will have to be defined when created. */ } }; /** * To ensure that all new limbs contain expected attributes */ App.Entity.LimbState = class LimbState { constructor() { /** * type of limb * * 1: normal * * 2: simple prosthetic * * 3: advanced - Sex * * 4: advanced - Beauty * * 5: advanced - Combat * * 6: cybernetic */ this.type = 1; } }; /** * To ensure that all new eyes contain expected attributes */ App.Entity.SingleEyeState = class SingleEyeState { constructor() { /** * type of eye * * 1: normal * * 2: glass * * 3: cybernetic */ this.type = 1; /** * vision of eye * * 0: blind * * 1: impaired * * 2: normal */ this.vision = 2; /** * current eye color */ this.iris = "brown"; /** * pupil shape */ this.pupil = "circular"; /** * sclera color */ this.sclera = "white"; } }; App.Entity.EyeState = class EyeState { constructor() { this.left = new App.Entity.SingleEyeState(); this.right = new App.Entity.SingleEyeState(); this.origColor = "brown"; } }; App.Entity.SlaveState = class SlaveState { constructor() { /** Slave's current name */ this.slaveName = "blank"; /** Slave's current surname * @type {FC.Zeroable<string>} */ this.slaveSurname = 0; /** slave's original name */ this.birthName = "blank"; /** slave's original surname * @type {FC.Zeroable<string>} */ this.birthSurname = 0; /** slave sex ("XX", "XY") * @type {FC.GenderGenes} */ this.genes = "XX"; /** @type {number} */ this.pronoun = App.Data.Pronouns.Kind.female; /** game week slave was acquired. * * _0: Obtained prior to game start / at game start_ */ this.weekAcquired = 0; /** slave's origin * @type {FC.Zeroable<string>} */ this.origin = 0; /** career prior to enslavement * @type {FC.Zeroable<string>} */ this.career = 0; /** slave's ID */ this.ID = 0; /** slave's prestige */ this.prestige = 0; /** porn fame */ this.porn = new App.Entity.SlavePornPerformanceState(); /** rules */ this.rules = new App.Entity.RuleState(); /** reason for prestige * @type {FC.Zeroable<string>} */ this.prestigeDesc = 0; /** * slave's relationship * * -3: married to you * * -2: emotionally bound to you * * -1: emotional slut * * 0: none * * 1: friends with relationshipTarget * * 2: best friends with relationshipTarget * * 3: friends with benefits with relationshipTarget * * 4: lover with relationshipTarget * * 5: relationshipTarget 's slave wife * @type {FC.RelationShipKind} */ this.relationship = 0; /** target of relationship (ID) */ this.relationshipTarget = 0; /** * slave's rivalry * * 0: none * * 1: dislikes rivalryTarget * * 2: rival of rivalryTarget * * 3: bitterly hates rivalryTarget * @type {FC.RivalryType} */ this.rivalry = 0; /** target of rival (ID) */ this.rivalryTarget = 0; /** slave will serve subTarget (ID) */ this.subTarget = 0; /** ID of father */ this.father = 0; /** ID of mother */ this.mother = 0; /** number of slave's children that are your in your stock */ this.daughters = 0; /** number of slave's siblings that are your in your stock */ this.sisters = 0; /** Can the slave recruit relatives. Non-random slaves should be left off. */ this.canRecruit = 0; /** * can slave choose own assignment * @type {FC.Bool} * 0: no; 1: yes */ this.choosesOwnAssignment = 0; /** slave's assignment * @type {FC.Assignment} */ this.assignment = Job.REST; /** how many weeks a slave is sentenced to work a job */ this.sentence = 0; /** how far along slave is with being trained (skills, flaws, quirks) */ this.training = 0; /** which hole to focus on when serving you * @type {FC.ToyHole} */ this.toyHole = "all her holes"; /** * How long her servitude will be. * * -1: not; 0+: number of weeks remaining */ this.indenture = -1; /** 2: complete protection; 1: some protection; 0: no protection * @type {FC.IndentureType} */ this.indentureRestrictions = 0; /** week she was born (int between 0-51) */ this.birthWeek = jsRandom(0, 51); /** How old she really is. */ this.actualAge = 18; /** How old her body looks. */ this.visualAge = 18; /** How old her body is. */ this.physicalAge = 18; /** How old her ovaries are. (used to trick menopause) */ this.ovaryAge = 18; /** has had facial surgery to reduce age. 0: no, 1: yes * @type {FC.Bool} */ this.ageImplant = 0; this.health = { /** * slave 's health * * -90 - : On the edge of death * * -90 - -51: Extremely unhealthy * * -50 - -21: Unhealthy * * -20 - 20: Healthy * * 21 - 50: Very healthy * * 50 - 90: Extremely healthy * * 90 - : Unnaturally healthy */ condition: 0, /** slave 's short term health damage */ shortDamage: 0, /** slave 's long term health damage */ longDamage: 0, /** * slave 's current illness status * * 0 : Not ill * * 1 : A little under the weather * * 2 : Minor illness * * 3 : Ill * * 4 : serious illness * * 5 : dangerous illness */ illness: 0, /** * slave 's current level of exhaustion * * 0 - 30 : Perfectly fine * * 31 - 60 : tired * * 61 - 90 : fatigued * * 91 - 100 : exhausted */ tired: 0, /** slave 's combined health (condition - short - long) */ health: 0 }; /** * slave has a minor injury ("black eye", "bruise", "split lip") * @type {number | string} */ this.minorInjury = 0; /** * slave 's trust. * * -96-: abjectly terrified * * -95 - -51: terrified * * -50 - -21: frightened * * -20 - 20: fearful * * 21 - 50: careful * * 51 - 95: trusting * * 96+: profoundly trusting */ this.trust = 0; /** used to calculate trust loss/gain */ this.oldTrust = 0; /** * slave 's devotion * * -96 - : hate-filled * * -95 - -51: hateful * * -50 - -21: reluctant * * -20 - 20: careful * * 21 - 50: accepting * * 51 - 95: devoted * * 96+: worshipful */ this.devotion = 0; /** used to calculate devotion loss/gain */ this.oldDevotion = 0; /** * slave 's weight * * 191+: dangerously obese * * 190 - 161: super obese * * 160 - 131: obese * * 130 - 96: fat * * 95 - 31: overweight * * 30 - 11: curvy * * 10 - -10: neither too fat nor too skinny * * -11 - -30: thin * * -31 - -95: very thin * * -96 - : emaciated */ this.weight = 0; /** * slave 's muscles * * 96+ : extremely muscular * * 31 - 95: muscular * * 6 - 30: toned * * -5 - 5: none * * -30 - -6: weak * * -95 - -31: very weak * * -96- : frail */ this.muscles = 0; /** * slave's height in cm * * < 150: petite * * 150 - 159: short * * 160 - 169: average * * 170 - 185: tall * * 186+ : very tall */ this.height = 170; /** slave has height implant * -1: -10 cm, 0: none, 1: +10 cm * @type {FC.HeightImplant} */ this.heightImplant = 0; /** slave's nationality * @type {string} */ this.nationality = "slave"; /** slave's race * @type {FC.Race} */ this.race = "white"; /** slave's original race * @type {FC.Race} */ this.origRace = "white"; /** * slave markings * * "beauty mark" * * "birthmark" * * "freckles" * * "heavily freckled" * @type {FC.Markings} */ this.markings = "none"; /** * Eyes of the slave. * @type {App.Entity.EyeState} */ this.eye = new App.Entity.EyeState(); /** "none", "glasses", "blurring glasses", "corrective glasses", "blurring contacts", "corrective contacts" * @type {FC.EyeWear} */ this.eyewear = "none"; /** slave hearing * @type {FC.Hearing} * -2: deaf; -1: hard of hearing; 0: normal */ this.hears = 0; /** "none", "hearing aids", "muffling ear plugs", "deafening ear plugs" * @type {FC.EarWear} */ this.earwear = "none"; /** is there an inner ear implant device * 0: no; 1: yes * @type {FC.Bool} */ this.earImplant = 0; /** the shape of their outer ears * "none", "damaged", "normal", "pointy", "elven", "ushi" * @type {FC.EarShape} */ this.earShape = "normal"; /** type of kemonomimi ears if any * "neko", "inu", "kit", "tanuki", "usagi" * @type {FC.EarTypeKemonomimi}*/ this.earT = "none"; /** kemonomimi ear color * "hairless" */ this.earTColor = "hairless"; /** sense of smell 0 - yes, -1 - no */ this.smells = 0; /** sense of taste 0 - yes, -1 - no */ this.tastes = 0; /** horn type if any * "none", "curved succubus horns", "backswept horns", "cow horns", "one long oni horn", "two long oni horns", "small horns" * @type {FC.HornType} */ this.horn = "none"; /** horn color */ this.hornColor = "none"; /** type of tail installed * "none", "mod", "combat", "sex" * @type {FC.TailType}*/ this.tail = "none"; /** * Does she have a tail interface installed * * 0: no * * 1: yes * @type {FC.Bool} */ this.PTail = 0; /** the current shape of their modular tail * "none", "neko", "inu", "kit", "kitsune", "tanuki", "ushi", "usagi", "risu", "uma" * @type {FC.TailShape} */ this.tailShape = "none"; /** tail color */ this.tailColor = "none"; /** slave's original hair color, defaults to their initial hair color. */ this.origHColor = "brown"; /** hair color */ this.hColor = "brown"; /** pubic hair color */ this.pubicHColor = "brown"; /** armpit hair style */ this.underArmHColor = "brown"; /** eyebrowHColor*/ this.eyebrowHColor = "brown"; /** Slave's original skin color. */ this.origSkin = "light"; /** skin color */ this.skin = "light"; /** * hair length * * 150: calf-length * * 149-100: ass-length * * 99-30: long * * 29-10: shoulder-length * * 9-0: short */ this.hLength = 60; /** * eyebrow thickness * * "pencil-thin" * * "thin" * * "threaded" * * "natural" * * "tapered" * * "thick" * * "bushy" * @type {FC.EyebrowThickness} */ this.eyebrowFullness = "natural"; /** hair style */ this.hStyle = "short"; /** pubic hair style */ this.pubicHStyle = "neat"; /** armpit hair style */ this.underArmHStyle = "neat"; /** eyebrowHStyle */ this.eyebrowHStyle = "natural"; /** * slave waist * * 96+: masculine * * 95 - 41: ugly * * 40 - 11: unattractive * * 10 - -10: average * * -11 - -40: feminine * * -40 - -95: hourglass * * -96-: absurd */ this.waist = 0; /** series of rings up the back that can be tied together. 0: no, 1: yes * @type {FC.Bool} */ this.corsetPiercing = 0; /** * What level of prosthetic interface she has installed * * 0: no interface * * 1: basic interface * * 2: advanced interface */ this.PLimb = 0; /* * legs of the slave */ this.leg = { left: new App.Entity.LimbState(), right: new App.Entity.LimbState() }; /** * arms of the slave */ this.arm = { left: new App.Entity.LimbState(), right: new App.Entity.LimbState() }; /** are heels clipped * @type {FC.Bool} * 0: no, 1: yes */ this.heels = 0; /** slave voice * * 0: mute, 1: deep, 2: feminine, 3: high, girly */ this.voice = 2; /** has voice implant * * 0: no; 1: yes, high; -1: yes, low */ this.voiceImplant = 0; /** has cybernetic voicebox * @type {FC.Bool} * 0: no; 1: yes */ this.electrolarynx = 0; /** * slave accent * * 0: none * * 1: attractive * * 2: heavy * * 3: does not speak language */ this.accent = 0; /** * shoulder width * * -2: very narrow * * -1: narrow * * 0: feminine * * 1: broad * * 2: very broad */ this.shoulders = 0; /** * has shoulder implant * * * -1: shoulders -1 * * 0: none * * 1: shoulders +1 */ this.shouldersImplant = 0; /** * slave boob size (in cc) * * 0-299 - flat; * * 300-399 - A-cup; * * 400-499 - B-cup * * 500-649 - C-cup * * 650-799 - D-cup * * 800-999 - DD-cup * * 1000-1199 - F-cup * * 1200-1399 - G-cup * * 1400-1599 - H-cup * * 1600-1799 - I-cup * * 1800-2049 - J-cup * * 2050-2299 - K-cup * * 2300-2599 - L-cup * * 2600-2899 - M-cup * * 2900-3249 - N-cup * * 3250-3599 - O-cup * * 3600-3949 - P-cup * * 3950-4299 - Q-cup * * 4300-4699 - R-cup * * 4700-5099 - S-cup * * 5100-5499 - T-cup * * 5500-6499 - U-cup * * 6500-6999 - V-cup * * 7000-7499 - X-cup * * 7500-7999 - Y-cup * * 8000-8499 - Z-cup * * 8500-14999 - obscenely massive * * 15000-24999 - arm filling * * 25000-39999 - figure dominating * * 40000-54999 - beanbag sized * * 55000-69999 - door jamming * * 70000-89999 - hall clearing * * 90000-100000 - hall jamming */ this.boobs = 0; /** breast engorgement from unmilked tits */ this.boobsMilk = 0; /** * slave implant size * * 0: no implants; * * 1-199: small implants; * * 200-399: normal implants; * * 400-599: large implants; * * 600+: boobsImplant size fillable implants */ this.boobsImplant = 0; /** * Implant type * * "none" * * "normal" * * "string" * * "fillable" * * "advanced fillable" * * "hyper fillable" * @type {FC.SizingImplantType} */ this.boobsImplantType = "none"; /** * breast shape * * "normal" * * "perky" * * "saggy" * * "torpedo-shaped" * * "downward-facing" * * "wide-set" * @type {FC.BreastShape} */ this.boobShape = "normal"; /** * nipple shape * * "huge" * * "puffy" * * "inverted" * * "tiny" * * "cute" * * "partially inverted" * * "fuckable" * @type {FC.NippleShape} */ this.nipples = "cute"; /** * nipple are pierced * @type {FC.PiercingType} * @default 0 * 0: none; 1: yes; 2: heavily */ this.nipplesPiercing = 0; /** what accessory, if any, or on her nipples */ this.nipplesAccessory = "none"; /** slave areolae * * 0: normal; 1: large; 2: unusually wide; 3: huge, 4: massive */ this.areolae = 0; /** edge of areolae are pierced * @type {FC.PiercingType} * @default 0 * 0: none; 1: yes; 2: heavy */ this.areolaePiercing = 0; /** slave areolae shape ("heart"; "star"; "circle") */ this.areolaeShape = "circle"; /** * boobs tattoo * * "tribal patterns" * * "flowers" * * "scenes" * * "Asian art" * * "degradation" * * "counting" * * "advertisements" * * "rude words" * * "bovine patterns" * * "sacrament" * * "Sacrilege" * * "Possessive" * * "Paternalist" * @type {FC.Zeroable<string>} */ this.boobsTat = 0; /** slave lactation * * 0: none; 1: natural; 2: implant */ this.lactation = 0; /** how many more weeks until lactation dries up * * usually 2 as interactions and lact. implant reset it to 2 */ this.lactationDuration = 0; /** * odds of inducing lactation * * begins trying on breast play if over 10 */ this.induceLactation = 0; /** 0: 10: not used to producing milk(no bonuses); * 11: 50: used to producing milk; * 51: 100: heavily adapted to producing milk(big bonus) */ this.lactationAdaptation = 0; /** * hip size * * -2: very narrow * * -1: narrow * * 0: normal * * 1: wide hips * * 2: very wide hips * * 3: inhumanly wide hips */ this.hips = 0; /** slave has hip implant * * -1: hips -1; 0: none; 1: hips +1 */ this.hipsImplant = 0; /** * butt size * * 0 : flat * * 1 : small * * 2 : plump * * * 3 : big bubble butt * * 4 : huge * * 5 : enormous * * 6 : gigantic * * 7 : ridiculous * * 8 - 10: immense * * 11 - 20: inhuman * * _* Descriptions vary for just how big 2 is, as such, it may be better to just go with 3_ */ this.butt = 0; /** * butt implant type and size * * * 0: none * * 1: butt implant * * 2: big butt implant * * 3: fillable butt implants * * 5 - 8: advanced fillable implants * * 9+: hyper fillable implants */ this.buttImplant = 0; /** * Implant type * * "none" * * "normal" * * "string" * * "fillable" * * "advanced fillable" * * "hyper fillable" * @type {FC.SizingImplantType} */ this.buttImplantType = "none"; /** * butt tattoo * * takes one of the following strings or 0 * * "tribal patterns" * * "flowers" * * "scenes" * * "Asian art" * * "degradation" * * "counting" * * "advertisements" * * "rude words" * * "bovine patterns" * * "sacrament" * * "Sacrilege" * * "Possessive" * * "Paternalist" * @type {FC.Zeroable<string>} */ this.buttTat = 0; /** * face attractiveness * * * -96 - : very ugly * * -95 - -41: ugly * * -40 - -11: unattractive * * -10 - 10: attractive * * 11 - 40: very pretty * * 41 - 95: gorgeous * * 96+: mind blowing */ this.face = 0; /** * facial surgery degree * * * 0 - 14: none * * 15 - 34: Subtle Improvements * * 35 - 64: Noticeable Work * * 65 - 99: Heavily Reworked * * 100: Uncanny Valley */ this.faceImplant = 0; /** * accepts string (will be treated as "normal") * * "normal" * * "masculine" * * "androgynous" * * "cute" * * "sensual" * * "exotic" */ this.faceShape = "normal"; /** * lip size (0 - 100) * * 0 - 10: thin * * 11 - 20: normal * * 21 - 40: pretty * * 41 - 70: plush * * 71 - 95: huge(lisps) * * 96 - 100: facepussy(mute) */ this.lips = 15; /** * how large her lip implants are * @see lips */ this.lipsImplant = 0; /** * lips pierced * @type {FC.PiercingType} * 0: no; 1: yes; 2: heavy */ this.lipsPiercing = 0; /** * lip tattoo * * takes one of the following strings or 0 * * "tribal patterns" * * "flowers" * * "permanent makeup" * * "degradation" * * "counting" * * "advertisements" * * "rude words" * * "bovine patterns" * * "sacrament" * * "Sacrilege" * * "Possessive" * * "Paternalist" * @type {FC.Zeroable<string>} */ this.lipsTat = 0; /** * teeth type * * "normal" * * "crooked" * * "gapped" * * "straightening braces" * * "cosmetic braces" * * "removable" * * "pointy" * * "fangs" * * "fang" * * "baby" * * "mixed" * @type {FC.TeethType} */ this.teeth = "normal"; /** * has tongue piercing * @type {FC.PiercingType} * 0: no; 1: yes; 2: heavy */ this.tonguePiercing = 0; /** * vagina type * * -1: no vagina * * 0: virgin * * 1: tight * * 2: reasonably tight * * 3: loose * * 4: cavernous * * 10: ruined */ this.vagina = 0; /** how wet she is * * 0: dry; 1: wet; 2: soaking wet */ this.vaginaLube = 0; /** has vagina piercing * @type {FC.PiercingType} * 0: no; 1: yes; 2: heavy */ this.vaginaPiercing = 0; /** * vagina tattoo * * takes one of the following strings or 0 * * "tribal patterns" * * "flowers" * * "scenes" * * "Asian art" * * "degradation" * * "counting" * * "advertisements" * * "rude words" * * "bovine patterns" * * "sacrament" * * "Sacrilege" * * "Possessive" * * "Paternalist" * @type {FC.Zeroable<string>} */ this.vaginaTat = 0; /** * pregnancy time or state.See Pregnancy Control section for more. * * -3: sterilized * * -2: sterile * * -1: contraceptives * * 0: fertile * * 1 - 10: pregnant, not showing * * 11 - 20: showing * * 21 - 30: pregnant * * 30 - 35: very pregnant */ this.preg = -1; /** * accepts ID See Pregnancy Control section for more. * * Who sired her pregnancy * * -9: a futanari sister * * -8: an animal * * -7: designer baby * * -6: a member of the Societal Elite * * -5: one of your clients * * -4: another arcology owner * * -3: your former Master * * -2: citizen of your arcology * * -1: you * * 0: Unidentifiable */ this.pregSource = 0; /** * Number of children. * * **Warning!** Should be not changed after initial impregnation setup. * See Pregnancy Control section for more. */ this.pregType = 0; /** * Number of ready to be impregnated ova (override normal cases), * * For delayed impregnations with multiples.Used onetime on next call of the SetPregType * widget. After SetPregType use it to override .pregType, it set back to 0 automatically. */ this.pregAdaptation = 50; /** * Ovary implant type. * * * 0: no implants * * "fertility": higher chance of twins (or more) * * "sympathy": doubles eggs released * * "asexual": self-fertilizing * @type {FC.OvaryImplantType} */ this.ovaImplant = 0; /** * Womb focused enhancements. * * * "none" * * "restraint": Provides structural support for extremely oversized pregnancies */ this.wombImplant = "none"; /** * Menstrual cycle known variable. To be used for fert cycle discover and things like pregnancy without a first period * @type {FC.Bool} * * 0: no * * 1: yes */ this.fertKnown = 0; /** * Menstrual cycle control variable. * * * 0: Danger week * * 1+: safe week */ this.fertPeak = 0; /** * has the slave been turned into a broodmother * * * 0: no * * 1: standard 1 birth / week * * 2: black market 12 births / week * * 3: black market upgrade for implant firmware, to allow change weekly number * of ova in range of 1 to 12 in remote surgery block. (broodmotherFetuses change * through remote surgery). (future usage) */ this.broodmother = 0; /** * count of ova that broodmother implant force to release. * * Should be set with "broodmother" property together. If broodmother === 0 has no meaning. */ this.broodmotherFetuses = 0; /** * If broodmother implant set to pause it 's work. * * 1: implant on pause !1: working. * * If broodmother birth her last baby and her implant is on pause, she will be in contraception like state. */ this.broodmotherOnHold = 0; /** * Number of weeks left until last baby will be birthed. * * Mainly informative only. Updated automatically at birth process based on remaining fetuses. 0 - 37 */ this.broodmotherCountDown = 0; /** * variable used to set off the birth events * * 1: birth this week; 0: not time yet */ this.labor = 0; /** * may accept strings, use at own risk * * * "none" * * "a small empathy belly" * * "a medium empathy belly" * * "a large empathy belly" * * "a huge empathy belly" * * "a corset" * * "an extreme corset" * * "a support band" */ this.bellyAccessory = "none"; /** * labia type * * 0: minimal * * 1: big * * 2: huge * * 3: huge dangling */ this.labia = 0; /** * clit size * * 0: normal * * 1: large * * 2: huge * * 3: enormous * * 4: penis-like * * 5: like a massive penis */ this.clit = 0; /** * is clit pierced * * 0: no * * 1: yes * * 2: heavy * * 3: smart * @type {FC.ClitoralPiercingType} */ this.clitPiercing = 0; /** * smart piercing setting * * "off" * * "none" * * "all" * * "no default setting" * * "women" * * "men" * * "vanilla" * * "oral" * * "anal" * * "boobs" * * "submissive" * * "humiliation" * * "pregnancy" * * "dom" * * "masochist" * * "sadist" * @type {FC.SmartPiercingSetting} */ this.clitSetting = "vanilla"; /** 0: circumcised; 1+:uncut, also affects foreskin size */ this.foreskin = 0; /** * anus size * * 0: virgin * * 1: tight * * 2: loose * * 3: very loose * * 4: gaping */ this.anus = 0; /** * dick size * * 0: none * * 1: tiny * * 2: little * * 3: normal * * 4: big * * 5: huge * * 6: gigantic * * 7: massive/gigantic * * 8: truly imposing/titanic * * 9: monstrous/absurd * * 10: awe-inspiring/inhuman * * 11+: hypertrophied */ this.dick = 0; /** used to calculate size of area around anus. */ this.analArea = 1; /** * is dick pierced * * 0: no * * 1: yes * * 2: heavy * @type {FC.PiercingType} */ this.dickPiercing = 0; /** * dick tattoo * * takes one of the following strings or 0 * * "tribal patterns" * * "flowers" * * "scenes" * * "Asian art" * * "degradation" * * "counting" * * "advertisements" * * "rude words" * * "bovine patterns" * * "sacrament" * * "Sacrilege" * * "Possessive" * * "Paternalist" * @type {FC.Zeroable<string>} */ this.dickTat = 0; /** * does the slave have a prostate? * * 0: no * * 1: normal * * 2: hyperstimulated +20% * * 3: modified hyperstimulated +50% */ this.prostate = 0; /** * ball size * * 0: none * * 1: vestigial * * 2: small * * 3: average * * 4: large * * 5: massive * * 6: huge * * 7: giant * * 8: enormous * * 9: monstrous * * 10: inhuman * * 11+: hypertrophied */ this.balls = 0; /** * scrotum size * * function relative to .balls * * *If .balls > 0 and .scrotum === 0, balls are internal* */ this.scrotum = 0; /** has ovaries * @type {FC.Bool} * 0: no; 1: yes */ this.ovaries = 0; /** has anus piercing * @type {FC.PiercingType} * 0: no; 1: yes; 2: heavy */ this.anusPiercing = 0; /** * anus tattoo * * takes one of the following strings or 0 * * "bleached" * * "tribal patterns" * * "flowers" * * "degradation" * * "counting" * * "advertisements" * * "rude words" * * "bovine patterns" * * "sacrament" * * "Sacrilege" * * "Possessive" * * "Paternalist" * @type {FC.Zeroable<string>} */ this.anusTat = 0; /** * has makeup * * 0: none * * 1: minimal * * 2: expensive, luxurious * * 3: color-coordinated with hair * * 4: heavy * * 5: neon * * 6: color-coordinated neon * * 7: metallic * * 8: color-coordinated metallic */ this.makeup = 0; /** * nail type * * 0: neatly clipped * * 1: long and elegant * * 2: color-coordinated with hair * * 3: sharp and claw-like * * 4: bright and glittery * * 5: very long and garish * * 6: neon * * 7: color-coordinated neon * * 8: metallic * * 9: color-coordinated metallic */ this.nails = 0; /** * brand * * @type {Object.<string, string>} */ this.brand = {}; /** has pierced ears * @type {FC.PiercingType} * 0: no; 1: yes; 2: heavy */ this.earPiercing = 0; /** has pierced nose * @type {FC.PiercingType} * 0: no; 1: yes; 2: heavy */ this.nosePiercing = 0; /** has eyebrow piercing * @type {FC.PiercingType} * 0: no; 1: yes; 2: heavy */ this.eyebrowPiercing = 0; /** has navel piercing * @type {FC.PiercingType} * 0: no; 1: yes; 2: heavy */ this.navelPiercing = 0; /** * shoulder tattoo * * takes one of the following strings or 0 * * "tribal patterns" * * "flowers" * * "scenes" * * "Asian art" * * "degradation" * * "counting" * * "advertisements" * * "rude words" * * "bovine patterns" * * "sacrament" * * "Sacrilege" * * "Possessive" * * "Paternalist" * @type {FC.Zeroable<string>} */ this.shouldersTat = 0; /** * arm tattoo * * takes one of the following strings or 0 * * "tribal patterns" * * "flowers" * * "scenes" * * "Asian art" * * "degradation" * * "counting" * * "advertisements" * * "rude words" * * "bovine patterns" * * "sacrament" * * "Sacrilege" * * "Possessive" * * "Paternalist" * @type {FC.Zeroable<string>} */ this.armsTat = 0; /** * leg tattoo * * takes one of the following strings or 0 * * "tribal patterns" * * "flowers" * * "scenes" * * "Asian art" * * "degradation" * * "counting" * * "advertisements" * * "rude words" * * "bovine patterns" * * "sacrament" * * "Sacrilege" * * "Possessive" * * "Paternalist" * @type {FC.Zeroable<string>} */ this.legsTat = 0; /** * back tattoo * * takes one of the following strings or 0 * * "tribal patterns" * * "flowers" * * "scenes" * * "Asian art" * * "degradation" * * "counting" * * "advertisements" * * "rude words" * * "bovine patterns" * * "sacrament" * * "Sacrilege" * * "Possessive" * * "Paternalist" * @type {FC.Zeroable<string>} */ this.backTat = 0; /** * tramp stamp * * takes one of the following strings or 0 * * "tribal patterns" * * "flowers" * * "scenes" * * "Asian art" * * "degradation" * * "counting" * * "advertisements" * * "rude words" * * "bovine patterns" * * "sacrament" * * "Sacrilege" * * "Possessive" * * "Paternalist" * @type {FC.Zeroable<string>} */ this.stampTat = 0; /** follows rules or is exempt from them * * 0: exempt; 1: obeys */ this.useRulesAssistant = 1; /** * * "healthy" * * "restricted" * * "corrective" * * "muscle building" * * "fattening" * * "slimming" * * "XX" * * "XY" * * "XXY" * * "cum production" * * "cleansing" * * "fertility" * * "high caloric" (planned) * @type {FC.Diet} */ this.diet = "healthy"; /** how much of her diet is cum * * 0: none; 1: supplemented; 2: nearly entirely */ this.dietCum = 0; /** how much of her diet is milk * * 0: none; 1: supplemented; 2: nearly entirely */ this.dietMilk = 0; /** * * -2: heavy male hormones * * -1: male hormones * * 0: none * * 1: female hormones * * 2: heavy female hormones */ this.hormones = 0; /** * * "no drugs" * * "breast injections" * * "butt injections" * * "lip injections" * * "fertility drugs" * * "penis enhancement" * * "testicle enhancement" * * "psychosuppressants" * * "psychostimulants" * * "steroids" * * "hormone enhancers" * * "hormone blockers" * * "super fertility drugs" * * "hyper breast injections" * * "hyper butt injections" * * "hyper penis enhancement" * * "hyper testicle enhancement" * * "female hormone injections" * * "male hormone injections" * * "anti-aging cream" * * "appetite suppressors" * * "penis atrophiers" * * "testicle atrophiers" * * "clitoris atrophiers" * * "labia atrophiers" * * "nipple atrophiers" * * "lip atrophiers" * * "breast redistributors" * * "butt redistributors" * * "sag-B-gone" * * "growth stimulants" * * "stimulants" (planned) * @type {FC.Drug} */ this.drugs = "no drugs"; /** 0: none; 1: preventatives; 2: curatives */ this.curatives = 0; /** if greater than 10 triggers side effects from drug use. */ this.chem = 0; /** 0: none; 1: standard; 2: powerful */ this.aphrodisiacs = 0; /** * how addict to aphrodisiacs slave is * * 0: not * * 1-2: new addict * * 3-9: confirmed addict * * 10+: dependent */ this.addict = 0; /** Fuckdoll degree * * 0: not; 1+: Fuckdoll */ this.fuckdoll = 0; /** 0: no; 1: yes * @type {FC.Bool} */ this.choosesOwnClothes = 0; /** * may accept strings, use at own risk * * * "a ball gown" * * "a biyelgee costume" * * "a bra" * * "a bunny outfit" * * "a burkini" * * "a burqa" * * "a button-up shirt" * * "a button-up shirt and panties" * * "a chattel habit" * * "a cheerleader outfit" * * "a comfortable bodysuit" * * "a tight Imperial bodysuit" * * "a cybersuit" * * "a dirndl" * * "a fallen nuns habit" * * "a Fuckdoll suit" * * "a gothic lolita dress" * * "a halter top dress" * * "a hanbok" * * "a hijab and abaya" * * "a hijab and blouse" * * "a huipil" * * "a kimono" * * "a klan robe" * * "a latex catsuit" * * "a leotard" * * "a long qipao" * * "a maternity dress" * * "a military uniform" * * "a mini dress" * * "a monokini" * * "a mounty outfit" * * "a nice maid outfit" * * "a nice nurse outfit" * * "a nice pony outfit" * * "a niqab and abaya" * * "a one-piece swimsuit" * * "a penitent nuns habit" * * "a police uniform" * * "a red army uniform" * * "a Santa dress" * * "a scalemail bikini" * * "a schoolgirl outfit" * * "a schutzstaffel uniform" * * "a skimpy loincloth" * * "a slave gown" * * "a slutty klan robe" * * "a slutty maid outfit" * * "a slutty nurse outfit" * * "a slutty outfit" * * "a slutty pony outfit" * * "a slutty qipao" * * "a slutty schutzstaffel uniform" * * "a sports bra" * * "a string bikini" * * "a striped bra" * * "a succubus outfit" * * "a sweater" * * "a sweater and cutoffs" * * "a sweater and panties" * * "a t-shirt" * * "a t-shirt and jeans" * * "a t-shirt and panties" * * "a t-shirt and thong" * * "a tank-top" * * "a tank-top and panties" * * "a thong" * * "a toga" * * "a tube top" * * "a tube top and thong" * * "an apron" * * "an oversized t-shirt" * * "an oversized t-shirt and boyshorts" * * "attractive lingerie" * * "attractive lingerie for a pregnant woman" * * "battlearmor" * * "Imperial Plate" * * "battledress" * * "body oil" * * "boyshorts" * * "chains" * * "choosing her own clothes" * * "clubslut netting" * * "conservative clothing" * * "cutoffs" * * "cutoffs and a t-shirt" * * "harem gauze" * * "jeans" * * "kitty lingerie" * * "leather pants" * * "leather pants and a tube top" * * "leather pants and pasties" * * "lederhosen" * * "nice business attire" * * "no clothing" * * "overalls" * * "panties" * * "panties and pasties" * * "restrictive latex" * * "shibari ropes" * * "slutty business attire" * * "slutty jewelry" * * "spats and a tank top" * * "sport shorts" * * "sport shorts and a sports bra" * * "sport shorts and a t-shirt" * * "stretch pants and a crop-top" * * "striped panties" * * "striped underwear" * * "uncomfortable straps" * * "Western clothing" */ this.clothes = "no clothing"; /** * may accept strings, use at own risk * * "none" * * "ancient Egyptian" * * "cruel retirement counter" * * "uncomfortable leather" * * "tight steel" * * "shock punishment" * * "heavy gold" * * "pretty jewelry" * * "nice retirement counter" * * "bell collar" * * "leather with cowbell" * * "bowtie" * * "neck tie" * * "neck corset" * * "stylish leather" * * "satin choker" * * "preg biometrics" * * "silk ribbon" */ this.collar = "none"; /** * may accept strings, use at own risk * * "none" * * "porcelain mask" */ this.faceAccessory = "none"; /** * may accept strings, use at own risk * * "none" * * "dildo gag" * * "massive dildo gag" * * "ball gag" * * "bit gag" * * "ring gag" */ this.mouthAccessory = "none"; /** * may accept strings, use at own risk * * "none" * * "heels" * * "pumps" * * "extreme heels" * * "boots" * * "flats" */ this.shoes = "none"; /** * may accept strings, use at own risk * * "none" * * "bullet vibrator" * * "smart bullet vibrator" * * "dildo" * * "large dildo" * * "huge dildo" * * "long dildo" * * "long, large dildo" * * "long, huge dildo" */ this.vaginalAccessory = "none"; /** * may accept strings, use at own risk * * "none" * * "vibrator" * * "smart vibrator" */ this.vaginalAttachment = "none"; /** * may accept strings, use at own risk * * "none" * * "sock" * * "bullet vibrator" * * "smart bullet vibrator" */ this.dickAccessory = "none"; /** * whether the slave has a chastity device on their anus * 0 - no * 1 - yes * @type {FC.Bool} */ this.chastityAnus = 0; /** * whether the slave has a chastity device on their penis * 0 - no * 1 - yes * @type {FC.Bool} */ this.chastityPenis = 0; /** * whether the slave has a chastity device on their vagina * 0 - no * 1 - yes * @type {FC.Bool} */ this.chastityVagina = 0; /** * may accept strings, use at own risk * * "none" * * "hand gloves" * * "elbow gloves" */ this.armAccessory = "none"; /** * may accept strings, use at own risk * * "none" * * "short stockings" * * "long stockings" */ this.legAccessory = "none"; /** * may accept strings, use at own risk * * "none" * * "plug" * * "large plug" * * "huge plug" * * "long plug" * * "long, large plug" * * "long, huge plug" */ this.buttplug = "none"; /** * Does the slave have an attachment on their buttplug * * may accept strings, use at own risk * * "none" * * "tail" * * "fox tail" * * "cat tail" * * "cow tail" */ this.buttplugAttachment = "none"; /** * slave intelligence * * -100 - -96: borderline retarded * * -95 - -51: very slow * * -50 - -16: slow * * -15 - 15: average * * 16 - 50: smart * * 51 - 95: very smart * * 96 - 100: brilliant */ this.intelligence = 0; /** * Degree of slave 's education * * -15+: miseducated (slave appears to be dumber than they really are) * * 0: uneducated * * 1+: partial education (not really used) * * 15+: educated * * 30: well educated */ this.intelligenceImplant = 0; /** * sex drive * * 0 - 20: no sex drive * * 21 - 40: poor sex drive * * 41 - 60: average sex drive * * 61 - 80: good sex drive * * 81 - 95: powerful sex drive * * 96+: nymphomaniac */ this.energy = 50; /** * The amount of sex the slave had with customers for certain jobs during a week */ this.sexAmount = 0; /** * The 'quality' of the sex a slave had with customers. High quality means they fetch a higher price for their services */ this.sexQuality = 0; /** * how badly she needs sex. * 0: sated */ this.need = 0; /** * attraction to women * * 0 - 5: disgusted by women * * 6 - 15: turned off by women * * 15 - 35: not attracted to women * * 36 - 65: indifferent to women * * 66 - 85: attracted to women * * 86 - 95: aroused by women * * 96+: passionate about women * * *if both attrXX and attrXY > 95, slave will be omnisexual* * * *if energy > 95 and either attrXX or attrXY > 95, slave will be nymphomaniac* */ this.attrXX = 0; /** * attraction to men * * 0 - 5: disgusted by men * * 6 - 15: turned off by men * * 15 - 35: not attracted to men * * 36 - 65: indifferent to men * * 66 - 85: attracted to men * * 86 - 95: aroused by men * * 96+: passionate about men * * *if both attrXX and attrXY > 95, slave will be omnisexual* * * *if energy > 95 and either attrXX or attrXY > 95, slave will be nymphomaniac* */ this.attrXY = 0; /** 0: no; 1: yes */ this.attrKnown = 0; /** * * "none" * * "mindbroken" * * "submissive" * * "cumslut" * * "humiliation" * * "buttslut" * * "boobs" * * "sadist" * * "masochist" * * "dom" * * "pregnancy" * @type {FC.Fetish} */ this.fetish = "none"; /** how strong her fetish is (10-100) * * 10+: enjoys fetish; 60+: likes fetish; 95+: loves fetish */ this.fetishStrength = 70; /** is fetish known to player * @type {FC.Bool} * 0: no; 1: yes */ this.fetishKnown = 0; /** * * "none" * * "arrogant": clings to her dignity, thinks slavery is beneath her * * "bitchy": can't keep her opinions to herself * * "odd": says and does odd things * * "hates men": hates men * * "hates women": hates women * * "gluttonous": likes eating, gains weight * * "anorexic": dislikes eating and being forced to eat, loses weight * * "devout": resistance through religious faith * * "liberated": believes slavery is wrong * @type {FC.BehavioralFlaw} */ this.behavioralFlaw = "none"; /** * * "none" * * "confident": believes she has value as a slave * * "cutting": often has as witty or cunning remark ready, knows when to say it * * "funny": is funny * * "fitness": loves working out * * "adores women": likes spending time with women * * "adores men": likes spending time with men * * "insecure": defines herself on the thoughts of others * * "sinful": breaks cultural norms * * "advocate": advocates slavery * @type {FC.BehavioralQuirk} */ this.behavioralQuirk = "none"; /** * * "none" * * "hates oral": hates oral sex * * "hates anal": hates anal sex * * "hates penetration": dislikes penetrative sex * * "shamefast": nervous when naked * * "idealistic": believes sex should be based on love and consent * * "repressed": dislikes sex * * "apathetic": inert during sex * * "crude": sexually crude and has little sense of what partners find disgusting during sex * * "judgemental": sexually judgemental and often judges her sexual partners' performance * * "neglectful": disregards herself in sex * * "cum addict": addicted to cum * * "anal addict": addicted to anal * * "attention whore": addicted to being the center of attention * * "breast growth": addicted to her own breasts * * "abusive": sexually abusive * * "malicious": loves causing pain and suffering * * "self hating": hates herself * * "breeder": addicted to being pregnant * @type {FC.SexualFlaw} */ this.sexualFlaw = "none"; /** * * "none" * * "gagfuck queen": can take a facefucking * * "painal queen": knows how far she can go without getting hurt * * "strugglefuck queen": knows how much resistance her partners want * * "tease": is a tease * * "romantic": enjoys the closeness of sex * * "perverted": enjoys breaking sexual boundaries * * "caring": enjoys bring her partners to orgasm * * "unflinching": willing to do anything * * "size queen": prefers big cocks * @type {FC.SexualQuirk} */ this.sexualQuirk = "none"; /** 0: does not have; 1: carrier; 2: active * * heterochromia is an exception. String = active * @type {FC.GeneticQuirks} */ this.geneticQuirks = { /** Oversized breasts. Increased growth rate, reduced shrink rate. Breasts try to return to oversized state if reduced. */ macromastia: 0, /** Greatly oversized breasts. Increased growth rate, reduced shrink rate. Breasts try to return to oversized state if reduced. * * **macromastia + gigantomastia** - Breasts never stop growing. Increased growth rate, no shrink rate. */ gigantomastia: 0, /** is prone to having twins, shorter pregnancy recovery rate */ fertility: 0, /** is prone to having multiples, even shorter pregnancy recovery rate * * **fertility + hyperFertility** - will have multiples, even shorter pregnancy recovery rate */ hyperFertility: 0, /** pregnancy does not block ovulation, slave can become pregnant even while pregnant */ superfetation: 0, /** abnormal production of amniotic fluid * only affects fetuses */ polyhydramnios: 0, /** Pleasurable pregnancy and orgasmic birth. Wider hips, looser and wetter vagina. High pregadaptation and low birth damage. */ uterineHypersensitivity: 0, /** inapropriate lacation*/ galactorrhea: 0, /** is abnormally tall. gigantism + dwarfism - is very average*/ gigantism: 0, /** is abnormally short. gigantism + dwarfism - is very average*/ dwarfism: 0, /** retains childlike characteristics*/ neoteny: 0, /** rapid aging * * **neoteny + progeria** - progeria wins, not that she'll make it to the point that neoteny really kicks in */ progeria: 0, /** has a flawless face. pFace + uFace - Depends on carrier status, may swing between average and above/below depending on it */ pFace: 0, /** has a hideous face. pFace + uFace - Depends on carrier status, may swing between average and above/below depending on it */ uFace: 0, /** has pale skin, white hair and red eyes */ albinism: 0, /** may have mismatched eyes, the eye color stored here is always the left eye */ heterochromia: 0, /** ass never stops growing. Increased growth rate, reduced shrink rate. */ rearLipedema: 0, /** has (or will have) a huge dong */ wellHung: 0, /** constantly gains weight unless dieting, easier to gain weight. wGain + wLoss - weight gain/loss fluctuates randomly */ wGain: 0, /** constantly loses weight unless gaining, easier to lose weight. wGain + wLoss - weight gain/loss fluctuates randomly */ wLoss: 0, /** body attempts to normalize to an androgynous state */ androgyny: 0, /** constantly gains muscle mass, easier to gain muscle. mGain + mLoss - muscle gain/loss amplified, passively lose muscle unless building */ mGain: 0, /** constantly loses muscle mass, easier to gain muscle. mGain + mLoss - muscle gain/loss amplified, passively lose muscle unless building */ mLoss: 0, /** slave can only ever birth girls */ girlsOnly: 0 }; /** chance of generating sperm with a Y chromosome (yields male baby). inherited by sons, with mutation */ this.spermY = 50; /** Counts various acts slave participated in */ this.counter = new App.Entity.SlaveActionsCountersState(); /** Values provided by players */ this.custom = new App.Entity.SlaveCustomAddonsState(); /** Does this slave refer to you rudely? * @type {FC.Bool} * 0: not being rude; 1: insists on calling you a rude title */ this.rudeTitle = 0; /** @type {string[]} */ this.currentRules = []; /** * Slave has a tattoo that is only recognizable when she has a big belly. * * "a heart" * * "a star" * * "a butterfly" * @type {FC.Zeroable<string>} */ this.bellyTat = 0; /** * Slave has a series of tattoos to denote how many abortions she has had. * * -1: no tattoo * * 0: assigned to have tattoo, may not have one yet * * 1+: number of abortion tattoos she has */ this.abortionTat = -1; /** * Slave has a series of tattoos to denote how many times she has given birth. * * -1: no tattoo * * 0: assigned to have tattoo, may not have one yet * * 1+: number of birth tattoos she has */ this.birthsTat = -1; /** Slave will give birth this week. * @type {FC.Bool} * 1: true; 0: false */ this.induce = 0; /** Male slave has an anal womb and can get pregnant. * @type {FC.Bool} * 1: true; 0: false */ this.mpreg = 0; /** How much fluid is distending the slave. * * 1: 2L; 2: 4L; 3: 8L */ this.inflation = 0; /** * What kind of fluid is in the slave. * * "none" * * "water" * * "cum" * * "milk" * * "food" * * "aphrodisiac" * * "curative" * * "tightener" * * "urine" * @type {FC.InflationLiquid} */ this.inflationType = "none"; /** * How she is being filled. * * 0: not * * 1: oral * * 2: anal * * 3: orally by another slave */ this.inflationMethod = 0; /** If inflationMethod === 3, ID of the slave filling her with milk. */ this.milkSource = 0; /** If inflationMethod 3, ID of the slave filling her with cum. */ this.cumSource = 0; /** Slave's internals have ruptured. Used with poor health and overinflation. * @type {FC.Bool} * 1: true; 0: false */ this.burst = 0; /** Do you and the slave know she is pregnant. * @type {FC.Bool} * 0: no; 1: yes */ this.pregKnown = 0; /** How long she has been pregnant * * used in place of .preg when pregnancy speed up and slow down are used on a slave * * if negative, designates postpartum. */ this.pregWeek = 0; /** * how big their belly is in CCs * * ||thresholds:| * |-|-| * 100 | bloated * 1500 | early pregnancy * 5000 | obviously pregnant * 10000 | very pregnant * 15000 | full term * 30000 | full term twins * 45000 | full term triplets * 60000 | full term quads * 75000 | full term quints * 90000 | full term sextuplets * 105000 | full term septuplets * 120000 | full term octuplets * 150000 | oversized pregnancy * 300000 | hyperpreg state 1 * 450000 | hyperpreg state 2 * 600000 | hyperpreg state 3 * 750000 | hyperpreg state 4 */ this.belly = 0; /** * how big their belly is in CCs (pregnancy only) * * ||thresholds| * |-|-| * 100 | bloated * 1500 | early pregnancy * 5000 | obviously pregnant * 10000 | very pregnant * 15000 | full term * 30000 | full term twins * 45000 | full term triplets * 60000 | full term quads * 75000 | full term quints * 90000 | full term sextuplets * 105000 | full term septuplets * 120000 | full term octuplets * 150000 | oversized pregnancy (9+ babies) * 300000 | hyperpreg state 1 (20+ babies) * 450000 | hyperpreg state 2 (30+ babies) * 600000 | hyperpreg state 3 (40+ babies) * 750000 | hyperpreg state 4 (50+ babies) */ this.bellyPreg = 0; /** * how big their belly is in CCs (fluid distension only) * * ||thresholds| * |-|-| * 100 | bloated * 2000 | clearly bloated (2 L) * 5000 | very full (~1 gal) * 10000 | full to bursting (~2 gal) */ this.bellyFluid = 0; /** * Does the slave have a fillable abdominal implant. * * -1: no * * 0+: yes * * 2000+: Early pregnancy * * 4000+: looks pregnant * * 8000+: looks full term * * 16000+: hyperpregnant 1 * * 32000+: hyperpregnant 2 */ this.bellyImplant = -1; /** How saggy her belly is after being distended for too long. * * 1+ changes belly description */ this.bellySag = 0; /** How saggy her belly is from being too pregnant. * * 1+ changes belly description and overrides/coincides with bellySag */ this.bellySagPreg = 0; /** * Has the slave 's belly implant been filled this week. Causes health damage for overfilling. * * 0: no pain; 1: will experience pain; 2: cannot be filled this week */ this.bellyPain = 0; /** Does the slave have a cervical implant that slowly feeds cum from being fucked into a fillable implant. * * 0: no; 1: vaginal version only; 2: anal version only; 3: both vaginal and anal */ this.cervixImplant = 0; /** Target .physicalAge for female puberty to occur. */ this.pubertyAgeXX = 13; /** Has the slave gone through female puberty. * @type {FC.Bool} * 0: no; 1: yes */ this.pubertyXX = 0; /** Target .physicalAge for male puberty to occur. */ this.pubertyAgeXY = 13; /** Has the slave gone through male puberty. * @type {FC.Bool} * 0: no; 1: yes */ this.pubertyXY = 0; /** * scar * Sub-object: * the body part in question, such as back or left hand * the key of that part is the type of scar they can have and the value is how serious it is, from 0 up * @type {Object.<string, Object>} */ this.scar = {}; /** * In a eugenics society, this slave is a designated breeder. * @type {FC.Bool} * * 1: yes * * 0: no */ this.breedingMark = 0; /** Is the PC permitted to fuck this slave pregnant. * MB Cattle Ranch bulls will ignore this. * @type {FC.Bool} * * 0: no * * 1: yes */ this.PCExclude = 0; /** Is the Head Girl permitted to fuck this slave pregnant. * @type {FC.Bool} * * 0: no * * 1: yes */ this.HGExclude = 0; /** Is the Stud permitted to fuck this slave pregnant. * MB Cattle Ranch bulls will ignore this. * @type {FC.Bool} * * 0: no * * 1: yes */ this.StudExclude = 0; /** * What species of sperm she produces. * * "human" * * "sterile" * * "dog" * * "pig" * * "horse" * * "cow" * @type {FC.SpermType} */ this.ballType = "human"; /** * What species of ovum she produces. * * "human" * * "dog" * * "pig" * * "horse" * * "cow" * @type {FC.AnimalKind} */ this.eggType = "human"; /** Eugenics variable. Is the slave allowed to choose to wear chastity. * @type {FC.Bool} * 0: no; 1: yes */ this.choosesOwnChastity = 0; /** * Is she on gestation altering drugs? * * "none" * * "slow gestation" * * "speed up" * * "labor suppressors" * @type {FC.WithNone<FC.GestationDrug>} */ this.pregControl = "none"; /** * Array that holds a slaves fitted prosthetics. Objects are used to ensure easier expansion later (tattoos for limbs and similar). * * Elements of the array should be objects. * * .id: ID of the prosthetic, see setup.prostheticIDs * @type {Array.<{id:string}>} */ this.readyProsthetics = []; /** */ this.ageAdjust = 0; /** Slave has undergone hair removal surgery * @type {FC.Bool} * 0: no; 1: yes */ this.bald = 0; /** Slave is in original body. * * 0: yes; 1+: number of swaps (increases upkeep each time) */ this.bodySwap = 0; /** Who, if relevant, the body belonged to. */ this.origBodyOwner = ""; /** Who, if relevant, the body belonged to. */ this.origBodyOwnerID = 0; /** Cause of slave death. */ this.death = ""; /** * Slave's current hormonal balance, directs saHormones changes * * ||thresholds| * |-|-| * -500 - -400 | overwhelmingly masculine * -399 - -300 | extremely masculine * -299 - -200 | heavily masculine * -199 - -100 | very masculine * -99 - -21 | masculine * -20 - 20 | neutral * 21 - 99 | feminine * 100 - 199 | very feminine * 200 - 299 | heavily feminine * 300 - 399 | extremely feminine * 400 - 500 | overwhelmingly feminine */ this.hormoneBalance = 0; /** Whether a slave is permitted to eat Hedonistic Decadence's specialized slave food. * @type {FC.Bool} * 0: no; 1: yes */ this.onDiet = 0; /** Does the slave have the breast shape maintaining mesh implant. * @type {FC.Bool} * 0: no; 1: yes */ this.breastMesh = 0; /** Used to denote a slave giving birth prematurely. * @type {FC.Bool} * 0: no; 1: yes */ this.prematureBirth = 0; /** Was the slave born prematurely? * @type {FC.Bool} * 0: no; 1: yes */ this.premature = 0; /** Has the slave had a vasectomy? * @type {FC.Bool} * 0: no; 1: yes */ this.vasectomy = 0; /** Is the slave's hair under constant maintenance? * @type {FC.Bool} * 0: no; 1: yes */ this.haircuts = 0; /** Used to tell if the slave is from this game or a previous. * @type {FC.Bool} * 0: no; 1: yes */ this.newGamePlus = 0; /** Her skills */ this.skill = new App.Entity.SlaveSkillsState(); /** Whether she was put in the incubator at birth * * 0: no; 1: yes, comforting; 2: yes, terrifying */ this.tankBaby = 0; /** Is the slave a clone? * @type {FC.Bool} * 0: no; 1: yes */ this.clone = 0; /** ID she was cloned from */ this.cloneID = 0; /** */ this.geneMods = { /** Does slave have induced NCS? * @type {FC.Bool} * 0: no; 1: yes */ NCS: 0, /** Has the slave undergone the elasticity (plasticity) treatment? * @type {FC.Bool} * 0: no; 1: yes */ rapidCellGrowth: 0, /** Is the slave immortal? * @type {FC.Bool} * 0: no; 1: yes */ immortality: 0 }; /* eslint-disable camelcase*/ this.NCSyouthening = 0; this.override_Race = 0; this.override_Skin = 0; this.override_Eye_Color = 0; this.override_H_Color = 0; this.override_Pubic_H_Color = 0; this.override_Arm_H_Color = 0; this.override_Brow_H_Color = 0; /** erratic weight gain * * 0: stable; 1: gaining; -1: losing */ this.weightDirection = 0; /** Stores the exact colors of the albinism quirk * @type {{skin:string, eyeColor:string, hColor:string}} */ this.albinismOverride = null; /* eslint-enable */ /** Amount of cash paid to acquire the slave * * accepts negative numbers, 0, or 1. * 1: unknown price; 0: free; negative: amount paid */ this.slaveCost = 0; /** Amount of cash you have spent because of this slave * * accepts negative numbers or 0 */ this.lifetimeCashExpenses = 0; /** Total amount of cash you have earned because of this slave * * accepts positive numbers or 0 */ this.lifetimeCashIncome = 0; /** Amount of cash you have earned because of this slave last week. * * Accepts positive numbers or 0 */ this.lastWeeksCashIncome = 0; /** Not currently used, will work similarly to the cash variables above */ this.lifetimeRepExpenses = 0; /** Not currently used, will work similarly to the cash variables above */ this.lifetimeRepIncome = 0; /** Not currently used, will work similarly to the cash variables above */ this.lastWeeksRepIncome = 0; /** Not currently used, will work similarly to the cash variables above */ this.lastWeeksRepExpenses = 0; /** Player selected class for whore to target * * 1: Lower class * * 2: Middle class * * 3: Upper class * * 4: Top class */ this.whoreClass = 0; /** Maximum class for whore to target * * 1: Lower class * * 2: Middle class * * 3: Upper class * * 4: Top class */ this.effectiveWhoreClass = 0; /** Slave's inbreeding coefficient */ this.inbreedingCoeff = 0; // HACK to add property declarations for TypeScript if (false) { // eslint-disable-line /** @type {FC.PregnancyData | undefined} */ this.pregData = undefined; /** @type {App.Entity.Fetus[] | undefined} */ this.womb = undefined; /** @type {string | undefined} */ this.clothingBaseColor = undefined; /** @type {string | undefined} */ this.glassesColor = undefined; /** @type {string | undefined} */ this.shoeColor = undefined; /** @type {number | undefined} */ this.readyOva = undefined; /** @type {number | undefined} */ this.kindness = undefined; /** @type {FC.Bool | undefined} */ this.trueVirgin = 0; // FIXME temporary state variables this.maxWhoreClass = 0; } } /** Creates an object suitable for setting nested attributes as it would be a SlaveState * @returns {object} object containing all the attributes * that are complex objects in the SlaveState class */ static makeSkeleton() { return { arm: {left: {}, right: {}}, leg: {left: {}, right: {}}, eye: {left: {}, right: {}}, readyProsthetics: [], // yes, not an object, but needed for hero slaves health: {}, counter: {}, brand: {}, scar: {}, porn: { fame: {} }, rules: { release: {} }, skill: {}, custom: {}, }; } }; /** * @callback slaveOperation * @param {App.Entity.SlaveState} s * @returns {void} */ /** * @callback slaveTestCallback * @param {App.Entity.SlaveState} slave * @returns {boolean} */
MonsterMate/fc
src/js/SlaveState.js
JavaScript
mit
67,717
/** * @param {App.Entity.SlaveState} A * @param {App.Entity.SlaveState} B * @returns {boolean} */ globalThis.sameAssignmentP = function(A, B) { return A.assignment === B.assignment; }; /** * @param {App.Entity.SlaveState} slave * @returns {boolean} */ globalThis.canImproveIntelligence = function(slave) { let origIntel = V.genePool.find(function(s) { return s.ID === slave.ID; }).intelligence; return (slave.intelligence < origIntel + 15) && (slave.intelligence < 100); }; /** * @param {App.Entity.SlaveState} slave * @returns {number} */ globalThis.maxHeight = function(slave) { let max = Math.trunc(Math.clamp((Height.mean(slave) * 1.25), 0, 274)); /* max achievable height is expected height plus 25% */ if (slave.geneticQuirks.dwarfism === 2 && slave.geneticQuirks.gigantism !== 2) { max = Math.min(max, 160); } return max; }; /** * @param {App.Entity.SlaveState} slave * @returns {boolean} */ globalThis.canImproveHeight = function(slave) { return slave.height < maxHeight(slave); }; /** * @param {App.Entity.SlaveState} slave * @param {FC.HumanState} target * @returns {boolean} */ globalThis.haveRelationshipP = function(slave, target) { return slave.relationshipTarget === target.ID; }; /** * @param {App.Entity.SlaveState} slave * @param {App.Entity.SlaveState} target * @returns {boolean} */ globalThis.isRivalP = function(slave, target) { return slave.rivalryTarget === target.ID; }; /** * @param {FC.HumanState} slave * @returns {boolean} */ globalThis.supremeRaceP = function(slave) { return V.arcologies[0].FSSupremacistRace === slave.race; }; /** * @param {FC.HumanState} slave * @returns {boolean} */ globalThis.inferiorRaceP = function(slave) { return V.arcologies[0].FSSubjugationistRace === slave.race; }; /** * @param {App.Entity.SlaveState} slave * @returns {boolean} */ globalThis.isLeaderP = function(slave) { const leaders = [S.HeadGirl, S.Bodyguard, S.Recruiter, S.Concubine, S.Nurse, S.Attendant, S.Matron, S.Madam, S.DJ, S.Milkmaid, S.Farmer, S.Stewardess, S.Schoolteacher, S.Wardeness]; return leaders.some(leader => leader && leader.ID === slave.ID); }; /** * colors skin, eyes and hair based on genetic Color. * Takes .override_*_Color into account. * * @param {App.Entity.SlaveState} slave */ globalThis.applyGeneticColor = function(slave) { if (slave.override_Eye_Color !== 1) { resetEyeColor(slave, "both"); } if (slave.override_H_Color !== 1) { slave.hColor = getGeneticHairColor(slave); } if (slave.override_Arm_H_Color !== 1) { slave.underArmHColor = getGeneticHairColor(slave); } if (slave.override_Pubic_H_Color !== 1) { slave.pubicHColor = getGeneticHairColor(slave); } if (slave.override_Brow_H_Color !== 1) { slave.eyebrowHColor = getGeneticHairColor(slave); } if (slave.override_Skin !== 1) { if (!(slave.skin === "sun tanned" || slave.skin === "spray tanned")) { slave.skin = getGeneticSkinColor(slave); } } }; /** * @param {App.Entity.SlaveState} slave */ globalThis.newSlave = function(slave) { if (getSlave(slave.ID)) { throw "Slave already exists"; } if (slave.override_Race !== 1) { slave.origRace = slave.race; } applyGeneticColor(slave); /* eslint-disable camelcase */ slave.override_Race = 0; slave.override_H_Color = 0; slave.override_Arm_H_Color = 0; slave.override_Pubic_H_Color = 0; slave.override_Brow_H_Color = 0; slave.override_Skin = 0; slave.override_Eye_Color = 0; /* eslint-enable camelcase */ // too tall to be a dwarf catch for event slaves if (slave.geneticQuirks.dwarfism === 2 && slave.geneticQuirks.gigantism !== 2 && slave.height > 165) { slave.geneticQuirks.dwarfism = 1; } if (V.surnamesForbidden === 1) { slave.slaveSurname = 0; } if (slave.preg > 0) { slave.pregWeek = slave.preg; } else { slave.pregWeek = 0; } if (slave.clone !== 0) { slave.canRecruit = 0; } slave.sisters = 0; slave.daughters = 0; if (slave.mother === -1 || slave.father === -1) { V.PC.daughters += 1; } if (areSisters(V.PC, slave) > 0) { V.PC.sisters += 1; } for (let k = 0; k < V.slaves.length; k++) { if (V.slaves[k].mother === slave.ID || V.slaves[k].father === slave.ID) { slave.daughters++; } if (slave.mother === V.slaves[k].ID || slave.father === V.slaves[k].ID) { V.slaves[k].daughters++; } if (areSisters(V.slaves[k], slave) > 0) { slave.sisters++; V.slaves[k].sisters++; } } if (slave.genes === "XX") { if (slave.pubertyXX === 1) { if (slave.pubertyXY === 1) { slave.hormoneBalance = 20; } else { slave.hormoneBalance = 60; } } else { if (slave.pubertyXY === 1) { slave.hormoneBalance = -20; } else { slave.hormoneBalance = 20; } } } else if (slave.genes === "XY") { if (slave.pubertyXX === 1) { if (slave.pubertyXY === 1) { slave.hormoneBalance = 20; } else { slave.hormoneBalance = 40; } } else { if (slave.pubertyXY === 1) { slave.hormoneBalance = -40; } else { slave.hormoneBalance = 20; } } } if (slave.dick > 0 && slave.balls > 0 && slave.vagina < 0 && slave.anus === 0 && slave.genes === "XY" && slave.faceShape === "masculine" && slave.attrXY <= 35 && slave.boobs < 400 && slave.hormoneBalance < 0) { V.REFeminizationCheckinIDs.push(slave.ID); } if (slave.actualAge > 35 && slave.face <= 10 && slave.faceImplant === 0 && slave.energy <= 60) { V.REMILFCheckinIDs.push(slave.ID); } if (slave.attrXY <= 35 && slave.attrXX > 65) { V.REOrientationCheckinIDs.push(slave.ID); } if (slave.face < -10) { V.REUglyCheckinIDs.push(slave.ID); } if (slave.anus < 2) { V.REButtholeCheckinIDs.push(slave.ID); } if (slave.boobs < 800) { V.REReductionCheckinIDs.push(slave.ID); } generatePronouns(slave); SetBellySize(slave); V.slaveIndices[slave.ID] = V.slaves.push(slave) - 1; if (slave.origin !== "$He was your slave, but you freed $him, which $he repaid by participating in a coup attempt against you. It failed, and $he is again your chattel." && slave.ID !== V.boomerangSlave.ID) { V.genePool.push(clone(slave)); } else { if (!V.genePool.some(s => s.ID === slave.ID)) { V.genePool.push(slave); } } /* special case for dulling intelligence via drugs in slave acquisition */ if (slave.dullIntelligence) { slave.intelligence = -100; delete slave.dullIntelligence; } if (slave.assignment) { assignJob(slave, slave.assignment); } else { slave.assignment = Job.CHOICE; } /** do not run the Rules Assistant before adding the new slave to the slaves list! **/ if (V.ui !== "start" && V.universalRulesNewSlavesRA === 1 && V.rulesAssistantAuto !== 0) { DefaultRules(slave); } }; /** * @param {App.Entity.SlaveState[]} [slaves] * @returns {Object.<number, number>} */ globalThis.slaves2indices = function(slaves = V.slaves) { return slaves.reduce((acc, slave, i) => { acc[slave.ID] = i; return acc; }, {}); }; /** * @param {number} ID * @returns {App.Entity.SlaveState} */ globalThis.getSlave = function(ID) { const index = V.slaveIndices[ID]; return index === undefined ? undefined : V.slaves[index]; }; /** * @param {number} ID * @returns {App.Entity.SlaveState} */ globalThis.slaveStateById = function(ID) { const index = V.slaveIndices[ID]; return index === undefined ? null : V.slaves[index]; }; globalThis.getChild = function(ID) { return V.cribs.find(s => s.ID === ID); }; /** Get the written title for a given slave, without messing with global state. * @param {App.Entity.SlaveState} [slave] * @returns {string} */ globalThis.getWrittenTitle = function(slave) { if (slave && slave.custom.title !== undefined && slave.custom.title !== "" && slave.rudeTitle === 0) { return slave.custom.title; } if (V.PC.customTitle !== undefined) { return V.PC.customTitle; } else if (V.PC.title !== 0) { return "Master"; } else { return "Mistress"; } }; /** * @param {App.Entity.SlaveState} slave * @returns {number} */ globalThis.fetishChangeChance = function(slave) { let chance = 0, fetish = (slave.fetishStrength / 4), sex = 0; if (slave.clitSetting !== slave.fetish) { // fetish should be more uncertain leading towards puberty and then steadily become more set in stone afterwards if (slave.balls) { if (V.potencyAge >= slave.actualAge) { sex = (50 - ((V.potencyAge - slave.actualAge) * 10)); fetish = (slave.fetishStrength / 2); } else { sex = ((slave.actualAge - V.potencyAge) / 4); } } else if (slave.ovaries || slave.mpreg) { if (V.fertilityAge >= slave.actualAge) { sex = (50 - ((V.fertilityAge - slave.actualAge) * 10)); fetish = (slave.fetishStrength / 2); } else { sex = ((slave.actualAge - V.fertilityAge) / 4); } } chance = Math.trunc(Math.clamp((slave.devotion / 4) - (fetish) - (sex), 0, 100)); } return chance; }; /** * @param {App.Entity.SlaveState} slave * @returns {string} */ globalThis.SlaveFullName = function(slave) { const pair = slave.slaveSurname ? [slave.slaveName, slave.slaveSurname] : [slave.slaveName]; if ((V.surnameOrder !== 1 && ["Cambodian", "Chinese", "Hungarian", "Japanese", "Korean", "Mongolian", "Taiwanese", "Vietnamese"].includes(slave.nationality)) || (V.surnameOrder === 2)) { pair.reverse(); } return pair.join(" "); }; /** * @param {App.Entity.SlaveState} slave * @returns {string} */ globalThis.SlaveFullBirthName = function(slave) { const pair = slave.birthSurname ? [slave.birthName, slave.birthSurname] : [slave.birthName]; if ((V.surnameOrder !== 1 && ["Cambodian", "Chinese", "Hungarian", "Japanese", "Korean", "Mongolian", "Taiwanese", "Vietnamese"].includes(slave.nationality)) || (V.surnameOrder === 2)) { pair.reverse(); } return pair.join(" "); }; /** * @param {App.Entity.SlaveState} slave * @returns {string} */ globalThis.PoliteRudeTitle = function(slave) { const PC = V.PC; const {s, ss, title} = getEnunciation(slave); let r = ""; if (slave.nationality === "Japanese") { if (slave.trust > 0) { r += `${PC.slaveName}${PC.title > 0 ? "kun" : "chan"}`; } else { r += (PC.slaveSurname ? PC.slaveSurname : `${PC.slaveName}${s}an`); } } else { if (slave.intelligence + slave.intelligenceImplant < -95) { r += title; } else if (slave.intelligence + slave.intelligenceImplant > 50) { r += (PC.title > 0 ? `Ma${s}ter` : `Mi${s}tre${ss}`); } else if (slave.trust > 0) { r += PC.slaveName; } else { r += (PC.slaveSurname ? PC.slaveSurname : PC.slaveName); } } return r; }; /** * @param {App.Entity.SlaveState} slave * @returns {string} */ globalThis.SlaveTitle = function(slave) { let r; if (V.newDescriptions === 1) { if (slave.dick > 0 && slave.balls > 0 && slave.boobs > 300 && slave.vagina > -1 && slave.ovaries === 1) { if (jsRandom(1, 100) > 50) { r = "futanari"; } else { r = "herm"; } } else if (slave.dick > 0 && slave.balls === 0 && slave.boobs > 300 && slave.vagina > -1 && slave.ovaries === 1) { r = "dickgirl"; } else if (slave.dick > 0 && slave.vagina > -1 && slave.ovaries === 0) { r = "shemale"; } else if (slave.dick > 0 && slave.balls === 0 && slave.vagina === -1 && slave.ovaries === 0) { r = "eunuch"; } else if (slave.dick > 0 && slave.balls > 0 && slave.vagina === -1 && slave.ovaries === 0) { if (slave.face > 10 && slave.hips > -1 && slave.shoulders < 1 && slave.faceShape !== "masculine") { r = "trap"; } else if (slave.boobs > 800) { r = "tittyboy"; } else if (slave.dick === 1 && slave.balls === 1) { r = "sissy"; } else if (slave.dick > 1 && slave.balls > 1 && slave.height < 165 && slave.muscles < 5 && slave.visualAge < 19 && slave.faceShape !== "masculine") { r = "twink"; } else if (slave.dick > 1 && slave.balls > 1 && slave.height < 160 && slave.muscles < 5 && slave.visualAge < 19) { r = "boytoy"; } else if (slave.muscles > 95 && slave.height >= 185) { r = "titan"; } else if (slave.muscles > 30) { r = "muscleboy"; } else { r = "slaveboy"; } } else if (slave.dick === 0 && slave.balls === 0 && slave.vagina > -1) { if ((slave.shoulders > slave.hips || slave.faceShape === "masculine") && slave.boobs < 400 && slave.genes === "XY") { r = "cuntboy"; } else if (slave.ovaries === 0 && slave.genes === "XY") { r = "tranny"; } else if (slave.weight > 10 && slave.boobs > 800 && slave.counter.birthsTotal > 0 && slave.physicalAge > 59) { r = "GMILF"; } else if (slave.weight > 10 && slave.boobs > 800 && slave.counter.birthsTotal > 0 && slave.physicalAge > 35) { r = "MILF"; } else if (slave.lips > 70 && slave.boobs > 2000 && slave.butt > 3) { r = "bimbo"; } else if (slave.hips > 1 && slave.boobs > 2000 && slave.butt > 3 && slave.waist < 50) { r = "hourglass"; } else if (slave.muscles > 95 && slave.height >= 185) { r = "amazon"; } else if (slave.muscles > 30) { r = "musclegirl"; } else { r = "slavegirl"; } } else if (slave.dick === 0 && slave.balls === 0 && slave.vagina === -1) { r = "neuter"; } else if (slave.dick === 0 && slave.vagina === -1) { r = "ballslave"; } else { r = "slave"; } if (slave.visualAge < 13) { if (slave.actualAge < 3) { if (slave.actualAge < 1) { r = "baby " + r; } else { r = "toddler " + r; } } else { if (slave.genes === "XY" && slave.vagina === -1) { r = "shota " + r; } else { r = "loli " + r; } } } if (slave.geneticQuirks.albinism === 2) { r = `albino ${r}`; } if (slave.dick > 9 && slave.balls > 9 && slave.boobs > 12000) { r = `hyper ${r}`; } if (slave.boobs > 4000 && slave.lactation > 0) { if (slave.physicalAge < 13) { r = `${r} calf`; } else { r = `${r} cow`; } } else if (slave.lactation > 0) { r = `milky ${r}`; } if (slave.boobs > 20000) { r = `supermassive titted ${r}`; } else if (slave.boobs > 10000) { r = `giant titted ${r}`; } else if (slave.boobs > 4000) { r = `huge titted ${r}`; } else if (slave.boobs > 1000) { r = `busty ${r}`; } if (slave.dick > 5 && slave.balls > 5) { r = `womb filling ${r}`; } else if (slave.dick > 5) { r = `well hung ${r}`; } if (slave.butt >= 12) { r = `colossal assed ${r}`; } else if (slave.butt >= 10) { r = `massive assed ${r}`; } else if (slave.butt >= 8) { r = `fat assed ${r}`; } else if (slave.butt >= 6) { r = `bottom heavy ${r}`; } else if (slave.butt >= 4) { r = `big bottomed ${r}`; } if (slave.weight > 10 && slave.weight < 100 && slave.boobs > 5000 && slave.butt > 5 && slave.hips >= 2 && slave.bellyPreg >= 30000 && slave.counter.births >= 10) { r = `${r} fertility goddess`; } else if (slave.counter.births >= 6) { r = `${r} broodmother`; } else if (slave.counter.births >= 3) { r = `${r} breeder`; } if (slave.indenture > -1) { r = `indentured ${r}`; } if (slave.preg > slave.pregData.normalBirth / 4 && slave.pregKnown === 1) { r = `pregnant ${r}`; } else if (slave.bellyFluid >= 5000) { r = `bloated ${r}`; } else if (slave.belly >= 5000) { r = `gravid ${r}`; } if (slave.fuckdoll > 0) { r = `${r} fuckdoll`; } } else { r = "slave"; /* I don't think there is an 'else'? */ if ((slave.dick === 0) && (slave.vagina === -1)) { /* NULLS */ r = "null"; if ((slave.lactation > 0) && (slave.boobs > 2000)) { r = `${r} cow`; } else if ((slave.boobsImplant > 0) && (slave.buttImplant > 0)) { r = `${r} bimbo `; } else if (slave.boobs > 6000) { r = `${r} boob`; } else if (slave.butt > 6) { r = `${r} ass`; } else if ((slave.muscles > 30) && (slave.height < 185)) { r = `${r} muscle`; } if (slave.visualAge > 55) { r = `${r}GILF`; } else if (slave.visualAge > 35) { r = `${r}MILF`; } else if (slave.visualAge >= 25) { r = `${r}slave`; } else { r = `${r}girl`; } } if ((slave.dick === 0) && (slave.vagina !== -1)) { /* FEMALES */ if (slave.visualAge > 55) { r = "GILF"; } else if (slave.visualAge > 35) { r = "MILF"; } else if (slave.visualAge >= 25) { r = "slave"; } else { r = "slavegirl"; } if ((slave.muscles > 30) && (slave.height < 185)) { r = `muscle ${r}`; } else if ((slave.lactation > 0) && (slave.boobs > 2000)) { r = `${r} cow`; } else if ((slave.boobsImplant > 0) && (slave.buttImplant > 0)) { r = `${r} bimbo`; } else if (slave.boobs > 6000) { r = `boob${r}`; } else if (slave.butt > 6) { r = `ass${r}`; } } if ((slave.dick !== 0) && (slave.vagina !== -1)) { if (slave.balls > 0) { /* FUTANARI: cock & balls & vagina */ r = "futanari "; } else { /* FUTANARI: cock & vagina */ r = "futa "; } if ((slave.lactation > 0) && (slave.boobs > 2000)) { r = `${r}cow`; } else if ((slave.boobsImplant > 0) && (slave.buttImplant > 0)) { r = `${r}bimbo `; } else if (slave.boobs > 6000) { r = `${r}boob`; } else if (slave.butt > 6) { r = `${r}ass`; } else if ((slave.muscles > 30) && (slave.height < 185)) { r = `${r}muscle`; } if (slave.visualAge > 55) { r = `${r}GILF`; } else if (slave.visualAge > 35) { r = `${r}MILF`; } else if (slave.visualAge >= 25) { r = `${r}slave`; } else { r = `${r}girl`; } if (slave.dick > 5 && slave.balls > 5 && slave.boobs > 5000) { r = `hyper ${r}`; } } if ((slave.dick !== 0) && (slave.vagina === -1) && (slave.balls > 0) && (slave.boobs > 300) && (slave.butt > 2)) { /* SHEMALES: cock & balls, T&A above minimum */ if (slave.visualAge > 55) { r = "sheGILF"; } else if (slave.visualAge > 35) { r = "sheMILF"; } else if (slave.visualAge >= 25) { r = "shemale"; } else { r = "tgirl"; } if ((slave.muscles > 30) && (slave.height < 185)) { r = `muscle${r}`; } else if ((slave.lactation > 0) && (slave.boobs > 2000)) { r = `${r} cow`; } else if ((slave.boobsImplant > 0) && (slave.buttImplant > 0)) { r = `${r} bimbo`; } else if (slave.boobs > 6000) { r = `topheavy ${r}`; } else if (slave.butt > 6) { r = `bottomheavy ${r}`; } } if ((slave.boobs < 300) || (slave.butt < 2)) { if ((slave.dick !== 0) && (slave.vagina === -1) && (slave.balls > 0)) { if ((slave.shoulders < 1) || (slave.muscles <= 30)) { if ((slave.faceShape === "masculine") || (slave.faceShape === "androgynous")) { /* SISSIES: feminine shoulders or muscles, masculine faces */ if (slave.visualAge > 55) { r = "sissyGILF"; } else if (slave.visualAge > 35) { r = "sissyMILF"; } else { r = "sissy"; } } else { /* TRAPS: feminine shoulders or muscles, feminine faces */ if (slave.visualAge > 55) { r = "trapGILF"; } else if (slave.visualAge > 35) { r = "trapMILF"; } else if (slave.visualAge >= 25) { r = "trap"; } else { r = "trapgirl"; } } if (slave.lactation > 0) { r = `${r} cow`; } else if ((slave.boobsImplant > 0) && (slave.buttImplant > 0)) { r = `${r} bimbo`; } } } } if ((slave.boobs < 300) || (slave.butt < 2)) { if ((slave.dick !== 0) && (slave.vagina === -1) && (slave.balls > 0)) { if ((slave.shoulders > 1) || (slave.muscles >= 30)) { /* BITCHES: masculine shoulders or muscles */ r = "bitch"; if ((slave.muscles > 30) && (slave.height < 185)) { r = `muscle${r}`; } else if (slave.lactation > 0) { r = `${r}cow`; } else if ((slave.boobsImplant > 0) && (slave.buttImplant > 0)) { r = `bimbo ${r}`; } if (slave.visualAge > 55) { r = `aged ${r}`; } else if (slave.visualAge > 35) { r = `mature ${r}`; } else if (slave.visualAge < 25) { r = `young ${r}`; } } } } if ((slave.dick !== 0) && (slave.vagina === -1) && (slave.balls === 0)) { r = "dick"; if (slave.visualAge > 55) { r = `${r}GILF`; } else if (slave.visualAge > 35) { r = `${r}MILF`; } else if (slave.visualAge >= 25) { r = `${r}slave`; } else { r = `${r}girl`; } if ((slave.muscles > 30) && (slave.height < 185)) { r = `muscle${r}`; } else if ((slave.lactation > 0) && (slave.boobs > 2000)) { r = `${r} cow`; } else if ((slave.boobsImplant > 0) && (slave.buttImplant > 0)) { r = `${r} bimbo`; } else if (slave.boobs > 6000) { r = `boob ${r}`; } else if (slave.butt > 6) { r = `ass ${r}`; } } if ((slave.muscles > 30) && (slave.height > 185)) { r = `amazon ${r}`; } else if ((slave.muscles < 30) && (slave.height > 185)) { r = `statuesque ${r}`; } else if ((slave.boobs < 800) && (slave.height < 150)) { r = `petite ${r}`; } else if ((slave.boobs > 800) && (slave.height < 150)) { r = `shortstack ${r}`; } if (slave.counter.births >= 5) { r = `${r} broodmother`; } else if (slave.counter.births >= 2) { r = `${r} breeder`; } if (slave.geneticQuirks.albinism === 2) { r = `albino ${r}`; } if (slave.indenture > -1) { r = `indentured ${r}`; } if (slave.preg > slave.pregData.normalBirth / 4 && slave.pregKnown === 1) { r = `pregnant ${r}`; } else if (slave.bellyFluid >= 5000) { r = `bloated ${r}`; } else if (slave.belly >= 5000) { r = `gravid ${r}`; } if (slave.fuckdoll > 0) { r = `${r} fuckdoll`; } } return r; }; /** * @param {App.Entity.SlaveState} slave */ globalThis.DegradingName = function(slave) { const leadershipPosition = [ Job.ATTENDANT, Job.MATRON, Job.STEWARD, Job.MILKMAID, Job.FARMER, Job.DJ, Job.CONCUBINE, Job.MADAM, Job.TEACHER, Job.WARDEN, Job.NURSE, Job.HEADGIRL, Job.BODYGUARD, Job.RECRUITER ]; const names = []; const suffixes = []; if (slave.fuckdoll > 0) { slave.slaveName = `Fuckdoll No. ${slave.ID}`; slave.slaveSurname = 0; } else if (slave.assignment === Job.DAIRY && V.dairyRestraintsSetting >= 2) { slave.slaveName = `Bioreactor No. ${slave.ID}`; slave.slaveSurname = 0; } else { if (V.seeRace === 1) { switch (slave.race) { case "white": names.push("Pale", "White"); break; case "asian": names.push("Asian", "Yellow"); break; case "latina": names.push("Brown", "Latina"); break; case "black": names.push("Black", "Dark"); break; case "pacific islander": names.push("Islander", "Pacific", "Sea"); break; case "malay": names.push("Cinnamon", "Pinoy", "Spice"); break; case "southern european": names.push("Mediterranean", "Olive"); break; case "amerindian": names.push("Indian", "Reservation"); break; case "semitic": names.push("Semite", "Semitic"); break; case "middle eastern": names.push("Arab", "Sand"); break; case "indo-aryan": names.push("Brown", "Indian"); break; case "mixed race": names.push("Mixed", "Mulatto", "Mutt"); break; } } names.push(slave.hColor); if (!hasAnyEyes(slave)) { names.push("Blind", "Eyeless", "Sightless"); } if (slave.hears === -2) { names.push("Deaf", "Earless", "Unhearing"); } if (slave.boobs >= 2000) { suffixes.push("Boob", "Boobs", "Titty"); } if (slave.boobs < 500 && slave.butt < 3) { names.push("Girly", "Slim", "Thin"); } if (slave.boobs < 300) { names.push("Flat"); } if (slave.anus > 2 || slave.vagina > 2) { names.push("Gaping", "Hallway", "Slit", "Wideopen"); } if (slave.weight > 160) { names.push("Blimp", "Cow", "Fat", "Fatass", "Whale"); } else if (slave.weight > 30) { names.push("Chubby", "Fat", "Whale"); } else if (slave.weight <= -30) { names.push("Bony", "Rail", "Skinny"); } if (slave.muscles > 30) { names.push("Huge", "Muscles", "Ripped", "Strong"); } if (slave.fetishKnown === 1) { if (slave.fetish === "buttslut") { names.push("Anal", "Sodomy"); } if (slave.fetish === "cumslut") { names.push("Cum", "Dicksuck", "Sucker"); } if (slave.fetish === "humiliation") { names.push("Rape"); } if (slave.fetish === "masochist") { names.push("Pain", "Rape", "Struggle"); } if (slave.fetish === "pregnancy") { names.push("Fertile"); } } if (slave.boobs * slave.lactation > 1000) { names.push("Creamy", "Milky"); suffixes.push("Cow"); } if (slave.skill.oral <= 30 && slave.skill.anal <= 30) { names.push("Cheap", "Fail", "Gutter"); } if (slave.nipples === "fuckable") { names.push("Nipplefuck", "Nipplecunt"); } else if (slave.nipples !== "tiny" && slave.nipples !== "cute") { names.push("Pointy", "Titclit"); suffixes.push("Nipples"); } if (slave.visualAge > 35) { names.push("Mature"); suffixes.push("Cougar", "MILF"); } else if (slave.visualAge < 25) { names.push("Girly", "Thin", "Young"); } if (isAmputee(slave)) { names.push("Stumpy"); suffixes.push("Stumpy"); } if (slave.boobsImplant > 1000 || slave.buttImplant > 3) { names.push("Fake", "Plastic", "Silicone"); } if (slave.dick > 5 && slave.balls > 5) { names.push("Potent"); suffixes.push("Cannon", "Daddy"); } if (slave.preg > slave.pregData.normalBirth / 1.33) { if (slave.broodmother === 2) { names.push("Bursting", "Seeded"); suffixes.push("Factory", "Nursery"); } else if (slave.broodmother === 1) { names.push("Bloated", "Stuffed"); suffixes.push("Breeder", "Factory"); } } if (slave.bellyPreg >= 450000) { names.push("Bulging", "Squirming"); } if (slave.bellyPreg >= 5000) { names.push("Preg"); suffixes.push("Belly", "Mommy"); } if (slave.belly > 150000) { suffixes.push("Balloon"); } if (slave.belly > 1500) { suffixes.push("Belly"); } if (slave.dick > 0) { if (slave.dick > 4) { names.push("Dangle", "Hung"); suffixes.push("Cock", "Dick"); } if (slave.balls === 0) { names.push("Cut", "Gelded", "Soft"); } else { names.push("Erect", "Hard", "Stiff"); } } if (slave.dick === 1) { names.push("Micro", "Tiny"); suffixes.push("Bitch"); } if (slave.height >= 185) { names.push("Tall", "Top"); suffixes.push("Tower"); } else if (slave.height < 150) { names.push("Stumpy", "Tiny"); suffixes.push("Shortstack", "Stumpy"); } if (slave.skill.whoring > 95) { names.push("Money", "Street"); suffixes.push("Whore"); } if (slave.skill.entertainment > 95) { names.push("Easy", "Club"); suffixes.push("Slut"); } if (slave.skill.oral > 95) { names.push("Suck"); suffixes.push("Throat"); } if (slave.skill.vaginal > 95) { suffixes.push("Channel", "Kegel", "Pussy"); } if (slave.skill.anal > 95) { suffixes.push("Asspussy", "Sphincter"); } if (slave.intelligence + slave.intelligenceImplant > 50) { names.push("Bright", "Clever", "Smart"); if (slave.intelligenceImplant >= 15) { names.push("College", "Graduate", "Nerdy"); } } else if (slave.intelligence + slave.intelligenceImplant < -50) { names.push("Cretin", "Dumb", "Retarded", "Stupid"); } if (slave.vagina === 1 && slave.skill.vaginal <= 10) { names.push("Fresh", "New", "Tight"); } if (slave.devotion < -75) { names.push("Angry", "Biter", "Caged"); } else if (slave.devotion < -50) { names.push("Cell", "Cuffs"); } else if (slave.devotion < -20) { names.push("Bag", "Box"); } else if (slave.devotion <= 20) { names.push("Sad", "Whiner"); } else if (slave.devotion > 50) { names.push("Prize"); if (slave.visualAge > 35) { names.push("Queen"); } else if (slave.visualAge < 25) { names.push("Princess"); } } if (slave.trust < -50) { names.push("Screaming"); suffixes.push("Sobber"); } else if (slave.trust < -20) { names.push("Crying"); suffixes.push("Meat", "Tears", "Thing", "Weeper"); } else if (slave.trust < 20) { names.push("Begging"); } if (slave.dick === 0) { if (slave.vagina === -1) { suffixes.push("Null"); } else { if (slave.visualAge < 25) { suffixes.push("Girl"); } } } else { if (slave.vagina !== -1) { suffixes.push("Futa"); } else { if (slave.balls > 0) { if (slave.boobs > 300 && slave.butt > 2) { /* SHEMALES: cock & balls, T&A above minimum */ suffixes.push("Shemale"); } else { if (slave.shoulders < 1 && slave.muscles <= 30) { if (slave.faceShape === "masculine" || slave.faceShape === "androgynous") { /* SISSIES: feminine shoulders or muscles, masculine faces */ suffixes.push("Sissy"); } else { /* TRAPS: feminine shoulders or muscles, feminine faces */ suffixes.push("Trap"); } } else { /* BITCHES: masculine shoulders or muscles */ suffixes.push("Bitch"); } } } else { if (slave.visualAge > 35) { suffixes.push("DickMILF"); } else if (slave.visualAge >= 25) { suffixes.push("Dickslave"); } else { suffixes.push("Dickgirl"); } } } } if (slave.anus > 0) { suffixes.push("Anus", "Asshole", "Backdoor", "Butt", "Butthole"); } if (slave.anus === 1) { suffixes.push("Tightass", "Tightbutt"); } if (slave.vagina > 0) { suffixes.push("Cunt", "Pussy", "Vagina"); } if (slave.boobs < 500 && slave.butt < 3 && slave.dick > 0) { suffixes.push("Bitch", "Bottom", "Sissy", "Trap"); } if (slave.energy > 95) { suffixes.push("Fuck", "Fuckaddict", "Nympho", "Sexaddict"); } if (slave.fetishKnown === 1) { if (slave.fetish === "humiliation") { suffixes.push("Rapebait", "Showgirl"); } if (slave.fetish === "submissive") { suffixes.push("Bottom", "Fuckee", "Rapebait"); } if (slave.fetish === "dom") { suffixes.push("Dom", "Fucker", "Top"); } if (slave.fetish === "pregnancy") { suffixes.push("Breeder", "Mommy"); } if (slave.fetish === "boobs") { suffixes.push("Boob", "Boobie", "Tit", "Titty"); } } if (slave.counter.births >= 2) { suffixes.push("Breeder"); if (slave.counter.births >= 5) { suffixes.push("Broodmother"); } } if (slave.areolae > 2) { suffixes.push("Areolas", "Headlights"); } if (slave.lips > 40) { suffixes.push("Lips", "Pillows"); } if (slave.labia > 1) { suffixes.push("Curtains", "Flower", "Lips"); } if (slave.breedingMark === 1 && V.propOutcome === 1 && V.arcologies[0].FSRestart !== "unset") { suffixes.push("Breeder", "Oven", "Womb"); } if (slave.butt > 5) { suffixes.push("Ass", "Bottom", "Butt"); } if (slave.vagina === 0) { suffixes.push("Virgin"); } slave.slaveName = jsEither(names); } if (leadershipPosition.includes(slave.assignment)) { switch (slave.assignment) { case Job.ATTENDANT: slave.slaveName = jsEither(["Bath", "Spa"]); break; case Job.MATRON: slave.slaveName = jsEither(["Matron", "Nursery"]); break; case Job.STEWARD: slave.slaveName = jsEither(["Maid", "Servant"]); break; case Job.MILKMAID: if (V.cumSlaves > 3) { slave.slaveName = jsEither(["Fucker", "Milker"]); } else { slave.slaveName = jsEither(["Dairy", "Farm"]); } break; case Job.FARMER: slave.slaveName = jsEither(["Farmer", "Farmhand"]); break; case Job.DJ: slave.slaveName = jsEither(["Bass", "Booth"]); break; case Job.CONCUBINE: slave.slaveName = jsEither(["Bed", "Master"]); break; case Job.MADAM: slave.slaveName = jsEither(["Madam", "Pimp"]); break; case Job.TEACHER: slave.slaveName = jsEither(["Classroom", "Teacher"]); break; case Job.WARDEN: slave.slaveName = jsEither(["Jail", "Prison"]); break; case Job.NURSE: slave.slaveName = jsEither(["Clinic", "Nurse"]); break; case Job.HEADGIRL: slave.slaveName = jsEither(["Chief", "Head"]); break; case Job.BODYGUARD: slave.slaveName = jsEither(["Battle", "Guard"]); break; case Job.RECRUITER: slave.slaveName = jsEither(["Cam", "Recruiter"]); break; } } const surname = jsEither(suffixes); if (typeof surname === "string" && surname.toLowerCase() === slave.slaveName.toLowerCase()) { DegradingName(slave); } slave.slaveName = capFirstChar(slave.slaveName); slave.slaveSurname = surname; }; globalThis.PaternalistName = function(slave) { if (slave.slaveName.search("Miss") === -1) { if (slave.slaveName.search("Ms.") === -1) { if (slave.slaveName.search("Mrs.") === -1) { if (slave.relationship > 4) { slave.slaveName = ("Mrs. " + slave.slaveName); } else if (slave.actualAge > 24) { slave.slaveName = ("Ms. " + slave.slaveName); } else { slave.slaveName = ("Miss " + slave.slaveName); } } } } }; globalThis.parentNames = function(parent, child) { const slaves = V.slaves; let currentSlaveNames = slaves.map(s => s.slaveName); let continentNationality; const useMaleName = (child.genes === "XY" && V.allowMaleSlaveNames === true); child.slaveName = generateName(parent.nationality, child.race, useMaleName, sn => !currentSlaveNames.includes(sn)); if (!child.slaveName) { for (let i = 0; i < 10; i++) { continentNationality = hashChoice(V.nationalities); child.slaveName = generateName(continentNationality, child.race, useMaleName, sn => !currentSlaveNames.includes(sn)); // jshint ignore: line } } if (!child.slaveName) { child.slaveName = generateName(parent.nationality, child.race, useMaleName); } }; globalThis.SlaveSort = function() { const effectivePreg = (slave) => { // slave.preg is only *mostly* usable for sorting if (slave.preg > 0 && !slave.pregKnown) { // don't reveal unknown pregnancies return 0; } if (slave.pubertyXX === 0 && (slave.ovaries === 1 || slave.mpreg === 1)) { // not ovulating yet - sort between barren slaves and slaves on contraceptives return -1.2; } else if (slave.ovaryAge >= 47 && (slave.ovaries === 1 || slave.mpreg === 1)) { // menopausal - sort between barren slaves and slaves on contraceptives return -1.1; } else if (slave.pregWeek < 0) { // postpartum - sort between slaves on contraceptives and fertile slaves return -0.1; } return slave.preg; }; const effectiveEnergy = (slave) => { return slave.attrKnown === 1 ? slave.energy : -101; }; const comparators = { Aassignment: (a, b) => a.assignment < b.assignment ? -1 : 1, Dassignment: (a, b) => a.assignment > b.assignment ? -1 : 1, Aname: (a, b) => a.slaveName < b.slaveName ? -1 : 1, Dname: (a, b) => a.slaveName > b.slaveName ? -1 : 1, Aseniority: (a, b) => b.weekAcquired - a.weekAcquired, Dseniority: (a, b) => a.weekAcquired - b.weekAcquired, AactualAge: (a, b) => a.actualAge - b.actualAge, DactualAge: (a, b) => b.actualAge - a.actualAge, AvisualAge: (a, b) => a.visualAge - b.visualAge, DvisualAge: (a, b) => b.visualAge - a.visualAge, AphysicalAge: (a, b) => a.physicalAge - b.physicalAge, DphysicalAge: (a, b) => b.physicalAge - a.physicalAge, Adevotion: (a, b) => a.devotion - b.devotion, Ddevotion: (a, b) => b.devotion - a.devotion, AID: (a, b) => a.ID - b.ID, DID: (a, b) => b.ID - a.ID, AweeklyIncome: (a, b) => a.lastWeeksCashIncome - b.lastWeeksCashIncome, DweeklyIncome: (a, b) => b.lastWeeksCashIncome - a.lastWeeksCashIncome, Ahealth: (a, b) => a.health.health - b.health.health, Dhealth: (a, b) => b.health.health - a.health.health, Aweight: (a, b) => a.weight - b.weight, Dweight: (a, b) => b.weight - a.weight, Amuscles: (a, b) => a.muscles - b.muscles, Dmuscles: (a, b) => b.muscles - a.muscles, AsexDrive: (a, b) => effectiveEnergy(a) - effectiveEnergy(b), DsexDrive: (a, b) => effectiveEnergy(b) - effectiveEnergy(a), Apregnancy: (a, b) => effectivePreg(a) - effectivePreg(b), Dpregnancy: (a, b) => effectivePreg(b) - effectivePreg(a), }; return { slaves: sortSlaves, IDs: sortIDs, indices: sortIndices }; /** @param {App.Entity.SlaveState[]} [slaves] */ function sortSlaves(slaves) { slaves = slaves || V.slaves; slaves.sort(_comparator()); if (slaves === V.slaves) { V.slaveIndices = slaves2indices(); } } /** @param {number[]} [slaveIDs] */ function sortIDs(slaveIDs) { const slaves = V.slaves; const slaveIndices = V.slaveIndices; const cmp = _comparator(); slaveIDs = slaveIDs || slaves.map(s => s.ID); slaveIDs.sort((IDa, IDb) => cmp(slaves[slaveIndices[IDa]], slaves[slaveIndices[IDb]])); } /** @param {number[]} [slaveIdxs] */ function sortIndices(slaveIdxs) { const slaves = V.slaves; const cmp = _comparator(); slaveIdxs = slaveIdxs || [...slaves.keys()]; slaveIdxs.sort((ia, ib) => cmp(slaves[ia], slaves[ib])); } /** * @callback slaveComparator * @param {App.Entity.SlaveState} a * @param {App.Entity.SlaveState} b * @returns {number} */ /** @returns {slaveComparator} */ function _comparator() { return _makeStableComparator(comparators[(V.sortSlavesOrder === "ascending" ? 'A' : 'D') + V.sortSlavesBy]); } /** secondary-sort by ascending ID if the primary comparator would return 0 (equal), so we have a guaranteed stable order regardless of input * @param {slaveComparator} comparator * @returns {slaveComparator} */ function _makeStableComparator(comparator) { return function(a, b) { return comparator(a, b) || comparators.AID(a, b); }; } }(); /** * @param {App.Entity.SlaveState[]} slaves */ globalThis.slaveSortMinor = function(slaves) { slaves.sort((a, b) => a.slaveName < b.slaveName ? -1 : 1); }; globalThis.menialPopCap = function() { let r = ""; let popCap = 500 * (1 + V.building.findCells(cell => cell instanceof App.Arcology.Cell.Manufacturing && cell.type === "Pens").length); let overMenialCap = V.menials + V.fuckdolls + V.menialBioreactors - popCap; if (overMenialCap > 0) { const price = menialSlaveCost(-overMenialCap); if (V.menials > 0) { if (V.menials > overMenialCap) { cashX((overMenialCap * price), "menialTrades"); V.menialDemandFactor -= overMenialCap; V.menials -= overMenialCap; overMenialCap = 0; r += "You don't have enough room for all your menials and are obliged to sell some."; } else { cashX((V.menials * price), "menialTrades"); V.menialDemandFactor -= V.menials; overMenialCap -= V.menials; V.menials = 0; r += "You don't have enough room for your menials and are obliged to sell them."; } } if (overMenialCap > 0 && V.fuckdolls > 0) { if (V.fuckdolls > overMenialCap) { cashX(overMenialCap * (price * 2), "menialTrades"); V.menialDemandFactor -= overMenialCap; V.fuckdolls -= overMenialCap; overMenialCap = 0; r += "You don't have enough room for all your Fuckdolls and are obliged to sell some."; } else { cashX(V.fuckdolls * (price * 2), "menialTrades"); V.menialDemandFactor -= V.fuckdolls; overMenialCap -= V.fuckdolls; V.fuckdolls = 0; r += "You don't have enough room for your Fuckdolls and are obliged to sell them."; } } if (overMenialCap > 0 && V.menialBioreactors > 0) { cashX(overMenialCap * (price - 100), "menialTrades"); V.menialDemandFactor -= overMenialCap; V.menialBioreactors -= overMenialCap; r += "You don't have enough room for all your menial bioreactors and are obliged to sell some."; } } return {text: r, value: popCap}; }; /** * @param {App.Entity.SlaveState} slave * @param {number} amount * @returns {string} */ globalThis.faceIncrease = function(slave, amount) { const pronouns = getPronouns(slave); const his = pronouns.possessive; const His = capFirstChar(his); let r = ""; if (slave.face <= -95) { r += `<span class="green">${His} face is no longer horrifying,</span> and is now merely ugly.`; } else if (slave.face <= -40 && slave.face + amount > -40) { r += `<span class="green">${His} face is no longer ugly,</span> and is now merely unattractive.`; } else if (slave.face <= -10 && slave.face + amount > -10) { r += `<span class="green">${His} face is no longer unattractive,</span> and is now somewhat tolerable.`; } else if (slave.face <= 10 && slave.face + amount > 10) { r += `<span class="green">${His} face is now decently attractive,</span> rather than merely tolerable.`; } else if (slave.face <= 40 && slave.face + amount > 40) { r += `<span class="green">${His} face is now quite beautiful,</span> rather than merely pretty.`; } else if (slave.face <= 95 && slave.face + amount > 95) { r += `<span class="green">${His} face is now perfect.</span> It's difficult to imagine how it could be any more beautiful.`; } slave.face = Math.clamp(slave.face + amount, -100, 100); if (slave.face > 95) { slave.face = 100; } return r; }; /** * @param {App.Entity.SlaveState} slave * @returns {number} */ globalThis.deadliness = function(slave) { let deadliness = 2; if (slave.skill.combat > 0) { deadliness += 2; } if (setup.bodyguardCareers.includes(slave.career)) { deadliness += 1; } else if (slave.skill.bodyguard >= V.masteredXP) { deadliness += 1; } if (V.AgePenalty !== 0) { if (slave.physicalAge >= 100) { deadliness -= 10; } else if (slave.physicalAge >= 85) { deadliness -= 3; } else if (slave.physicalAge >= 70) { deadliness -= 1; } } if (slave.muscles > 30 && slave.muscles <= 95) { deadliness += 1; } else if (slave.muscles > 95 && slave.height >= 185) { deadliness += 2; } else if (slave.muscles > 95) { deadliness -= 1; } else if (slave.muscles < -95) { deadliness -= 20; } else if (slave.muscles < -30) { deadliness -= 7; } else if (slave.muscles < -5) { deadliness -= 3; } if (slave.height >= 170) { deadliness += 1; } if (slave.health.condition > 50) { deadliness += 1; } else if (slave.health.condition < -50) { deadliness -= 1; } if (slave.health.illness > 3) { deadliness -= 3; } else if (slave.health.illness > 1) { deadliness -= 2; } else if (slave.health.illness > 0) { deadliness -= 1; } if (slave.boobs > 4000) { deadliness -= 2; } else if (slave.boobs > 2000) { deadliness -= 1; } if (slave.butt > 6) { deadliness -= 1; } if (slave.hips > 2) { deadliness -= 1; } if (slave.weight > 190) { deadliness -= 20; } else if (slave.weight > 160) { deadliness -= 10; } else if (slave.weight > 130) { deadliness -= 3; } else if (slave.weight > 30 || slave.weight < -10) { deadliness -= 1; } if (slave.bellyFluid >= 10000) { deadliness -= 3; } else if (slave.bellyFluid >= 5000) { deadliness -= 2; } else if (slave.bellyFluid >= 2000) { deadliness -= 1; } if (slave.pregKnown === 1 || slave.bellyPreg >= 1500 || slave.bellyImplant >= 1500) { if (slave.belly >= 750000) { deadliness -= 50; } else if (slave.belly >= 600000) { deadliness -= 25; } else if (slave.belly >= 450000) { deadliness -= 15; } else if (slave.belly >= 300000) { deadliness -= 10; } else if (slave.belly >= 150000) { deadliness -= 8; } else if (slave.belly >= 100000) { deadliness -= 7; } else if (slave.belly >= 10000) { deadliness -= 3; } else if (slave.belly >= 5000) { deadliness -= 2; } else { deadliness -= 1; } } if (isInLabor(slave)) { deadliness -= 15; } else if (slave.preg >= slave.pregData.normalBirth && slave.pregControl !== "labor suppressors") { deadliness -= 5; } if (slave.balls >= 15) { deadliness -= 1; } if (slave.dick >= 10) { deadliness -= 1; } deadliness -= getLimbCount(slave, 0) * 5; deadliness -= getLimbCount(slave, 2) * 0.25; deadliness -= getLimbCount(slave, 3) * 0.25; deadliness -= getLimbCount(slave, 4) * 0.25; deadliness += getLimbCount(slave, 5) * 1.25; deadliness += getLimbCount(slave, 6) * 2.5; if (hasBothLegs(slave) && !canStand(slave)) { deadliness -= 20; } if (!canSee(slave)) { deadliness -= 8; } else if (!canSeePerfectly(slave)) { deadliness -= 1; } if (!canHear(slave)) { deadliness -= 4; } else if ((slave.hears === -1 && slave.earwear !== "hearing aids") || (slave.hears === 0 && slave.earwear === "muffling ear plugs")) { deadliness -= 1; } if (slave.tail === "combat") { deadliness += 2; } if (slave.health.tired > 90) { deadliness -= 10; } else if (slave.health.tired > 60) { deadliness -= 3; } else if (slave.health.tired > 30) { deadliness -= 1; } return Math.max(deadliness, 1); }; /** Is the slave ready to retire? * @param {App.Entity.SlaveState} slave * @returns {boolean} */ globalThis.retirementReady = function(slave) { // indentured slaves don't retire, they expire if (slave.indenture >= 0) { return false; } // retirement by age if (V.policies.retirement.physicalAgePolicy === 0 && slave.actualAge >= V.retirementAge) { return true; } else if (V.policies.retirement.physicalAgePolicy === 1 && slave.physicalAge >= V.retirementAge) { return true; } // retirement by milestone if (V.policies.retirement.sex > 0 && (slave.counter.oral + slave.counter.anal + slave.counter.vaginal + slave.counter.penetrative + slave.counter.mammary) > V.policies.retirement.sex) { return true; } if (V.policies.retirement.milk > 0 && slave.counter.milk > V.policies.retirement.milk) { return true; } if (V.policies.retirement.cum > 0 && slave.counter.cum > V.policies.retirement.cum) { return true; } if (V.policies.retirement.births > 0 && slave.counter.births > V.policies.retirement.births) { return true; } if (V.policies.retirement.kills > 0 && slave.counter.pitKills > V.policies.retirement.kills) { return true; } // no retirement for you return false; }; /** marks some weeks of time passage for a slave, counting birthdays and invoking aging if game settings require it * @param {App.Entity.SlaveState} slave * @param {number} [weeks=1] */ globalThis.ageSlaveWeeks = function(slave, weeks = 1) { if (V.seeAge !== 0) { // birthdays enabled for (let i = 0; i < weeks; ++i) { slave.birthWeek++; if (slave.birthWeek >= 52) { slave.birthWeek = 0; if (V.seeAge === 1) { // actual aging enabled ageSlave(slave); } } } } }; /** advances the age of a slave by one year, incurring all aging side effects * @param {App.Entity.SlaveState} slave * @param {boolean} [forceDevelopment=false] */ globalThis.ageSlave = function(slave, forceDevelopment = false) { slave.physicalAge++; slave.actualAge++; if (slave.geneMods.NCS === 1 || (slave.geneticQuirks.neoteny >= 2 && slave.geneticQuirks.progeria !== 2)) { /* Induced NCS completely takes over visual aging. Additionally, because of the neoteny aspects of NCS, ovaries don't age quite as fast. */ /* Unsurprisingly, actual neoteny has the same effect as long as progeria isn't in play. */ slave.ovaryAge += either(0.5, 0.6, 0.7, 0.7, 0.8, 0.9, 1.0); } else { slave.visualAge++; slave.ovaryAge += either(0.8, 0.9, 0.9, 1.0, 1.0, 1.0, 1.1); } if (slave.broodmother === 1) { slave.ovaryAge += 0.2; } if (slave.physicalAge <= 18 && (forceDevelopment || V.loliGrow > 0)) { physicalDevelopment(slave); } }; /** Is the slave a shelter slave? * @param {App.Entity.SlaveState} slave * @returns {boolean} */ globalThis.isShelterSlave = function(slave) { return (typeof slave.origin === "string" && slave.origin.includes("Slave Shelter")); }; /** * Returns if a slave appears male, female, or androgynous. * * @param {App.Entity.SlaveState} slave * @returns {number} */ globalThis.perceivedGender = function(slave) { return -1; }; globalThis.initRules = function() { const rule = emptyDefaultRule(); rule.name = "Obedient Slaves"; rule.condition.function = "between"; rule.condition.data.attribute = "devotion"; rule.condition.data.value = [20, null]; rule.set.removalAssignment = "rest"; V.defaultRules = [rule]; V.rulesToApplyOnce = {}; };
MonsterMate/fc
src/js/assayJS.js
JavaScript
mit
47,668
/* eslint-disable no-case-declarations */ /** * @param {App.Entity.SlaveState} slave * @param {FC.Assignment} job * @returns {string} */ globalThis.assignJob = function(slave, job) { "use strict"; let r = ""; const oldJob = slave.assignment; // handle non-exclusive pseudo-assignments as special cases if (job === Job.PIT) { if (!V.pit.fighterIDs.includes(slave.ID)) { V.pit.fighterIDs.push(slave.ID); } V.JobIDMap[Job.PIT].add(slave.ID); return r; } else if (job === Job.LURCHER) { V.LurcherID = slave.ID; V.JobIDMap[Job.LURCHER].clear(); V.JobIDMap[Job.LURCHER].add(slave.ID); return r; } removeJob(slave, slave.assignment, true); const restingAssignment = slave.assignment; // not necessary Job.REST, but the assignment chosen by removeJob() for her case const idx = V.slaveIndices[slave.ID]; /** * this helper makes sure global references global IDs ($HeadGirlID, $AttendantID, etc) are set correctly * @param {string} propName */ function uniqueJob(propName) { if (App.Data.resetOnNGPlus.hasOwnProperty(propName)) { // TODO remove this branch when all special slaves migrate to IDs if (V[propName] !== 0 && V[propName].ID !== slave.ID) { removeJob(V[propName], job, true); } V[propName] = slave; } else { const specialIDProp = `${propName}ID`; const prevAssigneeID = V[specialIDProp]; if (prevAssigneeID !== slave.ID) { removeJob(slaveStateById(prevAssigneeID), job, true); } V[specialIDProp] = slave.ID; } } /* Tracking for the following cases: */ if (oldJob !== job && V.assignmentRecords[slave.ID] !== job && oldJob !== Job.REST) { // Check that there is a real change happening. Sometimes when you send someone to a classroom or something, this fires twice. switch (job.toLowerCase()) { case Job.CELLBLOCK: case "cellblock": if (oldJob !== Job.CELLBLOCK) { // Due to the way assignJob fires twice on assigning to a building, we have to make sure that we are keeping the original record. V.assignmentRecords[slave.ID] = oldJob; } break; case Job.CLINIC: case "clinic": if (oldJob !== Job.CLINIC) { V.assignmentRecords[slave.ID] = oldJob; } break; case Job.SCHOOL.toLowerCase(): case "schoolroom": if (oldJob !== Job.SCHOOL) { V.assignmentRecords[slave.ID] = oldJob; } break; case Job.SPA.toLowerCase(): case "spa": if (oldJob !== Job.SPA) { V.assignmentRecords[slave.ID] = oldJob; } break; } } /* use .toLowerCase() to get rid of a few dupe conditions. */ switch (job.toLowerCase()) { case Job.ARCADE.toLowerCase(): case "arcade": slave.assignment = Job.ARCADE; if (slave.clothes !== "a fuckdoll suit") { slave.clothes = "no clothing"; } slave.shoes = "none"; slave.collar = "none"; slave.rules.living = LivingRule.SPARE; break; case Job.BROTHEL.toLowerCase(): case "brothel": slave.assignment = Job.BROTHEL; switch (V.brothelDecoration) { case "Degradationist": case "standard": slave.rules.living = LivingRule.SPARE; break; default: slave.rules.living = LivingRule.NORMAL; break; } break; case Job.CELLBLOCK.toLowerCase(): case "cellblock": slave.assignment = Job.CELLBLOCK; switch (V.cellblockDecoration) { case "Paternalist": slave.rules.living = LivingRule.NORMAL; break; default: slave.rules.living = LivingRule.SPARE; break; } break; case Job.CLINIC.toLowerCase(): case "clinic": slave.assignment = Job.CLINIC; switch (V.clinicDecoration) { case "Repopulation Focus": case "Eugenics": case "Gender Radicalist": case "Gender Fundamentalist": case "Paternalist": case "Maturity Preferentialist": case "Youth Preferentialist": case "Slimness Enthusiast": case "Hedonistic": case "Intellectual Dependency": case "Petite Admiration": case "Statuesque Glorification": case "Neo Imperialist": slave.rules.living = LivingRule.LUXURIOUS; break; case "Roman Revivalist": case "Aztec Revivalist": case "Egyptian Revivalist": case "Arabian Revivalist": case "Chinese Revivalist": case "Chattel Religionist": case "Edo Revivalist": slave.rules.living = LivingRule.NORMAL; break; default: slave.rules.living = LivingRule.SPARE; break; } break; case Job.CLUB.toLowerCase(): case "club": slave.assignment = Job.CLUB; slave.rules.living = LivingRule.NORMAL; break; case Job.DAIRY.toLowerCase(): case "dairy": slave.assignment = Job.DAIRY; switch (V.dairyDecoration) { case "Roman Revivalist": case "Neo Imperialist": case "Aztec Revivalist": case "Chinese Revivalist": case "Chattel Religionist": case "Edo Revivalist": case "Arabian Revivalist": case "Egyptian Revivalist": case "Supremacist": case "Subjugationist": case "Degradationist": slave.rules.living = LivingRule.SPARE; break; default: slave.rules.living = LivingRule.NORMAL; break; } break; case Job.FARMYARD.toLowerCase(): case "farmyard": slave.assignment = Job.FARMYARD; switch (V.farmyardDecoration) { case "Neo Imperialist": case "Aztec Revivalist": case "Chinese Revivalist": case "Chattel Religionist": case "Edo Revivalist": case "Arabian Revivalist": case "Egyptian Revivalist": case "Supremacist": case "Subjugationist": case "Degradationist": slave.rules.living = LivingRule.SPARE; break; case "Roman Revivalist": slave.rules.living = LivingRule.LUXURIOUS; break; default: slave.rules.living = LivingRule.SPARE; break; } break; case Job.HEADGIRLSUITE.toLowerCase(): case "head girl suite": case "hgsuite": slave.assignment = Job.HEADGIRLSUITE; slave.rules.living = LivingRule.LUXURIOUS; break; case Job.MASTERSUITE.toLowerCase(): case "master suite": case "mastersuite": slave.assignment = Job.MASTERSUITE; if (V.masterSuiteUpgradeLuxury > 0) { slave.rules.living = LivingRule.LUXURIOUS; } else { slave.rules.living = LivingRule.NORMAL; } break; case Job.SCHOOL.toLowerCase(): case "schoolroom": slave.assignment = Job.SCHOOL; slave.rules.living = LivingRule.NORMAL; break; case Job.QUARTER.toLowerCase(): case "servants' quarters": case "servantsquarters": slave.assignment = Job.QUARTER; switch (V.servantsQuartersDecoration) { case "Roman Revivalist": case "Neo Imperialist": case "Aztec Revivalist": case "Chinese Revivalist": case "Chattel Religionist": case "Edo Revivalist": case "Supremacist": case "Subjugationist": case "Degradationist": case "Arabian Revivalist": case "Egyptian Revivalist": slave.rules.living = LivingRule.SPARE; break; case "Slave Professionalism": if (slave.intelligence + slave.intelligenceImplant > 15) { slave.rules.living = LivingRule.NORMAL; } else { slave.rules.living = LivingRule.SPARE; } break; case "Petite Admiration": case "Statuesque Glorification": if (heightPass(slave)) { slave.rules.living = LivingRule.NORMAL; } else { slave.rules.living = LivingRule.SPARE; } break; default: slave.rules.living = LivingRule.NORMAL; break; } break; case Job.SPA.toLowerCase(): case "spa": slave.assignment = Job.SPA; switch (V.spaDecoration) { case "Chattel Religionist": case "Chinese Revivalist": slave.rules.living = LivingRule.NORMAL; break; case "Degradationist": slave.rules.living = LivingRule.SPARE; break; default: slave.rules.living = LivingRule.LUXURIOUS; break; } break; case Job.NURSERY.toLowerCase(): case "nursery": slave.assignment = Job.NURSERY; slave.rules.living = LivingRule.NORMAL; break; case Job.ATTENDANT.toLowerCase(): uniqueJob("Attendant"); slave.assignment = Job.ATTENDANT; slave.rules.living = LivingRule.LUXURIOUS; break; case Job.MATRON.toLowerCase(): uniqueJob("Matron"); slave.assignment = Job.MATRON; slave.rules.living = LivingRule.LUXURIOUS; slave.rules.rest = RestRule.MID; break; case Job.DJ.toLowerCase(): uniqueJob("dj"); slave.assignment = Job.DJ; slave.rules.living = LivingRule.LUXURIOUS; slave.rules.rest = RestRule.MID; break; case Job.MADAM.toLowerCase(): uniqueJob("Madam"); slave.assignment = Job.MADAM; slave.rules.living = LivingRule.LUXURIOUS; slave.rules.rest = RestRule.MID; break; case Job.MILKMAID.toLowerCase(): uniqueJob("Milkmaid"); slave.assignment = Job.MILKMAID; slave.rules.living = LivingRule.LUXURIOUS; slave.rules.rest = RestRule.MID; break; case Job.FARMER.toLowerCase(): uniqueJob("Farmer"); slave.assignment = Job.FARMER; slave.rules.living = LivingRule.LUXURIOUS; slave.rules.rest = RestRule.MID; break; case Job.NURSE.toLowerCase(): uniqueJob("Nurse"); slave.assignment = Job.NURSE; slave.rules.living = LivingRule.LUXURIOUS; slave.rules.rest = RestRule.MID; break; case Job.TEACHER.toLowerCase(): uniqueJob("Schoolteacher"); slave.assignment = Job.TEACHER; slave.rules.living = LivingRule.LUXURIOUS; slave.rules.rest = RestRule.MID; break; case Job.STEWARD.toLowerCase(): uniqueJob("Stewardess"); slave.assignment = Job.STEWARD; slave.rules.living = LivingRule.LUXURIOUS; slave.rules.rest = RestRule.MID; break; case Job.WARDEN.toLowerCase(): uniqueJob("Wardeness"); slave.assignment = Job.WARDEN; slave.rules.living = LivingRule.LUXURIOUS; slave.rules.rest = RestRule.MID; break; case Job.RECRUITER: uniqueJob("Recruiter"); slave.assignment = Job.RECRUITER; break; case Job.CONCUBINE.toLowerCase(): uniqueJob("Concubine"); slave.assignment = Job.CONCUBINE; slave.rules.living = V.masterSuiteUpgradeLuxury > 0 ? LivingRule.LUXURIOUS : LivingRule.NORMAL; break; case Job.HEADGIRL.toLowerCase(): uniqueJob("HeadGirl"); slave.assignment = Job.HEADGIRL; if (V.HGSuite === 1) { slave.rules.living = LivingRule.LUXURIOUS; } slave.rules.rest = RestRule.MID; V.HGTimeInGrade = 0; break; case Job.BODYGUARD.toLowerCase(): uniqueJob("Bodyguard"); slave.assignment = Job.BODYGUARD; if (V.dojo > 1) { slave.rules.living = LivingRule.LUXURIOUS; } if (V.pit && V.pit.bodyguardFights && V.pit.fighterIDs.includes(slave.ID)) { V.pit.fighterIDs.delete(slave.ID); } break; case Job.AGENT.toLowerCase(): case Job.AGENTPARTNER.toLowerCase(): slave.assignment = job; slave.useRulesAssistant = 0; /* non-visible roles exempt from Rules Assistant */ WombCleanGenericReserve(slave, 'incubator', 9999); WombCleanGenericReserve(slave, 'nursery', 9999); if (job === Job.AGENT) { if (App.activeArcology().direction !== 0) { // never assign an agent to the player's arcology if (App.activeArcology().leaderID !== 0) { const oldAgent = getSlave(App.activeArcology().leaderID); if (oldAgent && oldAgent.assignment === Job.AGENT) { // this is an error...you should never be able to assign an agent over the top of another // but in order to prevent game state corruption, we are going to remove the old agent removeJob(oldAgent, oldAgent.assignment, false); } } App.activeArcology().leaderID = slave.ID; App.activeArcology().government = "your agent"; } } break; case Job.CHOICE.toLowerCase(): slave.assignment = job; slave.choosesOwnAssignment = 1; break; default: slave.assignment = job; /* removeJob already set choosesOwnAssignment = 0 */ break; } V.JobIDMap[restingAssignment].delete(slave.ID); V.JobIDMap[slave.assignment].add(slave.ID); if (!assignmentVisible(slave) && Array.isArray(V.personalAttention)) { if (V.personalAttention.deleteWith(s => s.ID === slave.ID).length > 0) { if (V.personalAttention.length === 0) { if (V.PC.career === "escort") { V.personalAttention = "whoring"; } else if (V.PC.career === "servant") { V.personalAttention = "upkeep"; } else { V.personalAttention = "business"; } r += `${slave.slaveName} no longer has your personal attention; you plan to focus on ${V.personalAttention}.`; } else { r += `${slave.slaveName} no longer has your personal attention.`; } } } // maybe recreate it each time? V.JobIDArray = makeJobIdMap(); if (idx >= 0) { V.slaves[idx] = slave; } return r; }; /** * @param {App.Entity.SlaveState} slave * @param {FC.Assignment} assignmentStr */ globalThis.assignJobSafely = function(slave, assignmentStr) { if (V.assignmentRecords[slave.ID] === Job.CHOICE) { assignJob(slave, Job.REST); slave.choosesOwnAssignment = 1; } else if ([Job.AGENT, Job.AGENTPARTNER].includes(V.assignmentRecords[slave.ID])) { // it is NEVER safe to auto-reassign agents (we don't know which arcology they came from) assignJob(slave, Job.REST); } else if (!App.Utils.jobForAssignment(assignmentStr).canEmploy(slave).length) { // If nothing complains about job requirements not being met assignJob(slave, assignmentStr); } else { assignJob(slave, Job.REST); } // Whether they manage to go back or they default to rest, we don't need their record: if (V.assignmentRecords[slave.ID]) { delete V.assignmentRecords[slave.ID]; } }; /** * @param {App.Entity.SlaveState} slave * @param {FC.Assignment} assignment * @param {boolean} [saveRecord=false] * @returns {string} */ globalThis.removeJob = function(slave, assignment, saveRecord = false) { if (!slave) { // it is well-formed, but does nothing, to remove an assignment from nobody. // this lets us call <<run removeJob(_S.HeadGirl, Job.HEADGIRL)>> and similar, // without first checking to see whether a slave is really assigned to _S.HeadGirl or not. return ''; } let r = ""; if (V.assignmentRecords[slave.ID] && (saveRecord === false)) { delete V.assignmentRecords[slave.ID]; } const idx = V.slaveIndices[slave.ID]; if (assignment === Job.PIT) { if (V.pit) { V.pit.fighterIDs.delete(slave.ID); V.JobIDMap[Job.PIT].delete(slave.ID); } else { return; // TODO: should this return or just continue? } } else if (assignment === Job.LURCHER) { if (V.LurcherID === slave.ID) { V.LurcherID = 0; } V.JobIDMap[Job.LURCHER].delete(slave.ID); } else { if (V.JobIDMap.hasOwnProperty(assignment)) { V.JobIDMap[assignment].delete(slave.ID); } else { V.JobIDMap[slave.assignment].delete(slave.ID); } if (slave.ID === V.HeadGirlID) { V.HeadGirlID = 0; } else if (slave.ID === V.RecruiterID) { V.RecruiterID = 0; V.recruiterIOUs = 0; } else if (slave.ID === V.BodyguardID) { V.BodyguardID = 0; } else if (slave.ID === V.MadamID) { V.MadamID = 0; } else if (slave.ID === V.djID) { V.djID = 0; } else if (slave.ID === V.MilkmaidID) { V.MilkmaidID = 0; } else if (slave.ID === V.FarmerID) { V.FarmerID = 0; } else if (slave.ID === V.SchoolteacherID) { V.SchoolteacherID = 0; } else if (V.AttendantID === slave.ID) { V.AttendantID = 0; } else if (slave.ID === V.MatronID) { V.MatronID = 0; } else if (slave.ID === V.NurseID) { V.NurseID = 0; } else if (slave.ID === V.StewardessID) { V.StewardessID = 0; } else if (slave.ID === V.WardenessID) { V.WardenessID = 0; } else if (slave.ID === V.ConcubineID) { V.ConcubineID = 0; } else if (slave.ID === V.StudID) { V.StudID = 0; } /* use .toLowerCase() to get rid of a few dupe conditions. */ switch (assignment.toLowerCase()) { case Job.ARCADE.toLowerCase(): case "arcade": slave.assignment = Job.GLORYHOLE; break; case Job.BROTHEL.toLowerCase(): case "brothel": slave.assignment = Job.WHORE; break; case Job.CELLBLOCK.toLowerCase(): case "cellblock": slave.assignment = Job.REST; if (slave.inflation > 0) { deflate(slave); } break; case Job.CLINIC.toLowerCase(): case "clinic": slave.assignment = Job.REST; break; case Job.CLUB.toLowerCase(): case "club": slave.assignment = Job.PUBLIC; break; case Job.DAIRY.toLowerCase(): case "dairy": slave.assignment = Job.MILKED; if (V.dairyRestraintsSetting > 1) { slave.health.tired = 100; } if (V.dairyFeedersSetting > 0) { slave.diet = "healthy"; } if (V.dairyHormonesSetting > 0) { slave.hormones = 0; } break; case Job.FARMYARD.toLowerCase(): case "farmyard": slave.assignment = Job.REST; break; case Job.SCHOOL.toLowerCase(): case "schoolroom": slave.assignment = Job.REST; break; case Job.SPA.toLowerCase(): case "spa": slave.assignment = Job.REST; break; case Job.QUARTER.toLowerCase(): case "servants' quarters": case "servantsquarters": slave.assignment = Job.HOUSE; break; case Job.MASTERSUITE.toLowerCase(): case "master suite": case "mastersuite": slave.assignment = Job.FUCKTOY; break; case "live with your head girl": case "head girl suite": case "hgsuite": slave.assignment = Job.REST; break; case Job.NURSERY: case "nursery": slave.assignment = Job.REST; break; case "be your head girl": let attentionCheck = 1; slave.assignment = Job.REST; const HGSlave = V.slaves.find(s => s.assignment === Job.HEADGIRLSUITE); if (HGSlave) { removeJob(HGSlave, Job.HEADGIRLSUITE); if (V.HGSuiteEquality === 1 && HGSlave.devotion > 50) { assignJob(HGSlave, Job.HEADGIRL); V.HeadGirlID = HGSlave.ID; HGSlave.diet = "healthy"; attentionCheck = 0; } } if (V.personalAttention === "HG" && attentionCheck === 1) { if (V.PC.career === "escort") { V.personalAttention = "whoring"; } else if (V.PC.career === "servant") { V.personalAttention = "upkeep"; } else { V.personalAttention = "business"; } r += `You no longer have a slave assigned to be your Head Girl, so you turn your personal attention to focus on ${V.personalAttention}.`; } V.HGTimeInGrade = 0; break; case Job.AGENT: case Job.AGENTPARTNER: if (slave.assignment === Job.AGENT) { const arc = V.arcologies.find((a) => a.leaderID === slave.ID); if (arc) { arc.leaderID = 0; arc.government = "your trustees"; } } slave.assignment = Job.REST; if (slave.relationshipTarget > 0) { /* following code assumes there can be at most one companion */ const lover = V.slaves.find(s => haveRelationshipP(s, slave) && s.assignment === Job.AGENTPARTNER); if (lover) { removeJob(lover, Job.AGENTPARTNER, saveRecord); } } break; default: slave.assignment = Job.REST; break; } V.JobIDMap[slave.assignment].add(slave.ID); if (slave.rules.living === LivingRule.LUXURIOUS && !assignmentVisible(slave)) { slave.rules.living = LivingRule.NORMAL; } slave.choosesOwnAssignment = 0; slave.sentence = 0; slave.subTarget = 0; } // reset it each time? V.JobIDArray = makeJobIdMap(); if (idx >= 0) { V.slaves[idx] = slave; } return r; }; /** * Indicate whether a slave's current assignment is shown in Main * Often used as a proxy for "penthouse slave" * @param {App.Entity.SlaveState} slave * @returns {boolean} */ globalThis.assignmentVisible = function(slave) { switch (slave.assignment) { /* normal out-of-penthouse jobs */ case Job.ARCADE: case Job.BROTHEL: case Job.CELLBLOCK: case Job.CLINIC: case Job.CLUB: case Job.DAIRY: case Job.FARMYARD: case Job.HEADGIRLSUITE: case Job.MASTERSUITE: case Job.SCHOOL: case Job.QUARTER: case Job.SPA: case Job.NURSERY: return false; /* outside leadership jobs */ case Job.ATTENDANT: case Job.MATRON: case Job.DJ: case Job.MADAM: case Job.MILKMAID: case Job.FARMER: case Job.NURSE: case Job.TEACHER: case Job.STEWARD: case Job.WARDEN: case Job.CONCUBINE: return false; /* agents are not in the arcology at all */ case Job.AGENT: case Job.AGENTPARTNER: return false; /* transition state */ case Job.CHOICE: return true; // show } /* all other jobs are shown in penthouse */ return true; }; /** * @returns {Record<FC.Assignment, Set<number>>} dictionary assignment -> slave IDs */ globalThis.makeJobIdMap = function() { /** @type {Object.<FC.Assignment, Set<number>>} */ const res = {}; for (const jn of Object.values(Job)) { res[jn] = new Set(); } for (const slave of V.slaves) { res[slave.assignment].add(slave.ID); } // special cases if (V.pit) { res[Job.PIT] = new Set(V.pit.fighterIDs); } res[Job.LURCHER].add(V.LurcherID); return res; }; /** * Generates string with links for changing slave assignment */ App.UI.jobLinks = function() { "use strict"; const facilitiesOrder = [ /* sorted by improvement before work, within improvement in order of progress, within work alphabetical for facilities*/ App.Entity.facilities.penthouse, App.Entity.facilities.cellblock, App.Entity.facilities.nursery, App.Entity.facilities.schoolroom, App.Entity.facilities.clinic, App.Entity.facilities.spa, App.Entity.facilities.arcade, App.Entity.facilities.brothel, App.Entity.facilities.club, App.Entity.facilities.dairy, App.Entity.facilities.farmyard, App.Entity.facilities.masterSuite, App.Entity.facilities.servantsQuarters ]; return { assignmentsFragment: assignmentsFragment, transfersFragment: transfersFragment }; /** * Generates assignment links * @param {number} ID * @param {string} passage * @param {assignmentCallback} [callback] * @returns {DocumentFragment} */ function assignmentsFragment(ID, passage, callback) { let penthouseJobs = App.Entity.facilities.penthouse.assignmentLinkElements(ID, undefined, passage, callback); const slave = slaveStateById(ID); const sp = getPronouns(slave); if (slave.fuckdoll === 0) { const assignment = Job.CHOICE; if (slave.assignment !== assignment) { penthouseJobs.push(App.UI.DOM.assignmentLink(slave, assignment, passage, callback, `Let ${sp.object} choose`)); } } else { penthouseJobs.push(App.UI.DOM.disabledLink(`Let ${sp.object} choose`, ["Fuckdolls can't choose their job"])); } let res = document.createDocumentFragment(); // there is always at least one job res.appendChild(penthouseJobs[0]); for (let i = 1; i < penthouseJobs.length; ++i) { res.appendChild(document.createTextNode(" | ")); res.appendChild(penthouseJobs[i]); } return res; } /** * Generates transfer links * @param {number} ID * @param {assignmentCallback} [callback] * @returns {DocumentFragment} */ function transfersFragment(ID, callback) { /** @type {HTMLElement[]} */ const transfers = []; const slave = slaveStateById(ID); for (const f of facilitiesOrder) { if (!f.established || f.jobs.length === 0) { continue; } const rejects = f.canHostSlave(slave); if (rejects.length === 0) { transfers.push(f.transferLinkElement(ID, undefined, passage(), callback)); } else { transfers.push(App.UI.DOM.disabledLink(f.genericName, rejects)); } } let res = document.createDocumentFragment(); // there is always at least one job res.appendChild(transfers[0]); for (let i = 1; i < transfers.length; ++i) { res.appendChild(document.createTextNode(" | ")); res.appendChild(transfers[i]); } return res; } }(); App.activeArcology = function() { return V.arcologies[V.activeArcologyIdx]; }; App.currentAgent = function(arcology) { return getSlave(V.arcologies[arcology].leaderID); }; /** * Remove all workers from the facility changing their assignments * @param {App.Entity.Facilities.Facility} facility * @param {FC.Assignment} [managerAssignment="rest"] new assignment for the facility manager * @param {FC.Assignment} [workerAssignment="rest"] new assignment for the facility workers */ App.Utils.moveFacilityWorkers = function(facility, managerAssignment = Job.REST, workerAssignment = Job.REST) { if (facility.manager && facility.manager.currentEmployee) { assignJob(facility.manager.currentEmployee, managerAssignment); } for (const w of facility.employees()) { assignJob(w, workerAssignment); } }; App.Utils.jobForAssignment = function() { const map = new Map(); function fillMap() { /** * @param {Map} m * @param {App.Entity.Facilities.Facility} f */ function addFacility(m, f) { if (f.manager) { m.set(f.desc.manager.assignment, f.manager); } for (const j of f.jobsNames) { m.set(f.desc.jobs[j].assignment, f.job(j)); } } for (const f in App.Entity.facilities) { if (f.length > 0) { addFacility(map, App.Entity.facilities[f]); } } } /** * @param {FC.Assignment} assignment * @returns {App.Entity.Facilities.Job} */ function getJob(assignment) { if (map.size === 0) { fillMap(); } const res = map.get(assignment); if (!res) { throw Error(`Can't find job object for assignment '${assignment}'`); } return res; } return getJob; }(); /** Assign a slave, play the appropriate assignment scene if necessary, and redirect to a destination passage. * @param {App.Entity.SlaveState} slave * @param {FC.Assignment} assignTo * @param {string} passage */ globalThis.assignmentTransition = function(slave, assignTo, passage) { /** @param {string} scene */ function detourThroughScene(scene) { V.returnTo = passage; Engine.play(scene); } V.AS = slave.ID; assignJob(slave, assignTo); if (V.showAssignToScenes === 1 && slave.fetish !== "mindbroken") { if (assignTo === Job.DAIRY && V.dairyRestraintsSetting >= 2 && ((V.dairyStimulatorsSetting >= 2) || (V.dairyFeedersSetting >= 2) || (V.dairyPregSetting >= 2))) { detourThroughScene("Industrial Dairy Assignment Scene"); } else if (assignTo === Job.DAIRY && (V.dairyRestraintsSetting === 0 && slave.devotion > 0)) { detourThroughScene("Free Range Dairy Assignment Scene"); } else if (assignTo === Job.BROTHEL) { detourThroughScene("Brothel Assignment Scene"); } else { Engine.play(passage); } } else { Engine.play(passage); } }; /** * Creates a link that will remove all slaves from a facility, including manager. * @param {string} facilityName * @param {FC.Assignment} [managerAssignment] * @param {FC.Assignment} [workerAssignment] * @returns {DocumentFragment} */ globalThis.removeFacilityWorkers = function(facilityName, managerAssignment, workerAssignment) { const facility = App.Entity.facilities[facilityName]; const count = facility.totalEmployeesCount; const frag = new DocumentFragment(); if (count > 0) { frag.append( App.UI.DOM.link( "Remove all slaves", () => { App.Utils.moveFacilityWorkers(facility, managerAssignment, workerAssignment); penthouseCensus(); }, [], passage(), ) ); if ((count + V.dormitoryPopulation) > V.dormitory) { App.UI.DOM.appendNewElement("span", frag, ` Dormitory capacity will be exceeded.`, "red"); } } return frag; };
MonsterMate/fc
src/js/assignJS.js
JavaScript
mit
27,211
globalThis.allBirths = function() { const el = new DocumentFragment(); for (const slave of V.slaves) { if (slave.labor === 1) { el.append(birth(slave)); el.append(sectionBreak()); } } V.birthee = 0; V.birthIDs = []; return el; function sectionBreak() { const hr = document.createElement("hr"); hr.style.margin = "0"; return hr; } }; /** * Describes birth for a single slave, and can present options for the player to send the babies to a particular place * @param {App.Entity.SlaveState} slave */ globalThis.birth = function(slave, {birthStorm = false, cSection = false} = {}) { const el = document.createElement("p"); el.style.overflow = "hidden"; // Keep image from floating into the next slave. let p; let humiliation = 0; let suddenBirth = 1; let slaveDead = 0; let birthDamage = 0; const newMother = (slave.counter.laborCount === 0 && slave.counter.birthsTotal === 0); const beforeSize = WombGetVolume(slave); let diffSize; let numStillborn = 0; let babiesBeingBorn; let numBeingBorn; let compoundCondition; const oldDevotion = slave.devotion; const babies = (slave.pregType > 1) ? `babies` : `baby`; const children = (slave.pregType > 1) ? `children` : `child`; const childrenAre = (slave.pregType > 1) ? `children are` : `child is`; const societalElite = V.arcologies[0].FSNeoImperialistLaw2 === 1 ? "Barons" : "Societal Elite"; const dispositionId = _.uniqueId('babyDisposition-'); const { He, His, he, his, him, himself, wife, girl } = getPronouns(slave); if (V.seeImages && V.seeReportImages) { App.UI.DOM.appendNewElement("div", el, App.Art.SlaveArtElement(slave, 2), ["imageRef", "medImg"]); } el.append(titleText()); suddenBirthCheck(); el.append(preBirthScene()); el.append(calcBirthDamage()); if (!slaveDead) { birthCalc(); el.append(postBirthScene()); el.append(birthMainScene()); if (!slaveDead) { el.append(postBirthReaction()); } if (!(slave.assignment === Job.DAIRY && V.dairyPregSetting > 0)) { // Contract pregnancies have already been spoken for. el.append(destinationForBabies()); } if (numStillborn) { el.append(deadBabiesResponse(numStillborn)); } if (!slaveDead) { el.append(birthPostpartum()); slave.counter.laborCount++; } el.append(birthCritical()); if (!slaveDead && cSection && slave.broodmother === 0 && V.bellyImplants === 1) { el.append(implantImplant()); } } if (slaveDead) { removeSlave(slave); if (V.nextLink === "Slave Interact") { V.nextButton = "Back to Main"; V.nextLink = "Main"; App.Utils.updateUserButton(); } } else { if (cSection) { App.Medicine.Modification.addScar(slave, "belly", "c-section"); } slave.labor = 0; } return el; function titleText() { const title = document.createElement("div"); if (burstCheck(slave)) { App.UI.DOM.appendNewElement("span", title, `Alert! `, ["red", "bold"]); title.append(`Burst report: `); } else { title.append(`Birth report: `); } App.UI.DOM.appendNewElement("span", title, SlaveFullName(slave), "coral"); return title; } /** * early birth calcs */ function suddenBirthCheck() { if (isInduced(slave)) { suddenBirth += 20; } if (!canMove(slave)) { suddenBirth += 10; } else if (!canWalk(slave)) { if (slave.rules.mobility === "permissive") { suddenBirth += 3; } else { suddenBirth += 5; } } if (slave.fetish === "mindbroken") { suddenBirth += 18; } if (slave.fetish === "humiliation") { suddenBirth += 1 + slave.fetishStrength / 25; } if (slave.weight > 190) { suddenBirth += 10; } else if (slave.weight > 160) { suddenBirth += 4; } else if (slave.weight > 130) { suddenBirth += 2; } else if (slave.weight > 95) { suddenBirth += 1; } if (slave.muscles < -95) { suddenBirth += 20; } else if (slave.muscles < -30) { suddenBirth += 4; } else if (slave.muscles < -5) { suddenBirth += 1; } if (slave.pregAdaptation >= 1000) { suddenBirth += 20; // baby's ready, giving birth right now } else if (slave.pregAdaptation >= 500) { suddenBirth += 3; } else if (slave.pregAdaptation >= 100) { suddenBirth += 1; } if (slave.health.condition < 0) { suddenBirth += 2; } if (slave.heels === 1) { suddenBirth += 3; } if (slave.boobs > 40000) { suddenBirth += 3; } else if (slave.boobs > 20000) { suddenBirth += 1; } if (slave.butt > 6) { suddenBirth += 1; } if (slave.dick >= 6) { suddenBirth += 1; } if (slave.balls >= 6) { suddenBirth += 1; } if (slave.shoes === "extreme heels") { suddenBirth += 2; } if (slave.geneticQuirks.uterineHypersensitivity === 2) { suddenBirth += 1 * slave.counter.birthsTotal; } if (slave.mpreg !== 1) { if (slave.vagina > 2) { suddenBirth += 2; } if (slave.vaginalAccessory !== "none" || slave.chastityVagina === 1) { suddenBirth -= 20; } } suddenBirth -= Math.trunc((slave.intelligence + slave.intelligenceImplant) / 10); } function preBirthScene() { const el = new DocumentFragment(); const r = []; if (birthStorm) { r.push(`The remote surgery allows the removal of the pregnancy generator through conventional means, an injection to induce labor and the resulting birthing of the womb's contents.`); } else if (cSection) { r.push(`${slave.slaveName} is sedated so ${his} ${children} can be extracted.`); } else if (burstCheck(slave)) { r.push(`${slave.slaveName}'s straining womb gave out and burst, taking ${his} life.`); } else if (slave.fuckdoll === 0) { if (slave.broodmother === 0 || slave.broodmotherCountDown === 1) { if (slave.assignment !== Job.DAIRY) { if (V.universalRulesCSec === 1 || (slave.mpreg === 0 && slave.vagina < 0)) { } else { if (hasAnyLegs(slave)) { // legless slaves are always carried in time if ((random(1, 20) > suddenBirth) || (V.universalRulesBirthing === 1)) { // did she make it to her birthing area? r.push(`Feeling childbirth approaching,`); if (!canWalk(slave)) { r.push(`${slave.slaveName} is helped`); } else { r.push(`${slave.slaveName} makes ${his} way`); } r.push(`to ${his} prepared birthing area.`); } } else { // made it to birthing area r.push(`With childbirth approaching, ${slave.slaveName} is carried to ${his} prepared birthing area.`); } // close amp birth } // close always c-sec } else { if (V.dairyRestraintsSetting > 1 && slave.career === "a bioreactor") { r.push(`As ${slave.slaveName}'s water breaks, a mechanical basket is extended under ${his} laboring`); if (slave.mpreg === 1) { r.push(`ass.`); } else { r.push(`cunt.`); } } else if (V.dairyRestraintsSetting > 1) { if (slave.fetish === "mindbroken") { r.push(`As ${slave.slaveName}'s water breaks, a mechanical basket is extended under ${his} laboring`); if (slave.mpreg === 1) { r.push(`ass.`); } else { r.push(`cunt.`); } } else { r.push(`As ${slave.slaveName}'s water breaks, a mechanical basket is extended under ${his} laboring`); if (slave.mpreg === 1) { r.push(`ass.`); } else { r.push(`cunt.`); } r.push(`${He} struggles in ${his} bindings, attempting to break free in order to birth ${his} coming child, but ${his} efforts are pointless.`); if (slave.geneticQuirks.uterineHypersensitivity === 2) { r.push(`Soon ${he} is convulsing with powerful orgasms while giving birth, restrained, into the waiting holder.`); } else { r.push(`${He} is forced to give birth, restrained, into the waiting holder.`); } } } else { if (slave.fetish === "mindbroken") { r.push(`While getting milked, ${slave.slaveName}'s water breaks.`); } else if (slave.geneticQuirks.uterineHypersensitivity === 2) { r.push(`While getting milked, ${slave.slaveName}'s water breaks, a moment she anxiously awaited${(slave.counter.birthsTotal > 0) ? `, no matter how many times it's happened before` : ``}.`); } else { r.push(`While getting milked, ${slave.slaveName}'s water breaks,`); if (V.dairyPregSetting > 0) { r.push(`this is a regular occurrence to ${him} now so`); } else { r.push(`but`); } r.push(`${he} continues enjoying ${his} milking.`); } } } // close cow birth } else { if (!hasAnyLegs(slave)) { r.push(`With childbirth approaching, ${slave.slaveName} is carried to ${his} prepared birthing area.`); } } // close broodmother birth } else if (slave.fuckdoll !== 0) { if (V.universalRulesCSec === 1 || (slave.mpreg === 0 && slave.vagina < 0)) { cSection = true; r.push(`${slave.slaveName}'s suit's systems alert that it is ready to give birth; it is taken to the remote surgery to have its ${children} extracted and for it to be cleaned up.`); } else if (V.universalRulesBirthing === 1) { r.push(`${slave.slaveName}'s suit's systems alert that it is ready to give birth. It is taken to the remote surgery to have its ${children} extracted and for it to be cleaned up.`); } else if (birthDamage > 10) { cSection = true; r.push(`${slave.slaveName}'s suit's systems alert that it is ready to give birth. Since it fails to qualify as a birthing model, it is quickly taken to the remote surgery to have its ${children} extracted and to be cleaned up.`); } else { r.push(`${slave.slaveName}'s suit's systems alert you that it is ready to give birth. You carefully pose it as it labors on bringing its ${children} into the world and sit back to enjoy yourself as its`); if (slave.pregType > 1) { r.push(`first`); } r.push(`baby starts to crown. Once both it and yourself are finished, you send its offspring off and it to the autosurgery for cleaning.`); } r.push(`It barely comprehends what has happened, nor will it realize when another child is conceived in it.`); } // close Fuckdoll birth App.Events.addNode(el, r); return el; } function birthCalc() { slave.pregControl = "none"; if (slave.broodmother > 0) { babiesBeingBorn = WombBirth(slave, 37); // broodmothers - give birth for all 37+ week fetuses. } else if (slave.prematureBirth === 1) { babiesBeingBorn = WombBirth(slave, slave.pregData.minLiveBirth / 1.5); // around 22 weeks for human } else { babiesBeingBorn = WombBirth(slave, slave.pregData.minLiveBirth); // Normal human pregnancy - 34 week is minimal gestation time for live birth. } numBeingBorn = babiesBeingBorn.length; // just to improve speed and usability here. slave.counter.births += numBeingBorn; slave.counter.birthsTotal += numBeingBorn; V.birthsTotal += numBeingBorn; for (const baby of babiesBeingBorn) { if (baby.fatherID === -1) { V.PC.counter.slavesFathered++; } else if (baby.fatherID > 0) { const babyDaddy = findFather(baby.fatherID); if (babyDaddy) { const adjust = babyDaddy.counter.slavesFathered++; adjustFatherProperty(babyDaddy, "slavesFathered", adjust); } } } // Here support for partial birth cases but if slaves still NOT have broodmother implant. Right now remaining babies will be lost, need to add research option for selective births. It should control labor and stop it after ready to birth babies out. Should be Repopulation FS research before broodmothers (their implant obviously have it as a part of functional). */ if (slave.broodmother === 0 && slave.prematureBirth === 1 && V.surgeryUpgrade !== 1) { numStillborn = slave.womb.length; WombFlush(slave); } diffSize = beforeSize / (1 + WombGetVolume(slave)); // 1 used to avoid divide by zero error. } function birthMainScene() { const el = new DocumentFragment(); let r = []; /* -------- cow birth variant ---------------------------------------------------------------------*/ /* diffSize used for check result of partial birth size changes - if it = 2 then womb lost half of it's original size after partial birth, if it = 1 - no size lost. (We get this value as result of dividing of original womb size by after birth size) This descriptions can be expanded with more outcomes later. But it's not practical to check values above 5-10 - it become too affected by actual value of womb size. */ if (slave.assignment === Job.DAIRY && V.dairyPregSetting > 0) { r.push(`As a human cow, ${he}`); if (burstCheck(slave)) { r.push(App.UI.DOM.makeElement("span", `gave birth`, "orange")); r.push(App.UI.DOM.makeElement("span", `in the worst possible way`, "red")); slaveDead = 1; } else { r.push(App.UI.DOM.makeElement("span", `gave birth`, "orange")); if (slave.prematureBirth === 1) { r.push(App.UI.DOM.makeElement("span", `prematurely`, "red")); } if (diffSize < 1.15) { r.push(`but ${his} overfilled womb barely lost any size. ${His} body gave life`); } else if (diffSize < 1.3) { r.push(`but ${his} stomach barely shrank at all. ${His} body gave life`); } } if (numBeingBorn < 1) { r.push(`to nothing, as it was a stillbirth.`); // TODO: syntax wise this has problems. Will likely need to be reworked. } else if (numBeingBorn === 1) { r.push(`to a single calf.`); } else if (numBeingBorn >= 40) { r.push(`to a massive brood of ${numBeingBorn} calves.`); } else if (numBeingBorn >= 20) { r.push(`to a brood of ${numBeingBorn} calves.`); } else if (numBeingBorn >= 10) { r.push(`to a squirming pile of ${numBeingBorn} calves.`); } else { r.push(`to calf ${pregNumberName(numBeingBorn, 2)}.`); } if (numStillborn > 0 && numBeingBorn > 0) { r.push(`An additional ${numStillborn}`); if (numStillborn === 1) { r.push(`was`); } else { r.push(`were`); } r.push(`unfortunately stillborn.`); } } else { /* ---------- normal birth variant. -------------------------------------------------------------*/ const fathers = []; for (const baby of babiesBeingBorn) { if (baby.fatherID === 0) { fathers.push("an unknown father"); } else if (baby.fatherID === -1) { if (V.PC.dick !== 0) { fathers.push("your magnificent dick"); } else { fathers.push("your powerful sperm"); } } else if (baby.fatherID === -2) { fathers.push("your arcology's eager citizens"); } else if (baby.fatherID === -3) { fathers.push("your former Master's potent seed"); } else if (baby.fatherID === -4) { fathers.push("another arcology owner"); } else if (baby.fatherID === -5) { fathers.push("one of your clientele"); } else if (baby.fatherID === -6) { fathers.push(`the ${societalElite}`); } else if (baby.fatherID === -7) { fathers.push("your own design"); } else if (baby.fatherID === -8) { fathers.push("one of your animals"); } else if (baby.fatherID === -9) { fathers.push("a Futanari Sister"); } else { const babyDaddy = findFather(baby.fatherID); if (babyDaddy) { if (babyDaddy.ID === slave.ID) { fathers.push(`${his} own sperm`); } else if (babyDaddy.dick === 0) { fathers.push(`${babyDaddy.slaveName}'s potent seed`); } else { fathers.push(`${babyDaddy.slaveName}'s virile cock and balls`); } } else { fathers.push("an unknown father"); } } } const fathersReduced = removeDuplicates(fathers); if (burstCheck(slave)) { r.push(`${He}`); r.push(App.UI.DOM.makeElement("span", `gave birth`, "orange")); r.push(App.UI.DOM.makeElement("span", `in the worst possible way`, "red")); r.push(`to`); slaveDead = 1; } else if (cSection) { r.push(`${He} was given`); if (birthDamage > 5) { r.push(App.UI.DOM.makeElement("span", `a cesarean section`, "orange")); r.push(`due to health concerns.`); } else { r.push(App.UI.DOM.makeElement("span", `a cesarean section.`, "orange")); } App.Events.addNode(el, r, "p"); // New paragraph r = []; r.push(`From ${his} womb,`); } else { r.push(`${He}`); r.push(App.UI.DOM.makeElement("span", `gave birth`, "orange")); if (slave.prematureBirth === 1) { r.push(App.UI.DOM.makeElement("span", `prematurely`, "red")); } if (diffSize < 1.15) { r.push(`but ${his} stomach barely shrank at all. ${His} body gave life to`); } else if (diffSize < 1.3) { r.push(`but ${his} overfilled womb barely lost any size. ${His} body gave life to`); } else { r.push(`to`); } } if (numBeingBorn < 1) { r.push(`nothing, as it was a stillbirth.`); } else if (numBeingBorn === 1) { r.push(`a single baby,`); } else if (numBeingBorn >= 40) { r.push(`a massive brood of ${numBeingBorn} babies,`); } else if (numBeingBorn >= 20) { r.push(`a brood of ${numBeingBorn} babies,`); } else if (numBeingBorn >= 10) { r.push(`a squirming pile of ${numBeingBorn} babies,`); } else { r.push(`${pregNumberName(numBeingBorn, 2)},`); } if (numBeingBorn > 0) { r.push(`created by ${arrayToSentence(fathersReduced)}${(cSection) ? ', entered the world' : ''}.`); } if (numStillborn > 0 && numBeingBorn > 0) { r.push(`An additional ${numStillborn}`); if (numStillborn === 1) { r.push(`was`); } else { r.push(`were`); } r.push(`unfortunately stillborn.`); } if (cSection && slave.wombImplant === "restraint") { r.push(`The uterine support mesh built into ${his} womb was irreversibly damaged and had to be carefully extracted. Such an invasive surgery carried`); r.push(App.UI.DOM.makeElement("span", `major health complications.`, "red")); slave.wombImplant = "none"; healthDamage(slave, 30); } } App.Events.addNode(el, r, "p"); return el; } function calcBirthDamage() { /* I think all this reactions should be showed only if no c'section used too. Setting it up for just in case: */ p = document.createElement("p"); if (!cSection && slave.assignment !== Job.DAIRY) { // if not desired, this check can be easily removed or deactivated with condition set to true. let hasDamage; let r = []; if (newMother) { r.push([ `${His} inexperience`, App.UI.DOM.makeElement("span", `complicated ${his} first birth.`, "red") ]); compoundCondition = 1; birthDamage += 2; } if (slave.mpreg === 1) { if (slave.anus < 2) { r.push([ `${His} tight ass`, App.UI.DOM.makeElement("span", `hindered ${his} ${(numBeingBorn > 1) ? `babies` : `baby's`} birth.`, "red") ]); birthDamage += 3; } } else { if (slave.vagina < 2) { r.push([ `${His} tight vagina`, App.UI.DOM.makeElement("span", `hindered ${his} ${(numBeingBorn > 1) ? `babies` : `baby's`} birth.`, "red") ]); birthDamage += 3; } if (slave.vaginaLube === 0) { r.push([ `${His} dry vagina made pushing ${his} ${children} out`, App.UI.DOM.makeElement("span", `painful.`, "red") ]); birthDamage += 1; } } if (slave.hips < 0) { r.push([ `${His} narrow hips made birth`, App.UI.DOM.makeElement("span", `troublesome.`, "red") ]); birthDamage += (2 - slave.hips); } if (slave.weight < -95) { r.push([ `${His} very thin body`, App.UI.DOM.makeElement("span", `was nearly incapable of birthing ${his} ${children}.`, "red") ]); birthDamage += 7; compoundCondition = 1; } else if (slave.weight <= -30) { r.push([ `${His} thin body was`, App.UI.DOM.makeElement("span", `ill-suited to ${his} childbirth.`, "red") ]); birthDamage += 5; } if (slave.health.condition < -20) { r.push([ `${His} poor health made laboring`, App.UI.DOM.makeElement("span", `exhausting.`, "red") ]); compoundCondition = 1; birthDamage += (4 - (slave.health.condition / 10)); } if (slave.health.illness >= 3) { r.push([ `${His} ongoing illness`, App.UI.DOM.makeElement("span", `already sapped most of ${his} strength.`, "red") ]); birthDamage += slave.health.illness; compoundCondition = 1; } if (slave.physicalAge < 6) { r.push([ `${His} very young body was`, App.UI.DOM.makeElement("span", `not designed to be able pass a baby.`, "red") ]); birthDamage += 5; compoundCondition = 1; } else if (slave.physicalAge < 9) { r.push([ `${His} young body had`, App.UI.DOM.makeElement("span", `a lot of trouble`, "red"), `birthing ${his} ${babies}.` ]); birthDamage += 3; compoundCondition = 1; } else if (slave.physicalAge < 13) { r.push([ `${His} young body had`, App.UI.DOM.makeElement("span", `trouble birthing`, "red"), `birthing ${his} ${babies}.` ]); birthDamage += 1; compoundCondition = 1; } else if (slave.physicalAge >= 100) { r.push([ `${His} very old body was`, App.UI.DOM.makeElement("span", `not capable of passing a baby anymore.`, "red") ]); birthDamage += 5; compoundCondition = 1; } else if (slave.physicalAge >= 85) { r.push([ `${His} old body had`, App.UI.DOM.makeElement("span", `a lot of trouble`, "red"), `birthing ${his} ${babies}.` ]); birthDamage += 3; compoundCondition = 1; } else if (slave.physicalAge >= 70) { r.push([ `${His} old body had`, App.UI.DOM.makeElement("span", `trouble birthing`, "red"), `birthing ${his} ${babies}.` ]); birthDamage += 1; compoundCondition = 1; } if (slave.health.tired > 80) { r.push([ `${He} was thoroughly exhausted to begin with; ${he}`, App.UI.DOM.makeElement("span", `lacked the energy to push at all.`, "red") ]); birthDamage += 20; compoundCondition = 1; } else if (slave.health.tired > 50) { r.push([ `${He} was so tired, ${he}`, App.UI.DOM.makeElement("span", `lacked the energy to effectively push.`, "red") ]); birthDamage += 2; compoundCondition = 1; } if (slave.muscles < -95) { r.push([ `${He} tried and tried but ${his} frail body`, App.UI.DOM.makeElement("span", `could not push ${his} ${children} out.`, "red") ]); birthDamage += 30; compoundCondition = 1; } else if (slave.muscles < -30) { r.push([ `${His} very weak body`, App.UI.DOM.makeElement("span", `barely managed to push`, "red"), `out ${his} ${children}` ]); birthDamage += 4; compoundCondition = 1; } else if (slave.muscles < -5) { r.push([ `${His} weak body`, App.UI.DOM.makeElement("span", `struggled to push`, "red"), `out ${his} ${children}.` ]); birthDamage += 2; } if (slave.preg > slave.pregData.normalBirth * 1.25) { // better get her a c-sec r.push([ `${His} ${children} had extra time to grow`, App.UI.DOM.makeElement("span", `greatly complicating childbirth.`, "red") ]); if (slave.preg >= slave.pregData.normalBirth * 1.5) { if (slave.physicalAge < 6) { birthDamage += 50; } else if (slave.physicalAge < 9) { birthDamage += 30; } else if (slave.physicalAge < 13) { birthDamage += 20; } if (slave.hips < 0) { birthDamage += (20 - slave.hips); } } else if (slave.preg > slave.pregData.normalBirth * 1.25) { if (slave.physicalAge < 6) { birthDamage += 10; } else if (slave.physicalAge < 9) { birthDamage += 6; } else { birthDamage += 2; } if (slave.hips < 0) { birthDamage += (2 - slave.hips); } } compoundCondition = 1; } if (slave.wombImplant === "restraint") { r.push([ `${His} support implant`, App.UI.DOM.makeElement("span", `weakens ${his} contractions`, "red"), `and inhibits ${his} womb's ability to give birth.` ]); birthDamage += 2; } if (r.length > 0) { hasDamage = true; } for (const malus of r) { App.Events.addNode(p, malus, "div"); } // Bonuses r = []; if (slave.mpreg === 1) { if (slave.anus >= 2) { r.push([ `${His}`, App.UI.DOM.makeElement("span", `loose ass`, "green"), `made birthing ${his} ${children} easier.` ]); } birthDamage -= slave.anus; } else { if (slave.vagina >= 2) { r.push([ `${His}`, App.UI.DOM.makeElement("span", `loose vagina`, "green"), `made birthing ${his} ${children} easier.` ]); birthDamage -= slave.vagina; } if (slave.vaginaLube > 0) { r.push([ `${His}`, App.UI.DOM.makeElement("span", `moist vagina`, "green"), `hastened ${his} ${children}'s birth.` ]); birthDamage -= slave.vaginaLube; } } if (!newMother) { r.push([ `${He} has`, App.UI.DOM.makeElement("span", `given birth before,`, "green"), `so ${he} knows just what to do.` ]); birthDamage -= 3; } if (slave.hips > 0) { r.push([ `${His} `, App.UI.DOM.makeElement("span", `wide hips`, "green"), `greatly aided childbirth.` ]); birthDamage -= slave.hips; } if (slave.pregAdaptation >= 1000) { r.push([ `${His} body has`, App.UI.DOM.makeElement("span", `completely adapted to pregnancy;`, "green"), `when it is time to give birth, that baby is coming out fast.` ]); birthDamage -= 10; } else if (slave.pregAdaptation >= 500) { r.push([ `${His} body is`, App.UI.DOM.makeElement("span", `highly adapted to bearing life`, "green"), `and birth is no small part of that.` ]); birthDamage -= 3; } else if (slave.pregAdaptation >= 100) { r.push([ `${His} body has`, App.UI.DOM.makeElement("span", `become quite adept at bearing children,`, "green"), `birth included.` ]); birthDamage -= 1; } if (slave.curatives > 0) { r.push([ `${His} `, App.UI.DOM.makeElement("span", `curatives`, "green"), `helped protect ${him}.` ]); birthDamage -= 3; } if (App.Data.misc.nurseCareers.includes(slave.career) && slave.fetish !== "mindbroken" && slave.muscles >= -95) { r.push([ `Thanks to ${his}`, App.UI.DOM.makeElement("span", `previous career,`, "green"), `childbirth went smoothly.` ]); birthDamage = 0; } else if (slave.intelligenceImplant >= 15) { r.push([ `${He} was`, App.UI.DOM.makeElement("span", `taught how to handle birth`, "green"), `in class.` ]); birthDamage -= 2; } if (slave.geneticQuirks.uterineHypersensitivity === 2) { if (V.geneticMappingUpgrade >= 1) { r.push([ `${His} hypersensitive uterus made birth`, App.UI.DOM.makeElement("span", `a very pleasant experience,`, "green"), `distracting from the pain.` ]); } else { r.push([ `${He} oddly climaxed multiple times during birth,`, App.UI.DOM.makeElement("span", `keeping ${his} mind off the pain.`, "green") ]); } birthDamage -= 5; } if (hasDamage && r.length > 0) { App.UI.DOM.appendNewElement("div", p, `However:`); } for (const boost of r) { App.Events.addNode(p, boost, "div"); } } return p; } function postBirthScene() { const el = new DocumentFragment(); const r = []; if (birthStorm) { if (slave.broodmother === 2) { r.push(`${slave.slaveName}'s obscenely swollen belly begins to shudder and writhe moments after being injected with the drug as all ${his} waters break. ${He} spreads ${his}`); if (hasBothLegs(slave)) { r.push(`legs to either side of ${his} spasming bulk`); } else if (!hasAnyLegs(slave)) { r.push(`stumps`); } else { r.push(`leg and ${his} stump`); } r.push(`as wide as ${he} can with a loud moan. ${His} vaginal lips part as the first of ${his} brood is born, followed by another, and another. After hours of constant`); } else if (slave.broodmother === 1) { r.push(`${slave.slaveName}'s massive belly shudders and shrinks as all ${his} waters simultaneously break. ${He} spreads ${his}`); if (hasBothLegs(slave)) { r.push(`legs`); } else if (!hasAnyLegs(slave)) { r.push(`stumps`); } else { r.push(`leg and stump`); } r.push(`wide with a loud moan. ${His} vaginal lips part as the first of ${his} brood is born, followed not long after by another. After an hour of constant`); } else { r.push(`${slave.slaveName}'s massive belly shudders and shrinks as all ${his} waters simultaneously break. ${He} spreads ${his}`); if (hasBothLegs(slave)) { r.push(`legs`); } else if (!hasAnyLegs(slave)) { r.push(`stumps`); } else { r.push(`leg and stump`); } r.push(`wide with a loud moan. ${His} vaginal lips part as ${his} birthing begins. After an hour of intensive`); } if (slave.fetish === "mindbroken") { r.push(`birthing, ${he} shows little interest in the changes to ${his} body.`); } else if (slave.sexualFlaw === "breeder") { r.push(`birthing and the realization that you are taking away ${his} ideal body, ${his} perfect existence, ${his} mind`); r.push( App.UI.DOM.makeElement("span", `fundamentally breaks.`) ); slave.fetish = "mindbroken"; } else if (slave.fetish === "pregnancy" && S.Nurse) { r.push(`birthing and orgasming all the time, ${slave.slaveName}'s mind would have broken. However, ${S.Nurse.slaveName} had the foresight to sedate ${him} after witnessing ${his} constant orgasming. ${He} awakes to find ${his} belly deflated, no longer crammed full of life. ${He} is`); r.push( App.UI.DOM.makeElement("span", `disappointed`, "mediumorchid") ); (`that you would forbid ${him} from such a pleasure, but`); r.push( App.UI.DOM.makeElement("span", `understands`, "mediumaquamarine") ); r.push(`why it was done.`); slave.trust += 5; slave.devotion -= 5; } else if (slave.fetish === "pregnancy") { if (slave.broodmother === 2) { r.push(`birthing and orgasming each time, ${slave.slaveName}'s mind is`); r.push(App.UI.DOM.makeElement("span", `fundamentally broken.`, "red")); r.push(`Being under constant pleasure for so long has destroyed all but the part of ${him} that feels pleasure. With one final push the breeding device is expelled from ${his} womb as the last spark of what was ${his} mind is extinguished.`); slave.fetish = "mindbroken"; } else if (slave.broodmother === 1) { r.push(`birthing and orgasming each time, ${slave.slaveName} is reduced to a quivering, overstimulated pile. When ${he} returns to ${his} senses,`); r.push(App.UI.DOM.makeElement("span", `${he} can only express how much ${he} wants to go again.`, "hotpink")); slave.devotion += 4; } else { r.push(`birthing and orgasming all the time, ${slave.slaveName} is reduced to a quivering, overstimulated pile. When ${he} returns to ${his} senses,`); r.push(App.UI.DOM.makeElement("span", `${he} can only express how much ${he} wants to go again.`, "hotpink")); slave.devotion += 3; } } else if (slave.devotion <= 20) { r.push(`birthing,`); r.push(App.UI.DOM.makeElement("span", `${he} hates you for destroying ${his} body like this.`, "mediumorchid")); r.push(`${He} is`); r.push(App.UI.DOM.makeElement("span", `terrified of your power`, "gold")); r.push(`over ${his} body.`); slave.trust -= 40; slave.devotion -= 50; } else if (slave.devotion <= 50) { r.push(`birthing, ${he} is dully obedient. ${He} has been broken to slave life so thoroughly that even this is neither surprising nor affecting. ${He} is`); r.push(App.UI.DOM.makeElement("span", `terrified of your power`, "gold")); r.push(`over ${his} body.`); slave.trust -= 40; } else { r.push(`birthing, ${he} is`); r.push(App.UI.DOM.makeElement("span", `pleased by this stark development`, "hotpink")); r.push(`since ${he} is so attentive to your will. ${He} also expects ${he}'ll be able to fuck better now without a massive belly getting in the way.`); slave.devotion += 4; } if (slave.birthsTat > -1) { slave.birthsTat++; r.push(`The temporary tattoo of a child has been replaced with ${his} ${ordinalSuffix(slave.birthsTat)} permanent infant.`); cashX(forceNeg(V.modCost), "slaveMod", slave); } if (slave.broodmother === 2) { slave.preg = -3; if (slave.vagina < 6) { slave.vagina = 10; } healthDamage(slave, 80); } else { if (lastPregRule(slave, V.defaultRules)) { slave.preg = -1; } else { slave.preg = 0; } // I think, it's not logical to break her reproductive system out of repair, if she is only type 1 broodmother. In this case she have to birth only like 5-10 fully grown babies, others get progressively smaller. It's should be even smaller stress to body then for "normal" hyperpregnant with 15-20+ children - they have to birth them all at full size. if (slave.vagina < 6) { slave.vagina = 6; } healthDamage(slave, 30); } } else if (cSection) { if (slave.pregSource === -1) { if (slave.devotion <= 20 && slave.weekAcquired > 0) { r.push(`${He}`); r.push(App.UI.DOM.makeElement("span", `despises`, "mediumorchid")); r.push(`you for using ${his} body to bear your children.`); slave.devotion -= 10; } else if (slave.devotion > 50) { r.push(`${He}'s`); r.push(App.UI.DOM.makeElement("span", `so proud`, "hotpink")); r.push(`to have successfully carried children for you.`); slave.devotion += 3; } } if (slave.fetish === "pregnancy") { r.push(`${He}'s a little disappointed ${he} didn't get to give birth, but can't wait to get pregnant again.`); } else if (slave.devotion > 50) { r.push(`${He} is`); r.push(App.UI.DOM.makeElement("span", `pleased by this stark development,`, "hotpink")); r.push(`since ${he} is so attentive to your will. ${He} also expects ${he}'ll be able to fuck better now.`); slave.devotion += 4; } else if (slave.devotion > 20) { r.push(`${He} is broken enough to accept your control of ${his} pregnancies.`); } else if (slave.devotion >= -20) { r.push(`${He} would have preferred to give birth when ${he} was ready and is`); r.push(App.UI.DOM.makeElement("span", `sensibly fearful`, "gold")); r.push(`of your total power over ${his} body.`); slave.trust -= 5; } else { r.push(`${He} does not understand the realities of ${his} life as a slave at a core level, so ${he}'s`); r.push(App.UI.DOM.makeElement("span", `terrified and angry`, "mediumorchid")); r.push(`that you decided to cut short ${his} pregnancy. ${He} is`); r.push(App.UI.DOM.makeElement("span", `sensibly fearful`, "gold")); r.push(`of your total power over ${his} body.`); slave.trust -= 5; slave.devotion -= 5; } } else if (slave.fuckdoll === 0) { if (slave.broodmother === 0 || slave.broodmotherCountDown === 1) { if (slave.assignment !== Job.DAIRY) { if (V.universalRulesCSec === 1 || (slave.mpreg === 0 && slave.vagina < 0)) { r.push(birthDescription()); } else { if (hasAnyLegs(slave)) { // legless slaves are always carried in time if ((random(1, 20) > suddenBirth) || (V.universalRulesBirthing === 1)) { // did she make it to her birthing area? r.push(birthDescription()); } else { // did not make it to birthing area if (((birthDamage > 15 && random(1, 100) > 50) || (birthDamage > 20)) && (slave.assignment !== "be the Nurse" && slave.assignment !== "get treatment in the clinic")) { r.push(deadlyBirthScene()); } else { r.push(suddenBirthScene()); } // closes deadly birth } // closes reg birth } else { // made it to birthing area r.push(ampBirth()); } // close amp birth } // close always c-sec } else { if (V.dairyRestraintsSetting > 1 && slave.career === "a bioreactor") { r.push(`Once the ${childrenAre} secure, the basket retracts allowing access to ${his}`); if (slave.mpreg === 1) { r.push(`rear.`); } else { r.push(`vagina.`); } if (V.dairyPregSetting > 0) { r.push(`The impregnation tube is promptly reinserted, bloating ${his} empty womb with fresh cum, where it will remain until ${he} is pregnant once more.`); } r.push(`All these events are meaningless to ${him}, as ${his} consciousness has long since been snuffed out.`); } else if (V.dairyRestraintsSetting > 1) { if (slave.fetish === "mindbroken") { r.push(`Once the ${childrenAre} secure, the basket retracts allowing access to ${his}`); if (slave.mpreg === 1) { r.push(`rear.`); } else { r.push(`vagina.`); } if (V.dairyPregSetting > 0) { r.push(`The impregnation tube is promptly reinserted, bloating ${his} empty womb with fresh cum, where it will remain until ${he} is pregnant once more.`); } r.push(`${He} doesn't care about any of this, as the only thoughts left in ${his} empty mind revolve around the sensations in ${his} crotch and breasts.`); } else { r.push(`Once the ${childrenAre} secure, the basket retracts allowing access to ${his} vagina.`); if (V.dairyPregSetting > 0) { r.push(`The impregnation tube is promptly reinserted, bloating ${his} empty womb with fresh cum, where it will remain until ${he} is pregnant once more. ${slave.slaveName} moans, partially with pleasure and partially with defeat, under the growing pressure within ${his} body. Tears stream down ${his} face as`); if (slave.counter.births > 0) { r.push(`${he} is forcibly impregnated once more.`); } else { r.push(`${he} attempts to shift in ${his} restraints to peek around ${his} swollen breasts, but ${he} is too well secured. ${He}'ll realize what is happening when ${his} belly grows large enough to brush against ${his} udders as the milker sucks from them${(slave.dick > 0) ? ` or ${his} dick begins rubbing its underside` : ``}.`); } } r.push(`${His} mind slips slightly more as ${he} focuses on ${his} fate as nothing more than an animal destined to be milked and bear offspring until ${his} body gives out.`); slave.trust -= 10; slave.devotion -= 10; } } else { if (slave.fetish === "mindbroken") { r.push(`${He} shows little interest and continues kneading ${his} breasts. Instinctively ${he} begins to push out ${his} ${babies}. ${He} pays no heed to ${his} ${children} being removed from the milking stall, instead focusing entirely on draining ${his} breasts.`); } else if (slave.geneticQuirks.uterineHypersensitivity === 2) { r.push(`${He} begins to push out ${his} ${babies}, orgasming throughout the whole process. By the time ${he} regains ${his} senses ${his} ${children} have already been removed from the milking stall.`); } else { r.push(`${He} begins to push out ${his} ${babies}. ${He} catches`); if (canSee(slave)) { r.push(`a glimpse`); } else if (canHear(slave)) { r.push(`the sound`); } else { r.push(`the feeling`); } r.push(`of ${his} ${children} being removed from the milking stall before returning ${his} focus to draining ${his} breasts.`); } } } // close cow birth } else { if (!hasAnyLegs(slave)) { r.push(ampBirth()); } else if (slave.broodmother === 1) { r.push(broodmotherBirth()); } else { r.push(hyperBroodmotherBirth()); } } // close broodmother birth } App.Events.addNode(el, r); return el; } function postBirthReaction() { const el = new DocumentFragment(); let r = []; /* ---- Postbirth reactions, body -------------------------------------------------------------------------------------------*/ if (!cSection) { // all this block only if no c'section used. r = []; if (slave.broodmother > 0 || slave.womb.length > 0) { /* Now this block shown only for broodmothers or partial birth. They birth only ready children, so numBeingBorn is effective to see how many birthed this time.*/ if (diffSize > 1.5 && numBeingBorn >= 80) { // only show if belly lost at least 1/4 of original size. r.push(`After an entire day of labor and birth, ${his} belly sags heavily.`); } else if (diffSize > 1.5 && numBeingBorn >= 40) { r.push(`After half a day of labor and birth, ${his} belly sags softly.`); } else if (diffSize > 1.5 && numBeingBorn >= 20) { r.push(`After several hours of labor and birth, ${his} belly sags softly.`); } else if (diffSize > 1.5 && numBeingBorn >= 10) { r.push(`After few hours of labor and birth, ${his} belly sags softly.`); } else if (diffSize > 1.5) { r.push(`After labor and birth, ${his} belly sags softly.`); } } else { // this was intended for normal birth to draw attention to how long it takes to pass that many children as well as how deflated she'll be after the fact. if (slave.pregType >= 80) { r.push(`After an entire day of labor and birth, ${his} belly sags heavily.`); } else if (slave.pregType >= 40) { r.push(`After half a day of labor and birth, ${his} belly sags emptily.`); } else if (slave.pregType >= 20) { r.push(`After several hours of labor and birth, ${his} belly sags softly.`); } } App.Events.addNode(el, r, "div"); if ( (slave.mpreg === 0 && slave.vagina === 0) || (slave.mpreg === 1 && slave.anus === 0) ) { r = []; r.push(`Since ${he} was a virgin, giving birth was a`); r.push(App.UI.DOM.makeElement("span", `terribly painful`, "red")); r.push(`experience.`); if (slave.fetish !== "mindbroken") { if (slave.fetish === "masochist") { if (slave.fetishKnown === 0) { r.push(`${He} seems to have orgasmed several times during the experience and appears to`); r.push(App.UI.DOM.makeElement("span", `really like pain.`, "lightcoral")); slave.fetishKnown = 1; } else { r.push(`However, due to ${his} masochistic streak, ${he}`); r.push(App.UI.DOM.makeElement("span", `greatly enjoyed`, "hotpink")); r.push(`said experience.`); } slave.devotion += 2; } else if (slave.devotion > 70) { r.push(`Being allowed to give birth in such a state`); r.push(App.UI.DOM.makeElement("span", `tests ${his} devotion`, "mediumorchid")); r.push(`and`); r.push(App.UI.DOM.makeElement("span", `devastates ${his} trust`, "gold")); r.push(`in you.`); slave.devotion -= 10; slave.trust -= 25; } else { r.push(`${He}`); r.push(App.UI.DOM.makeElement("span", `despises`, "mediumorchid")); r.push(`you for taking ${his} virginity in such a`); r.push(App.UI.DOM.makeElement("span", `horrifying`, "gold")); r.push(`way.`); slave.devotion -= 25; slave.trust -= 25; } } healthDamage(slave, 10); App.Events.addNode(el, r, "div"); } if (slave.hips < -1) { r = []; r.push(`${He} had exceedingly narrow hips, completely unsuitable for childbirth. As ${he} struggled on ${his}`); if (numBeingBorn > 1) { r.push(`first`); } r.push(`child, ${his} pelvic bone strained under the pressure until it could no longer hold together and`); r.push(App.UI.DOM.makeElement("span", `agonizingly snapped.`, "red")); if (slave.fetish !== "mindbroken") { if (slave.fetish === "masochist") { if (slave.fetishKnown === 0) { r.push(`What would have made most girls blackout from pain sent ${him} into the lewdest orgasm you've seen today. ${He}`); r.push(App.UI.DOM.makeElement("span", `must get off to pain.`, "lightcoral")); slave.fetishKnown = 1; } else { r.push(`${He} claims to have never climaxed so hard and`); r.push(App.UI.DOM.makeElement("span", `wishes ${his} hips could have stayed that narrow for next time.`, "hotpink")); } slave.devotion += 5; } else if (slave.devotion > 70) { r.push(`When ${he} finally comes to after blacking out, ${his} pelvis has already been patched up. ${He} is just glad that ${he} managed to finish giving birth despite the hindrance.`); } else { r.push(`When ${he} finally comes to after blacking out, ${his} pelvis has already been patched up. ${He}`); r.push(App.UI.DOM.makeElement("span", `loathes you`, "mediumorchid")); r.push(`for forcing ${his} body to undergo such a painful experience and`); r.push(App.UI.DOM.makeElement("span", `fears`, "gold")); r.push(`what horror you have planned next.`); slave.devotion -= 25; slave.trust -= 25; } } else { r.push(`It only hurt for an instant and a second later was promptly forgotten. To ${him}, ${his} hips were always this wide.`); } r.push(`${His} pelvis has been forced into a`); r.push(App.UI.DOM.makeElement("span", `more feminine`, "lime")); r.push(`shape.`); if (slave.hipsImplant > 0) { r.push(`This has also undone any surgical narrowing ${he} has undergone.`); } healthDamage(slave, 20); slave.hips = 0; slave.hipsImplant = 0; App.Events.addNode(el, r, "div"); } r = []; if (birthStorm) { r.push( App.UI.DOM.makeElement("span", `The ordeal of constant birthing has had a massive effect on ${his} health as well as completely destroying ${his} vagina.`, "red") ); } else if (slave.mpreg === 1) { if (slave.anus < 0) { // you somehow got a pregnant slave with no vagina catch r.push(`Childbirth has`); r.push(App.UI.DOM.makeElement("span", `has torn ${him} a gaping anus.`, "lime")); } else if (slave.anus === 0) { // please stop selling me pregnant virgins, neighbor gender fundamentalist arcology r.push(`Childbirth has`); r.push(App.UI.DOM.makeElement("span", `ruined ${his} virgin ass.`, "lime")); } else if (slave.anus === 1) { r.push(`Childbirth has`); r.push(App.UI.DOM.makeElement("span", `greatly stretched out ${his} ass.`, "lime")); } else if (slave.anus === 2) { r.push(`Childbirth has`); r.push(App.UI.DOM.makeElement("span", `stretched out ${his} ass.`, "lime")); } else if (slave.anus === 3) { r.push(`${His} ass was loose enough to not be stretched by childbirth.`); } else if (slave.anus < 6) { r.push(`Childbirth stood no chance of stretching ${his} gaping ass.`); } else { r.push(`${His} child could barely stretch ${his} cavernous ass.`); } } else { if (slave.vagina < 0) { // you somehow got a pregnant slave with no vagina catch r.push(`Childbirth has`); r.push(App.UI.DOM.makeElement("span", `has torn ${him} a gaping vagina.`, "lime")); } else if (slave.vagina === 0) { // please stop selling me pregnant virgins, neighbor gender fundamentalist arcology (or maybe it's just surgery?) r.push(`Childbirth has`); r.push(App.UI.DOM.makeElement("span", `ruined ${his} virgin vagina.`, "lime")); } else if (slave.vagina === 1) { r.push(`Childbirth has`); r.push(App.UI.DOM.makeElement("span", `greatly stretched out ${his} vagina.`, "lime")); } else if (slave.vagina === 2) { r.push(`Childbirth has`); r.push(App.UI.DOM.makeElement("span", `stretched out ${his} vagina.`, "lime")); } else if (slave.vagina === 3) { r.push(`${His} vagina was loose enough to not be stretched by childbirth.`); } else if (slave.vagina < 6) { r.push(`Childbirth stood no chance of stretching ${his} gaping vagina.`); } else { r.push(`${His} child could barely stretch ${his} cavernous vagina.`); } } App.Events.addNode(el, r, "div"); if (slave.mpreg === 1) { /* r.push(`Childbirth has`) r.push(App.UI.DOM.makeElement("span", `stretched out ${his} anus.`, "lime")); //no need for description now */ if (slave.anus < 3 || (V.dairyPregSetting > 1 && slave.anus < 4)) { slave.anus += 1; } } else { /* r.push(`Childbirth has`) r.push(App.UI.DOM.makeElement("span", `stretched out ${his} vagina.`, "lime")); //no need for description now */ if (slave.vagina < 3 || (V.dairyPregSetting > 1 && slave.vagina < 4)) { slave.vagina += 1; } } } else { r = []; r.push(`Since ${his}`); if (slave.mpreg === 1) { r.push(`ass`); } else { r.push(`vagina`); } r.push(`was spared from childbirth,`); r.push(App.UI.DOM.makeElement("span", `it retained its tightness.`, "lime")); if (V.PC.skill.medicine >= 100) { r.push(`Since you`); r.push(App.UI.DOM.makeElement("span", `performed the surgery yourself,`, "springgreen")); r.push(`and you do an artist's work, ${his} health is`); r.push(App.UI.DOM.makeElement("span", `less affected`, "green")); r.push(`by the surgery than it would have been if you'd paid some hack to do it remotely.`); if (slave.fetish !== "mindbroken" && slave.fuckdoll === 0) { r.push(`${He} went into the surgery very aware that you were performing it manually.`); if (slave.devotion < oldDevotion) { if (slave.devotion > 50) { r.push(`Though ${he} is unhappy with the results, ${he} consoles ${himself} with the knowledge that you cared enough to do it personally.`); } else if (slave.devotion >= -20) { r.push(`${He} is`); r.push(App.UI.DOM.makeElement("span", `even more afraid`, "gold")); r.push(`of you afterward than ${he} would otherwise be. You must seem a cruel and near-omnipotent power to ${him}.`); slave.trust -= 5; } else { r.push(`${He} is`); r.push(App.UI.DOM.makeElement("span", `even more hateful`, "mediumorchid")); r.push(`of you afterward than ${he} would otherwise be. It must seem to ${him} that ${he}'s nothing more than a test subject to you.`); slave.devotion -= 5; } } else { if (slave.devotion > 50) { r.push(`Since ${he}'s happy with the results, ${he}'s almost beside ${himself} with`); r.push(App.UI.DOM.makeElement("span", `gratitude,`, "hotpink")); r.push(`and filled with`); r.push(App.UI.DOM.makeElement("span", `admiration`, "mediumaquamarine")); r.push(`of your skill.`); slave.devotion += 4; slave.trust += 4; } else if (slave.devotion >= -20) { r.push(`${He} is quite struck by how you performed the surgery personally. ${He} admires your refusal to be one of the idle rich, and`); r.push(App.UI.DOM.makeElement("span", `likes you more.`, "hotpink")); slave.devotion += 5; } else { r.push(`${He} knows that ${he} should be grateful to you for performing the surgery personally, but the emotional turmoil of the occasion is too much for ${him}, and the realization makes little lasting impact.`); } } } } else { r.push(`As with all surgery`); r.push(App.UI.DOM.makeElement("span", `${his} health has been slightly affected.`, "red")); surgeryDamage(slave, 5); } App.Events.addNode(el, r, "div"); } p = document.createElement("p"); if (slave.assignment !== Job.DAIRY && !cSection) { /* && ${slave.broodmother} === 0 // removed - broodmother have sensations too */ r = []; r.push(`All in all,`); if (birthDamage > 15) { r.push(`childbirth was`); r.push(App.UI.DOM.makeElement("span", `horrifically difficult for ${him} and nearly claimed ${his} life.`, "red")); } else if (birthDamage > 10) { r.push(`childbirth was extremely difficult for ${him} and`); r.push(App.UI.DOM.makeElement("span", `greatly damaged ${his} health.`, "red")); } else if (birthDamage > 5) { r.push(`childbirth was difficult for ${him} and`); r.push(App.UI.DOM.makeElement("span", `damaged ${his} health.`, "red")); } else if (birthDamage > 0) { r.push(`childbirth was painful for ${him}, though not abnormally so, and`); r.push(App.UI.DOM.makeElement("span", `damaged ${his} health.`, "red")); } else { r.push(`childbirth was`); r.push(App.UI.DOM.makeElement("span", `no problem`, "green")); r.push(`for ${him}.`); } if (birthDamage > 0) { healthDamage(slave, Math.round(birthDamage / 2) * 10); slave.health.tired += Math.round((birthDamage / 2) * 10); if (birthDamage > 5 && compoundCondition === 1 && numBeingBorn > 1) { r.push(`Or it would have been, were ${he} only having one. With each additional child that needed to be birthed,`); r.push(App.UI.DOM.makeElement("span", `the damage to ${his} health was compounded.`, "red")); healthDamage(slave, numBeingBorn); slave.health.tired += numBeingBorn * 5; } slave.health.tired = Math.clamp(slave.health.tired, 0, 100); } else { slave.health.tired = Math.clamp(slave.health.tired + 10, 0, 100); } if (slave.geneticQuirks.uterineHypersensitivity === 2 && slave.fetish !== "mindbroken" && slave.fuckdoll === 0) { r.push(`Not only that, but`); r.push(App.UI.DOM.makeElement("span", `the entire process was extremely pleasurable for ${him}${(numBeingBorn > 1) ? ',' : '.'}`, "green")); if (numBeingBorn > 1) { r.push(`with orgasms growing more powerful with each baby ${he} brought to the world.`); } r.push(`${He} can't wait to be impregnated and give birth again,`); if (birthDamage > 10) { r.push(`despite the complications,`); } slave.energy += numBeingBorn; slave.need -= numBeingBorn; if (slave.sexualFlaw === "breeder") { r.push(`since for ${him} it is the pinnacle of ${his} existence.`); } else { if (slave.fetish === "pregnancy") { r.push(`having had ${his}`); if (slave.fetishStrength <= 60) { r.push(App.UI.DOM.makeElement("span", `pregnancy fetish deepen from the experience.`, "lightcoral")); slave.fetishStrength += numBeingBorn; } else { r.push(App.UI.DOM.makeElement("span", `pregnancy fetish deepen into obsession.`, "lightcoral")); slave.sexualFlaw = "breeder"; slave.fetishStrength = 100; } } else if (slave.fetish === "none" || slave.fetishStrength <= 60) { r.push(App.UI.DOM.makeElement("span", `having found true pleasure in reproduction.`, "lightcoral")); slave.fetish = "pregnancy"; } } } App.Events.addNode(p, r, "div"); } /* this needs a tally of how many babies were lost due to underdevelopment instead of relying off a check */ if (V.surgeryUpgrade !== 1 && numStillborn > 0) { App.UI.DOM.appendNewElement("div", p, `It's possible that`); r.push(App.UI.DOM.makeElement("span", `having advanced equipment`, "red")); r.push(`in the remote surgery could have prevented the loss of ${his} ${numStillborn} unborn ${(numStillborn > 1) ? `children` : `child`}.`); } el.append(p); /* ----- Postbirth reactions, mind ------------------------------- */ if (slave.fetish !== "mindbroken" && slave.fuckdoll === 0) { r = []; if (numStillborn > 0) { // TODO: Here should be descriptions of reactions from losing some of babies, need tweak, only draft for now if (slave.sexualFlaw === "breeder") { r.push(`${He} is`); r.push(App.UI.DOM.makeElement("span", `filled with violent, all-consuming hatred`, "mediumorchid")); r.push(`at ${himself} for failing ${his} unborn and you for allowing this to happen.`); if (numStillborn > 4) { r.push(`The loss of so many children at once`); r.push(App.UI.DOM.makeElement("span", `shatters the distraught breeder's mind.`, "red")); slave.fetish = "mindbroken"; slave.behavioralQuirk = "none"; slave.behavioralFlaw = "none"; slave.sexualQuirk = "none"; slave.sexualFlaw = "none"; slave.devotion = 0; slave.trust = 0; } else { r.push(`${He} cares little for what punishment awaits ${his} actions.`); slave.devotion -= 25 * numStillborn; } } else if (slave.devotion > 80) { r.push(`${He}`); r.push(App.UI.DOM.makeElement("span", `accepts with grief`, "mediumorchid")); r.push(`your right to use ${his} body as you see fit, even if it allow ${his} unborn to die in the process.`); slave.devotion -= 10; } else if (slave.devotion > 20) { r.push(`${He}`); r.push(App.UI.DOM.makeElement("span", `hates`, "mediumorchid")); r.push(`you for using ${his} body to bear children to the extent that it cost some their lives.`); slave.devotion -= 20; } else { r.push(`${He}`); r.push(App.UI.DOM.makeElement("span", `curses`, "mediumorchid")); r.push(`you for using ${him} as a breeder toy and forcing ${him} to go through such a doomed pregnancy.`); slave.devotion -= 30; } } else { if ((slave.devotion < 20) && (V.week - slave.weekAcquired - slave.pregWeek > 0)) { App.Events.addParagraph(el, r); r = []; r.push(`${He}`); r.push(App.UI.DOM.makeElement("span", `despises`, "mediumorchid")); r.push(`you for using ${him} as a breeder.`); slave.devotion -= 10; } if (slave.pregSource === -1) { if (slave.devotion <= 20 && slave.weekAcquired > 0) { r.push(`${He}`); r.push(App.UI.DOM.makeElement("span", `hates`, "mediumorchid")); r.push(`you for using ${his} body to bear your children.`); slave.devotion -= 10; } else if (slave.devotion > 50) { r.push(`${He}'s`); r.push(App.UI.DOM.makeElement("span", `so proud`, "hotpink")); r.push(`to have successfully carried children for you.`); slave.devotion += 3; } } if (humiliation === 1 && slave.fetish !== "mindbroken" && slave.fuckdoll === 0) { App.Events.addParagraph(el, r); r = []; r.push(`Giving birth in such a manner was completely humiliating,`); if (slave.fetish === "humiliation") { r.push(`and a complete turn on to ${him}. ${His} humiliation fetish`); r.push(App.UI.DOM.makeElement("span", `strengthens`, "lightcoral")); r.push(`as ${he} eagerly fantasizes about giving birth in public again.`); slave.fetishStrength += 4; } else if (slave.fetish === "none" || slave.fetishStrength <= 60) { r.push(`and a curious experience to ${him}.`); if (random(1, 5) === 1) { r.push(App.UI.DOM.makeElement("span", `${He} has developed a humiliation fetish.`, "lightcoral")); slave.fetish = "humiliation"; } else { r.push(`${He} hopes to never repeat it.`); } } else if (slave.devotion <= 20) { r.push(`and completely devastating to ${his} image of ${himself}. The experience`); r.push(App.UI.DOM.makeElement("span", `habituates ${him}`, "hotpink")); r.push(`to cruelties of slavery.`); slave.devotion += 5; } else { r.push(`and ${he} hopes to never undergo it again.`); } } } App.Events.addParagraph(el, r); /* ------ Social reactions--------------- */ if (V.arcologies[0].FSRestart !== "unset") { r = []; if (slave.breedingMark === 1 && V.propOutcome === 1 && (slave.pregSource === -1 || slave.pregSource === -6)) { r.push(`The ${societalElite}`); r.push("span", `are pleased`, "green"); r.push(`at the new additions to their class.`); V.failedElite -= (2 * numBeingBorn); } else if (V.eugenicsFullControl !== 1) { r.push(`The ${societalElite}`); r.push("span", `are disappointed`, "red"); r.push(`that you would allow subhuman filth to dirty the arcology under your watch. Society`); r.push("span", `frowns`, "red"); r.push(`on the unwelcome addition of more subhumans into the world.`); V.failedElite += (5 * numBeingBorn); repX(forceNeg(10 * numBeingBorn), "birth", slave); } App.Events.addParagraph(el, r); } } return el; } function destinationForBabies() { const el = document.createElement("p"); let r; let cToIncubator = 0; let cToNursery = 0; let babyCost; let choices; let choice; for (const baby of babiesBeingBorn) { if (baby.reserve === "incubator") { cToIncubator++; } else if (baby.reserve === "nursery") { cToNursery++; } } /* ----------------------- incubator/nursery adding subsection. There is support for broodmothers too. */ if ((cToIncubator + cToNursery > 0) && numBeingBorn > 0) { // TODO: Do we need keep child checks? r = []; if (numBeingBorn > 1) { r.push(`Of ${his} ${numBeingBorn} ${children},`); } else { r.push(`${His} child`); } if (cToIncubator > 0) { if (numBeingBorn > 1) { r.push(`${cToIncubator}`); } if (cToIncubator === 1) { r.push(`was`); } else { r.push(`were`); } r.push(`taken to ${V.incubatorName}`); if (cToNursery > 0) { r.push(`and`); } } if (cToNursery > 0) { if (numBeingBorn > 1) { r.push(`${cToNursery}`); } if (cToNursery === 1) { r.push(`was`); } else { r.push(`were`); } r.push(`taken to ${V.nurseryName}`); } r.push(r.pop() + `.`); if (cToIncubator + cToNursery > 0) { babiesBeingBorn = sendNewbornsToFacility(slave, babiesBeingBorn); } numBeingBorn = babiesBeingBorn.length; // <br><br> if (numBeingBorn > 0) { r.push(`After sending ${his} reserved ${children} to`); if (cToIncubator > 0 && cToNursery > 0) { r.push(`${V.incubatorName} and ${V.nurseryName},`); } else if (cToIncubator > 0) { r.push(`${V.incubatorName},`); } else { r.push(`${V.nurseryName},`); } r.push(`it's time to decide the fate of the ${(numBeingBorn > 0) ? `others` : `other`}.`); } App.Events.addParagraph(el, r); } /* ------------------------ Fate of other babies ---------------------------------------*/ if (slave.fetish !== "mindbroken" && slave.fuckdoll === 0 && numBeingBorn > 0) { r = []; choices = document.createElement("p"); choices.id = dispositionId; if (V.arcologies[0].FSRestart !== "unset" && slave.breedingMark === 1 && V.propOutcome === 1 && (slave.pregSource === -1 || slave.pregSource === -6)) { r.push(`${His} ${childrenAre} collected by the ${societalElite} to be raised into upstanding members of the new society.`); } else if (slave.breedingMark === 1 && V.propOutcome === 1 && (slave.pregSource === -1 || slave.pregSource === -6) && V.DefaultBirthDestination === "the market") { babyCost = random(2000, 4500); r.push(`${His} ${(numBeingBorn > 1) ? `babies were` : `baby was`} purchased by the ${societalElite} for`); r.push( App.UI.DOM.makeElement("span", `${cashFormat(numBeingBorn * (babyCost))}.`, "yellowgreen") ); cashX(numBeingBorn * (babyCost), "babyTransfer"); } else if (slave.pregSource === -9 && V.DefaultBirthDestination === "the market") { babyCost = random(1000, 2500); r.push(`${His} ${(numBeingBorn > 1) ? `babies were` : `baby was`} purchased by the Futanari Sisters for`); r.push( App.UI.DOM.makeElement("span", `${cashFormat(numBeingBorn * (babyCost))}.`, "yellowgreen") ); cashX(numBeingBorn * (babyCost), "babyTransfer"); } else if (V.DefaultBirthDestination === "individually decided fates") { r.push(`Unless you provide otherwise, the ${children} will be remanded to one of ${V.arcologies[0].name}'s slave orphanages.`); V.slaveOrphanageTotal += numBeingBorn; // Player may choose nothing. Assume that now, and reverse it later if needed. if (!slaveDead) { if (slave.fetish === "mindbroken" || slave.fuckdoll > 0) { r.push(`${slave.slaveName} shows no indication of an opinion on the matter.`); } else if (slave.devotion > 95) { r.push(`${slave.slaveName} worships you so completely that ${he} will not resent this.`); } else if (slave.devotion > 50) { r.push(`${slave.slaveName} is devoted to you, but ${he} will`); r.push(App.UI.DOM.makeElement("span", `struggle to accept this.`, "mediumorchid")); slave.devotion -= 2; } else if (slave.devotion > 20) { r.push(`${slave.slaveName} has accepted being a sex slave, but ${he} will`); r.push(App.UI.DOM.makeElement("span", `resent this intensely.`, "mediumorchid")); slave.devotion -= 3; } else { r.push(`${slave.slaveName} will of course`); r.push(App.UI.DOM.makeElement("span", `hate you for this.`, "mediumorchid")); slave.devotion -= 4; } } App.Events.addParagraph(choices, r); if (V.arcologies[0].FSRepopulationFocus > 40) { choice = document.createElement("div"); choice.append( App.UI.DOM.link( "Send them to a breeder school", () => { V.slaveOrphanageTotal -= numBeingBorn; jQuery(`#${dispositionId}`).empty().append(breederResponse()); } ) ); App.UI.DOM.appendNewElement("span", choice, ` Will cost a one-time ${cashFormat(50)}`, "note"); choices.append(choice); } choice = document.createElement("div"); choice.append( App.UI.DOM.link( "Send them to a citizen school", () => { V.slaveOrphanageTotal -= numBeingBorn; jQuery(`#${dispositionId}`).empty().append(citizenSchoolResponse()); } ) ); App.UI.DOM.appendNewElement("span", choice, ` Will cost ${cashFormat(100)} weekly`, "note"); choices.append(choice); if (slave.breedingMark === 1 && (slave.pregSource === -1 || slave.pregSource === -6) && V.propOutcome === 1) { choice = document.createElement("div"); choice.append( App.UI.DOM.link( `Give them to the ${societalElite}`, () => { V.slaveOrphanageTotal -= numBeingBorn; jQuery(`#${dispositionId}`).empty().append(eliteResponse()); } ) ); choices.append(choice); } if (slave.pregSource === -9) { choice = document.createElement("div"); choice.append( App.UI.DOM.link( "Give them to the Futanari Sisters", () => { V.slaveOrphanageTotal -= numBeingBorn; jQuery(`#${dispositionId}`).empty().append(futaResponse()); } ) ); choices.append(choice); } choice = document.createElement("div"); choice.append( App.UI.DOM.link( "Have them raised privately", () => { V.slaveOrphanageTotal -= numBeingBorn; jQuery(`#${dispositionId}`).empty().append(privatelyResponse()); } ) ); App.UI.DOM.appendNewElement("span", choice, ` Will cost ${cashFormat(500)} weekly`, "note"); choices.append(choice); if (V.policies.cash4Babies === 1) { if (slave.prestige > 1 || slave.porn.prestige > 2) { choice = document.createElement("div"); choice.append( App.UI.DOM.link( "Send them to auction", () => { V.slaveOrphanageTotal -= numBeingBorn; jQuery(`#${dispositionId}`).empty().append(auctionResponse()); } ) ); choices.append(choice); } else { choice = document.createElement("div"); choice.append( App.UI.DOM.link( "Sell them anyway", () => { V.slaveOrphanageTotal -= numBeingBorn; jQuery(`#${dispositionId}`).empty().append(auctionResponse()); } ) ); choices.append(choice); } } } else { switch (V.DefaultBirthDestination) { case "an orphanage": r.push(`${slave.slaveName}`); if (!slaveDead) { if (slave.fetish === "mindbroken" || slave.fuckdoll > 0) { r.push(`shows no indication of an opinion on the matter.`); } else if (slave.devotion > 95) { r.push(`worships you so completely that ${he} will not resent this.`); } else if (slave.devotion > 50) { r.push(`is devoted to you, but ${he} will`); r.push(App.UI.DOM.makeElement("span", `struggle to accept this.`, "mediumorchid")); slave.devotion -= 2; } else if (slave.devotion > 20) { r.push(`has accepted being a sex slave, but ${he} will`); r.push(App.UI.DOM.makeElement("span", `resent this intensely.`, "mediumorchid")); slave.devotion -= 3; } else { r.push(`will of course`); r.push(App.UI.DOM.makeElement("span", `hate you for this.`, "mediumorchid")); slave.devotion -= 4; } } V.slaveOrphanageTotal += numBeingBorn; break; case "a citizen school": r.push(`${slave.slaveName}`); if (!slaveDead) { if (slave.fetish === "mindbroken" || slave.fuckdoll > 0) { r.push(`fails to acknowledge this.`); } else if (slave.devotion > 95) { r.push(`loves you already, but ${he}'ll`); r.push(App.UI.DOM.makeElement("span", `love you even more`, "hotpink")); r.push(`for this.`); slave.devotion += 4; } else if (slave.devotion > 50) { r.push(`knows about these and will be`); r.push(App.UI.DOM.makeElement("span", `overjoyed.`, "hotpink")); r.push(`${He} will miss ${his} ${children}, but ${he} expected that.`); slave.devotion += 4; } else if (slave.devotion > 20) { r.push(`will naturally miss ${his} ${children}, but will`); r.push(App.UI.DOM.makeElement("span", `take comfort`, "hotpink")); r.push(`in the hope that ${his} offspring will have a better life.`); slave.devotion += 4; } else { r.push(`will naturally retain some resentment over being separated from ${his} ${children}, but this should be balanced by hope that ${his} offspring will have a better life.`); slave.devotion += 4; } } V.citizenOrphanageTotal += numBeingBorn; break; case "a private school": r.push(privatelyResponse()); break; case "breeder schools": r.push(breederResponse()); break; case "the market": r.push(auctionResponse()); break; default: r.push(`${His} ${(numBeingBorn > 1) ? `babies were` : `baby was`} sent to ${V.DefaultBirthDestination}.`); } App.Events.addNode(choices, r); } el.append(choices); } function breederResponse() { const el = new DocumentFragment(); const r = []; r.push(`The ${childrenAre} sent to one of ${V.arcologies[0].name}'s future minded schools, to be administered fertility and virility treatments as well as be brought up to take pride in reproduction.`); if (burstCheck(slave)) { r.push(`Hopefully they will be trained there to not suffer the same fate.`); } else if (slave.fetish === "mindbroken" || slave.fuckdoll > 0) { r.push(`${slave.slaveName} has few thoughts about the matter.`); } else if (slave.sexualFlaw === "breeder") { r.push(slave.slaveName); r.push(App.UI.DOM.makeElement("span", ` almost orgasms`, "hotpink")); r.push(`when ${he} imagines ${his} ${children} being raised into`); if (numBeingBorn === 1) { r.push(`a breeding-obsessed baby-factory,`); } else { r.push(`breeding-obsessed baby-factories,`); } r.push(`just like ${himself}.`); slave.devotion += 5; } else if (slave.devotion > 95) { r.push(`${slave.slaveName} loves you already, but ${he}'ll`); r.push(App.UI.DOM.makeElement("span", `love you even more`, "hotpink")); r.push(`for this. ${He} can't wait to see ${his} ${children} proudly furthering your cause.`); slave.devotion += 4; } else if (slave.devotion > 50) { r.push(`${slave.slaveName} heard about these and will be`); r.push(App.UI.DOM.makeElement("span", `happy that ${his} ${children} will have a purpose in your society other than slavery.`, "hotpink")); r.push(`${He} will miss ${his} ${children}, but ${he} expected that.`); slave.devotion += 4; } else if (slave.devotion > 20) { r.push(`${slave.slaveName} will naturally miss ${his} ${children}, but will is broken enough to hope that ${his} offspring will have a better life, or at least an enjoyable one.`); } else { r.push(`${slave.slaveName} will of course`); r.push(App.UI.DOM.makeElement("span", `hate you for this.`, "mediumorchid")); r.push(`The mere thought of ${his}`); if (V.minimumSlaveAge > V.fertilityAge) { r.push(`${V.minimumSlaveAge}`); } else { r.push(`${V.fertilityAge}`); } r.push(`year old ${(numBeingBorn > 1) ? `daughters` : `daughter`} swollen with life, and proud of it, fills ${him} with`); r.push(App.UI.DOM.makeElement("span", `disdain.`, "gold")); slave.devotion -= 4; slave.trust -= 4; } V.breederOrphanageTotal += numBeingBorn; App.Events.addNode(el, r); return el; } function citizenSchoolResponse() { const r = []; const el = new DocumentFragment(); r.push(`The ${childrenAre} sent to one of ${V.arcologies[0].name}'s citizen schools, to be brought up coequal with the arcology's other young people.`); if (!slaveDead) { if (slave.fetish === "mindbroken" || slave.fuckdoll > 0) { r.push(`${slave.slaveName} fails to acknowledge this.`); } else if (slave.devotion > 95) { r.push(`loves you already, but ${he}'ll`); r.push(App.UI.DOM.makeElement("span", `love you even more`, "hotpink")); r.push(`for this.`); slave.devotion += 4; } else if (slave.devotion > 50) { r.push(`${slave.slaveName} knows about these and will be`); r.push(App.UI.DOM.makeElement("span", `overjoyed.`, "hotpink")); r.push(`${He} will miss ${his} ${children}, but ${he} expected that.`); slave.devotion += 4; } else if (slave.devotion > 20) { r.push(`${slave.slaveName} will naturally miss ${his} ${children}, but will`); r.push(App.UI.DOM.makeElement("span", `take comfort`, "hotpink")); r.push(`in the hope that ${his} offspring will have a better life.`); slave.devotion += 4; } else { r.push(`${slave.slaveName} will naturally retain some resentment over being separated from ${his} ${children}, but this should be balanced by hope that ${his} offspring will have a better life.`); slave.devotion += 4; } } V.citizenOrphanageTotal += numBeingBorn; App.Events.addNode(el, r); return el; } function eliteResponse() { const r = []; const el = new DocumentFragment(); r.push(`The ${childrenAre} sent to be raised by the ${societalElite}, to be brought up as`); if (numBeingBorn > 1) { r.push(`future members`); } else { r.push(`a future member`); } r.push(`of their vision of the world.`); if (!slaveDead) { if (slave.fetish === "mindbroken" || slave.fuckdoll > 0) { r.push(`${slave.slaveName} does not give any hint of a response.`); } else if (slave.devotion > 95) { r.push(`${slave.slaveName} will`); r.push(App.UI.DOM.makeElement("span", `worship you utterly`, "hotpink")); r.push(`for this.`); slave.devotion += 6; } else if (slave.devotion > 50) { r.push(`${slave.slaveName} understands that this is the best possible outcome for the offspring of a slave, and will be`); r.push(App.UI.DOM.makeElement("span", `overjoyed.`, "hotpink")); slave.devotion += 6; } else if (slave.devotion > 20) { r.push(`${slave.slaveName} will miss ${his} ${children}, but will be`); r.push(App.UI.DOM.makeElement("span", `very grateful,`, "hotpink")); r.push(`since ${he}'ll understand this is the best possible outcome for a slave mother.`); slave.devotion += 6; } else { r.push(`${slave.slaveName} will resent being separated from ${his} ${children}, but`); r.push(App.UI.DOM.makeElement("span", `should understand and be grateful`, "hotpink")); r.push(`that this is the best possible outcome here.`); slave.devotion += 6; } } V.nextButton = "Back"; App.Utils.updateUserButton(); App.Events.addNode(el, r); return el; } function futaResponse() { const r = []; const el = new DocumentFragment(); r.push(`The ${childrenAre} handed off to be raised by their father, the Futanari Sisters.`); if (burstCheck(slave)) { r.push(`You recommend they take it easy for a while before any more burst into kids.`); } else if (slave.fetish === "mindbroken" || slave.fuckdoll > 0) { r.push(`${slave.slaveName} has few thoughts about the matter.`); } else { r.push(`${slave.slaveName} is overjoyed that ${his} ${children} will follow in`); if (numBeingBorn > 1) { r.push(`their`); } else { r.push(`its`); } r.push(`parent's footsteps.`); slave.devotion += 4; } App.Events.addNode(el, r); return el; } function privatelyResponse() { const r = []; const el = new DocumentFragment(); r.push(`The ${childrenAre} sent to be privately raised, to be brought up as`); if (numBeingBorn > 1) { r.push(`future high class citizens.`); } else { r.push(`a future high class citizen.`); } if (!slaveDead) { if (slave.fetish === "mindbroken" || slave.fuckdoll > 0) { r.push(`${slave.slaveName} does not give any hint of a response.`); } else if (slave.devotion > 95) { r.push(`${slave.slaveName} will`); r.push(App.UI.DOM.makeElement("span", `worship you utterly`, "hotpink")); r.push(`for this.`); slave.devotion += 6; } else if (slave.devotion > 50) { r.push(`${slave.slaveName} understands that this is the best possible outcome for the offspring of slave, and will be`); r.push(App.UI.DOM.makeElement("span", `overjoyed.`, "hotpink")); slave.devotion += 6; } else if (slave.devotion > 20) { r.push(`${slave.slaveName} will miss ${his} ${children}, but will be`); r.push(App.UI.DOM.makeElement("span", `very grateful,`, "hotpink")); r.push(`since ${he}'ll understand this is the best possible outcome for a slave mother.`); slave.devotion += 6; } else { r.push(`${slave.slaveName} will resent being separated from ${his} ${children}, but`); r.push(App.UI.DOM.makeElement("span", `should understand and be grateful`, "hotpink")); r.push(`that this is the best possible outcome here.`); slave.devotion += 6; } } r.push(`The ${children} will be raised privately, with expert care and tutoring, an expensive proposition.`); V.privateOrphanageTotal += numBeingBorn; App.Events.addNode(el, r); return el; } function auctionResponse() { const r = []; const el = new DocumentFragment(); babyCost = random(-12, 100); if (slave.prematureBirth === 1) { babyCost = random(-32, 40); } r.push(`${His} ${(numBeingBorn > 1) ? `babies were` : `baby was`} sold for`); if (numBeingBorn > 1) { r.push(`a total of`); } if (slave.prematureBirth === 1) { r.push(App.UI.DOM.makeElement("span", `${cashFormat(numBeingBorn * (50 + babyCost))},`, "yellowgreen")); r.push(`a low price, due to the added costs of caring for them.`); } else { r.push(App.UI.DOM.makeElement("span", `${cashFormat(numBeingBorn * (50 + babyCost))}.`, "yellowgreen")); } if (!slaveDead) { if (slave.fetish === "mindbroken" || slave.fuckdoll > 0) { r.push(`${slave.slaveName} lacks the capacity to understand what you've done.`); } else if (slave.devotion > 95) { r.push(`${slave.slaveName} adheres to your thoughts so strongly that even though you backed out of caring for ${his} ${children}, ${he} still truly believes you are doing ${him} an honor.`); } else if (slave.devotion > 50) { r.push(`${slave.slaveName} is`); r.push(App.UI.DOM.makeElement("span", `deeply hurt`, "mediumorchid")); r.push(`by your sudden decision to sell ${his} ${children} instead of having`); if (numBeingBorn > 1) { r.push(`them`); } else { r.push(`it`); } r.push(`cared for. ${His} trust in your words`); r.push(App.UI.DOM.makeElement("span", `wavers`, "gold")); r.push(`as ${he} thinks of ${his} ${children}'s future.`); slave.trust -= 5; slave.devotion -= 5; } else if (slave.devotion > 20) { r.push(`${slave.slaveName} is`); r.push(App.UI.DOM.makeElement("span", `devastated`, "mediumorchid")); r.push(`by your sudden decision to sell ${his} ${children} instead of having`); if (numBeingBorn > 1) { r.push(`them`); } else { r.push(`it`); } r.push(`cared for. ${His} mind struggles to comprehend`); r.push(App.UI.DOM.makeElement("span", `such betrayal.`, "gold")); slave.trust -= 10; slave.devotion -= 10; } else { r.push(`For a moment, ${slave.slaveName} thought ${he} saw a glimmer of good in you;`); r.push(App.UI.DOM.makeElement("span", `${he} was clearly wrong.`, "mediumorchid")); r.push(`${His} mind struggles to comprehend`); r.push(App.UI.DOM.makeElement("span", `why ${he} could ever even think of trusting such a person.`, "gold")); slave.trust -= 30; slave.devotion -= 30; } } cashX(numBeingBorn * (50 + babyCost), "babyTransfer"); App.Events.addNode(el, r); return el; } return el; } function birthPostpartum() { const el = document.createElement("p"); numBeingBorn = babiesBeingBorn.length; if (birthStorm) { WombFlush(slave); slave.broodmother = 0; } else if (slave.broodmother > 0) { slave.preg = WombMaxPreg(slave); if (slave.broodmotherCountDown > 0 && slave.womb.length > 0) { // TODO: do we really finished? slave.broodmotherCountDown = 38 - WombMinPreg(slave); // age of most new (small) fetus used to correct guessing of remained time. slave.preg = 0.1; slave.pregType = 0; } } else if (slave.womb.length > 0) { // Not broodmother, but still has babies, partial birth case. slave.preg = WombMaxPreg(slave); // now we use most advanced remained fetus as base. slave.pregSource = slave.womb[0].fatherID; // in such case it's good chance that there is different father also. } else { const tmp = lastPregRule(slave, V.defaultRules); if ((!assignmentVisible(slave)) && (tmp !== null)) { slave.preg = -1; } else { slave.preg = 0; } slave.pregType = 0; slave.pregSource = 0; slave.pregKnown = 0; if (slave.geneticQuirks.fertility + slave.geneticQuirks.hyperFertility >= 4) { slave.pregWeek = -2; } else if (slave.geneticQuirks.hyperFertility > 1) { slave.pregWeek = -3; } else { slave.pregWeek = -4; } } SetBellySize(slave); if (slave.birthsTat > -1) { slave.birthsTat++; el.append(`The temporary tattoo of a child has been replaced with ${his} ${ordinalSuffix(slave.birthsTat)} permanent infant.`); cashX(forceNeg(V.modCost), "slaveMod", slave); } return el; } function birthCritical() { const el = document.createElement("p"); const r = []; const wl = slave.womb.length; numBeingBorn = babiesBeingBorn.length; if (slave.health.health <= -100 || slaveDead) { if (!slaveDead) { r.push(`While attempting to recover, ${slave.slaveName}`); r.push(App.UI.DOM.makeElement("span", `passes away`, "red")); r.push(`from complications.`); } r.push(`${His} body was fatally damaged during childbirth.`); const fathers = []; for (const baby of slave.womb) { if (baby.fatherID === 0) { fathers.push("an unknown father"); } else if (baby.fatherID === -1) { if (V.PC.dick !== 0) { fathers.push("your magnificent dick"); } else { fathers.push("your powerful sperm"); } } else if (baby.fatherID === -2) { fathers.push("your arcology's eager citizens"); } else if (baby.fatherID === -3) { fathers.push("your former Master's potent seed"); } else if (baby.fatherID === -4) { fathers.push("another arcology owner"); } else if (baby.fatherID === -5) { fathers.push("one of your clientele"); } else if (baby.fatherID === -6) { fathers.push(`the ${societalElite}`); } else if (baby.fatherID === -7) { fathers.push("your own design"); } else if (baby.fatherID === -8) { fathers.push("one of your animals"); } else if (baby.fatherID === -9) { fathers.push("a Futanari Sister"); } else { const babyDaddy = findFather(baby.fatherID); if (babyDaddy) { if (babyDaddy.ID === slave.ID) { fathers.push(`${his} own sperm`); } else if (babyDaddy.dick === 0) { fathers.push(`${babyDaddy.slaveName}'s potent seed`); } else { fathers.push(`${babyDaddy.slaveName}'s virile cock and balls`); } } else { fathers.push("an unknown father"); } } } const fathersReduced = removeDuplicates(fathers); if (wl > 0) { if (wl === 1) { r.push(`One baby`); } else { r.push(`${wl} babies`); } r.push(`created by ${arrayToSentence(fathersReduced)} died with ${him}, too young to survive.`); r.push(deadBabiesResponse(wl)); } if (numBeingBorn > 0) { // this needs to include ALL children born from this batch, incubated ones included. r.push(`But ${his}`); if (wl > 0) { r.push(`other`); } r.push(`offspring`); if (numBeingBorn > 1) { r.push(`are`); } else { r.push(`is`); } r.push(`healthy, so ${his} legacy will carry on.`); } App.Events.addNode(el, r); el.append(horrifiedSlaves(slave)); slaveDead = 1; } else { slave.induce = 0; } return el; } function implantImplant() { const el = document.createElement("div"); el.id = "bir"; App.UI.DOM.appendNewElement("div", el, `Since ${he} is already in surgery and ${his} body already stretched, it would be possible to preserve ${his} pregnant appearance via fillable implant.`, "note"); el.append( App.UI.DOM.link( "Do it.", () => { const result = document.createElement("div"); const r = []; surgeryDamage(slave, 10); result.append(`Installation of belly implant is relatively simple procedure. Using the fact that ${his} body and internal organs have already adapted to pregnancy, it's possible to greatly expand the initial size of implant. ${He} will still look pregnant post surgery and recovery.`); if (slave.devotion > 50) { r.push(`${He} leaves the surgery with ${his} belly still very gravid, and as such, knows you put something into ${his} womb replacing ${his} prior natural pregnancy. ${He} is`); r.push(App.UI.DOM.makeElement("span", `curious`, "hotpink")); r.push(`about the details of the implant, and eagerly awaits to see the end result.`); slave.devotion += 4; } else if (slave.devotion >= -20) { r.push(`${He} leaves the surgery with ${his} belly still very gravid, and as such, knows you put something into ${his} womb replacing ${his} prior natural pregnancy. ${He} understands the realities of ${his} life as a slave, but ${he} is still surprised at what now resides in ${his} womb. ${He} is`); r.push(App.UI.DOM.makeElement("span", `sensibly fearful`, "gold")); r.push(`of your total power over ${his} body.`); slave.trust -= 5; } else { r.push(`${He} leaves the surgery with ${his} belly still very gravid, and as such, knows you put something into ${his} womb replacing ${his} prior natural pregnancy. ${He} does not understand the realities of ${his} life as a slave at a core level, so ${he}'s`); r.push(App.UI.DOM.makeElement("span", `terrified and angry`, "mediumorchid")); r.push(`at the potential that ${he}'s been turned in some sort of freak. Even after what has been implanted into ${his} womb is explained to ${him}, ${he} is no less defiant; though ${he} is relieved that procedure is reversible and there is no truly permanent damage. ${He} is`); r.push(App.UI.DOM.makeElement("span", `sensibly fearful`, "gold")); r.push(`of your total power over ${his} body.`); slave.trust -= 5; slave.devotion -= 5; } slave.bellyImplant = Math.floor(beforeSize); if (slave.bellyImplant > 800000 && V.arcologies[0].FSTransformationFetishistResearch > 0) { slave.bellyImplant = 800000; } else if (slave.bellyImplant > 130000 && V.arcologies[0].FSTransformationFetishistResearch < 1) { slave.bellyImplant = 130000; } slave.preg = -2; SetBellySize(slave); App.Events.addNode(result, r); jQuery(`#${dispositionId}`).empty().append(result); } ) ); return el; } function broodmotherBirth() { const el = document.createElement("p"); const birthScene = random(1, 100); let r = []; const tempSub = getSlave(slave.subTarget); const HGL = App.Entity.facilities.headGirlSuite.employeesIDs().size; let his2, he2, him2; const {HeU, hisU, heU, himU, himselfU, girlU} = getNonlocalPronouns(V.seeDicks).appendSuffix('U'); const children = slave.pregType > 1 ? `children` : `child`; const childrenAre = slave.pregType > 1 ? `children are` : `child is`; const UH = (slave.geneticQuirks.uterineHypersensitivity === 2) ? `, convulsing with orgasms in the process` : ``; const firstText = (slave.counter.birthsTotal === 0) ? `${his} first` : `this week's`; if (random(1, 2) === 1) { // at assignment else in halls/etc switch (slave.assignment) { case Job.REST: if (!canWalk(slave)) { if (slave.fetish === "mindbroken") { if (random(1, 20) > suddenBirth) { r.push(`${He} is helped back to ${his} bed and stripped before slipping into it. Instinctively, ${he} begins to push out ${firstText} baby. ${His} child is promptly taken and ${he} is encouraged to keep resting.`); if (hasAnyArms(slave)) { r.push(`${He} runs ${his}`); if (hasBothArms(slave)) { r.push(`hands`); } else { r.push(`hand`); } r.push(`across the still huge dome of ${his} middle; to`); } else { r.push(`To`); } r.push(`${him}, gravidity and birth is nothing out of the ordinary.`); } else { r.push(`${slave.slaveName} is awoken from ${his} rest by a strong contraction. ${He} rolls over and begins to fall back to sleep as another contraction wracks ${his} body.`); r.push(clothingBirth()); r.push(`${He} fishes around under ${his} still huge dome of a stomach searching for ${his} newborn. Once ${he} finds it, ${he} draws ${firstText} baby to ${his} breast and resumes resting.`); } } else { if (random(1, 20) > suddenBirth) { r.push(`${He} is helped back to ${his} bed and stripped before slipping into it. ${He} makes ${himself} comfortable and begins working on birthing ${firstText} baby${UH}. ${His} child is promptly taken and ${he} is encouraged to keep resting. ${He} rolls over${(hasAnyArms(slave)) ? `, cradling ${his} heavily rounded middle,` : ``} and dozes off.`); } else { r.push(`${slave.slaveName} is awoken from ${his} rest by a moist sensation followed by a contraction. ${He} rolls over and clutches ${his} gravid belly as another contraction wracks ${his} body.`); r.push(clothingBirth()); r.push(`${He} struggles to collect ${firstText} child and places them in the cradle readied for ${him}. ${He} is helped to the shower as your servants clean up and remove ${his} child.`); } } } else { if (slave.fetish === "mindbroken") { if (random(1, 20) > suddenBirth) { r.push(`${He} returns to ${his} bed and strips before slipping into it. Instinctively, ${he} begins to push out ${firstText} baby. ${His} child is promptly taken and ${he} is encouraged to keep resting.`); if (hasAnyArms(slave)) { r.push(`${He} runs ${his}`); if (hasBothArms(slave)) { r.push(`hands`); } else { r.push(`hand`); } r.push(`across the still huge dome of ${his} middle; to`); } else { r.push(`To`); } r.push(`${him}, gravidity and birth is nothing out of the ordinary.`); } else { r.push(`${slave.slaveName} is awoken from ${his} rest by a strong contraction. ${He} rolls over and begins to fall back to sleep as another contraction wracks ${his} body.`); r.push(clothingBirth()); r.push(`${He} fishes around under ${his} still huge dome of a stomach searching for ${his} newborn. Once ${he} finds it, ${he} draws ${firstText} baby to ${his} breast and resumes resting.`); } } else { if (random(1, 20) > suddenBirth) { r.push(`${He} returns to ${his} bed and strips before slipping into it. ${He} makes ${himself} comfortable and begins working on birthing ${firstText} baby${UH}. ${His} child is promptly taken and ${he} is encouraged to keep resting. ${He} rolls over${(hasAnyArms(slave)) ? `, cradling ${his} heavily rounded middle,` : ``} and dozes off.`); } else { r.push(`${slave.slaveName} is awoken from ${his} rest by a moist sensation followed by a contraction. ${He} rolls over and clutches ${his} gravid belly as another contraction wracks ${his} body.`); r.push(clothingBirth()); r.push(`${He} struggles to collect ${firstText} child and places them in the cradle readied for ${him}. ${He} hefts ${his} still very gravid body out of bed to take a shower as your servants clean up and remove ${his} child.`); } } } break; case Job.SUBORDINATE: if (tempSub) { ({his2} = getPronouns(tempSub).appendSuffix("2")); } if (slave.fetish === "mindbroken") { if (slave.subTarget === 0) { if (random(1, 20) > suddenBirth) { r.push(`${He} returns to ${his} bed and strips before slipping into it. Instinctively, ${he} begins to push out ${firstText} baby. ${His} child is promptly taken and ${he} rests for a short while before returning to your waiting slaves.`); } else { r.push(`While servicing your other slaves, ${slave.slaveName}'s water breaks, though it does nothing to deter ${him} from ${his} task.`); r.push(clothingBirth()); r.push(`No sooner than ${firstText} baby is born, a cock is shoved into ${his} gaping, still very gravid`); if (slave.mpreg === 1) { r.push(`asshole`); } else { r.push(`pussy`); } r.push(`as ${he} draws ${his} child to ${his} breast.`); } } else { if (random(1, 20) > suddenBirth) { r.push(`${He} is lead by ${tempSub.slaveName} to a private room so that ${he2} may`); if (canSee(tempSub)) { r.push(`watch.`); } else { r.push(`be present.`); } r.push(`Instinctively ${he} begins to push out ${firstText} baby, indifferent to ${his} watching audience. ${His} child is promptly taken and ${tempSub.slaveName} eagerly descends upon ${his} defenseless and still very gravid body.`); } else { r.push(`While servicing ${tempSub.slaveName}, ${slave.slaveName}'s water breaks, though it does nothing to deter ${him} from ${his} task.`); r.push(clothingBirth()); r.push(`No sooner than ${firstText} baby is born does ${he} go back to pleasuring ${his} dom.`); } } } else { if (slave.subTarget === 0) { if (random(1, 20) > suddenBirth) { r.push(`${He} returns to ${his} bed and strips before slipping into it. ${He} makes ${himself} comfortable and begins working on birthing ${firstText} baby${UH}. ${His} child is promptly taken and ${he} rests for a short while before returning to your waiting slaves.`); } else { r.push(`While servicing your other slaves, ${slave.slaveName}'s water breaks, causing ${him} to immediately try to break off. However, a hand quickly hooks ${his} gravid bulk and ${he} is pulled back into another slave's crotch.`); humiliation = 1; r.push(clothingBirth()); r.push(`${He} is allowed a moment to prepare ${firstText} child to be sent off before returning to pleasuring your other slaves.`); } } else { if (random(1, 20) > suddenBirth) { r.push(`${He} is taken by ${tempSub.slaveName} to a private room so that ${he2} may`); if (canSee(tempSub)) { r.push(`watch.`); } else { r.push(`be present.`); } r.push(`Reluctantly, ${he} begins to push out ${firstText} baby, fully aware of ${tempSub.slaveName}'s ${(tempSub.fetish === "pregnancy") ? `hungry gaze` : `amused gaze`}${(slave.geneticQuirks.uterineHypersensitivity === 2) ? `, but is quickly overwhelmed by the pleasure from ${his} orgasmic birth` : ``}. ${His} child is promptly taken and ${tempSub.slaveName} eagerly descends upon ${his} exhausted and still very gravid body.`); humiliation = 1; } else { r.push(`While servicing ${tempSub.slaveName}, ${slave.slaveName}'s water breaks, causing ${him} to immediately try to break off. ${His} dom eagerly watches ${his2} gravid sub's ordeal.`); humiliation = 1; r.push(clothingBirth()); r.push(`${tempSub.slaveName} collects the newborn child to be sent off before returning, caressing the swell of ${his} still huge belly and planting ${his2} crotch directly onto ${his2} exhausted sub's face.`); } } } break; case Job.WHORE: if (!canWalk(slave)) { if (slave.fetish === "mindbroken") { if (random(1, 20) > suddenBirth) { r.push(`${He} is helped back to ${his} bed and stripped before slipping into it. Instinctively, ${he} begins to push out ${firstText} baby. ${His} child is promptly taken and ${he} rests awhile before returning to ${his} work as a pregnant whore.`); } else { r.push(`While attempting to attract customers with ${his} gravid body, ${slave.slaveName}'s water breaks.`); r.push(clothingBirth()); r.push(`${He} struggles to bring ${firstText} child to ${his} breast as ${he} resumes whoring, oblivious to the free show ${he} just gave ${his} customers.`); } } else { if (random(1, 20) > suddenBirth) { r.push(`${He} is helped back to ${his} bed and stripped before slipping into it. ${He} makes ${himself} comfortable and begins working on birthing ${firstText} baby${UH}. ${His} child is promptly taken and ${he} rests awhile before returning to ${his} work as a pregnant whore.`); } else { r.push(`While attempting to attract customers with ${his} gravid body, ${slave.slaveName}'s water breaks, soaking ${him}. ${He} attempts to get someplace safe to give birth but finds it impossible.`); humiliation = 1; r.push(clothingBirth()); r.push(`${He} lies on the ground, exhausted and covered in sperm from the circle of men watching ${him}, until ${he} recovers enough to heft ${his} still very gravid body to its feet and collect ${firstText} child to be sent off.`); } } } else { if (slave.fetish === "mindbroken") { if (random(1, 20) > suddenBirth) { r.push(`${He} returns to ${his} bed and strips before slipping into it. Instinctively, ${he} begins to push out ${firstText} baby. ${His} child is promptly taken and ${he} rests awhile before returning to ${his} work as a pregnant whore.`); } else { r.push(`While attempting to attract customers with ${his} gravid body, ${slave.slaveName}'s water breaks.`); r.push(clothingBirth()); r.push(`${He} struggles to bring ${firstText} child to ${his} breast as ${he} resumes whoring, oblivious to the free show ${he} just gave ${his} customers.`); } } else { if (random(1, 20) > suddenBirth) { r.push(`${He} returns to ${his} bed and strips before slipping into it. ${He} makes ${himself} comfortable and begins working on birthing ${firstText} baby${UH}. ${His} child is promptly taken and ${he} rests awhile before returning to ${his} work as a pregnant whore.`); } else { r.push(`While attempting to attract customers with ${his} gravid body, ${slave.slaveName}'s water breaks, soaking ${him}. ${He} attempts to get someplace safe to give birth but finds ${his} path blocked by rowdy johns.`); humiliation = 1; r.push(clothingBirth()); r.push(`${He} lies on the ground, exhausted and covered in sperm from the circle of men watching ${him}, until ${he} recovers enough to push ${his} still very gravid body to its feet and collect ${firstText} child to be sent off.`); } } } break; case Job.PUBLIC: if (!canWalk(slave)) { if (slave.fetish === "mindbroken") { if (random(1, 20) > suddenBirth) { r.push(`${He} is helped back to ${his} bed and stripped before slipping into it. Instinctively, ${he} begins to push out ${firstText} baby. ${His} child is promptly taken and ${he} rests awhile before returning to sharing ${his} gravid body with the public.`); } else { if (birthScene > 80 && canDoVaginal(slave)) { r.push(`While riding a citizen's dick, ${slave.slaveName}'s water breaks on him. Showing no signs of stopping, he shoves ${his} bulk off of him. Instinctively, ${he} begins to push out ${firstText} baby, indifferent to who may be watching ${his} naked crotch. ${He} draws ${his} child to ${his} breast before seeking out the next citizen's cock.`); } else if (birthScene > 60 && canDoAnal(slave)) { r.push(`While taking a citizen's dick in ${his} ass, ${slave.slaveName}'s water breaks. ${He} shows no signs of slowing down, so he allows ${him} to reposition and continue. Instinctively, ${he} begins to push out ${firstText} baby, indifferent to who may be watching ${his} naked crotch. He came strongly thanks to ${him} and gives ${him} a slap on the ass as ${he} struggles to reach ${his} child around ${his} still very gravid middle. Once ${he} has brought ${his} child to ${his} breast, ${he} seeks out the next citizen's cock.`); } else if (birthScene > 40) { r.push(`While licking a citizen's cunt, ${slave.slaveName}'s water breaks. ${He} shows no signs of slowing down, so she allows ${him} to reposition and continue.`); r.push(clothingBirth()); r.push(`The citizen splashes across ${his} face as ${he} struggles to reach ${firstText} baby around ${his} still very gravid middle. Once ${he} has brought ${his} child to ${his} breast, ${he} seeks out the next citizen's cunt.`); } else { r.push(`While sucking a citizen's dick, ${slave.slaveName}'s water breaks. ${He} shows no signs of slowing down, so he allows ${him} to reposition and continue.`); r.push(clothingBirth()); r.push(`He cums down ${his} throat as ${he} struggles to reach ${firstText} baby around ${his} still very gravid middle. Once ${he} has brought ${his} child to ${his} breast, ${he} seeks out the next citizen's cock.`); } } } else { if (random(1, 20) > suddenBirth) { r.push(`${He} is helped back to ${his} bed and stripped before slipping into it. ${He} makes ${himself} comfortable and begins working on birthing ${firstText} baby${UH}. ${His} child is promptly taken and ${he} rests awhile before returning to sharing ${his} gravid body with the public.`); } else { if (birthScene > 80 && canDoVaginal(slave)) { r.push(`While riding a citizen's dick, ${slave.slaveName}'s water breaks on him. ${He} desperately tries to disengage but he grabs ${his} hips and slams ${him} back down. He thoroughly enjoys ${his} contracting cunt before pushing ${him} off and standing over ${him}, jacking off. Quickly ${he} spreads ${his} legs apart and begins pushing out ${firstText} baby${UH}. ${He} can't hide what's happening between ${his} legs,`); if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } r.push(`He cums over ${his} heaving, still very gravid body and moves on leaving ${him} to recover and collect ${his} child to be sent off.`); humiliation = 1; } else if (birthScene > 60 && canDoAnal(slave)) { r.push(`While taking a citizen's dick in ${his} ass, ${slave.slaveName}'s water breaks. ${He} desperately tries to disengage but he grabs ${his} hips and slams into ${him} hard. Quickly ${he} spreads ${his} legs apart and begins pushing out ${firstText} baby${UH}. ${He} can't hide what's happening between ${his} legs,`); if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } r.push(`He came strongly thanks to ${him} and gives ${him} a slap on the ass as ${he} collapses onto ${his} still very gravid belly and slips to ${his} side. ${He} quickly gathers ${his} child to be sent off.`); humiliation = 1; } else if (birthScene > 40) { r.push(`While licking a citizen's cunt, ${slave.slaveName}'s water breaks. ${He} desperately tries to disengage but she grabs ${his} head and slams ${him} back into her crotch.`); humiliation = 1; r.push(clothingBirth()); r.push(`She cums across ${his} face before helping ${his} still very gravid body to the ground and leaving. When ${he} recovers, ${he} quickly gathers ${firstText} child to be sent off.`); } else { r.push(`While sucking a citizen's dick, ${slave.slaveName}'s water breaks. ${He} desperately tries to disengage but he grabs ${his} head and slams ${him} back into his crotch.`); humiliation = 1; r.push(clothingBirth()); r.push(`He cums down ${his} throat before letting ${him} collapse to the ground and leaving. When ${he} recovers and pushes ${his} still very gravid body upright, ${he} quickly gathers ${firstText} child to be sent off.`); } } } } else { if (slave.fetish === "mindbroken") { if (random(1, 20) > suddenBirth) { r.push(`${He} returns to ${his} bed and strips before slipping into it. Instinctively, ${he} begins to push out ${firstText} baby. ${His} child is promptly taken and ${he} rests awhile before returning to sharing ${his} gravid body with the public.`); } else { if (birthScene > 80 && canDoVaginal(slave)) { r.push(`While riding a citizen's dick, ${slave.slaveName}'s water breaks on him. Showing no signs of stopping, he shoves ${his} bulk off of him. Instinctively, ${he} begins to push out ${firstText} baby, indifferent to who may be watching ${his} naked crotch. ${He} draws ${his} child to ${his} breast before seeking out the next citizen's cock.`); } else if (birthScene > 60 && canDoAnal(slave)) { r.push(`While taking a citizen's dick in ${his} ass, ${slave.slaveName}'s water breaks. ${He} shows no signs of slowing down, so he allows ${him} to reposition and continue. Instinctively, ${he} begins to push out ${firstText} baby, indifferent to who may be watching ${his} naked crotch. He came strongly thanks to ${him} and gives ${him} a slap on the ass as ${he} struggles to reach ${his} child around ${his} still very gravid middle. Once ${he} has brought ${his} child to ${his} breast, ${he} seeks out the next citizen's cock.`); } else if (birthScene > 40) { r.push(`While licking a citizen's cunt, ${slave.slaveName}'s water breaks. ${He} shows no signs of slowing down, so she allows ${him} to reposition and continue.`); r.push(clothingBirth()); r.push(`The citizen splashes across ${his} face as ${he} struggles to reach ${firstText} baby around ${his} still very gravid middle. Once ${he} has brought ${his} child to ${his} breast, ${he} seeks out the next citizen's cunt.`); } else { r.push(`While sucking a citizen's dick, ${slave.slaveName}'s water breaks. ${He} shows no signs of slowing down, so he allows ${him} to reposition and continue.`); r.push(clothingBirth()); r.push(`He cums down ${his} throat as ${he} struggles to reach ${firstText} baby around ${his} still very gravid middle. Once ${he} has brought ${his} child to ${his} breast, ${he} seeks out the next citizen's cock.`); } } } else { if (random(1, 20) > suddenBirth) { r.push(`${He} returns to ${his} bed and strips before slipping into it. ${He} makes ${himself} comfortable and begins working on birthing ${firstText} baby${UH}. ${His} child is promptly taken and ${he} rests awhile before returning to sharing ${his} gravid body with the public.`); } else { if (birthScene > 80 && canDoVaginal(slave)) { r.push(`While riding a citizen's dick, ${slave.slaveName}'s water breaks on him. ${He} desperately tries to disengage but he grabs ${his} hips and slams ${him} back down. He thoroughly enjoys ${his} contracting cunt before pushing ${him} off and standing over ${him}, jacking off. Quickly ${he} spreads ${his} legs apart and begins pushing out ${firstText} baby${UH}. ${He} can't hide what's happening between ${his} legs,`); if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } r.push(`He cums over ${his} heaving, still very gravid body and moves on, leaving ${him} to recover and collect ${his} child to be sent off.`); humiliation = 1; } else if (birthScene > 60 && canDoAnal(slave)) { r.push(`While taking a citizen's dick in ${his} ass, ${slave.slaveName}'s water breaks. ${He} desperately tries to disengage but he grabs ${his} hips and slams into ${him} hard. Quickly ${he} spreads ${his} legs apart and begins pushing out ${firstText} baby${UH}. ${He} can't hide what's happening between ${his} legs,`); if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } r.push(`He came strongly thanks to ${him} and gives ${him} a slap on the ass as ${he} collapses onto ${his} still very gravid belly and slips to ${his} side. ${He} quickly gathers ${his} child to be sent off.`); humiliation = 1; } else if (birthScene > 40) { r.push(`While licking a citizen's cunt, ${slave.slaveName}'s water breaks. ${He} desperately tries to disengage but ${he} grabs ${his} head and slams ${him} back into her crotch.`); humiliation = 1; r.push(clothingBirth()); r.push(`She cums across ${his} face before helping ${his} still very gravid body to the ground and leaving. When ${he} recovers, ${he} quickly gathers ${firstText} child to be sent off.`); } else { r.push(`While sucking a citizen's dick, ${slave.slaveName}'s water breaks. ${He} desperately tries to disengage but he grabs ${his} head and slams ${him} back into his crotch.`); humiliation = 1; r.push(clothingBirth()); r.push(`He cums down ${his} throat before letting ${him} collapse to the ground and leaving. When ${he} recovers and pushes ${his} still very gravid body`); if (hasBothLegs(slave)) { r.push(`to its feet,`); } else { r.push(`into a standing position,`); } r.push(`${he} quickly gathers ${firstText} child to be sent off.`); } } } } break; case Job.GLORYHOLE: if (slave.fetish === "mindbroken") { if (random(1, 20) > suddenBirth) { r.push(`Since ${he} is unable to leave ${his} box, ${he} doesn't have far to go. Instinctively, ${he} begins to push out ${firstText} baby. ${His} child is quickly extracted from the box. ${He} never notices, focused entirely on the fresh cock poking through the glory hole and the sensation of ${his} still very gravid middle rubbing the wall.`); } else { r.push(`While sucking a dick through the hole of ${his} confining box, ${slave.slaveName}'s water breaks. ${He} makes no effort to stop sucking the dicks presented to ${him}.`); r.push(clothingBirth()); if (slave.counter.birthsTotal === 0) { r.push(`${His} first`); } else { r.push(`This week's`); } r.push(`child is quickly extracted from the box. ${He} never notices, focused entirely on the fresh cock poking through the glory hole and the sensation of ${his} still very gravid middle rubbing the wall.`); } } else { if (random(1, 20) > suddenBirth) { r.push(`Since ${he} is unable to leave ${his} box, ${he} doesn't have far to go. ${He} quickly finishes the waiting dick before shifting ${himself} into a slightly, though not by much, more comfortable position. ${He} begins laboring on ${firstText} child${UH}. As ${he} finishes, the box is opened and ${his} child is gathered and taken away before ${he} is ordered back to sucking.`); } else { r.push(`While sucking a dick through the hole of ${his} confining box, ${slave.slaveName}'s water breaks. ${He} quickly finishes the dick off before seating ${himself} in the back of the box.`); r.push(clothingBirth()); r.push(`As ${he} finishes, ${he}`); if (canSee(slave)) { r.push(`could have sworn ${he} saw an eye`); } else { r.push(`swears ${he} can feel somebody`); } r.push(`peeping through the glory hole, watching the show. The box is opened and ${firstText} child is gathered and taken away as ${he} struggles to reach the fresh cock poking through the hole.`); } } break; case Job.MILKED: if (slave.fetish === "mindbroken") { if (V.dairyPregSetting > 0) { r.push(`Since the dairy is designed for pregnant cows, ${he} stays hooked up to the milkers. ${He} shows little interest in ${his} coming birth, instead focusing on ${his} milky breasts. Instinctively, ${he} begins to push out ${firstText} baby. ${He} shows no interest in ${his} child being removed from the milking stall, nor when ${his} still very gravid body is hosed off.`); } else { if (random(1, 20) > suddenBirth) { if (!canWalk(slave)) { r.push(`${He} is helped back to ${his} bed and stripped before slipping into it.`); } else { r.push(`${He} returns to ${his} bed and strips before slipping into it.`); } r.push(`Instinctively, ${he} begins to push out ${firstText} baby. ${His} child is promptly taken and ${he} rests awhile before returning to the milkers to lighten ${his} swelling breasts.`); } else { r.push(`While getting milked, ${slave.slaveName}'s water breaks. ${He} show little interest and continues kneading ${his} breasts.`); r.push(clothingBirth()); r.push(`${He} shows no interest in ${firstText} child being removed from the milking stall, nor ${his} still very gravid middle, instead focusing entirely on draining ${his} breasts.`); } } } else { if (V.dairyPregSetting > 0) { r.push(`Since the dairy is designed for pregnant cows, ${he} stays hooked up to the milkers. ${He} meekly protests ${his} situation, but ultimately accepts it. ${He} begins working on birthing ${his} ${firstText} baby${UH}, and catches a glimpse of ${his} child being removed from the milking stall, but quickly forgets when ${he} is hosed off.`); humiliation = 1; } else { if (random(1, 20) > suddenBirth) { if (!canWalk(slave)) { r.push(`${He} is helped back to ${his} bed and stripped before slipping into it.`); } else { r.push(`${He} returns to ${his} bed and strips before slipping into it.`); } r.push(`${He} makes ${himself} comfortable and begins working on birthing ${firstText} baby${UH}. ${His} child is promptly taken and ${he} rests awhile before returning to the milkers to lighten ${his} swelling breasts.`); } else { r.push(`While getting milked, ${slave.slaveName}'s water breaks. ${He} shifts into a comfortable position to give birth while the milker works ${his} breasts.`); r.push(clothingBirth()); r.push(`${He} takes a break from milking to collect ${firstText} child for removal and to catch ${his} breath before reattaching the milkers and coaxing ${his} milk to begin flowing anew.`); } } } break; case Job.FARMYARD: // TODO: this needs a rewrite if (slave.fetish === "mindbroken") { if (V.farmyardPregSetting > 0) { r.push(`Since the farmyard is designed for pregnant cows, ${he} stays hooked up to the milkers. ${He} shows little interest in ${his} coming birth, instead focusing on ${his} milky breasts. Instinctively, ${he} begins to push out ${firstText} baby. ${He} shows no interest in ${his} child being removed from the milking stall, nor when ${his} still very gravid body is hosed off.`); } else { if (random(1, 20) > suddenBirth) { if (!canWalk(slave)) { r.push(`${He} is helped back to ${his} bed and stripped before slipping into it.`); } else { r.push(`${He} returns to ${his} bed and strips before slipping into it.`); } r.push(`Instinctively, ${he} begins to push out ${firstText} baby. ${His} child is promptly taken and ${he} rests awhile before returning to the milkers to lighten ${his} swelling breasts.`); } else { r.push(`While getting milked, ${slave.slaveName}'s water breaks. ${He} show little interest and continues kneading ${his} breasts.`); r.push(clothingBirth()); r.push(`${He} shows no interest in ${firstText} child being removed from the milking stall, nor ${his} still very gravid middle, instead focusing entirely on draining ${his} breasts.`); } } } else { if (V.farmyardPregSetting > 0) { r.push(`Since the farmyard is designed for pregnant cows, ${he} stays hooked up to the milkers. ${He} meekly protests ${his} situation, but ultimately accepts it. ${He} begins working on birthing ${his} ${firstText} baby${UH}, and catches a glimpse of ${his} child being removed from the milking stall, but quickly forgets when ${he} is hosed off.`); humiliation = 1; } else { if (random(1, 20) > suddenBirth) { if (!canWalk(slave)) { r.push(`${He} is helped back to ${his} bed and stripped before slipping into it.`); } else { r.push(`${He} returns to ${his} bed and strips before slipping into it.`); } r.push(`${He} makes ${himself} comfortable and begins working on birthing ${firstText} baby${UH}. ${His} child is promptly taken and ${he} rests awhile before returning to the milkers to lighten ${his} swelling breasts.`); } else { r.push(`While getting milked, ${slave.slaveName}'s water breaks. ${He} shifts into a comfortable position to give birth while the milker works ${his} breasts.`); r.push(clothingBirth()); r.push(`${He} takes a break from milking to collect ${firstText} child for removal and to catch ${his} breath before reattaching the milkers and coaxing ${his} milk to begin flowing anew.`); } } } break; case Job.FUCKTOY: if (!canWalk(slave)) { if (slave.fetish === "mindbroken") { if (random(1, 20) > suddenBirth) { r.push(`You strip ${him} and help ${him} onto your couch. Instinctively, ${he} begins to push out ${firstText} baby. ${His} child is promptly taken and ${he} falls into a contented nap. You fondle ${his} still very gravid body until a servant comes to help clean ${him} up.`); } else { r.push(`While sitting absentmindedly nearby, ${slave.slaveName}'s water breaks soaking the floor under ${him}. ${He} pays no heed to it and continues waiting for you to use ${him}.`); r.push(clothingBirth()); r.push(`You certainly enjoyed the show as you call for a servant to take away ${firstText} child and to clean up the spill.`); } } else { if (random(1, 20) > suddenBirth) { if (slave.devotion > 20) { r.push(`${He} moans lewdly at you and wiggles ${his} hips. As ${he} teases, ${he} begins pushing ${firstText} baby out${UH}. As ${he} crowns, you pull ${him} into your arms and hold ${him} close. You hold ${him} in a comforting embrace until ${he} finishes.`); } else if (slave.devotion >= -20) { r.push(`${He} releases a lewd moan and begins attempting to remove ${his} clothes. You approach ${him}, clearing ${his}`); if (slave.mpreg === 1) { r.push(`asshole`); } else { r.push(`vagina`); } r.push(`and helping ${him} onto the couch, where you take a seat next to ${him} to fondle ${his} vulnerable body. ${He} begins to push out ${firstText} baby${UH}. Once ${he} finishes, you give ${him} some time to catch ${his} breath.`); } else { r.push(`${He} begins desperately begging to be taken back to ${his} bed; instead you pull ${him} towards the couch and take a seat with ${him} in your lap, back against your front. Blushing thoroughly, ${he} gives a meek protest before focusing on the coming birth, rather than your wandering hands. ${He} begins to push out ${firstText} baby${UH}.`); humiliation = 1; } r.push(`${His} child is promptly taken and, following a shower and a fresh change of clothes, ${he} is helped back to your office${(slave.devotion < -20) ? `where you are waiting to enjoy ${his} still very gravid body` : ``}.`); } else { r.push(`While sitting nearby, ${slave.slaveName}'s water breaks, startling ${him}. ${He} looks to you for guidance and you shake your head "no". Without permission to leave ${he}`); if (slave.devotion > 50) { r.push(`decides to give you a show.`); } else if (slave.devotion > 20) { r.push(`reluctantly decides giving birth in front of you isn't so bad.`); } else { r.push(`begins to panic as ${his} contractions come sooner and sooner.`); humiliation = 1; } r.push(clothingBirth()); r.push(`As thanks for the show, you help ${his} still very gravid body to the couch so ${he} can recover before returning to ${his} duties. You call for a servant to take away ${firstText} child and to clean up your floor and your toy.`); } } } else { if (slave.fetish === "mindbroken") { if (random(1, 20) > suddenBirth) { r.push(`${He} returns to ${his} bed and strips before slipping into it. Instinctively, ${he} begins to push out ${firstText} baby. ${His} child is promptly taken and ${he} falls into a contented nap. That is until you drag ${his} still very gravid ass out of bed, inquiring where ${he} waddled off to without your permission.`); } else { r.push(`While standing absentmindedly nearby, ${slave.slaveName}'s water breaks soaking the floor under ${him}. ${He} pays no heed to it and continues waiting for you to use ${him}.`); r.push(clothingBirth()); r.push(`You certainly enjoyed the show as you call for a servant to take away ${firstText} child and to clean up the spill.`); } } else { if (random(1, 20) > suddenBirth) { if (slave.devotion > 20) { r.push(`${He} seeks you out and begins slowly stripping. As ${he} teases, ${he} begins pushing ${firstText} baby out${UH}. As ${he} crowns, ${he} throws ${himself} into your waiting arms and holds ${himself} to you. You hold ${him} in a comforting embrace until ${he} finishes.`); } else if (slave.devotion >= -20) { r.push(`${He} approaches you and begins a very uncertain striptease. As ${he} lowers ${himself} to the floor to begin pushing, you overtake ${him} and fondle ${his} vulnerable body. ${He} begins to push out ${firstText} baby${UH}. Once ${he} finishes, you help ${him} to the couch to catch ${his} breath.`); } else { r.push(`${He} attempts to leave your office and return to ${his} bed, but you catch ${his} arm before ${he} slips out of reach. You order ${him} to strip and give you a show. Blushing thoroughly, ${he} gives a meek performance before falling to the floor. ${He} begins to push out ${firstText} baby${UH}.`); humiliation = 1; } r.push(`${His} child is promptly taken and, following a shower and a fresh change of clothes, ${he} waddles back into your office${(slave.devotion < -20) ? `where you are waiting to enjoy ${his} still very gravid body` : ``}.`); } else { r.push(`While standing nearby, ${slave.slaveName}'s water breaks, startling ${him}. ${He} looks to you for guidance and you shake your head "no". Without permission to leave ${he}`); if (slave.devotion > 50) { r.push(`decides to give you a show.`); } else if (slave.devotion > 20) { r.push(`reluctantly decides giving birth in front of you isn't so bad.`); } else { r.push(`begins to panic as ${his} contractions come sooner and sooner.`); humiliation = 1; } r.push(clothingBirth()); r.push(`As thanks for the show, you help ${his} still very gravid body onto the couch so ${he} can recover before returning to ${his} duties. You call for a servant to take away ${firstText} child and to clean up your floor and your toy.`); } } } break; case Job.CONFINEMENT: if (slave.fetish === "mindbroken") { if (random(1, 20) > suddenBirth) { r.push(`Since ${he} is locked in a cell, ${he} doesn't have far to go. Instinctively, ${he} begins to push out ${firstText} baby. ${His} child is promptly taken and, after ${his} still very gravid body and the cell are hosed down, ${he} is returned to isolation.`); } else { r.push(`While waiting in confinement, ${slave.slaveName}'s water breaks. ${He} assumes a birthing position.`); r.push(clothingBirth()); r.push(`${He} struggles to reach ${firstText} child around ${his} still very gravid middle and resumes waiting with it latched to ${his} breast.`); } } else { if (random(1, 20) > suddenBirth) { r.push(`Since ${he} is locked in a cell, ${he} doesn't have far to go. Reluctantly, ${he} begins to push out ${firstText} baby${UH}. ${His} child is promptly taken and, after ${his} still very gravid body and the cell are hosed down, ${he} is returned to isolation.`); humiliation = 1; } else { r.push(`${slave.slaveName} is awoken from ${his} stupor by moist sensation followed by a contraction. ${He} rolls over and clutches ${his} gravid belly as another contraction wracks ${his} body.`); r.push(clothingBirth()); r.push(`${He} collects ${firstText} child and holds it close knowing someone will soon come to take it away from ${him}.`); } } break; case Job.QUARTER: case Job.HOUSE: if (slave.fetish === "mindbroken") { if (random(1, 20) > suddenBirth) { r.push(`${He} returns to ${his} bed and strips before slipping into it. Instinctively ${he} begins to push out ${firstText} baby. ${His} child is promptly taken and ${he} rests awhile before returning to ${his} role as your ever-pregnant maid.`); } else { if (birthScene > 50) { r.push(`While giving a slave oral service, ${slave.slaveName}'s water breaks. ${He} disregards this development and continues working.`); r.push(clothingBirth()); r.push(`The slave gets off quite strongly to the show and shoves ${him} out of the way, leaving ${him} to clean up ${his} mess. Instead, ${he} draws ${firstText} child to ${his} breast until`); if (S.Stewardess) { r.push(S.Stewardess.slaveName); } else if (V.HeadGirlID !== 0) { r.push(S.HeadGirl.slaveName); } else { r.push(V.assistant.name); } r.push(`shouts at ${him} to move ${his} useless pregnant ass.`); } else { r.push(`While scrubbing the penthouse floor, ${slave.slaveName}'s water breaks. ${He} turns to clean this new spill, disregarding what it means.`); r.push(clothingBirth()); r.push(`Instead of cleaning the fresh mess ${he} made, ${he} draws ${firstText} child to ${his} breast until`); if (S.Stewardess) { r.push(S.Stewardess.slaveName); } else if (V.HeadGirlID !== 0) { r.push(S.HeadGirl.slaveName); } else { r.push(V.assistant.name); } r.push(`shouts at ${him} to move ${his} useless pregnant ass.`); } } } else { if (random(1, 20) > suddenBirth) { r.push(`${He} returns to ${his} bed and strips before slipping into it. ${He} makes ${himself} comfortable and begins working on birthing ${firstText} baby${UH}. ${His} child is promptly taken and ${he} rests awhile before returning to ${his} role as your ever-pregnant maid.`); } else { if (birthScene > 50) { r.push(`While giving a slave oral service, ${slave.slaveName}'s water breaks. ${He} desperately tries to pull away but they grab ${his} head and force ${him} back to their crotch.`); humiliation = 1; r.push(clothingBirth()); r.push(`The slave gets off quite strongly to the show and shoves ${him} out of the way, leaving ${him} to clean up ${his} mess. ${He} hurriedly tries to mop up the mess and collect ${firstText} child before`); if (S.Stewardess) { r.push(S.Stewardess.slaveName); } else if (V.HeadGirlID !== 0) { r.push(S.HeadGirl.slaveName); } else { r.push(`anyone`); } r.push(`shouts at ${him} for dragging ${his} pregnant ass.`); } else { r.push(`While scrubbing the penthouse floor, ${slave.slaveName}'s water breaks. ${He} panics at the thought of not cleaning up ${his} spill but ${his} worsening contractions force ${him} to find a secluded place to give birth.`); r.push(clothingBirth()); r.push(`Collecting ${firstText} child, ${he} carefully exits ${his} hiding place before coming under the eye of`); if (S.Stewardess) { r.push(`the glaring ${S.Stewardess.slaveName}. ${His} child is promptly taken`); } else if (V.HeadGirlID !== 0) { r.push(`the glaring ${S.HeadGirl.slaveName}. ${His} child is promptly taken`); } else { r.push(`a glaring slave. ${His} child is promptly taken by other servants`); } r.push(`following a lecture about priorities and time management given ${his} constant pregnancy and predictable birth cycle.`); } } } break; case Job.MASTERSUITE: if (!canWalk(slave)) { if (slave.fetish === "mindbroken") { if (random(1, 20) > suddenBirth) { if (V.masterSuiteUpgradePregnancy === 1) { r.push(`${He} is helping into the birthing chamber, stripped, and aided into the specialized chair. Instinctively, ${he} begins to push out ${firstText} baby. ${His} child is promptly taken and, following a shower and fresh change of clothes, ${he} is returned to`); if (V.masterSuiteUpgradeLuxury === 1) { r.push(`your big bed.`); } else if (V.masterSuiteUpgradeLuxury === 2) { r.push(`the fuckpit.`); } else { r.push(`the main room of the master suite.`); } } else { r.push(`After struggling to strip and tipping into one of the various seats around the room, ${he} prepares to give birth. Instinctively, ${he} begins to push out ${firstText} baby, indifferent to who may be watching ${him}. ${His} child is promptly taken and, following a shower and fresh change of clothes, ${he} is helped back to`); if (V.masterSuiteUpgradeLuxury === 1) { r.push(`your big bed.`); } else if (V.masterSuiteUpgradeLuxury === 2) { r.push(`the fuckpit.`); } else { r.push(`${his} usual spot.`); } } } else { if (V.masterSuiteUpgradeLuxury === 1) { r.push(`While awaiting your return on the big bed in the master suite, ${slave.slaveName}'s water breaks thoroughly soaking the sheets. Ignoring the mess, ${he} shifts into a more comfortable position.`); r.push(clothingBirth()); r.push(`${He} struggles to reach ${firstText} child around ${his} still gravid figure before bringing it to ${his} breast and resuming ${his} wait.`); if (S.Concubine) { r.push(`${S.Concubine.slaveName} furiously orders ${his} child removed and ${his} still very pregnant ass forcefully ejected from the bed so it can be cleaned before your return.`); } } else if (V.masterSuiteUpgradeLuxury === 2) { r.push(`While being the bottom of the master suite's fuckpit, ${slave.slaveName}'s water breaks. While ${he} doesn't stop having sex, the fucktoys using ${him} do and drag ${him} from the pit to give birth. Instinctively, ${he} begins to push out ${firstText} baby, indifferent to who may be watching ${his} naked crotch. Without a second thought about ${his} child, ${he} slips back into the fuckpit.`); } else { r.push(`While awaiting your return in the master suite, ${slave.slaveName}'s water breaks. ${He} pays it no heed and continues blankly waiting.`); r.push(clothingBirth()); r.push(`${He} struggles to reach ${firstText} child around ${his} still gravid figure before bringing it to ${his} breast and resuming ${his} wait`); if (S.Concubine) { r.push(`${S.Concubine.slaveName} furiously orders ${his} child removed and ${his} still very pregnant ass thoroughly cleaned before your return.`); } } } } else { if (random(1, 20) > suddenBirth) { if (V.masterSuiteUpgradePregnancy === 1) { r.push(`${He} is helping into the birthing chamber, stripped, and aided into the specialized chair. Finding it quite comfortable, ${he} begins to push out ${firstText} baby${UH}. ${His} child is promptly taken and, following a shower and fresh change of clothes, ${he} is returned to`); if (V.masterSuiteUpgradeLuxury === 1) { r.push(`your big bed.`); } else if (V.masterSuiteUpgradeLuxury === 2) { r.push(`the fuckpit.`); } else { r.push(`the main room of the master suite.`); } } else { r.push(`After struggling to strip and tipping into one of the various seats around the room, ${he} prepares to give birth. ${He} gets comfortable and begins to push out ${firstText} baby${UH}. ${His} child is promptly taken and, following a shower and fresh change of clothes, ${he} is returned to`); if (V.masterSuiteUpgradeLuxury === 1) { r.push(`your big bed.`); } else if (V.masterSuiteUpgradeLuxury === 2) { r.push(`the fuckpit.`); } else { r.push(`${his} preferred spot.`); } } } else { if (V.masterSuiteUpgradeLuxury === 1) { r.push(`While awaiting your return on the big bed in the master suite, ${slave.slaveName}'s water breaks thoroughly soaking the sheets. ${He} quickly shifts ${himself} off the bed and calls for a servant before dropping to the floor.`); r.push(clothingBirth()); r.push(`Once ${firstText} child is removed, ${his} still very gravid body cleaned up, and the sheets are changed, ${he} is helped back into bed to recover for your return.`); } else if (V.masterSuiteUpgradeLuxury === 2) { r.push(`While participating in the fuckpit orgy, ${slave.slaveName}'s water breaks. ${He} begs to be let out of the pit but the other fucktoys pull ${him} in and position themselves for ${him} to pleasure them while giving birth.`); humiliation = 1; r.push(clothingBirth()); r.push(`Once the fucktoys are done tormenting the still very gravid new mother, they hand ${firstText} child off to the help and pull ${him} into an embrace to allow ${him} to regain ${his} strength.`); } else { r.push(`While awaiting your return in the master suite, ${slave.slaveName}'s water breaks. ${He} tries to get to the prepared area but fails to untangle ${himself} from the toys ${he} was playing with. ${He} calls for a servant to hurry as ${he} begins laboring.`); r.push(clothingBirth()); r.push(`The servant collects ${firstText} child and helps ${his} still very gravid body onto a cushion to recover for your return.`); if (canDoAnal(slave) && slave.anus > 0) { r.push(`With a little effort, ${he} pushes the vibrating dildo out of ${his} ass`); } else { r.push(`With things settling down, ${he} finally manages to switch off the bullet vibrators stuck to ${his} crotch`); } r.push(`before settling down for a nap.`); } } } } else { if (slave.fetish === "mindbroken") { if (random(1, 20) > suddenBirth) { if (V.masterSuiteUpgradePregnancy === 1) { r.push(`${He} enters the birthing chamber, strips, and seats ${himself} in the specialized chair. Instinctively, ${he} begins to push out ${firstText} baby. ${His} child is promptly taken and, following a shower and fresh change of clothes, ${he} returns to`); if (V.masterSuiteUpgradeLuxury === 1) { r.push(`your big bed.`); } else if (V.masterSuiteUpgradeLuxury === 2) { r.push(`the fuckpit.`); } else { r.push(`the main room of the master suite.`); } } else { r.push(`${He} strips and settles into one of the various seats around the room. Instinctively, ${he} begins to push out ${firstText} baby, indifferent to who may be watching ${him}. ${His} child is promptly taken and, following a shower and fresh change of clothes, ${he} returns to`); if (V.masterSuiteUpgradeLuxury === 1) { r.push(`your big bed.`); } else if (V.masterSuiteUpgradeLuxury === 2) { r.push(`the fuckpit.`); } else { r.push(`${his} usual spot.`); } } } else { if (V.masterSuiteUpgradeLuxury === 1) { r.push(`While awaiting your return on the big bed in the master suite, ${slave.slaveName}'s water breaks thoroughly soaking the sheets. Ignoring the mess, ${he} shifts into a more comfortable position.`); r.push(clothingBirth()); r.push(`${He} struggles to reach ${firstText} child around ${his} still gravid figure before bringing it to ${his} breast and resuming ${his} wait.`); if (S.Concubine) { r.push(`${S.Concubine.slaveName} furiously orders ${his} child removed and ${his} still very pregnant ass forcefully ejected from the bed so it can be cleaned before your return.`); } } else if (V.masterSuiteUpgradeLuxury === 2) { r.push(`While being the bottom of the master suite's fuckpit, ${slave.slaveName}'s water breaks. While ${he} doesn't stop having sex, the fucktoys using ${him} do and drag ${him} from the pit to give birth. Instinctively, ${he} begins to push out ${firstText} baby, indifferent to who may be watching ${his} naked crotch. Without a second thought about ${his} child, ${he} slips back into the fuckpit.`); } else { r.push(`While awaiting your return in the master suite, ${slave.slaveName}'s water breaks. ${He} pays it no heed and continues blankly waiting.`); r.push(clothingBirth()); r.push(`${He} struggles to reach ${firstText} child around ${his} still gravid figure before bringing it to ${his} breast and resuming ${his} wait`); if (S.Concubine) { r.push(`${S.Concubine.slaveName} furiously orders ${his} child removed and ${his} still very pregnant ass thoroughly cleaned before your return.`); } } } } else { if (random(1, 20) > suddenBirth) { if (V.masterSuiteUpgradePregnancy === 1) { r.push(`${He} enters the birthing chamber, strips, and seats ${himself} in the specialized chair. Finding it quite comfortable, ${he} begins to push out ${firstText} baby${UH}. ${His} child is promptly taken and, following a shower and fresh change of clothes, ${he} returns to`); if (V.masterSuiteUpgradeLuxury === 1) { r.push(`your big bed.`); } else if (V.masterSuiteUpgradeLuxury === 2) { r.push(`the fuckpit.`); } else { r.push(`the main room of the master suite.`); } } else { r.push(`${He} strips and settles into one of the various seats around the room. ${He} gets comfortable and begins to push out ${firstText} baby${UH}. ${His} child is promptly taken and, following a shower and fresh change of clothes, ${he} returns to`); if (V.masterSuiteUpgradeLuxury === 1) { r.push(`your big bed.`); } else if (V.masterSuiteUpgradeLuxury === 2) { r.push(`the fuckpit.`); } else { r.push(`${his} preferred spot.`); } } } else { if (V.masterSuiteUpgradeLuxury === 1) { r.push(`While awaiting your return on the big bed in the master suite, ${slave.slaveName}'s water breaks thoroughly soaking the sheets. ${He} quickly moves ${himself} off the bed and calls for a servant before dropping to the floor.`); r.push(clothingBirth()); r.push(`Once ${firstText} child is removed, ${his} still very gravid body cleaned up, and the sheets are changed, ${he} crawls back into bed to recover for your return.`); } else if (V.masterSuiteUpgradeLuxury === 2) { r.push(`While participating in the fuckpit orgy, ${slave.slaveName}'s water breaks. ${He} tries to crawl out of the pit but the other fucktoys pull ${him} back in and position themselves for ${him} to pleasure them while giving birth.`); humiliation = 1; r.push(clothingBirth()); r.push(`Once the fucktoys are done tormenting the exhausted`); if (slave.counter.birthsTotal === 0) { r.push(`new`); } else { r.push(`brood`); } r.push(`mother, they hand ${his} child off to the help and pull ${him} into an embrace to allow ${him} to regain ${his} strength.`); } else { r.push(`While awaiting your return in the master suite, ${slave.slaveName}'s water breaks. ${He} tries to get to the prepared area but fails to untangle ${himself} from the toys ${he} was playing with. ${He} calls for a servant to hurry as ${he} begins laboring.`); r.push(clothingBirth()); r.push(`The servant collects ${firstText} child and helps ${his} still very gravid body onto a cushion to recover for your return.`); if (canDoAnal(slave) && slave.anus > 0) { r.push(`With a little effort, ${he} pushes the vibrating dildo out of ${his} ass`); } else { r.push(`With things settling down, ${he} finally manages to switch off the bullet vibrators stuck to ${his} crotch`); } r.push(`before settling down for a nap.`); } } } } break; case Job.CLUB: if (!canWalk(slave)) { if (slave.fetish === "mindbroken") { if (random(1, 20) > suddenBirth) { r.push(`${He} is helped into a private room in the back of the club by a group of eager patrons. Instinctively, ${he} begins to push out ${firstText} baby, indifferent to ${his} audience. ${His} child is promptly taken and, following a cleaning and fresh change of clothes, the audience is allowed to have their way with ${his} still very gravid body.`); } else { r.push(`${slave.slaveName} is showing off ${his} gravid body and trying to attract citizens as well as ${he} can. During one of ${his} teases, ${his} water breaks, soaking the floor. ${He} keeps on teasing, despite ${his} condition, until ${his} contractions drag ${him} to the floor.`); r.push(clothingBirth()); r.push(`Multiple citizens pull ${his} still very pregnant form into a booth so that they may tease ${his} exhausted body while the floor is dried and ${firstText} child carried off.`); } } else { if (random(1, 20) > suddenBirth) { r.push(`${He} is helped to a private room in the back of the club by several patrons who just can't keep their hands off ${him}. ${He} settles ${himself} onto a patron's lap and begins working on birthing ${firstText} baby, basking in the attention of ${his} audience${UH}. ${His} child is promptly taken and ${he} beckons the audience to enjoy ${his} still very gravid body.`); } else { if (slave.fetish === "humiliation") { r.push(`${slave.slaveName} is showing off ${his} gravid body and trying to attract citizens by "dancing" as well as ${he} can, all the while being a huge tease. During one of ${his} "dances", ${his} water breaks, soaking the floor. ${He} calls out to the crowd, hyping them up for ${his} new show.`); humiliation = 1; r.push(clothingBirth()); r.push(`As ${firstText} child are removed, ${he} is helped into one of the back rooms by several of ${his} aroused onlookers.`); } else { r.push(`${slave.slaveName} is showing off ${his} gravid body and trying to attract citizens by "dancing" as well as ${his} figure will let ${him}. During one of ${his} dances, ${his} water breaks, soaking the floor. ${He} hastily tries to find help to leave, but only finds hands groping ${his} body. ${He} is quickly pulled into one of the side rooms by a group of men looking forward to the show ${he}'s about to perform for them.`); humiliation = 1; r.push(clothingBirth()); r.push(`Only once the last of ${his} clients cums over ${his} still very pregnant body is ${he} allowed to gather ${firstText} child and take a seat. ${He} enjoys a moment with ${his} newborn before the servant comes to collect it.`); } } } } else { if (slave.fetish === "mindbroken") { if (random(1, 20) > suddenBirth) { r.push(`${He} heads to a private room in the back of the club filled with eager patrons. Instinctively, ${he} begins to push out ${firstText} baby, indifferent to ${his} audience. ${His} child is promptly taken and, following a cleaning and fresh change of clothes, the audience is allowed to have their way with ${his} still very gravid body.`); } else { r.push(`${slave.slaveName} is showing off ${his} gravid body and trying to attract citizens by dancing as well as ${he} can. During one of ${his} dances, ${his} water breaks, soaking the dance floor. ${He} keeps on dancing, despite ${his} condition, until ${his} contractions drag ${him} to the floor.`); r.push(clothingBirth()); r.push(`Multiple citizens pull ${his} still very pregnant form into a booth so that they may tease ${his} exhausted body while the dance floor is dried and ${firstText} child carried off.`); } } else { if (random(1, 20) > suddenBirth) { r.push(`${He} heads to a private room in the back of the club accompanied by several patrons who just can't keep their hands off ${him}. ${He} settles ${himself} onto a patron's lap and begins working on birthing ${firstText} baby, basking in the attention of ${his} audience${UH}. ${His} child is promptly taken and ${he} beckons the audience to enjoy ${his} still very gravid body.`); } else { if (slave.fetish === "humiliation") { r.push(`${slave.slaveName} is showing off ${his} gravid body and trying to attract citizens by dancing as well as ${he} can, all the while flashing glimpses of ${his} crotch and nipples. During one of ${his} dances, ${his} water breaks, soaking the dance floor. ${He} calls out to the crowd, hyping them up for ${his} new show.`); humiliation = 1; r.push(clothingBirth()); r.push(`As ${firstText} child is removed from the dance floor, ${his} still very pregnant form is helped into one of the back rooms by several of ${his} aroused onlookers.`); } else { r.push(`${slave.slaveName} is showing off ${his} gravid body and trying to attract citizens by dancing as well as ${he} can. During one of ${his} dances, ${his} water breaks, soaking the dance floor. ${He} hastily tries to escape the public's gaze only to find hands groping ${his} body. ${He} is quickly pulled into one of the side rooms by a group of men looking forward to the show ${he}'s about to perform for them.`); humiliation = 1; r.push(clothingBirth()); r.push(`Only once the last of ${his} clients cums over ${his} still very pregnant figure is ${he} allowed to gather ${firstText} child and take a seat. ${He} enjoys a moment with ${his} newborn before the servant comes to collect it.`); } } } } break; case Job.CHOICE: if (!canWalk(slave)) { if (slave.fetish === "mindbroken") { if (random(1, 20) > suddenBirth) { r.push(`${He} is helped back to ${his} bed and stripped before slipping into it. Instinctively, ${he} begins to push out ${firstText} baby. ${His} child is promptly taken and, after a short rest, ${he} waits for someone to help ${his} still very gravid form to ${his} next job, having forgotten ${he} was choosing it.`); } else { r.push(`${slave.slaveName} is awoken from ${his} stupor by a strong contraction. ${He} runs a hand across ${his} middle as another contraction runs through it.`); r.push(clothingBirth()); r.push(`${He} fishes around under ${his} still huge dome of a stomach searching for ${firstText} newborn. Once ${he} finds it, ${he} draws it to ${his} breast and resumes waiting for someone to tell ${him} what to do.`); } } else { if (random(1, 20) > suddenBirth) { r.push(`${He} is helped back to ${his} bed and stripped before slipping into it. ${He} makes ${himself} comfortable and begins working on birthing ${firstText} baby${UH}. ${His} child is promptly taken and, after a short rest, ${he} returns to pondering what assignment would be best for a still very gravid girl.`); } else { r.push(`While deciding on ${his} post, ${slave.slaveName}'s water breaks. Unable to reach the prepared birthing room in time, ${he} pulls ${himself} into a secluded nook to give birth in.`); r.push(clothingBirth()); r.push(`${He} gathers ${firstText} child and recovers ${his} strength before a servant finds ${him} and collects ${his} baby. ${He} decides to rest for the rest of the day before returning to pondering what assignment would be best for a still very gravid girl.`); } } } else { if (slave.fetish === "mindbroken") { if (random(1, 20) > suddenBirth) { r.push(`${He} returns to ${his} bed and strips before slipping into it. Instinctively, ${he} begins to push out ${firstText} baby. ${His} child is promptly taken and, after a short rest, ${he} returns to waddling around the penthouse.`); } else { r.push(`${slave.slaveName} is awoken from ${his} stupor by a strong contraction. ${He} runs a hand across ${his} middle as another contraction runs through it.`); r.push(clothingBirth()); r.push(`${He} fishes around under ${his} still huge dome of a stomach searching for ${his} newborn. Once ${he} finds it, ${he} draws it to ${his} breast and resumes waiting for someone to tell ${him} what to do.`); } } else { if (random(1, 20) > suddenBirth) { r.push(`${He} returns to ${his} bed and strips before slipping into it. ${He} makes ${himself} comfortable and begins working on birthing ${firstText} baby${UH}. ${His} child is promptly taken and, after a short rest, ${he} returns to pondering what assignment would be best for a still very gravid girl.`); } else { if (slave.fetish === "humiliation") { r.push(`While wandering the penthouse deciding on ${his} post, ${slave.slaveName}'s water breaks. Sensing an opportunity, ${he} waddles to the nearest balcony overlooking the city. ${He} calls out, making sure all eyes are on ${him} for what happens next.`); humiliation = 1; r.push(clothingBirth()); r.push(`${He} gathers ${firstText} child and recovers ${his} strength before finding a servant to give it to. ${He} decides to rest for the rest of the day before returning to figuring out what assignment would be most humiliating for a still very gravid girl.`); } else { r.push(`While wandering the penthouse deciding on ${his} post, ${slave.slaveName}'s water breaks. Unable to reach the prepared birthing room in time, ${he} finds a secluded nook to give birth in.`); r.push(clothingBirth()); r.push(`${He} gathers ${firstText} child and recovers ${his} strength before finding a servant to give it to. ${He} decides to rest for the rest of the day before returning to deciding what assignment would be best for a still very gravid girl.`); } } } } break; case Job.SPA: if (S.Attendant) { ({he2, him2} = getPronouns(S.Attendant).appendSuffix("2")); } if (slave.fetish === "mindbroken") { if (random(1, 20) > suddenBirth) { if (S.Attendant) { r.push(`${S.Attendant.slaveName} leads ${him} to a special pool designed to give birth in. Once ${he} is safely in the water alongside ${him2},`); } else { r.push(`${He} is lead to a special pool designed to give birth in. Once ${he} is safely in the water alongside ${his} assistant,`); } r.push(`${he} begins to push out ${firstText} baby, indifferent to ${his} watching caretaker. ${His} child is promptly taken and, following a cleaning of ${his} still very gravid body, ${he} is taken back to the spa.`); } else { r.push(`While soaking in the spa's pool, ${slave.slaveName}'s water breaks. As ${he} begins to ready ${himself} for birth,`); if (S.Attendant) { r.push(`${S.Attendant.slaveName} pulls ${him} out of the pool and glares at ${him}.`); } else { r.push(`the other bathers watch curiously.`); } r.push(clothingBirth()); r.push(`${He} and ${firstText} child are quickly dried off as ${he} begins nursing it. A servant soon arrives to take ${his} child away.`); } } else { if (random(1, 20) > suddenBirth) { if (S.Attendant) { r.push(`${S.Attendant.slaveName} escorts ${him} to a special pool designed to give birth in. Once ${he} is safely in the water alongside ${him2},`); } else { r.push(`${He} is escorted to a special pool designed to give birth in. Once ${he} is safely in the water alongside ${his} assistant,`); } r.push(`${he} begins to push out ${firstText} baby,`); if (slave.geneticQuirks.uterineHypersensitivity === 2) { r.push(`convulsing with orgasms in the process and being`); } r.push(`aided by ${his} caretaker. ${His} child is promptly taken and, following a cleaning of ${his} still very gravid body, ${he} is taken back to the spa.`); } else { if (!canWalk(slave)) { r.push(`While changing in the changing room before a nice soak, ${slave.slaveName}'s water breaks. ${He} hurries to find someone to help ${him} but only finds curious onlookers.`); } else { r.push(`While heading for the changing room before a nice soak, ${slave.slaveName}'s water breaks. ${He} hurries into the changing room only to find it unusually crowded.`); } r.push(`Without any choice left, ${he} assumes a birthing position.`); humiliation = 1; r.push(clothingBirth()); r.push(`Several of other slaves present help ${him} with ${firstText} child while the rest finish pleasuring themselves over the show.`); if (S.Attendant) { r.push(`${S.Attendant.slaveName}, lured in by the commotion, shoos the other slaves out and helps the new mother to a private relaxation room to unwind.`); } else { r.push(`Soon a servant arrives to take ${his} child away and ${he} is ushered into the bath to clean up and relax.`); } } } break; case Job.NURSERY: // TODO: this needs a rewrite if (V.MatronID !== 0) { ({he2} = getPronouns(S.Matron).appendSuffix("2")); } if (slave.fetish === "mindbroken") { if (random(1, 20) > suddenBirth) { if (V.MatronID !== 0) { r.push(`${S.Matron.slaveName} leads ${him} to a special pool designed to give birth in. Once ${he} is safely in the water alongside ${him2},`); } else { r.push(`${He} is lead to a special pool designed to give birth in. Once ${he} is safely in the water alongside ${his} assistant,`); } r.push(`${he} begins to push out ${firstText} baby, indifferent to ${his} watching caretaker. ${His} child is promptly taken and, following a cleaning of ${his} still very gravid body, ${he} is taken back to the nursery.`); } else { r.push(`While soaking in the nursery's pool, ${slave.slaveName}'s water breaks. As ${he} begins to ready ${himself} for birth,`); if (V.MatronID !== 0) { r.push(`${S.Matron.slaveName} pulls ${him} out of the pool and glares at ${him}.`); } else { r.push(`the other bathers watch curiously.`); } r.push(clothingBirth()); r.push(`${He} and ${firstText} child are quickly dried off as ${he} begins nursing it. A servant soon arrives to take ${his} child away.`); } } else { if (random(1, 20) > suddenBirth) { if (V.MatronID !== 0) { r.push(`${S.Matron.slaveName} escorts ${him} to a special pool designed to give birth in. Once ${he} is safely in the water alongside ${him2},`); } else { r.push(`${He} is escorted to a special pool designed to give birth in. Once ${he} is safely in the water alongside ${his} assistant,`); } r.push(`${he} begins to push out ${firstText} baby,`); if (slave.geneticQuirks.uterineHypersensitivity === 2) { r.push(`convulsing with orgasms in the process and being`); } r.push(`aided by ${his} caretaker. ${His} child is promptly taken and, following a cleaning of ${his} still very gravid body, ${he} is taken back to the nursery.`); } else { if (!canWalk(slave)) { r.push(`While changing in the changing room before a nice soak, ${slave.slaveName}'s water breaks. ${He} hurries to find someone to help ${him} but only finds curious onlookers.`); } else { r.push(`While heading for the changing room before a nice soak, ${slave.slaveName}'s water breaks. ${He} hurries into the changing room only to find it unusually crowded.`); } r.push(`Without any choice left, ${he} assumes a birthing position.`); humiliation = 1; r.push(clothingBirth()); r.push(`Several of other slaves present help ${him} with ${firstText} child while the rest finish pleasuring themselves over the show.`); if (V.MatronID !== 0) { r.push(`${S.Matron.slaveName}, lured in by the commotion, shoos the other slaves out and helps the new mother to a private relaxation room to unwind.`); } else { r.push(`Soon a servant arrives to take ${his} child away and ${he} is ushered into the bath to clean up and relax.`); } } } break; case Job.SCHOOL: if (S.Schoolteacher) { ({he2} = getPronouns(S.Schoolteacher).appendSuffix("2")); } if (!canWalk(slave)) { if (random(1, 20) > suddenBirth) { r.push(`Having been notified in the weeks leading up to ${his}`); if (slave.counter.birthsTotal === 0) { r.push(`first`); } else { r.push(`regular`); } r.push(`birth, ${he} is helped to the front of the class and stripped; ${he} is being used as a learning aid in this lesson. Blushing strongly, ${he} begins working on birthing ${firstText} baby, fully aware of the rapt attention of the other students.`); if (slave.geneticQuirks.uterineHypersensitivity === 2) { r.push(`However ${he} quickly forgets about the audience as orgasms, one after another, hit ${him}.`); } r.push(`${His} child is promptly taken and, following a cleaning and fresh change of clothes, ${he} is helped back to ${his} seat. ${He} can't help but`); if (canSee(slave)) { r.push(`notice some of the detailed notes the class took on ${his} genitals.`); } else { r.push(`overhear some of the lewd comments about ${his} still very gravid figure.`); } humiliation = 1; } else { r.push(`During a lesson in ${V.schoolroomName}, ${slave.slaveName}'s water breaks. Since ${he} can't leave the lesson, ${he} tries ${his} best to hold back the upcoming birth of ${firstText} baby. ${He} fails to manage and a particularly strong contraction elicits a moan noticeable enough to draw all the students' attention.`); humiliation = 1; r.push(clothingBirth()); if (S.Schoolteacher) { r.push(`${S.Schoolteacher.slaveName}, furious that ${his2} lesson was interrupted, drags ${his} still very pregnant ass from the class along with ${his} newborn child.`); } else { r.push(`${He} gathers ${his} newborn child up and is quickly helped from the class.`); } r.push(`${He} can feel all the eyes watching ${him} leave.`); } } else { if (random(1, 20) > suddenBirth) { r.push(`Having been notified in the weeks leading up to ${his}`); if (slave.counter.birthsTotal === 0) { r.push(`first`); } else { r.push(`regular`); } r.push(`birth, ${he} heads to the front of the class and strips; ${he} is being used as a learning aid in this lesson. Blushing strongly, ${he} begins working on birthing ${firstText} baby, fully aware of the rapt attention of the other students.`); if (slave.geneticQuirks.uterineHypersensitivity === 2) { r.push(`However ${he} quickly forgets about the audience as orgasms, one after another, hit ${him}.`); } r.push(`${His} child is promptly taken and, following a cleaning and fresh change of clothes, ${he} returns to ${his} seat. ${He} can't help but`); if (canSee(slave)) { r.push(`notice some of the detailed notes the class took on ${his} genitals.`); } else { r.push(`overhear some of the lewd comments about ${his} still very gravid figure.`); } humiliation = 1; } else { r.push(`During a lesson in ${V.schoolroomName}, ${slave.slaveName}'s water breaks. Since ${he} can't leave the lesson, ${he} tries ${his} best to hold back the upcoming birth of ${firstText} baby. ${He} fails to manage and a particularly strong contraction elicits a moan noticeable enough to draw all the students' attention.`); humiliation = 1; r.push(clothingBirth()); if (S.Schoolteacher) { r.push(`${S.Schoolteacher.slaveName}, furious that ${his2} lesson was interrupted, dismisses ${him} from the class along with ${his} newborn child.`); } else { r.push(`${He} gathers ${his} newborn child up and quickly excuses ${himself} from the class.`); } r.push(`${He} can feel all the eyes staring at ${his} still very gravid middle.`); } } break; case Job.CLASSES: if (random(1, 20) > suddenBirth) { r.push(`Or ${he} would have, had ${V.assistant.name} allowed it. Since ${he} can't leave the lesson, ${he} tries ${his} best to hold back the upcoming birth, not without your assistant noticing. As punishment for poor planning, especially since this will be a weekly occurrence in ${his} life, ${his} birth will be turned into a live broadcast. Blushing strongly, ${he} begins working on birthing ${firstText} baby, trying ${his} best to hide ${his} shame.`); if (slave.geneticQuirks.uterineHypersensitivity === 2) { r.push(`However ${he} quickly forgets about the audience as orgasms, one after another, hit ${him}.`); } r.push(`Exhausted from the birth, ${he} is permitted a short break as ${his} child is collected to clean ${himself} up before the lesson is continued.`); humiliation = 1; } else { r.push(`During a lesson under ${V.assistant.name}, ${slave.slaveName}'s water breaks. Since ${he} can't leave the lesson, ${he} tries ${his} best to hold back the upcoming birth, not without your assistant noticing. As punishment for poor planning, especially since this will be a weekly occurrence in ${his} life, ${he} is forbidden from leaving. Additionally, ${his} birth will be turned into a live broadcast.`); humiliation = 1; r.push(clothingBirth()); r.push(`Exhausted from the birth, ${he} is permitted a short break as ${firstText} child is gathered to`); if (!canWalk(slave)) { r.push(`be cleaned`); } else { r.push(`clean ${himself}`); } r.push(`up before the lesson is continued.`); } break; case Job.BROTHEL: if (!canWalk(slave)) { if (slave.fetish === "mindbroken") { if (random(1, 20) > suddenBirth) { r.push(`${He} is helped to a private room in the back of the brothel by a group of eager patrons. Instinctively, ${he} begins to push out ${firstText} baby, indifferent to ${his} audience. ${His} child is promptly taken and, following a cleaning and fresh change of clothes, the audience is allowed to have their way with ${his} still very gravid body.`); } else { if (birthScene > 80 && canDoVaginal(slave)) { r.push(`While riding a customer's dick, ${slave.slaveName}'s water breaks on him. Showing no signs of stopping, he shoves ${his} bulk off of him. Instinctively, ${he} begins to push out ${firstText} baby, indifferent to who may be watching ${his} naked crotch. ${He} draws ${his} child to ${his} breast before seeking out the next customer's cock.`); } else if (birthScene > 60 && canDoAnal(slave)) { r.push(`While taking a customer's dick in ${his} ass, ${slave.slaveName}'s water breaks. ${He} shows no signs of slowing down, so he allows ${him} to reposition and continue. Instinctively, ${he} begins to push out ${firstText} baby, indifferent to who may be watching ${his} naked crotch. He came strongly thanks to ${him} and gives ${him} a slap on the ass as ${he} struggles to reach ${his} child around ${his} still very gravid middle. Once ${he} has brought ${his} child to ${his} breast, ${he} seeks out the next customer's cock.`); } else if (birthScene > 40) { r.push(`While licking a customer's cunt, ${slave.slaveName}'s water breaks. ${He} shows no signs of slowing down, so she allows ${him} to reposition and continue.`); r.push(clothingBirth()); r.push(`The customer splashes across ${his} face as ${he} struggles to reach ${firstText} child around ${his} still very gravid middle. Once ${he} has brought ${his} child to ${his} breast, ${he} seeks out the next customer's cunt.`); } else { r.push(`While sucking a customer's dick, ${slave.slaveName}'s water breaks. ${He} shows no signs of slowing down, so he allows ${him} to reposition and continue.`); r.push(clothingBirth()); r.push(`He cums down ${his} throat as ${he} struggles to reach ${firstText} child around ${his} still very gravid middle. Once ${he} has brought ${his} child to ${his} breast, ${he} seeks out the next customer's cock.`); } } } else { if (random(1, 20) > suddenBirth) { r.push(`${He} is helped to a private room in the back of the brothel by several patrons who paid quite a handsome price to enjoy this moment.`); if (slave.devotion > 20) { r.push(`${He} settles ${himself} onto a patron's lap and begins working on birthing ${firstText} baby, basking in the attention of ${his} audience${UH}. ${His} ${childrenAre} promptly taken and ${he} beckons the audience to enjoy ${his} still very gravid body.`); } else if (slave.devotion >= -20) { r.push(`${He} hesitantly begins to pose, but one of the patrons grabs ${him} by the swollen waist and pulls ${him} onto his lap. ${He} winces as his dick slips over ${his} exposed crotch, but can do nothing to stop ${firstText} baby from being born. ${He} hates that the first thing ${his} child will touch is an erect cock; a bitter reminder${(slave.geneticQuirks.uterineHypersensitivity === 2) ? `, which even ${his} powerful orgasm can't erase,` : ``} of what its future will likely hold. ${His} fully born child is promptly taken and ${his} clients descend upon ${his} vulnerable, still very gravid, body.`); } else { r.push(`${He} stands shaking, ${his} waters flowing down ${his}`); if (hasAnyLegs(slave)) { r.push(`${hasBothLegs(slave) ? `legs` : `leg`},`); } else { r.push(`body,`); } r.push(`until one of the patrons grabs ${him} by the swollen waist and pulls ${him} onto his lap. ${He} cries out as his dick slips over ${his} exposed crotch, but can do nothing to stop ${firstText} baby from being born. ${He} hates that the first thing ${his} child will touch is an erect cock; a bitter reminder${(slave.geneticQuirks.uterineHypersensitivity === 2) ? `, which even powerful orgasm can't erase,` : ``} of what its future will likely hold. ${His} fully born child is promptly taken and ${his} clients descend upon ${his} vulnerable, still very gravid, body.`); } } else { if (birthScene > 80 && canDoVaginal(slave)) { r.push(`While riding a customer's dick, ${slave.slaveName}'s water breaks on him. ${He} desperately tries to disengage but he grabs ${his} hips and slams ${him} back down. He thoroughly enjoys ${his} contracting cunt before pushing ${him} off and standing over ${him}, jacking off. Quickly ${he} spreads ${his} legs apart and begins pushing out ${firstText} baby${UH}. ${He} can't hide what's happening between ${his} legs,`); if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } r.push(`He cums over ${his} heaving, still very gravid body and moves on leaving ${him} to recover and collect ${his} child to be sent off.`); humiliation = 1; } else if (birthScene > 60 && canDoAnal(slave)) { r.push(`While taking a customer's dick in ${his} ass, ${slave.slaveName}'s water breaks. ${He} desperately tries to disengage but he grabs ${his} hips and slams into ${him} hard. Quickly ${he} spreads ${his} legs apart and begins pushing out ${firstText} baby${UH}. ${He} can't hide what's happening between ${his} legs,`); if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } r.push(`He came strongly thanks to ${him} and gives ${him} a slap on the ass as ${he} collapses onto ${his} still very gravid belly and slips to ${his} side. ${He} quickly gathers ${his} child to be sent off.`); humiliation = 1; } else if (birthScene > 40) { r.push(`While licking a customer's cunt, ${slave.slaveName}'s water breaks. ${He} desperately tries to disengage but she grabs ${his} head and slams ${him} back into ${his} crotch.`); humiliation = 1; r.push(clothingBirth()); r.push(`She cums across ${his} face before helping ${his} still very gravid body to the ground and leaving. When ${he} recovers, ${he} quickly gathers ${firstText} child to be sent off.`); } else { r.push(`While sucking a customer's dick, ${slave.slaveName}'s water breaks. ${He} desperately tries to disengage but he grabs ${his} head and slams ${him} back into his crotch.`); humiliation = 1; r.push(clothingBirth()); r.push(`He cums down ${his} throat before letting ${him} collapse to the ground and leaving. When ${he} recovers and pushes ${his} still very gravid body upright, ${he} quickly gathers ${firstText} child to be sent off.`); } } } } else { if (slave.fetish === "mindbroken") { if (random(1, 20) > suddenBirth) { r.push(`${He} heads to a private room in the back of the brothel filled with eager patrons. Instinctively, ${he} begins to push out ${firstText} baby, indifferent to ${his} audience. ${His} child is promptly taken and, following a cleaning and fresh change of clothes, the audience is allowed to have their way with ${his} still very gravid body.`); } else { if (birthScene > 80 && canDoVaginal(slave)) { r.push(`While riding a customer's dick, ${slave.slaveName}'s water breaks on him. Showing no signs of stopping, he shoves ${his} bulk off of him. Instinctively, ${he} begins to push out ${firstText} baby, indifferent to who may be watching ${his} naked crotch. ${He} draws ${his} child to ${his} breast before seeking out the next customer's cock.`); } else if (birthScene > 60 && canDoAnal(slave)) { r.push(`While taking a customer's dick in ${his} ass, ${slave.slaveName}'s water breaks. ${He} shows no signs of slowing down, so he allows ${him} to reposition and continue. Instinctively, ${he} begins to push out ${firstText} baby, indifferent to who may be watching ${his} naked crotch. He came strongly thanks to ${him} and gives ${him} a slap on the ass as ${he} struggles to reach ${his} child around ${his} still very gravid middle. Once ${he} has brought ${his} child to ${his} breast, ${he} seeks out the next customer's cock.`); } else if (birthScene > 40) { r.push(`While licking a customer's cunt, ${slave.slaveName}'s water breaks. ${He} shows no signs of slowing down, so she allows ${him} to reposition and continue.`); r.push(clothingBirth()); r.push(`The customer splashes across ${his} face as ${he} struggles to reach ${his} child around ${his} still very gravid middle. Once ${he} has brought ${his} child to ${his} breast, ${he} seeks out the next customer's cunt.`); } else { r.push(`While sucking a customer's dick, ${slave.slaveName}'s water breaks. ${He} shows no signs of slowing down, so he allows ${him} to reposition and continue.`); r.push(clothingBirth()); r.push(`He cums down ${his} throat as ${he} struggles to reach ${his} child around ${his} still very gravid middle. Once ${he} has brought ${his} child to ${his} breast, ${he} seeks out the next customer's cock.`); } } } else { if (random(1, 20) > suddenBirth) { r.push(`${He} heads to a private room in the back of the brothel accompanied by several patrons who paid quite a handsome price to enjoy this moment.`); if (slave.devotion > 20) { r.push(`${He} settles ${himself} onto a patron's lap and begins working on birthing ${firstText} baby, basking in the attention of ${his} audience${UH}. ${His} ${childrenAre} promptly taken and ${he} beckons the audience to enjoy ${his} still very gravid body.`); } else if (slave.devotion >= -20) { r.push(`${He} hesitantly begins to pose, but one of the patrons grabs ${him} by the swollen waist and pulls ${him} onto his lap. ${He} winces as his dick slips over ${his} exposed crotch, but can do nothing to stop ${firstText} baby from being born. ${He} hates that the first thing ${his} child will touch is an erect cock; a bitter reminder${(slave.geneticQuirks.uterineHypersensitivity === 2) ? `, which even ${his} powerful orgasm can't erase,` : ``} of what its future will likely hold. ${His} fully born child is promptly taken and ${his} clients descend upon ${his} vulnerable, still very gravid, body.`); } else { r.push(`${He} stands shaking, ${his} waters flowing down ${his}`); if (hasAnyLegs(slave)) { r.push(hasBothLegs(slave) ? `legs` : `leg`); } else { r.push(`body,`); } r.push(`until one of the patrons grabs ${him} by the swollen waist and pulls ${him} onto his lap. ${He} cries out as his dick slips over ${his} exposed crotch, but can do nothing to stop ${firstText} baby from being born. ${He} hates that the first thing ${his} child will touch is an erect cock; a bitter reminder${(slave.geneticQuirks.uterineHypersensitivity === 2) ? `, which even ${his} powerful orgasm can't erase,` : ``} of what its future will likely hold. ${His} fully born child is promptly taken and ${his} clients descend upon ${his} vulnerable, still very gravid, body.`); } } else { if (birthScene > 80 && canDoVaginal(slave)) { r.push(`While riding a customer's dick, ${slave.slaveName}'s water breaks on him. ${He} desperately tries to disengage but he grabs ${his} hips and slams ${him} back down. He thoroughly enjoys ${his} contracting cunt before pushing ${him} off and standing over ${him}, jacking off. Quickly ${he} spreads ${his} legs apart and begins pushing out ${firstText} baby${UH}. ${He} can't hide what's happening between ${his} legs,`); if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } r.push(`He cums over ${his} heaving, still very gravid body and moves on leaving ${him} to recover and collect ${his} child to be sent off.`); humiliation = 1; } else if (birthScene > 60 && canDoAnal(slave)) { r.push(`While taking a customer's dick in ${his} ass, ${slave.slaveName}'s water breaks. ${He} desperately tries to disengage but he grabs ${his} hips and slams into ${him} hard. Quickly ${he} spreads ${his} legs apart and begins pushing out ${firstText} baby${UH}. ${He} can't hide what's happening between ${his} legs,`); if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } r.push(`He came strongly thanks to ${him} and gives ${him} a slap on the ass as ${he} collapses onto ${his} still very gravid belly and slips to ${his} side. ${He} quickly gathers ${his} child to be sent off.`); humiliation = 1; } else if (birthScene > 40) { r.push(`While licking a customer's cunt, ${slave.slaveName}'s water breaks. ${He} desperately tries to disengage but she grabs ${his} head and slams ${him} back into her crotch.`); humiliation = 1; r.push(clothingBirth()); r.push(`She cums across ${his} face before helping ${his} still very gravid body to the ground and leaving. When ${he} recovers, ${he} quickly gathers ${firstText} child to be sent off.`); } else { r.push(`While sucking a customer's dick, ${slave.slaveName}'s water breaks. ${He} desperately tries to disengage but he grabs ${his} head and slams ${him} back into his crotch.`); humiliation = 1; r.push(clothingBirth()); r.push(`He cums down ${his} throat before letting ${him} collapse to the ground and leaving. When ${he} recovers and pushes ${his} still very gravid body`); if (hasBothLegs(slave)) { r.push(`to its feet,`); } else { r.push(`into a standing position,`); } r.push(`${he} quickly gathers ${firstText} child to be sent off.`); } } } } break; case Job.TEACHER: if (!canWalk(slave)) { if (random(1, 20) > suddenBirth) { r.push(`${He} calls for ${his} teaching aid to help position ${him} so the class may receive a lesson on childbirth. ${He} begins working on birthing ${firstText} baby, fully aware of ${his} watching students. ${He} demonstrates the proper ways to labor and how to deliver a baby${(slave.geneticQuirks.uterineHypersensitivity === 2) ? `even if your body is wracked by nonstop orgasm` : ``}. ${He} explains the infant's future as ${his} child taken and excuses the class for a short break in order to freshen up. Upon their return, ${he} begins a lesson on being a broodmother, as there is always a curious face locked onto ${his} still very gravid middle.`); humiliation = 1; } else { r.push(`While teaching a lesson, ${slave.slaveName}'s water breaks. Sensing ${he} wouldn't be able to make it to the birthing area, ${he} instead chooses to act on the opportunity. Today's lesson will be on childbirth.`); humiliation = 1; r.push(clothingBirth()); r.push(`Once ${he} recovers enough, ${he} gathers ${firstText} newborn child and instructs the class to take notes on the lesson ${he} just demonstrated before being escorted out of the classroom. All eyes are locked onto ${his} still very gravid middle; it's clear the class will need a lecture on broodmothers and their weekly routine.`); } } else { if (random(1, 20) > suddenBirth) { r.push(`While stripping, ${he} makes ${his} way to the front of the classroom and settles ${himself} in a way ${his} entire class can see. Birth`); if (slave.counter.birthsTotal === 0) { r.push(`will be`); } else { r.push(`is`); } r.push(`a regular occurrence in ${his} life and it would be a waste to not work it into ${his} lesson plan. ${He} wiggles ${himself} into a comfortable spot and begins working on birthing ${firstText} baby, fully aware of ${his} watching students. ${He} demonstrates the proper ways to labor and how to deliver a baby${(slave.geneticQuirks.uterineHypersensitivity === 2) ? `even if your body is wracked by nonstop orgasm` : ``}. ${He} explains the infant's future as ${his} child is taken and excuses the class for a short break in order to freshen up. Upon their return, ${he} begins a lesson on being a broodmother, as there is always a curious face locked onto ${his} still very gravid middle.`); humiliation = 1; } else { r.push(`While teaching a lesson, ${slave.slaveName}'s water breaks. Sensing ${he} wouldn't be able to make it to the birthing area, ${he} instead chooses to act on the opportunity. Today's lesson will be on childbirth.`); humiliation = 1; r.push(clothingBirth()); r.push(`Once ${he} recovers enough, ${he} gathers ${firstText} newborn child and instructs the class to take notes on the lesson ${he} just demonstrated before leaving to drop off ${his} child for removal. ${He} feels all the eyes on ${his} still very pregnant body as ${he} waddles past. It's clear the class will need a review on broodmothers when ${he} returns.`); } } break; case Job.CONCUBINE: if (slave.pregSource === -1 && slave.relationship === -3) { if (random(1, 20) > suddenBirth) { r.push(`You make sure to find time in your busy schedule to be at your concubine ${wife}'s side as ${he} gives birth to your children, even if it's`); if (slave.counter.birthsTotal === 0) { r.push(`to be`); } r.push(`a weekly occurrence. You gently caress ${slave.slaveName}'s body as ${he} begins to push out ${firstText} baby${UH}. You help ${him} upright and hold your child to ${his} breasts. The two of you cuddle as you watch your newborn suckle from its mother. Since ${he} is quite special to you, you allow ${him} the time to pick out names before ${his} child has to be taken away. When the time comes to pick up the newborn, the slave servant is surprised to find a name-card affixed to its blanket.`); if (slave.fetish !== "mindbroken") { r.push(`${He} can't help but feel more devoted to ${his} master after seeing such a touching act. Before you leave, ${slave.slaveName} expresses how cute ${he} found your child and that ${he} can't wait to see the next one.`); } } else { r.push(`Your sleep is awoken by a moist sensation and a loud moan beside you. As you help your concubine ${wife} up, ${he} can't hold back the coming birth.`); r.push(clothingBirth()); r.push(`As you swaddle ${firstText} baby, you cuddle up to the still very gravid ${girl}. Bringing your child to ${his} breast, you enjoy each other's comfort until a servant comes to clean up. Since ${he} is quite special to you, you allow ${him} the time to pick out names before ${his} child has to be taken away. The slave servant is somewhat surprised by your actions, but understands those closest to you are afforded luxuries far beyond ${hisU} peers.`); } } else if (!canWalk(slave)) { if (slave.fetish === "mindbroken") { if (random(1, 20) > suddenBirth) { r.push(`${He} is assisted in reaching your side. You call ${him} over and strip ${him} as ${he} instinctively begins to push out ${firstText} baby, indifferent to your wandering hands. ${His} child is promptly taken and, following a cleaning, a fresh change of clothes, and some private time with you, ${he} is helped back to your master suite.`); } else { r.push(`${slave.slaveName} cradles ${his} gravid belly, waiting for your return, when ${his} water breaks. This disturbance of ${his} usual routine spurs ${him} to look for you and ${he} begins struggling to find you. You find ${him} in the halls, halfway to your office, just barely holding back ${firstText} child. You help ${him} the rest of the way, just before it's too late.`); r.push(clothingBirth()); r.push(`Cradling your child, the two of you rest for a spell before sending it off and spending some more intimate time together.`); } } else { if (random(1, 20) > suddenBirth) { r.push(`${He} is assisted in reaching your side. You beckon ${him} over and strip ${him} as ${he} dutifully begins to push out ${firstText} baby, enjoying your wandering hands and attention${UH}. ${His} child is promptly taken and, following a cleaning, a fresh change of clothes, and some private time with you, ${he} is helped back to your master suite. As ${he} leaves your office, ${he} throws you a wink, hoping to see you again soon.`); } else { r.push(`${slave.slaveName} cradles ${his} gravid belly, waiting for your return, when ${his} water breaks. Saddened that you aren't there for the show, ${he} begins struggling to crawl to you. By the time ${he} reaches your office, ${he} is barely holding back ${his} child. You rise to meet ${him} and help ${him} onto the couch, just before it's too late.`); r.push(clothingBirth()); r.push(`Cradling your child, the two of you rest for a spell before sending it off and spending some more intimate time together.`); } } } else { if (slave.fetish === "mindbroken") { if (random(1, 20) > suddenBirth) { r.push(`${He} wanders the penthouse until ${he} finds you. You call ${him} over and strip ${him} as ${he} instinctively begins to push out ${firstText} baby, indifferent to your wandering hands. ${His} child is promptly taken and, following a cleaning, a fresh change of clothes, and some private time with you, ${he} returns to your master suite.`); } else { r.push(`${slave.slaveName} cradles ${his} gravid belly, waiting for your return, when ${his} water breaks. This disturbance of ${his} usual routine spurs ${him} to look for you and ${he} begins waddling off to find you. As ${he} inches into your office, it's abundantly clear ${firstText} child is just beginning to crown. You help ${him} to the couch, just as the show begins.`); r.push(clothingBirth()); r.push(`Cradling your child, the two of you rest for a spell before sending it off and spending some more intimate time together.`); } } else { if (random(1, 20) > suddenBirth) { r.push(`${He} wanders the penthouse until ${he} finds you. You beckon ${him} over and strip ${him} as ${he} dutifully begins to push out ${firstText} baby, enjoying your wandering hands and attention${(slave.geneticQuirks.uterineHypersensitivity === 2) ? `, while convulsing with orgasms in the process` : ``}. ${His} child is promptly taken and, following a cleaning, a fresh change of clothes, and some private time with you, ${he} returns to your master suite. As ${he} waddles from your office, ${he} throws you a wink, hoping to see you again soon.`); } else { r.push(`${slave.slaveName} cradles ${his} gravid belly, waiting for your return, when ${his} water breaks. Saddened that you aren't there for the show, ${he} begins waddling off to find you. By the time ${he} reaches your office, ${he} is barely holding back ${his} ${children}. You rise to meet ${him} and help ${him} onto the couch, just before it's too late.`); r.push(clothingBirth()); r.push(`Cradling your child, the two of you rest for a spell before sending them off and spending some more intimate time together.`); } } } break; case Job.HEADGIRLSUITE: ({he2} = getPronouns(S.HeadGirl).appendSuffix("2")); if (slave.pregSource === V.HeadGirlID) { if (random(1, 20) > suddenBirth) { r.push(`${S.HeadGirl.slaveName} makes sure that the mother of ${his2} child is happy and comfortable for the upcoming birth, even if they won't be spending much time with their offspring. ${he2} carefully undresses ${slave.slaveName}, all the while whispering sweet nothings in ${his} ear. ${He} begins to push out ${firstText} baby${UH}, and ${his} child is carefully collected by their father. Once they are out of the way, ${S.HeadGirl.slaveName} moves in to fondle ${slave.slaveName}'s tired, still very gravid body.`); } } else { if (!canWalk(slave)) { if (slave.fetish === "mindbroken") { if (random(1, 20) > suddenBirth) { r.push(`${He} is aided in finding ${S.HeadGirl.slaveName}, who undresses ${him} as ${he} instinctively begins to push out ${firstText} baby, indifferent to ${his2} wandering hands. ${His} child is promptly taken and, following a cleaning, a fresh change of clothes, and some private time with your Head Girl, ${he} is taken back to ${S.HeadGirl.slaveName}' room.`); } else { r.push(`${slave.slaveName} is awoken from ${his} rest by a strong contraction. ${He} rolls over and begins to fall back to sleep as another contraction wracks ${his} body.`); r.push(clothingBirth()); r.push(`${He} fishes around under ${his} still huge dome of a stomach searching for ${his} newborn. Once ${he} finds it, ${he} draws it to ${his} breast and resumes resting before ${S.HeadGirl.slaveName} returns from ${his2} duties.`); } } else { if (random(1, 20) > suddenBirth) { r.push(`${He} is aided in seeking out ${S.HeadGirl.slaveName}, who undresses ${him} as ${he} dutifully begins to push out, enjoying ${his2} wandering hands and attention${(slave.geneticQuirks.uterineHypersensitivity === 2) ? `, while convulsing with orgasms in the process` : ``}. ${His} child is promptly taken and, following a cleaning, a fresh change of clothes, and some private time with your Head Girl, ${he} is helped back to ${S.HeadGirl.slaveName}'s room.`); } else { r.push(`${slave.slaveName} is awoken from ${his} rest by a moist sensation followed by a contraction. ${He} rolls over and clutches ${his} gravid belly as another contraction wracks ${his} body.`); r.push(clothingBirth()); r.push(`${He} collects ${firstText} child and places it in the cradle readied for ${him}. ${He} is helped to the shower as your servants clean up and remove ${his} newborn. Freshened up, ${he} returns to resting knowing full well that ${S.HeadGirl.slaveName} will be eager to play with ${his} still very pregnant body when ${he2} finishes ${his2} rounds.`); } } } else { if (slave.fetish === "mindbroken") { if (random(1, 20) > suddenBirth) { r.push(`${He} wanders until ${he} finds ${S.HeadGirl.slaveName}, who undresses ${him} as ${he} instinctively begins to push out ${firstText} baby, indifferent to ${his2} wandering hands. ${His} child is promptly taken and, following a cleaning, a fresh change of clothes, and some private time with your Head Girl, ${he} is lead back to ${S.HeadGirl.slaveName}' room.`); } else { r.push(`${slave.slaveName} is awoken from ${his} rest by a strong contraction. ${He} rolls over and begins to fall back to sleep as another contraction wracks ${his} body.`); r.push(clothingBirth()); r.push(`${He} fishes around under ${his} still huge dome of a stomach searching for ${his} newborn. Once ${he} finds it, ${he} draws it to ${his} breast and resumes resting before ${S.HeadGirl.slaveName} returns from ${his2} duties.`); } } else { if (random(1, 20) > suddenBirth) { r.push(`${He} seeks out ${S.HeadGirl.slaveName}, who undresses ${him} as ${he} dutifully begins to push out ${firstText} baby, enjoying ${his2} wandering hands and attention${(slave.geneticQuirks.uterineHypersensitivity === 2) ? `, while convulsing with orgasms in the process` : ``}. ${His} child is promptly taken and, following a cleaning, a fresh change of clothes, and some private time with your Head Girl, ${he} returns to ${S.HeadGirl.slaveName}'s room.`); } else { r.push(`${slave.slaveName} is awoken from ${his} rest by a moist sensation followed by a contraction. ${He} rolls over and clutches ${his} gravid belly as another contraction wracks ${his} body.`); r.push(clothingBirth()); r.push(`${He} collects ${firstText} child and places it in the cradle readied for ${him}. ${He} waddles off to shower as your servants clean up and remove ${his} newborn. Freshened up, ${he} returns to resting knowing full well that ${S.HeadGirl.slaveName} will be eager to play with ${his} still very pregnant body when ${he2} finishes ${his2} rounds.`); } } } } break; case Job.ARCADE: r.push(`Or ${he} would have been, if ${he} weren't locked in an arcade cabinet. A gush of liquid pours from ${slave.slaveName}'s cunt, followed by the attendant in charge of the arcade hanging an "out of order" sign on ${his} exposed rear. While ${his} mouth is filled with a customer's dick, ${his}`); if (slave.geneticQuirks.uterineHypersensitivity === 2) { r.push(`orgasming`); } r.push(`body instinctively births ${firstText} baby into a waiting basket. As it is carried away, ${his} rear is cleaned up and the sign removed.`); break; case Job.CLINIC: if (S.Nurse) { ({he2, his2} = getPronouns(S.Nurse).appendSuffix("2")); } else { ({he2, his2} = getNonlocalPronouns(V.seeDicks).appendSuffix('2')); } if (!canWalk(slave)) { if (random(1, 20) > suddenBirth) { r.push(`${He} is helped to the clinic's maternity ward.`); if (S.Nurse) { r.push(S.Nurse.slaveName); } else { r.push(`A freelance nurse`); } r.push(`delivers ${firstText} child before taking it away. Before long ${he} is returned to ${his} recovery room to rest.`); } else { r.push(`${slave.slaveName} is in the perfect place to give birth when ${his} water breaks.`); if (S.Nurse) { r.push(S.Nurse.slaveName); } else { r.push(`A freelance nurse`); } r.push(`delivers ${firstText} child before taking it away. Before long ${he2} returns to attend to ${his2} patient's post-birth health.`); } } else { if (random(1, 20) > suddenBirth) { r.push(`${He} is guided to the clinic's maternity ward.`); if (S.Nurse) { r.push(S.Nurse.slaveName); } else { r.push(`A freelance nurse`); } r.push(`delivers ${firstText} child before taking it away. Before long ${he} is returned to ${his} recovery room to rest.`); } else { r.push(`${slave.slaveName} is in the perfect place to give birth when ${his} water breaks.`); if (S.Nurse) { r.push(S.Nurse.slaveName); } else { r.push(`A freelance nurse`); } r.push(`delivers ${firstText} child before taking it away. Before long ${he2} returns to attend to ${his2} patient's post-birth health.`); } } break; case Job.CELLBLOCK: if (slave.fetish === "mindbroken") { if (random(1, 20) > suddenBirth) { r.push(`${He} is forced into a specially designed cell to give birth in. Instinctively, ${he} begins to push out ${firstText} baby. ${His} child is promptly taken and, after ${his} still very gravid body and the cell are hosed down, ${he} is moved back into a standard cell.`); } else { r.push(`While waiting in a cell in ${V.cellblockName}, ${slave.slaveName}'s water breaks. ${He} assumes a birthing position,`); r.push(clothingBirth()); r.push(`${He} struggles to reach ${firstText} child around ${his} still very gravid middle and resumes waiting with it latched to ${his} breast.`); } } else { if (random(1, 20) > suddenBirth) { r.push(`${He} is forced into a specially designed cell to give birth in. Reluctantly, ${he} begins to push out ${firstText} baby${UH}. ${His} child is promptly taken and, after ${his} still very gravid body and the cell are hosed down, ${he} is moved back into a standard cell.`); } else { r.push(`${slave.slaveName} is awoken from ${his} stupor by moist sensation followed by a contraction. ${He} rolls over and clutches ${his} gravid belly as another contraction wracks ${his} body.`); r.push(clothingBirth()); r.push(`${He} collects ${his} ${firstText} child and holds it close knowing someone will soon come to take it away from ${him}.`); } } break; case Job.DJ: if (random(1, 20) > suddenBirth) { r.push(`${He} heads to a private room in the back of the club accompanied by an influential patron. ${He} settles ${himself} onto his lap and begins working on ${firstText} baby, basking in his attention${UH}. Placing ${his} child outside the room, ${he} returns to pleasure ${his} tease.`); } else { r.push(`While DJing ${V.clubName}, ${slave.slaveName}'s water breaks. ${He} can't stop ${his} setlist without drawing attention, so ${he} tries ${his} best to ride out the contractions. As soon as the opportunity arises, ${he} attempts to sneak off stage. However, a number of fans block ${his} progress keeping ${him} on stage. Before long the contractions are too much to bear and ${he} drops to the ground.`); humiliation = 1; r.push(clothingBirth()); r.push(`Exhausted, ${he} sits up and smiles to the crowd. ${His} show definitely drew attention to ${his} club. With a burst of energy ${he} hefts ${his} still very gravid body to its feet, bows to the crowd, and gathers ${firstText} child before making ${his} way off stage. As ${he} leaves the public's gaze, ${he} shouts out with a wink "Same time next week!"`); } break; case Job.ATTENDANT: if (random(1, 20) > suddenBirth) { r.push(`${S.Attendant.slaveName} waddles to a special pool designed to give birth in. Once ${he} is safely in the water, ${he} begins to push out ${firstText} baby,`); if (slave.geneticQuirks.uterineHypersensitivity === 2) { r.push(`convulsing with orgasms in the process, which is`); } r.push(`something ${he} has been trained for. ${His} child is promptly taken and, following a cleaning, ${he} heads back to the main pool.`); } else { r.push(`While tending to the guests in the spa, ${slave.slaveName}'s water breaks. The slaves quickly come to ${his} aid as the contractions get closer and closer together. Their hands are all over ${his} laboring body, unsure of what they should be doing.`); humiliation = 1; r.push(clothingBirth()); r.push(`${He} thanks ${his} charges for their, less than helpful, efforts and collects ${firstText} child for removal. Upon returning, ${he} strips down and enters the pool, desperate for a break and eager to take the weight off ${his} still very gravid body.`); } break; case Job.MADAM: if (random(1, 20) > suddenBirth) { r.push(`${He} heads to a private room in the back of the club accompanied by an influential patron. ${He} settles ${himself} onto his lap and begins working on birthing ${firstText} baby,`); if (slave.geneticQuirks.uterineHypersensitivity === 2) { r.push(`convulsing with orgasms in the process and`); } r.push(`basking in his attention as he strips ${him}. Placing ${his} child outside the room, ${he} returns to get more intimate with ${his} catch.`); } else { r.push(`While managing ${V.brothelName}, ${slave.slaveName}'s water breaks. Knowing ${he} lacks the time to leave, ${he} sets up a sign reading "Birthshow ${cashFormat(100)} a viewer" and takes a seat.`); humiliation = 1; r.push(clothingBirth()); r.push(`Upon completing ${his} show, ${he} reclines with ${firstText} child and begins counting the credits ${he} bought in. In total ${he} made ${cashFormat(100 * birthScene)} and feels that business will be up in the brothel as patrons line up hoping another showing.`); cashX((100 * birthScene), "birth", slave); } break; case Job.STEWARD: if (random(1, 20) > suddenBirth) { r.push(`${He} strips and settles ${himself} into ${his} favorite chair while calling several servants to ${his} aid. ${He} begins to push out ${firstText} baby into the arms of ${his} waiting charges${UH}. ${His} child is promptly taken and ${he} reclines while ${his} servants clean and dress ${his} still very gravid body. Once ${he} has had enough, ${he} orders them to help ${him} up and get back to work on the penthouse.`); } else { r.push(`While overseeing the house servants, ${slave.slaveName}'s water breaks. ${He} has no time to strip down so ${he} takes a seat and readies ${himself}. Commandingly, ${he} snaps ${his} fingers and orders ${his} charges to clean up the floor, assist ${him} with ${his} clothes, and be ready to take ${firstText} child away.`); humiliation = 1; r.push(clothingBirth()); r.push(`Once ${he} catches ${his} breath, ${he} struggles to`); if (hasBothLegs(slave)) { r.push(`${his} feet`); } else { r.push(`get upright`); } r.push(`and takes the fresh change of clothing provided by ${his} servants before ordering them back to work.`); } break; case Job.MILKMAID: if (random(1, 20) > suddenBirth) { r.push(`${He} returns to ${his} bed and strips before slipping into it. ${He} makes ${himself} comfortable and begins working on birthing ${firstText} baby${UH}. ${He} is quite experienced in delivering ${his} cows' children, but ${he} finds it much more difficult to apply ${his} knowledge to ${himself}. ${His} child is promptly taken and, after a short rest, ${he} returns to caring for your cows, as gravid as ever.`); } else { r.push(`While tending to ${his} stock, ${slave.slaveName}'s water breaks. ${He} hastily pulls ${himself} into a vacant stall and seats ${himself} in its corner.`); r.push(clothingBirth()); r.push(`Quickly, ${he} collects ${firstText} child for removal before returning to ${V.dairyName}. The cows around ${his} stall all have a knowing look on their`); if (V.dairyPregSetting > 0) { r.push(`faces but with their own swollen bellies hanging heavily from them, they know that they soon will follow ${his} lead.`); } else { r.push(`faces.`); } } break; case Job.FARMER: // TODO: this needs a rewrite if (random(1, 20) > suddenBirth) { r.push(`${He} returns to ${his} bed and strips before slipping into it. ${He} makes ${himself} comfortable and begins working on birthing ${firstText} baby${UH}. ${He} is quite experienced in delivering ${his} cows' children, but ${he} finds it much more difficult to apply ${his} knowledge to ${himself}. ${His} child is promptly taken and, after a short rest, ${he} returns to caring for your cows, as gravid as ever.`); } else { r.push(`While tending to ${his} stock, ${slave.slaveName}'s water breaks. ${He} hastily pulls ${himself} into a vacant stall and seats ${himself} in its corner.`); r.push(clothingBirth()); r.push(`Quickly, ${he} collects ${firstText} child for removal before returning to ${V.farmyardName}. The cows around ${his} stall all have a knowing look on their`); if (V.farmyardPregSetting > 0) { r.push(`faces but with their own swollen bellies hanging heavily from them, they know that they soon will follow ${his} lead.`); } else { r.push(`faces.`); } } break; case Job.WARDEN: if (slave.fetish === "mindbroken") { if (random(1, 20) > suddenBirth) { r.push(`${He} enters an empty cell, strips, and seats ${himself} on the cot. ${He} instinctively begins birthing ${firstText} baby. ${His} child is promptly taken and ${he} returns to mindlessly breaking the confined slaves.`); } else { r.push(`While punishing a slave, ${slave.slaveName}'s water breaks, soaking ${himU}. Indifferent, ${he} resumes beating ${himU} until the contractions are too much to bear. Settling to the floor, ${he} begins giving birth.`); r.push(clothingBirth()); r.push(`As soon as ${he} regains ${his} strength, ${he} resumes beating the confused slave.`); if (slave.counter.birthsTotal === 0) { r.push(`${His} first`); } else { r.push(`This week's`); } r.push(`is collected by a servant, who carefully hints that ${slave.slaveName} should take a break before returning to ${his} task.`); } } else { if (random(1, 20) > suddenBirth) { r.push(`${He} returns to ${his} bed and strips before slipping into it. ${He} makes ${himself} comfortable and begins working on birthing ${firstText} baby${UH}. ${His} child is promptly taken and ${he} rests awhile before returning to the cellblock.`); } else { r.push(`While punishing a rebellious slave, ${slave.slaveName}'s water breaks, soaking ${himU}. Noticing the slave's smirk, ${he} resumes beating ${himU} until the contractions are too much to bear. Relocking the cell, ${he} waddles into the nearest empty cell and drops ${his} weight onto the cot.`); r.push(clothingBirth()); r.push(`Quickly, ${he} collects ${firstText} child for removal before returning to ${V.cellblockName}. On ${his} way past the cells, ${he} takes note of any slaves whispering or gesturing about what transpired for future punishment.`); } } break; case Job.NURSE: if (random(1, 20) > suddenBirth) { r.push(`${He} waddles to ${his} maternity ward and strips before settling into an open bed. ${He} makes ${himself} comfortable and begins working on birthing ${firstText} baby${UH}as ${his} assistants watch. ${His} child is promptly taken and ${he} is helped to the recovery ward until ${he} recovers enough to take over ${V.clinicName} again.`); } else { r.push(`While tending to your unwell slaves, ${slave.slaveName}'s water breaks. Counting the time between contractions, ${he} knows ${he} has no time to get to ${his} prepared birthing chamber. ${He} waddles into the nearest empty room and hoists ${his} gravid body into the examination chair, placing ${his} feet in the stirrups.`); r.push(clothingBirth()); r.push(`Quickly, ${he} collects ${firstText} child for removal before retiring to the recovery ward. Within an hour of rest, ${he} is back on ${his} feet tending to ${his} charges.`); } break; case Job.HEADGIRL: if (random(1, 20) > suddenBirth) { r.push(`${He} returns to`); if (V.HGSuite === 1) { r.push(`${his} room's bed`); } else { r.push(`${his} bed`); } r.push(`and strips before slipping into it. ${He} makes ${himself} comfortable${(HGL !== 0) ? `, as ${his} slave rushes to ${his} side,` : ``} and begins working on birthing ${firstText} baby${UH}. ${His} child is promptly taken`); if (HGL !== 0) { r.push(`by ${his} roommate`); } r.push(`and ${he} rests awhile before returning to managing your slaves.`); } else { r.push(`While overseeing your other slaves, ${slave.slaveName}'s water breaks. ${He} attempts to hold back the coming birth until ${he} can catch a break in ${his} duties but ultimately fails.`); humiliation = 1; r.push(clothingBirth()); r.push(`Upon finishing, ${he} quickly collects ${firstText} child and orders the mess to be cleaned promptly without breaking ${his} dominant appearance.`); } break; case Job.BODYGUARD: if (random(1, 20) > suddenBirth) { r.push(`Or ${he} would have, if ${he}'d stop refusing to leave your side. You lead ${him} someplace private and help ${him} undress. ${He} makes ${himself} comfortable and begins working on birthing ${firstText} baby${UH}. You call for a servant to quickly gather ${his} child as you help ${him} into the shower, making sure to wait outside for your loyal guardian to finish.`); } else { r.push(`Refusing to leave your side even when on the verge of giving birth, ${slave.slaveName} continues to serve as your bodyguard despite ${his} condition. A splashing sound and a loud groan emit from behind you; your bodyguard has gone into labor. You quickly help ${him} to the ground and prepare for the coming birth.`); r.push(clothingBirth()); r.push(`You sit by your loyal guard holding ${firstText} child until a servant comes by to take them away. Once ${he} is thoroughly rested, you help ${him} up and lead ${him} back to the penthouse to shower and change.`); } break; case Job.RECRUITER: if (random(1, 20) > suddenBirth) { r.push(`${He} returns to ${his} bed and strips before slipping into it. ${He} makes ${himself} comfortable and begins working on birthing ${firstText} baby${UH}. ${His} child is promptly taken and ${he} rests awhile before returning to finding new slaves for you.`); } else { r.push(`While on a video call with a potential recruit, ${slave.slaveName}'s water breaks. ${He} attempts to play it cool and act like nothing is happening but the worsening contractions finally get to ${him}.`); humiliation = 1; r.push(clothingBirth()); if (birthScene > 50) { r.push(`Exhausted from the birth and clutching ${firstText} baby, ${he} returns to find that ${he} never ended the call. The prospective slave is blushing furiously and seems to have begun touching ${himselfU} to the show. Apologizing for the interruption, while red with embarrassment, ${slave.slaveName} resumes chatting with the somewhat more pliant ${girlU}.`); } else { r.push(`Exhausted from the birth and clutching ${firstText} baby, ${he} returns to find that ${he} never ended the call. The prospective slave is grinning widely and states ${heU} has been recording the show. ${HeU} signs off, but not before saying ${heU}'ll be seeing more of ${slave.slaveName} around the internet.`); if (slave.fetish === "humiliation") { r.push(`Your recruiter can't help but become aroused at the prospect.`); } else { r.push(`Your recruiter is terrified that ${his} birth video is out there for everyone to see, partly due to ${his} own shame and to the potential damage it will do to ${his} reputation.`); } } } break; case Job.DAIRY: if (V.dairyRestraintsSetting > 1 && slave.career === "a bioreactor") { if (random(1, 20) > suddenBirth) { r.push(`As ${slave.slaveName}'s water breaks, a mechanical basket is extended under ${his} laboring`); if (slave.mpreg === 1) { r.push(`ass.`); } else { r.push(`cunt.`); } r.push(`Once ${firstText} baby is secure, the basket retracts to allow ${his}`); if (slave.mpreg === 1) { r.push(`rear`); } else { r.push(`vagina`); } r.push(`to be cleaned.`); } else { r.push(`Without warning, ${slave.slaveName}'s water breaks and ${his} body begins to rapidly push out ${firstText} baby. ${He} manages to force out the squirming child before the basket could extend, flagging ${his} unit for maintenance.`); } r.push(`All these events are meaningless to ${him}, as ${his} consciousness has long since been snuffed out.`); } else if (V.dairyRestraintsSetting > 1) { if (slave.fetish === "mindbroken") { if (random(1, 20) > suddenBirth) { r.push(`As ${slave.slaveName}'s water breaks, a mechanical basket is extended under ${his} laboring`); if (slave.mpreg === 1) { r.push(`ass.`); } else { r.push(`cunt.`); } r.push(`Once ${firstText} baby is secure, the basket retracts to allow ${his}`); if (slave.mpreg === 1) { r.push(`rear`); } else { r.push(`vagina`); } r.push(`to be cleaned.`); } else { r.push(`Without warning, ${slave.slaveName}'s water breaks and ${his} body begins to rapidly push out ${firstText} baby. ${He} manages to force out the squirming child before the basket could extend, flagging ${his} unit for maintenance.`); } r.push(`${He} doesn't care about any of this, as the only thoughts left in ${his} empty mind revolve around the sensations in ${his} crotch and breasts.`); } else { if (random(1, 20) > suddenBirth) { r.push(`As ${slave.slaveName}'s water breaks, a mechanical basket is extended under ${his} laboring`); if (slave.mpreg === 1) { r.push(`ass.`); } else { r.push(`cunt.`); } r.push(`${He} struggles in ${his} bindings, attempting to break free in order to birth ${firstText} baby, but ${his} efforts are pointless.`); if (slave.geneticQuirks.uterineHypersensitivity === 2) { r.push(`Soon ${he} is convulsing with powerful orgasms while giving birth,`); } else { r.push(`${He} is forced to give birth,`); } r.push(`restrained, into the waiting holder. Once the ${childrenAre} secure, the basket retracts, allowing access to ${his}`); if (slave.mpreg === 1) { r.push(`asshole.`); } else { r.push(`vagina.`); } } else { r.push(`Without warning, ${slave.slaveName}'s water breaks and ${he} uncontrollably births ${firstText} baby${UH}. ${He} manages to force out the screaming child before the basket could fully extend, flagging ${his} unit for maintenance and causing quite the scene. ${He} knows full well there is nothing ${he} can do to hide ${his} shame.`); } r.push(`${His} mind slips slightly more as ${he} focuses on ${his} fate as nothing more than an animal destined to be milked and bear offspring until ${his} body gives out.`); humiliation = 1; slave.trust -= 10; slave.devotion -= 10; } } else { if (slave.fetish === "mindbroken") { if (random(1, 20) > suddenBirth) { r.push(`While getting milked, ${slave.slaveName}'s water breaks. ${He} shows little interest and continues kneading ${his} breasts. Instinctively, ${he} begins to push out ${firstText} ${He} pays no heed to ${his} child being removed from the milking stall, instead focusing entirely on draining ${his} breasts and getting comfortable with ${his} still very gravid middle.`); } else { r.push(`While getting milked, ${slave.slaveName}'s water breaks. ${He} show little interest and continues kneading ${his} breasts.`); r.push(clothingBirth()); r.push(`${He} shows no interest in ${firstText} child being removed from the milking stall, nor ${his} still very gravid middle, instead focusing entirely on draining ${his} breasts.`); } } else { if (random(1, 20) > suddenBirth) { r.push(`While getting milked, ${slave.slaveName}'s water breaks,`); if (V.dairyPregSetting > 0) { r.push(`this is a regular occurrence to ${him} now so`); } else { r.push(`but`); } r.push(`${he} continues enjoying ${his} milking while ${he} works to push out ${firstText} baby${UH}. ${He} catches`); if (canSee(slave)) { r.push(`a glimpse`); } else if (canHear(slave)) { r.push(`the sound`); } else { r.push(`the feeling`); } r.push(`of ${his} child being removed from the milking stall before returning ${his} focus to draining ${his} breasts.`); } else { r.push(`While getting milked, ${slave.slaveName}'s water breaks. Knowing ${he} can't leave yet, ${he} shifts into a more comfortable position for the impending birth.`); r.push(clothingBirth()); r.push(`${He} takes a break from milking to collect ${firstText} child for removal and to catch ${his} breath before reattaching the milkers and coaxing ${his} milk to begin flowing anew.`); } } } break; default: App.Events.addParagraph(el, r); App.UI.DOM.appendNewElement("div", el, `Assignment was "${slave.assignment}" so why did we default? Report this!`, "note"); r = []; if (!canWalk(slave)) { if (slave.fetish === "mindbroken") { if (random(1, 20) > suddenBirth) { r.push(`${He} is helped back to ${his} bed and stripped before slipping into it. Instinctively, ${he} begins to push out ${firstText} baby. ${His} child is promptly taken and ${he} is encouraged to keep resting.`); if (hasAnyArms(slave)) { r.push(`${He} runs ${his}`); if (hasBothArms(slave)) { r.push(`hands`); } else { r.push(`hand`); } r.push(`across the still huge dome of ${his} middle; to`); } else { r.push(`To`); } r.push(`${him}, gravidity and birth is nothing out of the ordinary.`); } else { r.push(`${slave.slaveName} is awoken from ${his} rest by a strong contraction. ${He} rolls over and begins to fall back to sleep as another contraction wracks ${his} body.`); r.push(clothingBirth()); r.push(`${He} fishes around under ${his} still huge dome of a stomach searching for ${his} newborn. Once ${he} finds it, ${he} draws it to ${his} breast and resumes resting.`); } } else { if (random(1, 20) > suddenBirth) { r.push(`${He} is helped back to ${his} bed and stripped before slipping into it. ${He} makes ${himself} comfortable and begins working on birthing ${firstText} baby${UH}. ${His} child is promptly taken and ${he} is encouraged to keep resting. ${He} rolls over${(hasAnyArms(slave)) ? `, cradling ${his} heavily rounded middle,` : ``} and dozes off.`); } else { r.push(`${slave.slaveName} is awoken from ${his} rest by a moist sensation followed by a contraction. ${He} rolls over and clutches ${his} gravid belly as another contraction wracks ${his} body.`); r.push(clothingBirth()); r.push(`${He} struggles to collect ${his} child and places them in the cradle readied for ${him}. ${He} is helped to the shower as your servants clean up and remove ${his} child.`); } } } else { if (slave.fetish === "mindbroken") { if (random(1, 20) > suddenBirth) { r.push(`${He} returns to ${his} bed and strips before slipping into it. Instinctively, ${he} begins to push out ${firstText} baby. ${His} child is promptly taken and ${he} is encouraged to keep resting.`); if (hasAnyArms(slave)) { r.push(`${He} runs ${his}`); if (hasBothArms(slave)) { r.push(`hands`); } else { r.push(`hand`); } r.push(`across the still huge dome of ${his} middle; to`); } else { r.push(`To`); } r.push(`${him}, gravidity and birth is nothing out of the ordinary.`); } else { r.push(`${slave.slaveName} is awoken from ${his} rest by a strong contraction. ${He} rolls over and begins to fall back to sleep as another contraction wracks ${his} body.`); r.push(clothingBirth()); r.push(`${He} fishes around under ${his} still huge dome of a stomach searching for ${his} newborn. Once ${he} finds it, ${he} draws it to ${his} breast and resumes resting.`); } } else { if (random(1, 20) > suddenBirth) { r.push(`${He} returns to ${his} bed and strips before slipping into it. ${He} makes ${himself} comfortable and begins working on birthing ${firstText} baby${UH}. ${His} ${childrenAre} promptly taken and ${he} is encouraged to keep resting. ${He} rolls over${(hasAnyArms(slave)) ? `, cradling ${his} heavily rounded middle,` : ``} and dozes off.`); } else { r.push(`${slave.slaveName} is awoken from ${his} rest by a moist sensation followed by a contraction. ${He} rolls over and clutches ${his} gravid belly as another contraction wracks ${his} body.`); r.push(clothingBirth()); r.push(`${He} struggles to collect ${his} child and places them in the cradle readied for ${him}. ${He} hefts ${his} still very gravid body out of bed to take a shower as your servants clean up and remove ${his} child.`); } } } } } else { // add extra events here (moving between jobs | after work) if (!canWalk(slave)) { if (slave.fetish === "mindbroken") { if (random(1, 20) > suddenBirth) { r.push(`${He} is helped back to ${his} bed and stripped before slipping into it. Instinctively, ${he} begins to push out ${firstText} baby. ${His} child is promptly taken and ${he} is encouraged to keep resting.`); if (hasAnyArms(slave)) { r.push(`${He} runs ${his}`); if (hasBothArms(slave)) { r.push(`hands`); } else { r.push(`hand`); } r.push(`across the still huge dome of ${his} middle; to`); } else { r.push(`To`); } r.push(`${him}, gravidity and birth is nothing out of the ordinary.`); } else { if (birthScene >= 50) { r.push(`${slave.slaveName} is awoken from ${his} rest by a strong contraction. ${He} rolls over and begins to fall back to sleep as another contraction wracks ${his} body.`); r.push(clothingBirth()); r.push(`${He} fishes around under ${his} still huge dome of a stomach searching for ${his} newborn. Once ${he} finds it, ${he} draws it to ${his} breast and resumes resting.`); } else { r.push(`While stroking ${his} pregnancy absentmindedly, ${slave.slaveName}'s body begins to birth ${firstText} baby. ${He} carries on until the contractions drag ${him} to`); if (hasBothLegs(slave)) { r.push(`${his} knees.`); } else { r.push(`the floor.`); } r.push(clothingBirth()); r.push(`${He} rolls onto ${his} side and rests with ${his} child to ${his} breast until a servant collects ${his} child and helps ${him} to ${his} bed.`); } } } else { if (random(1, 20) > suddenBirth) { r.push(`${He} is helped back to ${his} bed and stripped before slipping into it. ${He} makes ${himself} comfortable and begins working on birthing ${firstText} baby${UH}. ${His} child is promptly taken and ${he} is encouraged to keep resting. ${He} rolls over${(hasAnyArms(slave)) ? `, cradling ${his} heavily rounded middle,` : ``} and dozes off.`); } else { if (birthScene >= 70) { r.push(`While waiting to be helped to ${his} next assignment, ${slave.slaveName}'s body begins to birth ${firstText} baby. Unable to do anything, ${he} is forced to give birth where ${he} is.`); r.push(clothingBirth()); r.push(`${He} gathers ${his} child and recovers ${his} strength while resuming ${his} wait a servant to help ${him} to ${his} assignment.`); } else if (birthScene >= 30) { r.push(`While eating in the cafeteria, ${slave.slaveName}'s body begins to birth ${firstText} baby. Unable to walk without assistance, ${he} finds ${himself} stranded in the middle of all the dining slaves.`); humiliation = 1; r.push(clothingBirth()); r.push(`${He} gathers ${his} child and waits to be rescued from the vicious mockery, fully aware of all the jeering and laughter.`); } else { r.push(`${slave.slaveName} is awoken from ${his} rest by a moist sensation followed by a contraction. ${He} rolls over and clutches ${his} gravid belly as another contraction wracks ${his} body.`); r.push(clothingBirth()); r.push(`${He} struggles to collect ${his} child and places them in the cradle readied for ${him}. ${He} is helped to the shower as your servants clean up and remove ${his} child.`); } } } } else { if (slave.fetish === "mindbroken") { if (random(1, 20) > suddenBirth) { r.push(`${He} returns to ${his} bed and strips before slipping into it. Instinctively, ${he} begins to push out ${firstText} baby. ${His} child is promptly taken and ${he} is encouraged to keep resting.`); if (hasAnyArms(slave)) { r.push(`${He} runs ${his}`); if (hasBothArms(slave)) { r.push(`hands`); } else { r.push(`hand`); } r.push(`across the still huge dome of ${his} middle; to`); } else { r.push(`To`); } r.push(`${him}, gravidity and birth is nothing out of the ordinary.`); } else { if (birthScene >= 50) { r.push(`While wandering the penthouse absentmindedly, ${slave.slaveName}'s body begins to birth ${firstText} baby. ${He} carries on until the contractions drag ${him} to`); if (hasBothLegs(slave)) { r.push(`${his} knees.`); } else { r.push(`the floor.`); } r.push(clothingBirth()); r.push(`${He} rolls onto ${his} side and rests with ${his} child to ${his} breast until a servant collects ${his} child and helps ${him} to ${his} bed.`); } else { r.push(`${slave.slaveName} is awoken from ${his} rest by a strong contraction. ${He} rolls over and begins to fall back to sleep as another contraction wracks ${his} body.`); r.push(clothingBirth()); r.push(`${He} fishes around under ${his} still huge dome of a stomach searching for ${his} newborn. Once ${he} finds it, ${he} draws it to ${his} breast and resumes resting.`); } } } else if (slave.fetish === "humiliation" && birthScene >= 50) { r.push(`While waddling through the penthouse between assignments, ${slave.slaveName}'s body begins to birth ${firstText} baby. Sensing an opportunity, ${he} waddles to the nearest balcony overlooking the city. ${He} calls out, making sure all eyes are on ${him} for what happens next.`); humiliation = 1; r.push(clothingBirth()); r.push(`${He} gathers ${his} child and recovers ${his} strength before finding a servant to give ${his} child to. ${He} resumes ${his} previous task, eager for the next child to move into position.`); } else { if (random(1, 20) > suddenBirth) { r.push(`${He} returns to ${his} bed and strips before slipping into it. ${He} makes ${himself} comfortable and begins working on birthing ${firstText} baby${UH}. ${His} child is promptly taken and ${he} is encouraged to keep resting. ${He} rolls over${(hasAnyArms(slave)) ? `, cradling ${his} heavily rounded middle,` : ``} and dozes off.`); } else { if (birthScene >= 70) { r.push(`While waddling through the penthouse on the way to ${his} next assignment, ${slave.slaveName}'s body begins to birth ${firstText} baby. Unable to reach the prepared birthing room in time, ${he} finds a secluded room to give birth in.`); r.push(clothingBirth()); r.push(`${He} gathers ${his} child and recovers ${his} strength before finding a servant to give ${his} child to before shuffling to ${his} assignment, a hand on ${his} still very gravid middle.`); } else if (birthScene >= 30) { r.push(`While waddling through the penthouse on ${his} way to the cafeteria, ${slave.slaveName}'s body begins to birth ${firstText} baby. Unable to reach the prepared birthing room in time, ${he} finds ${himself} stranded in the middle of all the dining slaves.`); humiliation = 1; r.push(clothingBirth()); r.push(`${He} gathers ${his} child and recovers ${his} strength before trying to escape out of sight of the jeering crowd. Finding a servant to give ${his} child to, ${he} hastily heads back to ${his} bed to hide ${himself} from the mockery. ${He} runs a hand across ${his} still very gravid middle; ${he}'ll have to be more careful in the future as there are plenty more children growing within ${him}.`); } else { r.push(`${slave.slaveName} is awoken from ${his} rest by a moist sensation followed by a contraction. ${He} rolls over and clutches ${his} gravid belly as another contraction wracks ${his} body.`); r.push(clothingBirth()); r.push(`${He} struggles to collect ${his} child and places them in the cradle readied for ${him}. ${He} hefts ${his} still very gravid body out of bed to take a shower as your servants clean up and remove ${his} child.`); } } } } } App.Events.addParagraph(el, r); return el; } function hyperBroodmotherBirth() { const el = document.createElement("p"); let he2, his2; const r = []; const tempSub = getSlave(slave.subTarget); const pbw = random(1, 100); const babies = slave.pregType > 1 ? `babies` : `baby`; const children = slave.pregType > 1 ? `children` : `child`; const UH = (slave.geneticQuirks.uterineHypersensitivity === 2) ? `, convulsing with orgasms in the process` : ``; if (random(1, 2) === 1) { // at assignment else in halls/etc switch (slave.assignment) { case Job.REST: if (!canWalk(slave)) { if (slave.fetish === "mindbroken") { r.push(`${slave.slaveName} is awoken from ${his} rest by a strong contraction. ${He} attempts to roll over, and failing that, begins to fall back to sleep as another contraction wracks ${his} body.`); r.push(clothingBirth()); r.push(`${He} struggles to draw ${his} child to ${his} breast and resumes resting.`); } else { r.push(`${slave.slaveName} is awoken from ${his} rest by a contraction. ${He} struggles to roll over, and failing that, clutches ${his} gravid belly as another contraction wracks ${his} body. Since this has already happened several times this week, ${he} knows what to expect.`); r.push(clothingBirth()); r.push(`${His} child is collected and ${his} body cleaned before ${he} is allowed to resume ${his} rest.`); } } else { if (slave.fetish === "mindbroken") { r.push(`${slave.slaveName} is awoken from ${his} rest by a strong contraction. ${He} rolls over and begins to fall back to sleep as another contraction wracks ${his} body.`); r.push(clothingBirth()); r.push(`${He} struggles to draw ${his} child to ${his} breast and resumes resting.`); } else { r.push(`${slave.slaveName} is awoken from ${his} rest by a contraction. ${He} rolls over and clutches ${his} gravid belly as another contraction wracks ${his} body. Since this has already happened several times this week, ${he} knows what to expect.`); r.push(clothingBirth()); r.push(`${His} child is collected and ${his} body cleaned before ${he} is allowed to resume ${his} rest.`); } } break; case Job.SUBORDINATE: if (tempSub) { ({he2} = getPronouns(tempSub).appendSuffix("2")); } if (slave.fetish === "mindbroken") { if (slave.subTarget === 0) { r.push(`While servicing your other slaves, ${slave.slaveName}'s body begins to birth another of ${his} brood, though it does nothing to deter ${him} from ${his} task.`); r.push(clothingBirth()); r.push(`No sooner than ${his} baby is born, a cock is shoved into ${his} gaping pussy as ${he} draws ${his} child to ${his} breast.`); } else { r.push(`While servicing ${tempSub.slaveName}, ${slave.slaveName}'s body begins to birth another of ${his} brood, though it does nothing to deter ${him} from ${his} task.`); r.push(clothingBirth()); r.push(`No sooner than ${his} baby is born does ${he} go back to pleasuring ${his} dom.`); } } else { if (slave.subTarget === 0) { r.push(`While servicing your other slaves, ${slave.slaveName}'s body begins to birth another of ${his} brood, causing ${him} to immediately try to break off. However, several hands quickly hook ${his} enormous bulk and ${he} is pulled back into another slave's crotch.`); humiliation = 1; r.push(clothingBirth()); r.push(`Since ${he} is too pregnant to collect ${his} child, it is done for ${him}. ${His} exhausted form is slumped onto ${his} huge belly as another slave helps themselves to ${his} vulnerable body.`); } else { r.push(`While servicing ${tempSub.slaveName}, ${slave.slaveName}'s body begins to birth another of ${his} brood, causing ${him} to immediately try to break off. ${His} dom eagerly watches ${his2} pregnant sub's ordeal.`); humiliation = 1; r.push(clothingBirth()); r.push(`${tempSub.slaveName} collects the newborn child to be sent off before returning and planting ${his2} crotch directly over ${his2} exhausted sub's face.`); } } break; case Job.WHORE: if (!canWalk(slave)) { if (slave.fetish === "mindbroken") { r.push(`While attempting to attract customers to fuck ${his} grotesquely distended body, ${slave.slaveName}'s body begins to birth another of ${his} brood.`); r.push(clothingBirth()); r.push(`${He} struggles to bring ${his} child to ${his} breast as ${he} resumes whoring, oblivious to the free show ${he} just gave ${his} customers.`); } else { r.push(`While attempting to attract customers to fuck ${his} grotesquely distended body, ${slave.slaveName}'s body begins to birth another of ${his} brood. Unable to move and rapidly crowning, ${he} manages to get several men to help ${him} out.`); humiliation = 1; r.push(clothingBirth()); r.push(`${He} lies stranded on the ground, exhausted and covered in sperm from the circle of men watching ${him}, until ${he} is helped into a sitting position and handed ${his} child.`); } } else { if (slave.fetish === "mindbroken") { r.push(`While attempting to attract customers with ${his} grotesquely distended body, ${slave.slaveName}'s body begins to birth another of ${his} brood.`); r.push(clothingBirth()); r.push(`${He} draws ${his} child to ${his} breast as ${he} resumes whoring, oblivious to the free show ${he} just gave ${his} customers.`); } else { r.push(`While attempting to attract customers with ${his} grotesquely distended body, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} knows it is pointless to try to waddle away, as large as ${he} is, so ${he} convinces several men to help ${him} out.`); humiliation = 1; r.push(clothingBirth()); r.push(`${He} lies on the ground, exhausted and covered in sperm from the circle of men watching ${him}, until ${he} is helped`); if (hasBothLegs(slave)) { r.push(`to ${his} feet`); } else { r.push(`upright`); } r.push(`and handed ${his} child.`); } } break; case Job.PUBLIC: if (!canWalk(slave)) { if (slave.fetish === "mindbroken") { if (pbw > 80) { r.push(`While taking a citizen's dick, ${slave.slaveName}'s body begins to birth another of ${his} brood out on him. Showing no signs of stopping, he struggles to shoves ${his} bulk off of him. Instinctively ${he} begins to push out ${his} baby, indifferent to who may be watching ${his} naked crotch. ${He} is handed ${his} child, which ${he} clutches to ${his} breast before beckoning for the next citizen's cock.`); } else if (pbw > 60) { r.push(`While sucking a citizen's dick, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} shows no signs of slowing down, so he allows ${him} to continue.`); r.push(clothingBirth()); r.push(`He cums down ${his} throat before placing ${his} child on ${his} breast, as ${he} starts beckoning for the next citizen's cock.`); } else if (pbw > 40) { r.push(`While licking a citizen's cunt, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} shows no signs of slowing down, so ${he} allows ${him} to continue.`); r.push(clothingBirth()); r.push(`The citizen splashes across ${his} face before placing ${his} child on ${his} breast, as ${he} begins beckoning for the next citizen's cunt.`); } else { r.push(`While taking a citizen's dick in ${his} ass, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} shows no signs of slowing down, so he allows ${him} to continue. Instinctively ${he} begins to push out ${his} baby, indifferent to who may be watching ${his} naked crotch. He came strongly thanks to ${him} and gives ${him} a slap on the ass before handing ${him} ${his} child. ${He} brings it to ${his} breast before beckoning for the next citizen's cock.`); } } else { if (pbw > 80) { r.push(`While riding a citizen's dick, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} desperately struggles to disengage encouraging him to shove ${him} onto ${his} bloated womb and mount ${him}. He thoroughly enjoys ${his} contracting cunt before pulling out and standing over ${him}, jacking off. Quickly ${he} spreads ${his} legs apart and begins pushing out ${his} baby${UH}. ${He} can't hide what's happening between ${his} legs,`); if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } r.push(`He comes over ${his} exhausted body and moves on leaving ${him} to recover and await ${his} child to be sent off.`); humiliation = 1; } else if (pbw > 60) { r.push(`While sucking a citizen's dick, ${slave.slaveName}'s body begins to birth another of ${his} brood. Since ${he} is incapable of moving ${himself}, ${he} carries on sucking.`); humiliation = 1; r.push(clothingBirth()); r.push(`He cums down ${his} throat before letting ${him} collapse onto ${his} bloated form. When ${he} recovers, ${he} gathers ${his} child to be sent off.`); } else if (pbw > 40) { r.push(`While licking a citizen's cunt, ${slave.slaveName}'s body begins to birth another of ${his} brood. Since ${he} is incapable of moving ${himself}, ${he} carries on licking.`); humiliation = 1; r.push(clothingBirth()); r.push(`She cums across ${his} face before helping ${him} to ${his} rear and handing ${him} the newborn child.`); } else { r.push(`While taking a citizen's dick in ${his} ass, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} desperately struggles to disengage but he shoves ${him} onto ${his} bloated womb and mounts ${him}. Quickly ${he} spreads ${his} legs apart and begins pushing out ${his} baby${UH}. ${He} can't hide what's happening between ${his} legs,`); if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } r.push(`He came strongly thanks to ${him} and gives ${him} a slap on the ass as ${he} collapses onto ${his} bloated womb. Once ${he} recovers enough to collect ${his} child, ${he} awaits for it to be sent off.`); humiliation = 1; } } } else { if (slave.fetish === "mindbroken") { if (pbw > 80) { r.push(`While taking a citizen's dick, ${slave.slaveName}'s body begins to birth another of ${his} brood out on him. Showing no signs of stopping, he struggles to shoves ${his} bulk off of him. Instinctively ${he} begins to push out ${his} baby, indifferent to who may be watching ${his} naked crotch. ${He} is handed ${his} child, which ${he} clutches to ${his} breast before seeking out the next citizen's cock.`); } else if (pbw > 60) { r.push(`While sucking a citizen's dick, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} shows no signs of slowing down, so he allows ${him} to reposition and continue.`); r.push(clothingBirth()); r.push(`He cums down ${his} throat before placing ${his} child on ${his} breast, as ${he} begins seeking out the next citizen's cock.`); } else if (pbw > 40) { r.push(`While licking a citizen's cunt, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} shows no signs of slowing down, so ${he} allows ${him} to reposition and continue.`); r.push(clothingBirth()); r.push(`The citizen splashes across ${his} face before placing ${his} child on ${his} breast, as ${he} begins seeking out the next citizen's cunt.`); } else { r.push(`While taking a citizen's dick in ${his} ass, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} shows no signs of slowing down, so he allows ${him} to reposition and continue. Instinctively ${he} begins to push out ${his} baby, indifferent to who may be watching ${his} naked crotch. He came strongly thanks to ${him} and gives ${him} a slap on the ass before handing ${him} ${his} child. ${He} brings it to ${his} breast before seeking out the next citizen's cock.`); } } else { if (pbw > 80) { r.push(`While riding a citizen's dick, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} desperately tries to disengage but he shoves ${him} onto ${his} bloated womb and mounts ${him}. He thoroughly enjoys ${his} contracting cunt before pulling out and standing over ${him}, jacking off. Quickly ${he} spreads ${his} legs apart and begins pushing out ${his} baby${UH}. ${He} can't hide what's happening between ${his} legs,`); if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } r.push(`He comes over ${his} exhausted body and moves on leaving ${him} to recover and collect ${his} child to be sent off.`); humiliation = 1; } else if (pbw > 60) { r.push(`While sucking a citizen's dick, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} desperately tries to disengage but he grabs ${his} head and slams ${him} back into his crotch.`); humiliation = 1; r.push(clothingBirth()); r.push(`He cums down ${his} throat before letting ${him} collapse onto ${his} bloated form. When ${he} recovers, ${he} gathers ${his} child to be sent off.`); } else if (pbw > 40) { r.push(`While licking a citizen's cunt, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} desperately tries to disengage but she grabs ${his} head and slams ${him} back into her crotch.`); humiliation = 1; r.push(clothingBirth()); r.push(`She cums across ${his} face before helping ${him}`); if (hasBothLegs(slave)) { r.push(`to ${his} feet`); } else { r.push(`upright`); } r.push(`and handing ${him} the newborn child.`); } else { r.push(`While taking a citizen's dick in ${his} ass, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} desperately tries to disengage but he shoves ${him} onto ${his} bloated womb and mounts ${him}. Quickly ${he} spreads ${his} legs apart and begins pushing out ${his} ${babies}${UH}. ${He} can't hide what's happening between ${his} legs,`); if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } r.push(`He came strongly thanks to ${him} and gives ${him} a slap on the ass as ${he} collapses onto ${his} bloated womb. Once ${he} recovers enough to get`); if (hasBothLegs(slave)) { r.push(`to ${his} feet,`); } else { r.push(`upright,`); } r.push(`${he} gathers ${his} child to be sent off.`); humiliation = 1; } } } break; case Job.GLORYHOLE: if (!canWalk(slave)) { if (slave.fetish === "mindbroken") { r.push(`While sucking a dick through the hole of ${his} confining box, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} makes no effort to stop sucking the dicks presented to ${him}.`); r.push(clothingBirth()); r.push(`${His} child is taken as it is born from ${his} rear hanging out of the box. ${He} never notices, focused entirely on the fresh cock poking through the glory hole.`); } else { r.push(`While sucking a dick through the hole of ${his} confining box, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} quickly finishes the dick off and sighs, knowing full well ${he} couldn't move even if ${he} weren't confined. Another dick is shoved into ${his} trapped face and ${he} is forced to keep sucking.`); r.push(clothingBirth()); r.push(`${His} child is taken as it is born from ${his} rear hanging out of the box. ${He} never got a look at it, being unable to turn even slightly.`); } } else { if (slave.fetish === "mindbroken") { r.push(`While sucking a dick through the hole of ${his} confining box, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} makes no effort to stop sucking the dicks presented to ${him}.`); r.push(clothingBirth()); r.push(`${His} child is taken as it is born from ${his} rear hanging out of the box. ${He} never notices, focused entirely on the fresh cock poking through the glory hole.`); } else { r.push(`While sucking a dick through the hole of ${his} confining box, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} quickly finishes the dick off before realizing there is no way ${he} can move ${his} bloated form in the box. Another dick is shoved into ${his} trapped face and ${he} is forced to keep sucking.`); r.push(clothingBirth()); r.push(`${His} child is taken as it is born from ${his} rear hanging out of the box. ${He} never got a look at it, being unable to turn even slightly.`); } } break; case Job.MILKED: if (!canWalk(slave)) { if (slave.fetish === "mindbroken") { r.push(`While getting milked, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} show little interest and continues kneading ${his} breasts.`); r.push(clothingBirth()); r.push(`${He} shows no interest in ${his} ${children}`); r.push(`being removed from the milking stall, instead focusing entirely on draining breasts.`); } else { r.push(`While getting milked, ${slave.slaveName}'s body begins to birth another of ${his} brood. Between the milkers and ${his} immobilizing belly, ${he} ends up stranded atop ${his} immense pregnancy.`); r.push(clothingBirth()); r.push(`${His} child is carried away and ${he} struggles to get off of ${himself}. ${He} groans as ${he} realizes the milk tank is nearly full, having been filled with the copious amounts of milk ${his} body is producing for ${his} brood.`); } } else { if (slave.fetish === "mindbroken") { r.push(`While getting milked, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} show little interest and continues kneading ${his} breasts.`); r.push(clothingBirth()); r.push(`${He} shows no interest in ${his} ${children}`); r.push(`being removed from the milking stall, instead focusing entirely on draining breasts.`); } else { r.push(`While getting milked, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} shifts into a comfortable position to give birth while the milker works ${his} breasts.`); r.push(clothingBirth()); r.push(`${His} child is carried away and ${he} rests with ${his} back against the wall. ${He} groans as ${he} realizes the milk tank is nearly full, having been filled with the copious amounts of milk ${his} body is producing for ${his} brood.`); } } break; case Job.FUCKTOY: if (!canWalk(slave)) { if (slave.fetish === "mindbroken") { r.push(`While sitting absentmindedly nearby, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} pays no heed to it and continues waiting for you to use ${him}.`); r.push(clothingBirth()); r.push(`You certainly enjoyed the show as you call for a servant to take away ${his} child and to clean up the still oblivious broodmother.`); } else { r.push(`While resting against ${his} belly nearby, ${slave.slaveName}'s body begins to birth another of ${his} brood, startling ${him}. ${He} looks to you for guidance and you shake your head "no". Without permission to move ${he}`); if (slave.devotion > 50) { r.push(`decides to give you a show.`); } else if (slave.devotion > 20) { r.push(`reluctantly decides giving birth in front of you isn't so bad.`); } else { r.push(`begins to panic as ${his} contractions come sooner and sooner.`); humiliation = 1; } r.push(clothingBirth()); r.push(`As thanks for the show, you help ${his} exhausted body onto the couch so ${he} can recover before returning to ${his} duties. You call for a servant to take away ${his} child and clean up your toy.`); } } else { if (slave.fetish === "mindbroken") { r.push(`While sitting absentmindedly nearby, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} pays no heed to it and continues waiting for you to use ${him}.`); r.push(clothingBirth()); r.push(`You certainly enjoyed the show as you call for a servant to take away ${his} child and to clean up the still oblivious broodmother.`); } else { r.push(`While standing nearby, ${slave.slaveName}'s body begins to birth another of ${his} brood, startling ${him}. ${He} looks to you for guidance and you shake your head "no". Without permission to leave ${he}`); if (slave.devotion > 50) { r.push(`decides to give you a show.`); } else if (slave.devotion > 20) { r.push(`reluctantly decides giving birth in front of you isn't so bad.`); } else { r.push(`begins to panic as ${his} contractions come sooner and sooner.`); humiliation = 1; } r.push(clothingBirth()); r.push(`As thanks for the show, you help ${his} exhausted body onto the couch so ${he} can recover before returning to ${his} duties. You call for a servant to take away ${his} child and clean up your toy.`); } } break; case Job.CONFINEMENT: if (!canWalk(slave)) { if (slave.fetish === "mindbroken") { r.push(`While waiting in confinement, ${slave.slaveName}'s body begins to birth another of ${his} brood. Since ${he} can't move, ${he} just lets things happen.`); r.push(clothingBirth()); r.push(`${He} struggles for a minute before realizing ${he} is incapable of reaching ${his} child. The servant that has to crawl under ${his} bloated body to get ${his} child is less than pleased, especially since this is the third time this week ${he} has had to do it.`); } else { r.push(`${slave.slaveName} is awoken from ${his} stupor by ${his} body beginning to birth another of ${his} brood. ${He} struggles to get into position but ends up getting stuck atop ${his} massive belly.`); humiliation = 1; r.push(clothingBirth()); r.push(`${He} spills out of the cell when the servant comes once more to collect ${his} child. ${He} hastily tries to cram ${his} bulk back into ${his} cell before ${he} gets chastised.`); } } else { if (slave.fetish === "mindbroken") { r.push(`While waiting in confinement, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} assumes a birthing position.`); r.push(clothingBirth()); r.push(`${He} struggles for a minute before realizing ${his} pregnancy takes up most of the cell and that ${he} can't reach ${his} child. The servant that has to crawl under ${his} bloated body to get ${his} child is less than pleased, especially since this is the third time this week ${he} has had to do it.`); } else { r.push(`${slave.slaveName} is awoken from ${his} stupor by ${his} body beginning to birth another of ${his} brood. ${He} struggles to get into position but ends up getting stuck standing thanks to ${his} massive belly.`); humiliation = 1; r.push(clothingBirth()); r.push(`${He} spills out of the cell when the servant comes once more to collect ${his} child. ${He} hastily tries to cram ${his} bulk back into ${his} cell before ${he} gets chastised.`); } } break; case Job.QUARTER: case Job.HOUSE: if (slave.fetish === "mindbroken") { if (random(0, 1) === 1) { r.push(`While giving a slave oral service, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} disregards this development and continues working.`); r.push(clothingBirth()); r.push(`The slave gets off quite strongly to the show and shoves ${him} out of the way, leaving ${him} to clean up ${his} mess. Instead, ${he} struggles to bring ${his} child to ${his} breast until`); if (S.Stewardess) { r.push(`${S.Stewardess.slaveName} shouts at ${him} to move ${his} useless ass.`); } else if (V.HeadGirlID !== 0) { r.push(`${S.HeadGirl.slaveName} shouts at ${him} to move ${his} useless ass.`); } else { r.push(`shouts at ${him} to move ${his} useless ass.`); } } else { r.push(`While struggling to scrub the penthouse floor, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} carries on trying to clean as ${he} drags ${his} belly along the floor.`); r.push(clothingBirth()); r.push(`Instead of carrying on ${his} task, ${he} draws ${his} child to ${his} breast until`); if (S.Stewardess) { r.push(`${S.Stewardess.slaveName} shouts at ${him} to move ${his} useless ass.`); } else if (V.HeadGirlID !== 0) { r.push(`${S.HeadGirl.slaveName} shouts at ${him} to move ${his} useless ass.`); } else { r.push(`shouts at ${him} to move ${his} useless ass.`); } } } else { if (random(0, 1) === 1) { r.push(`While giving a slave oral service, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} desperately tries to pull away but they grab ${his} head and force ${him} back to their crotch.`); humiliation = 1; r.push(clothingBirth()); r.push(`The slave gets off quite strongly to the show and shoves ${him} to the ground, leaving ${him} struggling to get up before`); if (S.Stewardess) { r.push(`${S.Stewardess.slaveName} shouts at ${him}.`); } else if (V.HeadGirlID !== 0) { r.push(`${S.HeadGirl.slaveName} shouts at ${him}.`); } else { r.push(`shouts at ${him}.`); } } else { r.push(`While using ${his} bloated belly to scrub the penthouse floor, ${slave.slaveName}'s body begins to birth another of ${his} brood. Since this isn't the first time this week this happened, ${he} readies ${himself} for the coming birth.`); r.push(clothingBirth()); r.push(`${He} makes a pass around the room before scooping up ${his} child and struggling to ${his} feet. ${He} slowly waddles to drop off ${his} child.`); } } break; case Job.MASTERSUITE: if (!canWalk(slave)) { if (slave.fetish === "mindbroken") { if (V.masterSuiteUpgradeLuxury === 1) { r.push(`While awaiting your return on the big bed in the master suite, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} struggles to shift into a more comfortable position before giving up.`); r.push(clothingBirth()); r.push(`Resting in your bed, ${he} draws ${his} child to ${his} breast and resumes waiting for you.`); if (S.Concubine) { r.push(`${S.Concubine.slaveName} furiously orders ${his} ${children} removed, and ${him} forcefully ejected from the bed so it can be cleaned before your return.`); } } else if (V.masterSuiteUpgradeLuxury === 2) { r.push(`While being the bottom of the master suite's fuckpit, ${slave.slaveName}'s body begins to birth another of ${his} brood. While ${he} doesn't stop having sex, the fucktoys using ${him} do and attempt to drag ${him} from the pit to give birth. Instinctively ${he} begins to push out ${his} baby, indifferent to who may be watching ${his} naked crotch. The fucktoys give up their efforts to haul ${his} bloated form out of the pit and allow ${him} to settle at the bottom. Without a second thought about ${his} child, ${he} attempts to coax the other slaves back into an orgy.`); } else { r.push(`While awaiting your return in the master suite, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} pays it no heed and continues blankly waiting.`); r.push(clothingBirth()); r.push(`Resting on ${his} belly, ${he} draws ${his} child to ${his} breast and resumes waiting for you.`); if (S.Concubine) { r.push(`${S.Concubine.slaveName} furiously orders ${his} ${children} removed, and ${him} thoroughly cleaned before your return.`); } } } else { if (V.masterSuiteUpgradeLuxury === 1) { r.push(`While awaiting your return on the big bed in the master suite, ${slave.slaveName}'s body begins to birth another of ${his} brood. Knowing there is nothing ${he} can do, ${he} accepts that ${he} is going to give birth in your bed.`); r.push(clothingBirth()); r.push(`Once ${his} child is removed, ${he}'s cleaned up, and the sheets changed, ${he} struggles back into bed to recover for your return.`); } else if (V.masterSuiteUpgradeLuxury === 2) { r.push(`While participating in the fuckpit orgy, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} knows ${he} stands no chance of escaping the fuckpit, so ${he} leaves ${himself} at the mercy of the other fucktoys. They happily position themselves for ${him} to pleasure them while giving birth.`); humiliation = 1; r.push(clothingBirth()); r.push(`Once the fucktoys are done tormenting the exhausted broodmother, they hand ${his} child off to the help and snuggle up to ${his} enormous pregnancy as ${he} recovers ${his} strength.`); } else { r.push(`While awaiting your return in the master suite, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} knows ${he} stands no chance of reaching ${his} sex toys, so ${he} does ${his} best to conceal them. ${He} calls for a servant to hurry as ${he} begins laboring.`); r.push(clothingBirth()); r.push(`The servant collects ${his} child and helps ${him} onto the largest cushion in the room to recover for your return. With a little effort ${he} pushes the vibrating dildo out of ${his} ass before settling down for a nap.`); } } } else { if (slave.fetish === "mindbroken") { if (V.masterSuiteUpgradeLuxury === 1) { r.push(`While awaiting your return on the big bed in the master suite, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} shifts into a more comfortable position.`); r.push(clothingBirth()); r.push(`Resting in your bed, ${he} draws ${his} child to ${his} breast and resumes waiting for you.`); if (S.Concubine) { r.push(`${S.Concubine.slaveName} furiously orders ${his} ${children} removed, and ${him} forcefully ejected from the bed so it can be cleaned before your return.`); } } else if (V.masterSuiteUpgradeLuxury === 2) { r.push(`While being the bottom of the master suite's fuckpit, ${slave.slaveName}'s body begins to birth another of ${his} brood. While ${he} doesn't stop having sex, the fucktoys using ${him} do and attempt to drag ${him} from the pit to give birth. Instinctively ${he} begins to push out ${his} baby, indifferent to who may be watching ${his} naked crotch. The fucktoys give up their efforts to haul ${his} bloated form out of the pit and allow ${him} to settle a the bottom. Without a second thought about ${his} child, ${he} attempts to coax the other slaves back into an orgy.`); } else { r.push(`While awaiting your return in the master suite, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} pays it no heed and continues blankly waiting.`); r.push(clothingBirth()); r.push(`Resting on ${his} belly, ${he} draws ${his} child to ${his} breast and resumes waiting for you.`); if (S.Concubine) { r.push(`${S.Concubine.slaveName} furiously orders ${his} ${children} removed, and ${him} thoroughly cleaned before your return.`); } } } else { if (V.masterSuiteUpgradeLuxury === 1) { r.push(`While awaiting your return on the big bed in the master suite, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} quickly moves ${himself} off the bed and calls for a servant before dropping onto ${his} bloated stomach.`); r.push(clothingBirth()); r.push(`Once ${his} child is removed, ${he}'s cleaned up, and the sheets changed, ${he} struggles back into bed to recover for your return.`); } else if (V.masterSuiteUpgradeLuxury === 2) { r.push(`While participating in the fuckpit orgy, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} tries to crawl out of the pit but the other fucktoys easily pull ${him} back in and position themselves for ${him} to pleasure them while giving birth.`); humiliation = 1; r.push(clothingBirth()); r.push(`Once the fucktoys are done tormenting the exhausted broodmother, they hand ${his} child off to the help and snuggle up to ${his} enormous pregnancy as ${he} recovers ${his} strength.`); } else { r.push(`While awaiting your return in the master suite, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} tries to get to the prepared area but fails to untangle ${himself} from the toys ${he} was playing with. ${He} calls for a servant to hurry as ${he} begins laboring.`); r.push(clothingBirth()); r.push(`The servant collects ${his} child and helps ${him} onto the largest cushion in the room to recover for your return. With a little effort ${he} pushes the vibrating dildo out of ${his} ass before settling down for a nap.`); } } } break; case Job.CLUB: if (!canWalk(slave)) { if (slave.fetish === "mindbroken") { r.push(`${slave.slaveName} is showing off ${his} grotesque body and trying to attract citizens by dancing as well as ${he} can. During one of ${his} dances, ${his} body begins to birth another of ${his} brood. ${He} keeps on dancing, despite ${his} condition, until ${his} contractions drag ${him} onto ${his} bloated stomach.`); r.push(clothingBirth()); r.push(`Multiple citizens drag ${him} into a booth so that they may tease ${his} enormous exhausted body while the dance floor is dried and ${his} child is carried off.`); } else if (slave.fetish === "humiliation") { r.push(`${slave.slaveName} is showing off ${his} grotesque body and trying to attract citizens by dancing as well as ${he} can, all the while flashing glimpses of ${his} crotch and nipples. During one of ${his} dances, ${his} body begins to birth another of ${his} brood. ${He} calls out to the crowd, hyping them up for ${his} new show.`); humiliation = 1; r.push(clothingBirth()); r.push(`As ${his} child is removed from the dance floor, ${he} is helped into one of the back rooms by several of ${his} aroused onlookers.`); } else { r.push(`${slave.slaveName} is showing off ${his} grotesque body and trying to attract citizens by dancing as well as ${he} can. During one of ${his} dances, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} frantically struggles to move drawing even more attention to ${his} helpless state. ${He} is roughly pulled into one of the side rooms by a group of men looking forward to the show ${he}'s about to perform for them.`); humiliation = 1; r.push(clothingBirth()); r.push(`Only once the last of ${his} clients cums over ${his} bloated body is ${he} handed ${his} child and allowed to rest. ${He} enjoys a moment with ${his} newborn before the servant comes to collect them.`); } } else { if (slave.fetish === "mindbroken") { r.push(`${slave.slaveName} is showing off ${his} grotesque body and trying to attract citizens by dancing as well as ${he} can. During one of ${his} dances, ${his} body begins to birth another of ${his} brood. ${He} keeps on dancing, despite ${his} condition, until ${his} contractions drag ${him} onto ${his} bloated stomach.`); r.push(clothingBirth()); r.push(`Multiple citizens drag ${him} into a booth so that they may tease ${his} enormous exhausted body while the dance floor is dried and ${his} child is carried off.`); } else if (slave.fetish === "humiliation") { r.push(`${slave.slaveName} is showing off ${his} grotesque body and trying to attract citizens by dancing as well as ${he} can, all the while flashing glimpses of ${his} crotch and nipples. During one of ${his} dances, ${his} body begins to birth another of ${his} brood. ${He} calls out to the crowd, hyping them up for ${his} new show.`); humiliation = 1; r.push(clothingBirth()); r.push(`As ${his} child is removed from the dance floor, ${he} is helped into one of the back rooms by several of ${his} aroused onlookers.`); } else { r.push(`${slave.slaveName} is showing off ${his} grotesque body and trying to attract citizens by dancing as well as ${he} can. During one of ${his} dances, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} clumsily tries to leave the dance floor only to find hands groping ${his} titanic belly. ${He} is roughly pulled into one of the side rooms by a group of men looking forward to the show ${he}'s about to perform for them.`); humiliation = 1; r.push(clothingBirth()); r.push(`Only once the last of ${his} clients cums over ${his} bloated body is ${he} handed ${his} child and allowed to rest. ${He} enjoys a moment with ${his} newborn before the servant comes to collect them.`); } } break; case Job.CHOICE: if (!canWalk(slave)) { r.push(`While thinking about what job to take as an immobile womb, ${slave.slaveName}'s body begins to birth another of ${his} brood. Unable to do anything but labor, ${he} gives in to what's coming.`); r.push(clothingBirth()); r.push(`${He} gathers ${his} child and recovers ${his} strength before finding a servant to give ${his} child to. ${He} decides to rest for the rest of the day before returning to choosing ${his} next task.`); } else { if (slave.fetish === "humiliation") { r.push(`While slowly wandering the penthouse deciding on ${his} post, ${slave.slaveName}'s body begins to birth another of ${his} brood. Sensing an opportunity, ${he} waddles to the nearest balcony overlooking the city. ${He} calls out, making sure all eyes are on ${him} for what happens next.`); humiliation = 1; r.push(clothingBirth()); r.push(`${He} gathers ${his} child and recovers ${his} strength before finding a servant to give ${his} child to. ${He} decides to rest for the rest of the day before returning to choosing ${his} next task.`); } else { r.push(`While slowly wandering the penthouse deciding on ${his} post, ${slave.slaveName}'s body begins to birth another of ${his} brood. Unable to reach the prepared birthing room in time, ${he} finds a secluded room to give birth in.`); r.push(clothingBirth()); r.push(`${He} gathers ${his} child and recovers ${his} strength before finding a servant to give ${his} child to. ${He} decides to rest for the rest of the day before returning to choosing ${his} next task.`); } } break; case Job.SPA: if (!canWalk(slave)) { if (slave.fetish === "mindbroken") { r.push(`While soaking in the spa's pool, ${slave.slaveName}'s body begins to birth another of ${his} brood. As ${he} begins to ready ${himself} for birth,`); if (S.Attendant) { r.push(`${S.Attendant.slaveName} struggles to pull ${him} out of the pool and glares at ${him}.`); } else { r.push(`the other bathers watch curiously.`); } r.push(clothingBirth()); r.push(`${He} and ${his} child are quickly dried off as ${he} begins nursing them. A servant soon arrives to take ${his} children away.`); } else { r.push(`While soaking in the spa's pool, ${slave.slaveName}'s body begins to birth another of ${his} brood. As ${he} begins to ready ${himself} for a water birth,`); if (S.Attendant) { r.push(`${S.Attendant.slaveName} shifts into position to aid ${him}.`); } else { r.push(`the other bathers watch curiously.`); } r.push(clothingBirth()); r.push(`${He} and ${his} child are quickly dried off as ${he} begins nursing them. A servant soon arrives to take ${his} children away.`); } } else { if (slave.fetish === "mindbroken") { r.push(`While soaking in the spa's pool, ${slave.slaveName}'s body begins to birth another of ${his} brood. As ${he} begins to ready ${himself} for birth,`); if (S.Attendant) { r.push(`${S.Attendant.slaveName} struggles to pull ${him} out of the pool and glares at ${him}.`); } else { r.push(`the other bathers watch curiously.`); } r.push(clothingBirth()); r.push(`${He} and ${his} child are quickly dried off as ${he} begins nursing them. A servant soon arrives to take ${his} children away.`); } else { r.push(`While heading for the changing room before a nice soak, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} hurries into the changing room only to find it unusually crowded. Without any choice left, ${he} assumes a birthing position.`); humiliation = 1; r.push(clothingBirth()); r.push(`The several of other slaves present, that aren't pinned by ${his} sudden intrusion, help ${him} with ${his} child while the rest enjoy the show.`); if (S.Attendant) { r.push(`${S.Attendant.slaveName}, lured in by the commotion, shoos the other slaves out and helps the new mother to a private relaxation room to unwind.`); } else { r.push(`Soon a servant arrives to take ${his} child away, and ${he} is ushered into the bath to clean up and relax.`); } } } break; case Job.SCHOOL: if (!canWalk(slave)) { r.push(`During a lesson in ${V.schoolroomName}, ${slave.slaveName}'s body begins to birth another of ${his} brood. Since this isn't the first time ${he} interrupted the lesson this week, and ${he} is too heavy to move, ${he} is allowed to give birth right where ${he} is.`); humiliation = 1; r.push(clothingBirth()); r.push(`${He} struggles to gather ${his} newborn child as class slowly resume. Looking around, ${he} can't help but notice all the other students giggling and gesturing at ${him}.`); } else { r.push(`During a lesson in ${V.schoolroomName}, ${slave.slaveName}'s body begins to birth another of ${his} brood. Since this isn't the first time ${he} interrupted the lesson this week, ${he} is helped into an adjacent storage room.`); humiliation = 1; r.push(clothingBirth()); r.push(`${He} struggles to gather ${his} newborn child and slowly excuses ${himself} from the class. ${He} can't help but notice all the other students giggling and gesturing as ${he} waddles out.`); } break; case Job.CLASSES: if (!canWalk(slave)) { r.push(`During a lesson under ${V.assistant.name}, ${slave.slaveName}'s body begins to birth another of ${his} brood. Your assistant pauses and waits for ${him} to finish, having given up after the last several times`); r.push(clothingBirth()); r.push(`Exhausted from the birth, ${he} is permitted a short break as ${his} child is collected to be cleaned up before the lesson is continued.`); } else { r.push(`During a lesson under ${V.assistant.name}, ${slave.slaveName}'s body begins to birth another of ${his} brood. Your assistant pauses and waits for ${him} to finish, having given up after the last several times`); r.push(clothingBirth()); r.push(`Exhausted from the birth, ${he} is permitted a short break as ${his} child is collected to clean ${himself} up before the lesson is continued.`); } break; case Job.BROTHEL: if (!canWalk(slave)) { if (slave.fetish === "mindbroken") { if (pbw > 80) { r.push(`While taking a customer's dick, ${slave.slaveName}'s body begins to birth another of ${his} brood out on him. Showing no signs of stopping, he struggles to shoves ${his} bulk off of him. Instinctively ${he} begins to push out ${his} baby, indifferent to who may be watching ${his} naked crotch. ${He} is handed ${his} child, which ${he} clutches to ${his} breast before beckoning for the next customer's cock.`); } else if (pbw > 60) { r.push(`While sucking a customer's dick, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} shows no signs of slowing down, so he allows ${him} to continue.`); r.push(clothingBirth()); r.push(`He cums down ${his} throat before placing ${his} child on ${his} breast, as ${he} beckoning for the next customer's cock.`); } else if (pbw > 40) { r.push(`While licking a customer's cunt, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} shows no signs of slowing down, so she allows ${him} to continue.`); r.push(clothingBirth()); r.push(`The customer splashes across ${his} face before placing ${his} child on ${his} breast, as ${he} begins beckoning for the next customer's cunt.`); } else { r.push(`While taking a customer's dick in ${his} ass, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} shows no signs of slowing down, so he allows ${him} to continue. Instinctively ${he} begins to push out ${his} baby, indifferent to who may be watching ${his} naked crotch. He came strongly thanks to ${him} and gives ${him} a slap on the ass before handing ${him} ${his} child. ${He} brings it to ${his} breast before beckoning for the next customer's cock.`); } } else { if (pbw > 80) { r.push(`While riding a customer's dick, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} desperately struggles to disengage encouraging him to shove ${him} onto ${his} bloated womb and mount ${him}. He thoroughly enjoys ${his} contracting cunt before pulling out and standing over ${him}, jacking off. Quickly ${he} spreads ${his} legs apart and begins pushing out ${his} baby${UH}. ${He} can't hide what's happening between ${his} legs,`); if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } r.push(`He comes over ${his} exhausted body and moves on leaving ${him} to recover and await ${his} child to be sent off.`); humiliation = 1; } else if (pbw > 60) { r.push(`While sucking a customer's dick, ${slave.slaveName}'s body begins to birth another of ${his} brood. Since ${he} is incapable of moving ${himself}, ${he} carries on sucking.`); humiliation = 1; r.push(clothingBirth()); r.push(`He cums down ${his} throat before letting ${him} collapse onto ${his} bloated form. When ${he} recovers, ${he} gathers ${his} child to be sent off.`); } else if (pbw > 40) { r.push(`While licking a customer's cunt, ${slave.slaveName}'s body begins to birth another of ${his} brood. Since ${he} is incapable of moving ${himself}, ${he} carries on licking.`); humiliation = 1; r.push(clothingBirth()); r.push(`She cums across ${his} face before helping ${him} to ${his} rear and handing ${him} the newborn child.`); } else { r.push(`While taking a customer's dick in ${his} ass, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} desperately struggles to disengage but he shoves ${him} onto ${his} bloated womb and mounts ${him}. Quickly ${he} spreads ${his} legs apart and begins pushing out ${his} ${babies}${UH}. ${He} can't hide what's happening between ${his} legs,`); if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } r.push(`He came strongly thanks to ${him} and gives ${him} a slap on the ass as ${he} collapses onto ${his} bloated womb. Once ${he} recovers enough to collect ${his} child, ${he} awaits for it to be sent off.`); humiliation = 1; } } } else { if (slave.fetish === "mindbroken") { if (pbw > 80) { r.push(`While taking a customer's dick, ${slave.slaveName}'s body begins to birth another of ${his} brood out on him. Showing no signs of stopping, he struggles to shoves ${his} bulk off of him. Instinctively ${he} begins to push out ${his} baby, indifferent to who may be watching ${his} naked crotch. ${He} is handed ${his} child, which ${he} clutches to ${his} breast before seeking out the next citizen's cock.`); } else if (pbw > 60) { r.push(`While sucking a customer's dick, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} shows no signs of slowing down, so he allows ${him} to reposition and continue.`); r.push(clothingBirth()); r.push(`He cums down ${his} throat before placing ${his} child on ${his} breast, as ${he} begins seeking out the next citizen's cock.`); } else if (pbw > 40) { r.push(`While licking a customer's cunt, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} shows no signs of slowing down, so she allows ${him} to reposition and continue.`); r.push(clothingBirth()); r.push(`The customer splashes across ${his} face before placing ${his} child on ${his} breast, as ${he} begins seeking out the next customer's cunt.`); } else { r.push(`While taking a customer's dick in ${his} ass, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} shows no signs of slowing down, so he allows ${him} to reposition and continue. Instinctively ${he} begins to push out ${his} baby, indifferent to who may be watching ${his} naked crotch. He came strongly thanks to ${him} and gives ${him} a slap on the ass before handing ${him} ${his} child. ${He} brings it to ${his} breast before seeking out the next customer's cock.`); } } else { if (pbw > 80) { r.push(`While riding a customer's dick, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} desperately tries to disengage but he shoves ${him} onto ${his} bloated womb and mounts ${him}. He thoroughly enjoys ${his} contracting cunt before pulling out and standing over ${him}, jacking off. Quickly ${he} spreads ${his} legs apart and begins pushing out ${his} ${babies}${UH}. ${He} can't hide what's happening between ${his} legs,`); if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } r.push(`He comes over ${his} exhausted body and moves on leaving ${him} to recover and collect ${his} child to be sent off.`); humiliation = 1; } else if (pbw > 60) { r.push(`While sucking a customer's dick, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} desperately tries to disengage but he grabs ${his} head and slams ${him} back into his crotch.`); humiliation = 1; r.push(clothingBirth()); r.push(`He cums down ${his} throat before letting ${him} collapse onto ${his} bloated form. When ${he} recovers, ${he} gathers ${his} child to be sent off.`); } else if (pbw > 40) { r.push(`While licking a customer's cunt, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} desperately tries to disengage but she grabs ${his} head and slams ${him} back into ${his} crotch.`); humiliation = 1; r.push(clothingBirth()); r.push(`She cums across ${his} face before helping ${him}`); if (hasBothLegs(slave)) { r.push(`to ${his} feet`); } else { r.push(`upright`); } r.push(`and handing ${him} the newborn child.`); } else { r.push(`While taking a customer's dick in ${his} ass, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} desperately tries to disengage but he shoves ${him} onto ${his} bloated womb and mounts ${him}. Quickly ${he} spreads ${his} legs apart and begins pushing out ${his} ${babies}${UH}. ${He} can't hide what's happening between ${his} legs,`); if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } r.push(`He came strongly thanks to ${him} and gives ${him} a slap on the ass as ${he} collapses onto ${his} bloated womb. Once ${he} recovers enough to get`); if (hasBothLegs(slave)) { r.push(`to ${his} feet,`); } else { r.push(`upright,`); } r.push(`${he} gathers ${his} child to be sent off.`); humiliation = 1; } } } break; case Job.CONCUBINE: if (slave.fetish === "mindbroken") { } else { r.push(`${slave.slaveName} cradles ${his} swollen belly, waiting for your return, when ${his} body begins to birth another of ${his} brood. Saddened that you aren't there for the show, ${he} begins waddling off to find you. By the time ${he} reaches your office, ${he} is barely holding back ${his} child. You rise to meet ${him} and struggle to help ${him} onto the couch, just before it's to late.`); r.push(clothingBirth()); r.push(`Cradling your child, the two of you rest for a spell before sending them off and spending some more intimate time together. You make sure to pay special attention to ${his} overstimulated belly before you help ${him} back to your suite.`); } break; case Job.HEADGIRLSUITE: ({he2, his2} = getPronouns(S.HeadGirl).appendSuffix("2")); if (!canWalk(slave)) { if (slave.fetish === "mindbroken") { r.push(`${slave.slaveName} is awoken from ${his} rest by a strong contraction. ${He} attempts to roll over, and failing that, begins to fall back to sleep as another contraction wracks ${his} body. ${His} body begins to birth another of ${his} brood.`); r.push(clothingBirth()); r.push(`${He} draws ${his} child to ${his} breast and resumes resting before ${S.HeadGirl.slaveName} returns from ${his2} duties.`); } else { r.push(`${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} attempts to roll over, and failing that, claws at ${his} massive belly as another contraction wracks ${his} body.`); r.push(clothingBirth()); r.push(`${He} struggles to collect ${his} child and brings them to ${his} breast. ${He} waits for ${S.HeadGirl.slaveName} to return, hoping ${he2} will arrive before another baby makes its way out of ${him}.`); } } else { if (slave.fetish === "mindbroken") { r.push(`${slave.slaveName} is awoken from ${his} rest by a strong contraction. ${He} rolls over and begins to fall back to sleep as another contraction wracks ${his} body. ${His} body begins to birth another of ${his} brood.`); r.push(clothingBirth()); r.push(`${He} draws ${his} child to ${his} breast and resumes resting before ${S.HeadGirl.slaveName} returns from ${his2} duties.`); } else { r.push(`${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} rolls over and claws at ${his} massive belly as another contraction wracks ${his} body.`); r.push(clothingBirth()); r.push(`${He} struggles to collect ${his} child and places them in the cradle readied for ${him}. ${He} waddles off to take a bath as your servants clean up and remove ${his} child. Cleaned up, ${he} returns to resting knowing full well that ${S.HeadGirl.slaveName} will be eager to play with ${his} body upon returning.`); } } break; case Job.ARCADE: r.push(`A gush of liquid pours from the ${slave.slaveName}'s cunt, followed by the attendant in charge of the arcade hanging an "out of order" sign on ${his} exposed rear. While ${his} mouth is filled with a customer's dick, ${his} body instinctively births ${his} child into the waiting basket. As they are carried away, ${his} rear is cleaned up and the sign removed.`); break; case Job.CLINIC: if (S.Nurse) { ({he2, his2} = getPronouns(S.Nurse).appendSuffix("2")); } r.push(`${slave.slaveName} is in the perfect place to give birth when ${his} body begins to push out another of ${his} brood.`); if (S.Nurse) { r.push(S.Nurse.slaveName); } else { r.push(`A freelance nurse`); } r.push(`delivers ${his} child before taking them away. Before long ${he2} returns to attend to ${his2} patient's perpetual pregnancy.`); break; case Job.CELLBLOCK: if (slave.fetish === "mindbroken") { r.push(`While waiting in confinement, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} assumes a birthing position.`); r.push(clothingBirth()); r.push(`${He} struggles for a minute before realizing ${his} pregnancy takes up most of the cell and that ${he} can't reach ${his} child. The servant that has to crawl under ${his} bloated body to get ${his} child is less than pleased, especially since this is the third time this week ${he} has had to do it.`); } else { r.push(`${slave.slaveName} is awoken from ${his} stupor by ${his} body beginning to birth another of ${his} brood. ${He} struggles to get into position but ends up getting stuck thanks to ${his} massive belly and inability to properly move ${himself}.`); humiliation = 1; r.push(clothingBirth()); r.push(`${He} spills out of the cell when the servant comes once more to collect ${his} child. ${He} hastily tries to cram ${his} bulk back into ${his} cell before ${he} gets chastised.`); } break; default: if (!canWalk(slave)) { if (slave.fetish === "mindbroken") { r.push(`While stroking ${his} pregnancy absentmindedly, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} carries on until the contractions drag ${him} onto ${his} swollen belly.`); r.push(clothingBirth()); r.push(`${He} draws ${his} child to ${his} breast and rests upon ${his} mass until a servant collects ${his} child and helps ${him} back to ${his} bed.`); } else { if (random(0, 1) === 1) { r.push(`While waiting to be helped to ${his} next assignment, ${slave.slaveName}'s body begins to birth another of ${his} brood. Unable to do anything, ${he} is forced to give birth where ${he} is.`); r.push(clothingBirth()); r.push(`${He} gathers ${his} child and recovers ${his} strength while resuming ${his} wait for a servant to help ${him} to ${his} assignment.`); } else { r.push(`While eating in the cafeteria, ${slave.slaveName}'s body begins to birth another of ${his} brood. Unable to move, ${he} finds ${himself} stranded in the middle of all the dining slaves.`); humiliation = 1; r.push(clothingBirth()); r.push(`${He} gathers ${his} child and waits to be rescued from the vicious mockery, fully aware of all the jeering and laughter.`); } } } else { if (slave.fetish === "mindbroken") { r.push(`While stroking ${his} pregnancy absentmindedly, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} carries on until the contractions drag ${him} onto ${his} swollen belly.`); r.push(clothingBirth()); r.push(`${He} draws ${his} child to ${his} breast and rests upon ${his} mass until a servant collects ${his} child and helps ${him} back to ${his} bed.`); } else if (slave.fetish === "humiliation") { r.push(`While waddling through the penthouse between assignments, ${slave.slaveName}'s body begins to birth another of ${his} brood. Sensing an opportunity, ${he} waddles to the nearest balcony overlooking the city. ${He} calls out, making sure all eyes are on ${him} for what happens next.`); humiliation = 1; r.push(clothingBirth()); r.push(`${He} gathers ${his} child and recovers ${his} strength before finding a servant to give ${his} child to. ${He} resumes ${his} previous task, eager for the next child to move into position.`); } else { if (random(0, 1) === 1) { r.push(`While waddling through the penthouse on ${his} way to ${his} next assignment, ${slave.slaveName}'s body begins to birth another of ${his} brood. Unable to reach the prepared birthing room in time, ${he} finds a secluded room to give birth in.`); r.push(clothingBirth()); r.push(`${He} gathers ${his} child and recovers ${his} strength before finding a servant to give ${his} child to before shuffling to ${his} assignment.`); } else { r.push(`While waddling through the penthouse on ${his} way to the cafeteria, ${slave.slaveName}'s body begins to birth another of ${his} brood. Unable to reach the prepared birthing room in time, ${he} finds ${himself} stranded in the middle of all the dining slaves.`); humiliation = 1; r.push(clothingBirth()); r.push(`${He} gathers ${his} child and recovers ${his} strength before trying to escape out of sight of the jeering crowd. Finding a servant to give ${his} child to, ${he} hastily heads back to ${his} bed to hide ${himself} from the mockery, though ${his} enormous belly keeps ${his} blanket from covering ${him}.`); } } } } } else { // add extra events here (moving between jobs | after work) if (!canWalk(slave)) { if (slave.fetish === "mindbroken") { r.push(`While stroking ${his} pregnancy absentmindedly, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} carries on until the contractions drag ${him} onto ${his} swollen belly.`); r.push(clothingBirth()); r.push(`${He} draws ${his} child to ${his} breast and rests upon ${his} mass until a servant collects ${his} child and helps ${him} back to ${his} bed.`); } else { if (random(0, 1) === 1) { r.push(`While waiting to be helped to ${his} next assignment, ${slave.slaveName}'s body begins to birth another of ${his} brood. Unable to do anything, ${he} is forced to give birth where ${he} is.`); r.push(clothingBirth()); r.push(`${He} gathers ${his} child and recovers ${his} strength while resuming ${his} wait for a servant to help ${him} to ${his} assignment.`); } else { r.push(`While eating in the cafeteria, ${slave.slaveName}'s body begins to birth another of ${his} brood. Unable to move, ${he} finds ${himself} stranded in the middle of all the dining slaves.`); humiliation = 1; r.push(clothingBirth()); r.push(`${He} gathers ${his} child and waits to be rescued from the vicious mockery, fully aware of all the jeering and laughter.`); } } } else { if (slave.fetish === "mindbroken") { r.push(`While wandering the penthouse absentmindedly, ${slave.slaveName}'s body begins to birth another of ${his} brood. ${He} carries on until the contractions drag ${him} onto ${his} swollen belly.`); r.push(clothingBirth()); r.push(`${He} draws ${his} child to ${his} breast and rests upon ${his} mass until a servant collects ${his} child and helps ${him} back`); if (hasBothLegs(slave)) { r.push(`to ${his} feet.`); } else { r.push(`upright.`); } } else if (slave.fetish === "humiliation") { r.push(`While waddling through the penthouse between assignments, ${slave.slaveName}'s body begins to birth another of ${his} brood. Sensing an opportunity, ${he} waddles to the nearest balcony overlooking the city. ${He} calls out, making sure all eyes are on ${him} for what happens next.`); humiliation = 1; r.push(clothingBirth()); r.push(`${He} gathers ${his} child and recovers ${his} strength before finding a servant to give ${his} child to. ${He} resumes ${his} previous task, eager for the next child to move into position.`); } else { if (random(0, 1) === 1) { r.push(`While waddling through the penthouse on the way to ${his} next assignment, ${slave.slaveName}'s body begins to birth another of ${his} brood. Unable to reach the prepared birthing room in time, ${he} finds a secluded room to give birth in.`); r.push(clothingBirth()); r.push(`${He} gathers ${his} child and recovers ${his} strength before finding a servant to give ${his} child to before shuffling to ${his} assignment.`); } else { r.push(`While waddling through the penthouse on ${his} way to the cafeteria, ${slave.slaveName}'s body begins to birth another of ${his} brood. Unable to reach the prepared birthing room in time, ${he} finds ${himself} stranded in the middle of all the dining slaves.`); humiliation = 1; r.push(clothingBirth()); r.push(`${He} gathers ${his} child and recovers ${his} strength before trying to escape out of sight of the jeering crowd. Finding a servant to give ${his} child to, ${he} hastily heads back to ${his} bed to hide ${himself} from the mockery, though ${his} enormous belly keeps ${his} blanket from covering ${him}.`); } } } } App.Events.addParagraph(el, r); return el; } function birthDescription() { const el = document.createElement("p"); let He2, he2, his2; const r = []; let animals = []; let roll; const HGL = App.Entity.facilities.headGirlSuite.hostedSlaves; const babies = slave.pregType > 1 ? `babies` : `baby`; const children = slave.pregType > 1 ? `children` : `child`; const childrenAre = slave.pregType > 1 ? `children are` : `child is`; const newborns = slave.pregType > 1 ? `newborns` : `newborn`; const UH = (slave.geneticQuirks.uterineHypersensitivity === 2) ? `, convulsing with orgasms in the process` : ``; if (birthDamage > 5 || V.universalRulesCSec === 1) { if (V.universalRulesCSec === 1 || (slave.mpreg === 0 && slave.vagina < 0)) { cSection = true; if (V.clinic !== 0) { r.push(`${slave.slaveName} is taken to ${V.clinicName} since ${he}`); if (slave.mpreg === 0 && slave.vagina < 0) { r.push(`will require a cesarean section to give birth.`); } else { r.push(`is scheduled for a cesarean section.`); } r.push(`${He} is helped from ${his} clothes and into a comfortable hospital bed to relax until the surgery suite is prepped. After several minutes, ${he} is transferred to the surgery wing. Following ${his} c-section, ${he} is returned to the recovery wing to rest. ${His} ${childrenAre} promptly taken and ${he} is left under observation to make sure ${he} recovers.`); } else { r.push(`${slave.slaveName} is taken to the autosurgery, since ${he}`); if (slave.mpreg === 0 && slave.vagina < 0) { r.push(`will require a cesarean section to give birth. ${He} is stripped from ${his} clothes and set up on the operating table. ${He} is quickly sedated, and subjected to a c-section as ${he} has no hole to give birth through.`); } else { r.push(`is scheduled for a cesarean section. ${He} is stripped from ${his} clothes and set up on the operating table. ${He} is quickly sedated, and subjected to a c-section in order to avoid potential problems and preserve ${his}`); if (slave.mpreg === 1) { r.push(`asshole.`); } else { r.push(`vagina.`); } } r.push(`The surgery is quick, and ${he} is moved to a bed to recover. When ${he} awakes, ${his} ${children}`); if (slave.pregType > 1) { r.push(`have`); } else { r.push(`has`); } r.push(`already been taken away.`); } } else { if (V.clinic !== 0) { r.push(`${He} is lead to ${V.clinicName} since ${he} is likely to face complications with childbirth. ${He} is helped from ${his} clothes and into a comfortable hospital bed to relax until ${he} is ready. ${He} makes ${himself} comfortable and begins working on birthing ${his} ${babies}, fully aware of ${his} watching helpers.`); if (slave.geneticQuirks.uterineHypersensitivity === 2) { r.push(`${His} body is so sensitive that even difficult birth is an intensely pleasurable experience for ${him}.`); } if (birthDamage > 10) { cSection = true; r.push(`After several hours of intense labor, ${he} is transferred to the surgery wing. Following an emergency c-section, ${he} is returned to the recovery wing to rest.`); } else { r.push(`After several hours,`); if (slave.geneticQuirks.uterineHypersensitivity !== 1) { r.push(`and a touch of morphine,`); } r.push(`${he} has successfully given birth.`); } r.push(`${His} ${childrenAre} promptly taken and ${he} is left under observation to make sure ${he} recovers.`); } else { cSection = true; r.push(`${He} is lead to the autosurgery, since ${he} is likely to face complications with childbirth. ${He} is stripped from ${his} clothes and set up on the operating table. ${He} is quickly sedated and subjected to a c-section in order to avoid potential problems. The surgery is quick, and ${he} is moved to a bed to recover. When ${he} awakes, ${his} ${children}`); if (slave.pregType > 1) { r.push(`have`); } else { r.push(`has`); } r.push(`already been taken away.`); } } } else { switch (slave.assignment) { case Job.REST: if (!canWalk(slave)) { if (slave.fetish === "mindbroken") { r.push(`${He} is helped back to ${his} bed and stripped before slipping into it. Instinctively, ${he} begins to push out ${his} ${babies}. ${His} ${childrenAre} promptly taken and ${he} is encouraged to keep resting.`); } else { r.push(`${He} is helped back to ${his} bed and stripped before slipping into it. ${He} makes ${himself} comfortable and begins working on birthing ${his} ${(slave.pregType > 1) ? `babies` : `baby`} ${(slave.geneticQuirks.uterineHypersensitivity === 2) ? `, convulsing with orgasms in the process` : ``}. ${His} ${(slave.pregType > 1) ? `children are` : `child is`} promptly taken and ${he} is encouraged to keep resting.`); } } else { if (slave.fetish === "mindbroken") { r.push(`${He} returns to ${his} bed and strips before slipping into it. Instinctively, ${he} begins to push out ${his} ${(slave.pregType > 1) ? `babies` : `baby`}. ${His} ${children} promptly taken and ${he} is encouraged to keep resting.`); } else { r.push(`${He} returns to ${his} bed and strips before slipping into it. ${He} makes ${himself} comfortable and begins working on birthing ${his} ${babies}${UH}. ${His} ${childrenAre} promptly taken and ${he} is encouraged to keep resting.`); } } break; case Job.SUBORDINATE: { const domSlave = getSlave(slave.subTarget); if (domSlave) { ({he2} = getPronouns(domSlave).appendSuffix("2")); } if (slave.fetish === "mindbroken") { if (slave.subTarget === 0) { r.push(`${He} returns to ${his} bed and strips before slipping into it. Instinctively, ${he} begins to push out ${his} ${babies}. ${His} ${childrenAre} promptly taken and ${he} rests for a short while before returning to your waiting slaves.`); } else { r.push(`${He} is lead by ${domSlave.slaveName} to a private room so that ${he2} may`); if (canSee(domSlave)) { r.push(`watch.`); } else { r.push(`be present.`); } r.push(`Instinctively ${he} begins to push out ${his} ${babies}, indifferent to ${his} watching audience. ${His} ${childrenAre} promptly taken and ${domSlave.slaveName} eagerly descends upon ${his} defenseless body.`); } } else { if (slave.subTarget === 0) { r.push(`${He} returns to ${his} bed and strips before slipping into it. ${He} makes ${himself} comfortable and begins working on birthing ${his} ${babies}${UH}. ${His} ${childrenAre} promptly taken and ${he} rests for a short while before returning to your waiting slaves.`); } else { r.push(`${He} is taken by ${domSlave.slaveName} to a private room so that ${he2} may`); if (canSee(domSlave)) { r.push(`watch.`); } else { r.push(`be present.`); } r.push(`Reluctantly, ${he} begins to push out ${his} ${babies}${UH}, fully aware of ${domSlave.slaveName}'s`); if (domSlave.fetish === "pregnancy") { r.push(`hungry gaze.`); } else { r.push(`amused gaze.`); } r.push(`${His} ${childrenAre} promptly taken and ${domSlave.slaveName} eagerly descends upon ${his} exhausted body.`); humiliation = 1; } } break; } case Job.WHORE: if (!canWalk(slave)) { if (slave.fetish === "mindbroken") { r.push(`${He} is helped back to ${his} bed and stripped before slipping into it. Instinctively, ${he} begins to push out ${his} ${babies}. ${His} ${childrenAre} promptly taken and ${he} rests awhile before returning to whoring.`); } else { r.push(`${He} is helped back to ${his} bed and stripped before slipping into it. ${He} makes ${himself} comfortable and begins working on birthing ${his} ${babies}${UH}. ${His} ${childrenAre} promptly taken and ${he} rests awhile before returning to whoring.`); } } else { if (slave.fetish === "mindbroken") { r.push(`${He} returns to ${his} bed and strips before slipping into it. Instinctively, ${he} begins to push out ${his} ${babies}. ${His} ${childrenAre} promptly taken and ${he} rests awhile before returning to whoring.`); } else { r.push(`${He} returns to ${his} bed and strips before slipping into it. ${He} makes ${himself} comfortable and begins working on birthing ${his} ${babies}${UH}. ${His} ${childrenAre} promptly taken and ${he} rests awhile before returning to whoring.`); } } break; case Job.PUBLIC: if (!canWalk(slave)) { if (slave.fetish === "mindbroken") { r.push(`${He} is helped back to ${his} bed and stripped before slipping into it. Instinctively, ${he} begins to push out ${his} ${babies}. ${His} ${childrenAre} promptly taken and ${he} rests awhile before returning to slutting.`); } else { r.push(`${He} is helped back to ${his} bed and stripped before slipping into it. ${He} makes ${himself} comfortable and begins working on birthing ${his} ${babies}${UH}. ${His} ${childrenAre} promptly taken and ${he} rests awhile before returning to slutting.`); } } else { if (slave.fetish === "mindbroken") { r.push(`${He} returns to ${his} bed and strips before slipping into it. Instinctively, ${he} begins to push out ${his} ${babies}. ${His} ${childrenAre} promptly taken and ${he} rests awhile before returning to slutting.`); } else { r.push(`${He} returns to ${his} bed and strips before slipping into it. ${He} makes ${himself} comfortable and begins working on birthing ${his} ${babies}${UH}. ${His} ${childrenAre} promptly taken and ${he} rests awhile before returning to slutting.`); } } break; case Job.GLORYHOLE: if (slave.fetish === "mindbroken") { r.push(`Since ${he} is unable to leave ${his} box, ${he} doesn't have far to go. Instinctively, ${he} begins to push out ${his} ${babies}. ${His} ${childrenAre} quickly extracted from the box. ${He} never notices, focused entirely on the fresh cock poking through the glory hole.`); } else { r.push(`Since ${he} is unable to leave ${his} box, ${he} doesn't have far to go. ${He} quickly finishes the waiting dick before shifting ${himself} into a slightly, though not by much, more comfortable position. ${He} begins laboring on ${his} ${children}${UH}. As ${he} finishes, the box is opened and ${his} ${childrenAre} gathered and taken away before ${he} is ordered back to sucking.`); } break; case Job.MILKED: if (slave.fetish === "mindbroken") { if (V.dairyPregSetting > 0) { r.push(`Since the dairy is designed for pregnant cows, ${he} stays hooked up to the milkers. ${He} shows little interest in ${his} coming birth, instead focusing on ${his} milky breasts. Instinctively, ${he} begins to push out ${his} ${babies}. ${He} pays no heed to ${his} ${children} being removed from the milking stall, nor when ${he} is hosed off.`); } else { if (!canWalk(slave)) { r.push(`${He} is helped back to ${his} bed and stripped before slipping into it.`); } else { r.push(`${He} returns to ${his} bed and strips before slipping into it.`); } r.push(`Instinctively, ${he} begins to push out ${his} ${babies}. ${His} ${childrenAre} promptly taken and ${he} rests awhile before returning to the milkers to lighten ${his} swelling breasts.`); } } else { if (V.dairyPregSetting > 0) { r.push(`Since the dairy is designed for pregnant cows, ${he} stays hooked up to the milkers. ${He} meekly protests ${his} situation, but ultimately accepts it. ${He} begins working on birthing ${his} ${babies}${UH}, and catches a glimpse of ${his} ${children} being removed from the milking stall, but quickly forgets when ${he} is hosed off.`); humiliation = 1; } else { if (!canWalk(slave)) { r.push(`${He} is helped back to ${his} bed and stripped before slipping into it.`); } else { r.push(`${He} returns to ${his} bed and strips before slipping into it.`); } r.push(`${He} makes ${himself} comfortable and begins working on birthing ${his} ${babies}${UH}. ${His} ${childrenAre} promptly taken and ${he} rests awhile before returning to the milkers to lighten ${his} swelling breasts.`); } } break; case Job.FARMYARD: animals = []; roll; if (V.canines.length > 0) { roll = random(0, V.canines.length); animals.push(V.canines[roll]); } if (V.hooved.length > 0) { roll = random(0, V.hooved.length); animals.push(V.hooved[roll]); } if (V.canines.length > 0) { roll = random(0, V.canines.length); animals.push(V.canines[roll]); } if (slave.fetish === "mindbroken") { if (V.farmyardShows && V.seeBestiality) { roll = random(0, animals.length); r.push(`${He} shows no interest in ${his} coming birth as ${he} continues being rutted by a ${animals[roll].species}, so`); if (S.Farmer) { r.push(S.Farmer.slaveName); } else { r.push(`another slave`); } r.push(`has to pull the animal off of ${him} and drag ${him} into the nearest birthing stall. ${He} also shows almost no reaction when ${his} ${children}`); if (slave.pregType <= 1) { r.push(`begins`); } else { r.push(`begin`); } r.push(`to come out, or when ${he} is subsequently hosed off before being led back to ${V.farmyardName}.`); } else { r.push(`${He} shows no interest in ${his} coming birth as ${he} continues either("loading hay bales", "milking a cow", "pulling weeds"), until ${his} contractions become so strong that ${he} collapses to ${his} knees.`); if (S.Farmer) { r.push(S.Farmer.slaveName); } else { r.push(`Another slave`); } r.push(`is at ${his} side in an instant, pulling ${him} to ${his} feet and into a birthing stall. ${He} also shows almost no reaction when ${his} ${children} ${(slave.pregType <= 1) ? `begin` : `begins`} to come out, or when ${he} is subsequently hosed off before being led back to ${V.farmyardName}.`); } } else { if (V.farmyardShows && V.seeBestiality) { roll = random(0, animals.length); if (S.Farmer) { r.push(S.Farmer.slaveName); } else { r.push(`Another slave`); } r.push(`pulls the ${animals[roll].species} off of ${him} after ${he} begins to feel contractions coming. ${He} begins to give birth where ${he} is${(V.farmyardRestraints) ? `, restraints still on,` : ``} and gives ${his} viewers a different kind of show than the kind they were expecting. The crowd is appreciative, and after ${he} has finished, a slave takes ${his} ${children} from ${him} and leads ${him} back to ${his} room to shower and rest before ${he} is expected to return to ${his} shows.`); humiliation = 1; } else { if (!canWalk(slave)) { r.push(`${He} is helped back to ${his} bed and stripped before slipping into it.`); } else { r.push(`${He} returns to ${his} bed and strips before slipping into it.`); } r.push(`${He} makes ${himself} comfortable and begins working on birthing ${his} ${babies}. ${His} ${childrenAre} promptly taken and ${he} rests awhile before returning to ${V.farmyardName} to continue ${either("loading hay bales", "milking cows", "pulling weeds")}.`); } } break; case Job.FUCKTOY: if (!canWalk(slave)) { if (slave.fetish === "mindbroken") { r.push(`You strip ${him} and help ${him} onto your couch. Instinctively, ${he} begins to push out ${his} ${babies}. ${His} ${childrenAre} promptly taken and ${he} falls into a contented nap. You enjoy ${his} exhausted body until a servant comes to help clean ${him} up.`); } else { if (slave.devotion > 20) { r.push(`${He} moans lewdly at you and wiggles ${his} hips. As ${he} teases, ${he} begins pushing ${his} ${babies} out. As ${he} crowns, you pull ${him} into your arms and hold ${him} close. You hold ${him} in a comforting embrace until ${he} finishes`); } else if (slave.devotion >= -20) { r.push(`${He} releases a lewd moan and begins attempting to remove ${his} clothes. You approach ${him}, clearing ${his}`); if (slave.mpreg === 1) { r.push(`asshole`); } else { r.push(`vagina`); } r.push(`and helping ${him} onto the couch, where you take a seat next to ${him} to fondle ${his} vulnerable body. Once ${he} finishes, you give ${him} some time to catch ${his} breath.`); } else { r.push(`${He} begins desperately begging to be taken back to ${his} bed; instead you pull ${him} towards the couch and take a seat with ${him} in your lap, back against your front. Blushing thoroughly, ${he} gives a meek protest before focusing on the coming birth, rather than your wandering hands.`); humiliation = 1; } r.push(`${He} begins to push out ${his} ${babies}${UH}. ${His} ${childrenAre} promptly taken and, following a shower and a fresh change of clothes, ${he} is helped back to your office${(slave.devotion < -20) ? `where you are waiting to enjoy ${his} exhausted body` : ``}.`); } } else { if (slave.fetish === "mindbroken") { r.push(`${He} returns to ${his} bed and strips before slipping into it. Instinctively, ${he} begins to push out ${his} ${babies}. ${His} ${childrenAre} promptly taken and ${he} falls into a contented nap. That is until you wake ${him} up, inquiring where ${he} waddled off to without your permission.`); } else { if (slave.devotion > 20) { r.push(`${He} seeks you out and begins slowly stripping. As ${he} teases, ${he} begins pushing ${his} ${babies} out. As ${he} crowns, ${he} throws ${himself} into your waiting arms and holds ${himself} to you. You hold ${him} in a comforting embrace until ${he} finishes.`); } else if (slave.devotion >= -20) { r.push(`${He} approaches you and begins a very uncertain striptease. As ${he} lowers ${himself} to the floor to begin pushing, you overtake ${him} and fondle ${his} vulnerable body. Once ${he} finishes, you help ${him} to the couch to catch ${his} breath.`); } else { r.push(`${He} attempts to leave your office and return to ${his} bed, but you catch ${his} arm before ${he} slips out of reach. You order ${him} to strip and give you a show. Blushing thoroughly, ${he} gives a meek performance before falling to the floor.`); humiliation = 1; } r.push(`${He} begins to push out ${his} ${babies}${UH}. ${His} ${childrenAre} promptly taken and, following a shower and a fresh change of clothes, ${he} returns to your office${(slave.devotion < -20) ? ` where you are waiting to enjoy ${his} exhausted body` : ``}.`); } } break; case Job.CONFINEMENT: if (slave.fetish === "mindbroken") { r.push(`Since ${he} is locked in a cell, ${he} doesn't have far to go. Instinctively, ${he} begins to push out ${his} ${babies}. ${His} ${childrenAre} promptly taken and, after ${he} and the cell are hosed down, ${he} is returned to isolation.`); } else { r.push(`Since ${he} is locked in a cell, ${he} doesn't have far to go. Reluctantly, ${he} begins to push out ${his} ${babies}${UH}. ${His} ${childrenAre} promptly taken and, after ${he} and the cell are hosed down, ${he} is returned to isolation.`); humiliation = 1; } break; case Job.QUARTER: case Job.HOUSE: if (slave.fetish === "mindbroken") { r.push(`${He} returns to ${his} bed and strips before slipping into it. Instinctively ${he} begins to push out ${his} ${babies}. ${His} ${childrenAre} promptly taken and ${he} rests awhile before returning to service your penthouse.`); } else { r.push(`${He} returns to ${his} bed and strips before slipping into it. ${He} makes ${himself} comfortable and begins working on birthing ${his} ${babies}${UH}. ${His} ${childrenAre} promptly taken and ${he} rests awhile before returning to service your penthouse.`); } break; case Job.MASTERSUITE: if (!canWalk(slave)) { if (slave.fetish === "mindbroken") { if (V.masterSuiteUpgradePregnancy === 1) { r.push(`${He} is helping into the birthing chamber, stripped, and aided into the specialized chair. Instinctively, ${he} begins to push out ${his} ${babies}. ${His} ${childrenAre} promptly taken and, following a shower and fresh change of clothes, ${he} is returned to`); if (V.masterSuiteUpgradeLuxury === 1) { r.push(`your big bed.`); } else if (V.masterSuiteUpgradeLuxury === 2) { r.push(`the fuckpit.`); } else { r.push(`the main room of the master suite.`); } } else { r.push(`After struggling to strip and tipping into one of the various seats around the room, ${he} prepares to give birth. Instinctively, ${he} begins to push out ${his} ${babies}, indifferent to whoever may be watching ${him}. ${His} ${childrenAre} promptly taken and, following a shower and fresh change of clothes, ${he} is helped back to`); if (V.masterSuiteUpgradeLuxury === 1) { r.push(`your big bed.`); } else if (V.masterSuiteUpgradeLuxury === 2) { r.push(`the fuckpit.`); } else { r.push(`${his} usual spot.`); } } } else { if (V.masterSuiteUpgradePregnancy === 1) { r.push(`${He} is helping into the birthing chamber, stripped, and aided into the specialized chair. Finding it quite comfortable, ${he} begins to push out ${his} ${babies}${UH}. ${His} ${childrenAre} promptly taken and, following a shower and fresh change of clothes, ${he} is returned to`); if (V.masterSuiteUpgradeLuxury === 1) { r.push(`your big bed.`); } else if (V.masterSuiteUpgradeLuxury === 2) { r.push(`the fuckpit.`); } else { r.push(`the main room of the master suite.`); } } else { r.push(`After struggling to strip and tipping into one of the various seats around the room, ${he} prepares to give birth. ${He} gets comfortable and begins to push out ${his} ${babies}${UH}. ${His} ${childrenAre} promptly taken and, following a shower and fresh change of clothes, ${he} is returned to`); if (V.masterSuiteUpgradeLuxury === 1) { r.push(`your big bed.`); } else if (V.masterSuiteUpgradeLuxury === 2) { r.push(`the fuckpit.`); } else { r.push(`${his} preferred spot.`); } } } } else { if (slave.fetish === "mindbroken") { if (V.masterSuiteUpgradePregnancy === 1) { r.push(`${He} enters the birthing chamber, strips, and seats ${himself} in the specialized chair. Instinctively, ${he} begins to push out ${his} ${babies}. ${His} ${childrenAre} promptly taken and, following a shower and fresh change of clothes, ${he} returns to`); if (V.masterSuiteUpgradeLuxury === 1) { r.push(`your big bed.`); } else if (V.masterSuiteUpgradeLuxury === 2) { r.push(`the fuckpit.`); } else { r.push(`the main room of the master suite.`); } } else { r.push(`${He} strips and settles into one of the various seats around the room. Instinctively, ${he} begins to push out ${his} ${babies}, indifferent to whoever may be watching ${him}. ${His} ${childrenAre} promptly taken and, following a shower and fresh change of clothes, ${he} returns to`); if (V.masterSuiteUpgradeLuxury === 1) { r.push(`your big bed.`); } else if (V.masterSuiteUpgradeLuxury === 2) { r.push(`the fuckpit.`); } else { r.push(`${his} usual spot.`); } } } else { if (V.masterSuiteUpgradePregnancy === 1) { r.push(`${He} enters the birthing chamber, strips, and seats ${himself} in the specialized chair. Finding it quite comfortable, ${he} begins to push out ${his} ${babies}${UH}. ${His} ${childrenAre} promptly taken and, following a shower and fresh change of clothes, ${he} returns to`); if (V.masterSuiteUpgradeLuxury === 1) { r.push(`your big bed.`); } else if (V.masterSuiteUpgradeLuxury === 2) { r.push(`the fuckpit.`); } else { r.push(`the main room of the master suite.`); } } else { r.push(`${He} strips and settles into one of the various seats around the room. ${He} gets comfortable and begins to push out ${his} ${babies}${UH}. ${His} ${childrenAre} promptly taken and, following a shower and fresh change of clothes, ${he} returns to`); if (V.masterSuiteUpgradeLuxury === 1) { r.push(`your big bed.`); } else if (V.masterSuiteUpgradeLuxury === 2) { r.push(`the fuckpit.`); } else { r.push(`${his} preferred spot.`); } } } } break; case Job.CLUB: if (!canWalk(slave)) { if (slave.fetish === "mindbroken") { r.push(`${He} is helped into a private room in the back of the club by a group of eager patrons. Instinctively, ${he} begins to push out ${his} ${babies}, indifferent to ${his} audience. ${His} ${childrenAre} promptly taken and, following a cleaning and fresh change of clothes, the audience has their way with ${him}.`); } else { r.push(`${He} is helped to a private room in the back of the club by several patrons who just can't keep their hands off ${him}. ${He} settles ${himself} onto a patron's lap and begins working on birthing ${his} ${babies},`); if (slave.geneticQuirks.uterineHypersensitivity === 2) { r.push(`convulsing with orgasms in the process and`); } r.push(`basking in the attention of ${his} audience. ${His} ${childrenAre} promptly taken and ${he} beckons the audience to enjoy ${him}.`); } } else { if (slave.fetish === "mindbroken") { r.push(`${He} heads to a private room in the back of the club filled with eager patrons. Instinctively, ${he} begins to push out ${his} ${babies}, indifferent to ${his} audience. ${His} ${childrenAre} promptly taken and, following a cleaning and fresh change of clothes, the audience is allowed to have their way with ${him}.`); } else { r.push(`${He} heads to a private room in the back of the club accompanied by several patrons who just can't keep their hands off ${him}. ${He} settles ${himself} onto a patron's lap and begins working on birthing ${his} ${babies},`); if (slave.geneticQuirks.uterineHypersensitivity === 2) { r.push(`convulsing with orgasms in the process and`); } r.push(`basking in the attention of ${his} audience. ${His} ${childrenAre} promptly taken and ${he} beckons the audience to enjoy ${him}.`); } } break; case Job.CHOICE: if (!canWalk(slave)) { if (slave.fetish === "mindbroken") { r.push(`${He} is helped back to ${his} bed and stripped before slipping into it. Instinctively, ${he} begins to push out ${his} ${babies}. ${His} ${childrenAre} promptly taken and, after a short rest, ${he} waits for someone to help ${him} to ${his} next job having forgotten ${he} was choosing it.`); } else { r.push(`${He} is helped back to ${his} bed and stripped before slipping into it. ${He} makes ${himself} comfortable and begins working on birthing ${his} ${babies}${UH}. ${His} ${childrenAre} promptly taken and, after a short rest, ${he} returns to pondering ${his} preferred assignment.`); } } else { if (slave.fetish === "mindbroken") { r.push(`${He} is lead back to ${his} bed and strips before slipping into it. Instinctively, ${he} begins to push out ${his} ${babies}. ${His} ${childrenAre} promptly taken and, after a short rest, ${he} returns to wandering the penthouse.`); } else { r.push(`${He} returns to ${his} bed and strips before slipping into it. ${He} makes ${himself} comfortable and begins working on birthing ${his} ${babies}${UH}. ${His} ${childrenAre} promptly taken and, after a short rest, ${he} returns to pondering ${his} preferred assignment.`); } } break; case Job.SPA: if (S.Attendant) { r.push(S.Attendant.slaveName); if (slave.fetish === "mindbroken") { r.push(`leads`); } else { r.push(`escorts`); } r.push(`${him} to a special pool designed to give birth in. Once ${he} is safely in the water alongside ${S.Attendant.slaveName},`); } else { r.push(`${He} is escorted to a special pool designed to give birth in. Once ${he} is safely in the water alongside ${his} assistant,`); } r.push(`${he} begins to push out ${his} ${babies},`); if (slave.fetish === "mindbroken") { r.push(`indifferent to`); } else { r.push(`aided by`); } r.push(`${his} helper. ${His} ${childrenAre} promptly taken and, following a cleaning, ${he} is taken back to the spa.`); break; case Job.NURSERY: r.push(`${He} finishes`); if (V.nurseryChildren) { r.push(`changing the child's diaper`); } else { r.push(`cleaning the area of ${V.nurseryName} that ${he}'s been working on`); } r.push(`and heads back to ${his} little room before stripping and getting into bed. ${He} begins the ordeal of childbirth, and after ${he} is finished, rests for a bit while ${his} ${childrenAre} collected. After a short shower, ${he} returns to ${his} duties in ${V.nurseryName}.`); break; case Job.SCHOOL: r.push(`Having been notified in the weeks leading up to ${his} birth, ${he}`); if (canWalk(slave)) { r.push(`heads`); } else { r.push(`is helped`); } r.push(`to the front of the class and strips. ${He} is being used as a learning aid in this lesson. Blushing strongly, ${he} begins working on birthing ${his} ${babies}, fully aware of the rapt attention of the other students. ${His} ${childrenAre} promptly taken and, following a cleaning and fresh change of clothes, ${he} returns to ${his} seat. ${He} can't help but`); if (canSee(slave)) { r.push(`notice some of the detailed notes the class took on ${his} genitals.`); } else { r.push(`overhear the descriptions of ${his}`); if (slave.mpreg === 1) { r.push(`asshole`); } else { r.push(`vagina`); } r.push(`being passed between ${his} peers.`); } humiliation = 1; break; case Job.CLASSES: r.push(`Or ${he} would have, had ${V.assistant.name} allowed it. Since ${he} can't leave the lesson, ${he} tries ${his} best to hold back the upcoming birth, not without your assistant noticing. As punishment for poor planning, ${his} birth will be turned into a live broadcast. Blushing strongly, ${he} begins working on birthing ${his} ${babies}, trying ${his} best to hide ${his} shame${(slave.geneticQuirks.uterineHypersensitivity === 2) ? `, which isn't helped by the fact that ${he} is convulsing with orgasms in the process` : ``}. Exhausted from the birth, ${he} is permitted a short break as ${his} ${childrenAre} collected to clean ${himself} up before the lesson is continued.`); humiliation = 1; break; case Job.BROTHEL: if (!canWalk(slave)) { if (slave.fetish === "mindbroken") { r.push(`${He} is helped to a private room in the back of the brothel by a group of eager patrons. Instinctively, ${he} begins to push out ${his} ${babies}, indifferent to ${his} audience. ${His} ${childrenAre} promptly taken and, following a cleaning and fresh change of clothes, the audience is allowed to have their way with ${him}.`); } else { r.push(`${He} is helped to a private room in the back of the brothel by several patrons who paid quite a handsome price to enjoy this moment. ${He} settles ${himself} onto a patron's lap and begins working on birthing ${his} ${babies}, ${(slave.geneticQuirks.uterineHypersensitivity === 2) ? `convulsing with orgasms in the process and` : ``} basking in the attention of ${his} audience. ${His} ${childrenAre} promptly taken and ${he} beckons the audience to enjoy ${him}.`); } } else { if (slave.fetish === "mindbroken") { r.push(`${He} heads to a private room in the back of the brothel filled with eager patrons. Instinctively, ${he} begins to push out ${his} ${babies}, indifferent to ${his} audience. ${His} ${childrenAre} promptly taken and, following a cleaning and fresh change of clothes, the audience is allowed to have their way with ${him}.`); } else { r.push(`${He} heads to a private room in the back of the brothel accompanied by several patrons who paid quite a handsome price to enjoy this moment. ${He} settles ${himself} onto a patron's lap and begins working on birthing ${his} ${babies}, ${(slave.geneticQuirks.uterineHypersensitivity === 2) ? `convulsing with orgasms in the process and` : ``} basking in the attention of ${his} audience. ${His} ${childrenAre} promptly taken and ${he} beckons the audience to enjoy ${him}.`); } } break; case Job.TEACHER: if (!canWalk(slave)) { r.push(`The class has been wondering why ${he} was sitting strangely, nude at the front of the class the last several weeks, today they learn why. ${He} has been planning this lesson for several months now. ${He} wiggles ${himself} into a comfortable spot and begins working on birthing ${his} ${babies}, ${(slave.geneticQuirks.uterineHypersensitivity === 2) ? `convulsing with orgasms in the process, while being` : ``} fully aware of ${his} watching students. ${He} demonstrates the proper ways to labor and how to deliver a baby. ${He} explains the infant's future as ${his} ${childrenAre} taken and excuses the class for a short break in order to freshen up.`); humiliation = 1; } else { r.push(`While stripping, ${he} makes ${his} way to the front of the classroom and settles ${himself} in a way ${his} entire class can see. ${He} has been planning this lesson for several months now. ${He} wiggles ${himself} into a comfortable spot and begins working on birthing ${his} ${babies}, ${(slave.geneticQuirks.uterineHypersensitivity === 2) ? `convulsing with orgasms in the process, while being` : ``} fully aware of ${his} watching students. ${He} demonstrates the proper ways to labor and how to deliver a baby. ${He} explains the infant's future as ${his} ${childrenAre} taken and excuses the class for a short break in order to freshen up.`); humiliation = 1; } break; case Job.CONCUBINE: if (slave.pregSource === -1 && slave.relationship === -3) { r.push(`You make sure to find time in your busy schedule to be at your concubine ${wife}'s side as ${he} gives birth to your ${children}. You gently caress ${slave.slaveName}'s body as ${he} begins to push out ${his} ${babies}${UH}. You help ${him} upright and hold your ${children} to ${his} breasts. The two of you cuddle as you watch your ${newborns} suckle from their mother. Since ${he} is quite special to you, you allow ${him} the time to pick out names before ${his} ${children} must be taken away. When the time comes to pick up the ${newborns}, the slave servant is surprised to find ${(slave.pregType === 1) ? `a name-card` : `name-cards`} affixed to their ${(slave.pregType > 1) ? `blankets` : `blanket`}.`); if (slave.fetish !== "mindbroken") { r.push(`${He} can't help but feel more devoted to ${his} master after seeing such a touching act. Before you leave, ${slave.slaveName} expresses how cute ${he} found your ${children} and that ${he}'d love to bear more for you.`); } } else if (!canWalk(slave)) { if (slave.fetish === "mindbroken") { r.push(`${He} is assisted in reaching your side. You call ${him} over and strip ${him} as ${he} instinctively begins to push out ${his} ${babies}, indifferent to your wandering hands. ${His} ${childrenAre} promptly taken and, following a cleaning, a fresh change of clothes, and some private time with you, ${he} is helped back to your master suite.`); } else { r.push(`${He} is assisted in reaching your side. You beckon ${him} over and strip ${him} as ${he} dutifully begins to push out ${his} ${babies}, enjoying your wandering hands and attention${UH}. ${His} ${childrenAre} promptly taken and, following a cleaning, a fresh change of clothes, and some private time with you, ${he} is helped back to your master suite. As ${he} leaves your office, ${he} throws you a wink, hoping to see you again soon.`); } } else { if (slave.fetish === "mindbroken") { r.push(`${He} wanders the penthouse until ${he} finds you. You call ${him} over and strip ${him} as ${he} instinctively begins to push out ${his} ${babies}, indifferent to your wandering hands. ${His} ${childrenAre} promptly taken and, following a cleaning, a fresh change of clothes, and some private time with you, ${he} returns to your master suite.`); } else { r.push(`${He} wanders the penthouse until ${he} finds you. You beckon ${him} over and strip ${him} as ${he} dutifully begins to push out ${his} ${babies}, enjoying your wandering hands and attention${UH}. ${His} ${childrenAre} promptly taken and, following a cleaning, a fresh change of clothes, and some private time with you, ${he} returns to your master suite. As ${he} leaves your office, ${he} throws you a wink, hoping to see you again soon.`); } } break; case Job.HEADGIRLSUITE: ({He2, he2, his2} = getPronouns(S.HeadGirl).appendSuffix("2")); if (slave.pregSource === V.HeadGirlID) { r.push(`${S.HeadGirl.slaveName} makes sure that the mother of ${his2} ${children} is happy and comfortable for the upcoming birth, even if they won't be spending much time with their offspring. ${He2} carefully undresses ${slave.slaveName}, all the while whispering sweet nothings in ${his} ear. ${He} begins to push out ${his} ${babies},`); if (slave.geneticQuirks.uterineHypersensitivity === 2) { r.push(`convulsing with orgasms in the process,`); } r.push(`and ${his} ${childrenAre} carefully collected by their father. Once they are out of the way, ${S.HeadGirl.slaveName} moves in to fondle ${slave.slaveName}'s tired body.`); } else if (!canWalk(slave)) { if (slave.fetish === "mindbroken") { r.push(`${He} is aided in finding ${S.HeadGirl.slaveName}, who undresses ${him} as ${he} instinctively begins to push out ${his} ${babies}, indifferent to ${his2} wandering hands. ${His} ${childrenAre} promptly taken and, following a cleaning, a fresh change of clothes, and some private time with your Head Girl, ${he} is taken back to ${S.HeadGirl.slaveName}'s room.`); } else { r.push(`${He} is aided in seeking out ${S.HeadGirl.slaveName}, who undresses ${him} as ${he} dutifully begins to push out ${his} ${babies}, enjoying ${his2} wandering hands and attention${UH}. ${His} ${childrenAre} promptly taken and, following a cleaning, a fresh change of clothes, and some private time with your Head Girl, ${he} is helped back to ${S.HeadGirl.slaveName}'s room.`); } } else { if (slave.fetish === "mindbroken") { r.push(`${He} wanders until ${he} finds ${S.HeadGirl.slaveName}, who undresses ${him} as ${he} instinctively begins to push out ${his} ${babies}, indifferent to ${his2} wandering hands. ${His} ${childrenAre} promptly taken and, following a cleaning, a fresh change of clothes, and some private time with your Head Girl, ${he} is lead back to ${S.HeadGirl.slaveName}'s room.`); } else { r.push(`${He} seeks out ${S.HeadGirl.slaveName}, who undresses ${him} as ${he} dutifully begins to push out ${his} ${babies}, enjoying ${his2} wandering hands and attention${UH}. ${His} ${childrenAre} promptly taken and, following a cleaning, a fresh change of clothes, and some private time with your Head Girl, ${he} returns to ${S.HeadGirl.slaveName}'s room.`); } } break; case Job.ARCADE: r.push(`Or ${he} would have been, if ${he} weren't locked in an arcade cabinet. A gush of liquid pours from the ${slave.slaveName}'s cunt, followed by the attendant in charge of the arcade hanging an "out of order" sign on ${his} exposed rear. While ${his} mouth is filled with a customer's dick, ${his} body instinctively births ${his} ${children} into the waiting basket${UH}. As they are carried away, ${his} rear is cleaned up and the sign removed.`); break; case Job.CLINIC: if (!canWalk(slave)) { r.push(`${He} is helped to the clinic's maternity ward.`); if (S.Nurse) { r.push(S.Nurse.slaveName); } else { r.push(`A freelance nurse`); } r.push(`delivers ${his} ${children} before taking`); if (slave.pregType > 1) { r.push(`them`); } else { r.push(`it`); } r.push(`away. Before long ${he} is returned to ${his} recovery room to rest.`); } else { r.push(`${He} is guided to the clinic's maternity ward.`); if (S.Nurse) { r.push(S.Nurse.slaveName); } else { r.push(`A freelance nurse`); } r.push(`delivers ${his} ${children} before taking`); if (slave.pregType > 1) { r.push(`them`); } else { r.push(`it`); } r.push(`away. Before long ${he} is returned to ${his} recovery room to rest.`); } break; case Job.CELLBLOCK: if (slave.fetish === "mindbroken") { r.push(`${He} is forced into a specially designed cell to give birth in. Instinctively, ${he} begins to push out ${his} ${babies}. ${His} ${childrenAre} promptly taken and, after ${he} and the cell are hosed down, ${he} is moved back into a standard cell.`); } else { r.push(`${He} is forced into a specially designed cell to give birth in. Reluctantly, ${he} begins to push out ${his} ${babies}${UH}. ${His} ${childrenAre} promptly taken and, after ${he} and the cell are hosed down, ${he} is moved back into a standard cell.`); } break; case Job.DJ: r.push(`${He} heads to a private room in the back of the club accompanied by an influential patron. ${He} settles ${himself} onto his lap and begins working on birthing ${his} ${babies}, basking in his attention${UH}. Placing ${his} ${children} outside the room, ${he} returns to pleasure ${his} tease.`); break; case Job.ATTENDANT: r.push(`${S.Attendant.slaveName} waddles to a special pool designed to give birth in. Once ${he} is safely in the water, ${he} begins to push out ${his} ${babies}, something ${he} has been trained for ${(slave.geneticQuirks.uterineHypersensitivity === 2) ? `, even if ${he} was convulsing with orgasms in the process` : ``}. ${His} ${childrenAre} promptly taken and, following a cleaning, ${he} heads back to the main pool.`); break; case Job.MATRON: r.push(`${He} quickly waddles back to ${his} private room before stripping and calling in several slaves to assist ${him} in childbirth. ${He} has quite a bit of experience in taking care of children, but not as much in delivering them, and less so in delivering ${his} own. ${He} soon figures it out, though, and after an exhausting birthing ordeal, ${his} ${childrenAre} taken from ${him}, and ${he} is allowed a shower and a rest before returning to work.`); break; case Job.MADAM: r.push(`${He} heads to a private room in the back of the club accompanied by an influential patron. ${He} settles ${himself} onto his lap and begins working on birthing ${his} ${babies},`); if (slave.geneticQuirks.uterineHypersensitivity === 2) { r.push(`convulsing with orgasms in the process and`); } r.push(`basking in his attention as he strips ${him}. Placing ${his} ${children} outside the room, ${he} returns to get more intimate with ${his} catch.`); break; case Job.STEWARD: r.push(`${He} strips and settles ${himself} into ${his} favorite chair, while calling several servants to ${his} aid. ${He} begins to push out ${his} ${babies} into the arms of ${his} waiting charges${UH}. ${His} ${childrenAre} promptly taken and ${he} reclines while ${his} servants clean and dress ${him}. Once ${he} has had enough, ${he} orders them back to work on the penthouse.`); break; case Job.MILKMAID: r.push(`${He} returns to ${his} bed and strips before slipping into it. ${He} makes ${himself} comfortable and begins working on birthing ${his} ${babies}${UH}. ${He} is quite experienced in delivering ${his} cows' children, but ${he} finds it much more difficult to apply ${his} knowledge to ${himself}. ${His} ${childrenAre} promptly taken and, after a short rest, ${he} returns to caring for your cows.`); break; case Job.FARMER: r.push(`${He} heads to ${his} private room before stripping and calling in a couple of nearby slaves to aid ${him}. Though ${he} has delivered more than a few of ${his} livestocks' offspring, delivering ${his} own proves to be a slightly more difficult ordeal. ${He} manages, though, and after ${his} ${childrenAre} taken from ${him} and ${he}'s had a shower and a short rest, ${he} returns to looking after ${V.farmyardName}.`); break; case Job.WARDEN: if (slave.fetish === "mindbroken") { // FIXME: can Wardens be mindbroken? r.push(`${He} enters an empty cell, strips, and seats ${himself} on the cot. ${He} instinctively begins birthing ${his} ${babies}. ${His} ${childrenAre} promptly taken and ${he} returns to mindlessly breaking the confined slaves.`); } else { r.push(`${He} returns to ${his} bed and strips before slipping into it. ${He} makes ${himself} comfortable and begins working on birthing ${his} ${babies}${UH}. ${His} ${childrenAre} promptly taken and ${he} rests awhile before returning to the cellblock.`); } break; case Job.NURSE: r.push(`${He} waddles to ${his} maternity ward and strips before laying on an open bed. ${He} makes ${himself} comfortable and begins working on birthing ${his} ${babies}${UH}as ${his} assistants watch. ${His} ${childrenAre} promptly taken and ${he} is helped to the recovery ward until ${he} recovers enough to take over ${V.clinicName} again.`); break; case Job.HEADGIRL: r.push(`${He} returns to`); if (V.HGSuite === 1) { r.push(`${his} room's bed`); } else { r.push(`${his} bed`); } r.push(`and strips before slipping into it. ${He} makes ${himself} comfortable`); if (HGL !== 0) { r.push(`as ${his} slave rushes to ${his} side,`); } r.push(`and begins working on birthing ${his} ${babies}${UH}. ${His} ${childrenAre} promptly taken`); if (HGL !== 0) { r.push(`by ${his} roommate`); } r.push(`and ${he} rests awhile before returning to managing your slaves.`); break; case Job.BODYGUARD: r.push(`Or ${he} would have, if ${he}'d stop refusing to leave your side. You lead ${him} someplace private and help ${him} undress. ${He} makes ${himself} comfortable and begins working on birthing ${his} ${babies}${UH}. You call for a servant to quickly gather ${his} ${children} as you help ${him} into the shower, making sure to wait outside for your loyal guardian to finish.`); break; case Job.RECRUITER: r.push(`${He} returns to ${his} bed and strips before slipping into it. ${He} makes ${himself} comfortable and begins working on birthing ${his} ${babies}${UH}. ${His} ${childrenAre} promptly taken and ${he} rests awhile before returning to finding new slaves for you.`); break; default: if (!canWalk(slave)) { if (slave.fetish === "mindbroken") { r.push(`${He} is helped back to ${his} bed and stripped before slipping into it. Instinctively, ${he} begins to push out ${his} ${babies}. ${His} ${childrenAre} promptly taken and ${he} rests awhile before returning to ${his} task.`); } else { r.push(`${He} is helped back to ${his} bed and stripped before slipping into it. ${He} makes ${himself} comfortable and begins working on birthing ${his} ${babies}${UH}. ${His} ${childrenAre} promptly taken and ${he} rests awhile before returning to ${his} task.`); } } else { if (slave.fetish === "mindbroken") { r.push(`${He} returns to ${his} bed and strips before slipping into it. Instinctively, ${he} begins to push out ${his} ${babies}. ${His} ${childrenAre} promptly taken and ${he} rests awhile before returning to ${his} task.`); } else { r.push(`${He} returns to ${his} bed and strips before slipping into it. ${He} makes ${himself} comfortable and begins working on birthing ${his} ${babies}${UH}. ${His} ${childrenAre} promptly taken and ${he} rests awhile before returning to ${his} task.`); } } } } App.Events.addParagraph(el, r); return el; } function ampBirth() { const el = document.createElement("p"); let He2, he2, his2; const r = []; const babies = slave.pregType > 1 ? `babies` : `baby`; const children = slave.pregType > 1 ? `children` : `child`; const childrenAre = slave.pregType > 1 ? `children are` : `child is`; const breasts = slave.pregType > 1 ? `breasts` : `breast`; const newborns = slave.pregType > 1 ? `newborns` : `newborn`; const UH = (slave.geneticQuirks.uterineHypersensitivity === 2) ? `, convulsing with orgasms in the process` : ``; if (birthDamage > 5) { cSection = true; if (V.clinic !== 0) { r.push(`${He} is carried to ${V.clinicName}, since ${he} is likely to face complications with childbirth. ${He} is stripped from ${his} clothes and set up in a comfortable hospital bed to relax until ${he} is ready. ${He} wiggles ${himself} into a comfortable spot and begins working on birthing ${his} ${babies}, fully aware of ${his} watching helpers.`); if (slave.geneticQuirks.uterineHypersensitivity === 2) { r.push(`${His} body is so sensitive that even difficult birth is an intensely pleasurable experience for ${him}.`); } if (birthDamage > 10) { cSection = true; r.push(`After several hours of intense labor, ${he} is transferred to the surgery wing. Following an emergency c-section, ${he} is returned to the recovery wing to rest.`); } else { r.push(`After several hours,`); if (slave.geneticQuirks.uterineHypersensitivity !== 1) { r.push(`and a touch of morphine,`); } r.push(`${he} has successfully given birth.`); } r.push(`${His} ${childrenAre} promptly taken and ${he} is left under observation to make sure ${he} recovers.`); } else { cSection = true; r.push(`${He} is carried to the autosurgery, since ${he} is likely to face complications with childbirth. ${He} is stripped from ${his} clothes and set up on the operating table. ${He} is quickly sedated and subjected to a c-section in order to avoid potential problems. The surgery is quick and ${he} is moved to a bed to recover. When ${he} awakes, ${his} ${slave.pregType > 1 ? `children have` : `child has`} already been taking away.`); } } else { switch (slave.assignment) { case Job.REST: if (slave.fetish === "mindbroken") { r.push(`${He} is placed on ${his} bed and stripped. Instinctively, ${he} begins to push out ${his} ${babies}, indifferent to ${his} watching helper. ${His} ${childrenAre} promptly taken and ${he} is encouraged to keep resting.`); } else { r.push(`${He} is placed on ${his} bed and stripped. ${He} wiggles ${himself} into a comfortable spot and begins working on birthing ${his} ${babies},`); if (slave.geneticQuirks.uterineHypersensitivity === 2) { r.push(`convulsing with orgasms in the process and`); } r.push(`fully aware of ${his} watching helper. ${His} ${childrenAre} promptly taken and ${he} is encouraged to keep resting.`); humiliation = 1; } break; case Job.SUBORDINATE: { const domSlave = getSlave(slave.subTarget); if (domSlave) { ({he2} = getPronouns(domSlave).appendSuffix("2")); } if (slave.fetish === "mindbroken") { if (slave.subTarget === 0) { r.push(`${He} is placed on ${his} bed and stripped. Instinctively, ${he} begins to push out ${his} ${babies}, indifferent to ${his} watching helper. ${His} ${childrenAre} promptly taken and ${he} is returned to your waiting slaves.`); } else { r.push(`${He} is placed with ${domSlave.slaveName} so that ${he2} may`); if (canSee(domSlave)) { r.push(`enjoy the show.`); } else { r.push(`be present.`); } r.push(`Instinctively, ${he} begins to push out ${his} ${babies}, indifferent to ${his} watching audience. ${His} ${childrenAre} promptly taken and ${he} is tipped into ${domSlave.slaveName}'s eager lap.`); } } else { if (slave.subTarget === 0) { r.push(`${He} is placed on ${his} bed and stripped. ${He} wiggles ${himself} into a comfortable spot and begins working on birthing ${his} ${babies},`); if (slave.geneticQuirks.uterineHypersensitivity === 2) { r.push(`convulsing with orgasms in the process and`); } r.push(`fully aware of ${his} watching helper. ${His} ${childrenAre} promptly taken and ${he} is returned to your waiting slaves.`); humiliation = 1; } else { r.push(`${He} is placed with ${domSlave.slaveName} so that ${he2} may`); if (canSee(domSlave)) { r.push(`watch.`); } else { r.push(`be present.`); } r.push(`With an intense blush, ${he} begins to push out ${his} ${babies},`); if (slave.geneticQuirks.uterineHypersensitivity === 2) { r.push(`convulsing with orgasms in the process and`); } r.push(`fully aware of ${domSlave.slaveName}'s`); if (domSlave.fetish === "pregnancy") { r.push(`hungry gaze.`); } else { r.push(`amused gaze.`); } r.push(`${His} ${childrenAre} promptly taken and ${he} is tipped into ${domSlave.slaveName}'s eager lap.`); humiliation = 1; } } break; } /* case Job.WHORE: case Job.PUBLIC: case Job.CHOICE: */ case Job.GLORYHOLE: if (slave.fetish === "mindbroken") { r.push(`${He} is locked, nude, in a glory hole box and ordered to suck. Instinctively, ${he} begins to push out ${his} ${babies}. ${His} ${childrenAre} quickly extracted from the box. ${He} never notices, focused entirely on the fresh cock poking through the glory hole.`); } else { r.push(`${He} is locked, nude, in a glory hole box and ordered to suck. ${He} quickly finishes the dick off before wiggling ${himself} into a slightly, though not by much, more comfortable position. ${He} begins laboring on ${his} ${children}${UH}. As ${he} finishes, the box is opened and ${his} ${childrenAre} gathered and taken away before ${he} is forcefully repositioned with ${his} mouth over the glory hole.`); } break; case Job.MILKED: if (slave.fetish === "mindbroken") { if (V.dairyPregSetting > 0) { r.push(`${He} is hooked up to a milking machine and allowed to continue ${his} assignment. ${He} shows little interest in ${his} coming birth, instead focusing on ${his} milky breasts. Instinctively, ${he} begins to push out ${his} ${babies}. ${He} shows no interest in ${his} ${children} being removed from the milking stall, nor when ${he} is hosed off.`); } else { r.push(`${He} is placed on ${his} bed and stripped. Instinctively, ${he} begins to push out ${his} ${babies}, indifferent to ${his} watching helper. ${His} ${childrenAre} promptly taken and, following a cleaning, ${he} is carried back to the milkers.`); } } else { if (V.dairyPregSetting > 0) { r.push(`${He} is hooked up to a milking machine and allowed to continue ${his} assignment. ${He} meekly protests ${his} situation, but ultimately excepts it. ${He} begins working on birthing ${his} ${babies},`); if (slave.geneticQuirks.uterineHypersensitivity === 2) { r.push(`convulsing with orgasms in the process,`); } r.push(`and catches a glimpse of ${his} ${children} being removed from the milking stall, but quickly forgets when ${he} is hosed off.`); humiliation = 1; } else { r.push(`${He} is placed on ${his} bed and stripped. ${He} wiggles ${himself} into a comfortable spot and begins working on birthing ${his} ${babies},`); if (slave.geneticQuirks.uterineHypersensitivity === 2) { r.push(`convulsing with orgasms in the process and`); } r.push(`fully aware of ${his} watching helper. ${His} ${childrenAre} promptly taken and, following a cleaning, ${he} is carried back to the milkers.`); humiliation = 1; } } break; case Job.FUCKTOY: if (slave.fetish === "mindbroken") { r.push(`${He} is stripped and placed into your waiting arms upon your couch. Instinctively, ${he} begins to push out ${his} ${babies} as you tease ${his} breasts and belly, indifferent to you and ${his} watching helper. ${His} ${childrenAre} promptly taken and, following a cleaning and a fresh change of clothes, ${he} is returned to your office.`); } else { r.push(`${He} is stripped and placed into your waiting arms upon your couch.`); if (slave.devotion > 50) { r.push(`Feeling safe and secure, ${he}`); } else if (slave.devotion > 20) { r.push(`${He} squirms uncomfortably as ${he}`); } else { r.push(`${He} starts to panic as ${he}`); humiliation = 1; } r.push(`begins to push out ${his} ${babies}`); if (slave.geneticQuirks.uterineHypersensitivity === 2) { r.push(`convulsing with orgasms in the process,`); } r.push(`as you tease ${his} breasts and belly. ${His} ${childrenAre} promptly taken and, following a cleaning and a fresh change of clothes, ${he} is returned to your office.`); } break; case Job.CONFINEMENT: case Job.CELLBLOCK: if (slave.fetish === "mindbroken") { r.push(`${He} is placed in a specially designed cell to give birth in. Instinctively, ${he} begins to push out ${his} ${babies}. ${His} ${childrenAre} promptly taken and, after ${he} and the cell are hosed down, ${he} is moved back into a standard cell.`); } else { r.push(`${He} is placed in a specially designed cell to give birth in. Reluctantly, ${he} begins to push out ${his} ${babies}${UH}. ${His} ${childrenAre} promptly taken and, after ${he} and the cell are hosed down, ${he} is moved back into a standard cell.`); } break; case Job.QUARTER: case Job.HOUSE: if (slave.fetish === "mindbroken") { r.push(`${He} is placed on ${his} cot and stripped. Instinctively, ${he} begins to push out ${his} ${babies}, indifferent to ${his} watching helper. ${His} ${childrenAre} promptly taken and, following a cleaning and fresh change of clothes, ${he} is carried back to ${his} station.`); } else { r.push(`${He} is placed on ${his} cot and stripped. ${He} wiggles ${himself} into a comfortable spot and begins working on birthing ${his} ${babies},`); if (slave.geneticQuirks.uterineHypersensitivity === 2) { r.push(`convulsing with orgasms in the process and`); } r.push(`fully aware of ${his} watching helper. ${His} ${childrenAre} promptly taken and, following a cleaning and fresh change of clothes, ${he} is carried back to ${his} station.`); humiliation = 1; } break; case Job.MASTERSUITE: if (slave.fetish === "mindbroken") { if (V.masterSuiteUpgradePregnancy === 1) { r.push(`${He} is carried to the birthing chamber and comfortably positioned. Instinctively, ${he} begins to push out ${his} ${babies}, indifferent to ${his} watching helper. ${His} ${childrenAre} promptly taken and, following a cleaning and fresh change of clothes, ${he} is carried back to`); if (V.masterSuiteUpgradeLuxury === 1) { r.push(`your big bed.`); } else if (V.masterSuiteUpgradeLuxury === 2) { r.push(`the fuckpit.`); } else { r.push(`the main room of the master suite.`); } } else { r.push(`${He} is placed on a soft cushion and stripped. Instinctively, ${he} begins to push out ${his} ${babies}, indifferent to ${his} watching helper. ${His} ${childrenAre} promptly taken and, following a cleaning and fresh change of clothes, ${he} is carried back to`); if (V.masterSuiteUpgradeLuxury === 1) { r.push(`your big bed.`); } else if (V.masterSuiteUpgradeLuxury === 2) { r.push(`the fuckpit.`); } else { r.push(`the main room of the master suite.`); } } } else { if (V.masterSuiteUpgradePregnancy === 1) { r.push(`${He} is carried to the birthing chamber and comfortably positioned. Sinking into the luxury, ${he} begins working on birthing ${his} ${babies},`); if (slave.geneticQuirks.uterineHypersensitivity === 2) { r.push(`convulsing with orgasms in the process and`); } r.push(`fully aware of ${his} watching helper. ${His} ${childrenAre} promptly taken and, following a cleaning and fresh change of clothes, ${he} is carried back to`); if (V.masterSuiteUpgradeLuxury === 1) { r.push(`your big bed.`); } else if (V.masterSuiteUpgradeLuxury === 2) { r.push(`the fuckpit.`); } else { r.push(`the main room of the master suite.`); } humiliation = 1; } else { r.push(`${He} is placed on a soft cushion and stripped. ${He} wiggles ${himself} into a comfortable spot and begins working on birthing ${his} ${babies},`); if (slave.geneticQuirks.uterineHypersensitivity === 2) { r.push(`convulsing with orgasms in the process and`); } r.push(`fully aware of ${his} watching helper. ${His} ${childrenAre} promptly taken and, following a cleaning and fresh change of clothes, ${he} is carried back to`); if (V.masterSuiteUpgradeLuxury === 1) { r.push(`your big bed.`); } else if (V.masterSuiteUpgradeLuxury === 2) { r.push(`the fuckpit.`); } else { r.push(`the main room of the master suite.`); } humiliation = 1; } } break; case Job.CLUB: if (slave.fetish === "mindbroken") { r.push(`${He} is placed in a private room in the back of the club before an audience of eager patrons. Instinctively, ${he} begins to push out ${his} ${babies}, indifferent to ${his} audience. ${His} ${childrenAre} promptly taken and, following a cleaning and fresh change of clothes, the audience is allowed to have their way with ${him}.`); } else { r.push(`${He} is placed in a private room in the back of the club before an audience of eager patrons. ${He} wiggles ${himself} into a comfortable spot and begins working on birthing ${his} ${babies},`); if (slave.geneticQuirks.uterineHypersensitivity === 2) { r.push(`convulsing with orgasms in the process, while`); } r.push(`fully aware of ${his} captive audience and blushing strongly. ${His} ${childrenAre} promptly taken and, following a cleaning and fresh change of clothes, the audience is allowed to have their way with ${him}.`); humiliation = 1; } break; case Job.SPA: if (slave.fetish === "mindbroken") { r.push(`${He} is placed in a special flotation device and placed in a birthing pool. Instinctively, ${he} begins to push out ${his} ${babies}, indifferent to ${his} watching helper. ${His} ${childrenAre} promptly taken and, following a cleaning, ${he} is taken back to the spa.`); } else { r.push(`${He} is placed in a special flotation device and placed in a birthing pool. Giving birth to ${his} ${babies}`); if (slave.geneticQuirks.uterineHypersensitivity === 2) { r.push(`convulsing with orgasms in the process despite`); } else { r.push(`is easy under`); } r.push(`such relaxing circumstances. ${His} ${childrenAre} promptly taken and, following a cleaning, ${he} is carried back to the spa.`); } break; case Job.SCHOOL: r.push(`${He} is placed on special seat at the front of the class and stripped. ${He} is being used as a learning aid in this lesson. Blushing strongly, ${he} begins working on birthing ${his} ${babies},`); if (slave.geneticQuirks.uterineHypersensitivity === 2) { r.push(`convulsing with orgasms in the process and`); } r.push(`fully aware of the rapt attention of the other students. ${His} ${childrenAre} promptly taken and, following a cleaning and fresh change of clothes, ${he} is carried back to ${his} seat. ${He} can't help but`); if (canSee(slave)) { r.push(`notice some of the detailed notes the class took on ${his} genitals.`); } else { r.push(`overhear the descriptions of ${his}`); if (slave.mpreg === 1) { r.push(`asshole`); } else { r.push(`vagina`); } r.push(`being passed between ${his} peers.`); } humiliation = 1; break; case Job.CLASSES: r.push(`Or ${he} would have been, had ${V.assistant.name} allowed it. Since ${he} can't leave the lesson, ${he} tries ${his} best to hold back the upcoming birth, not without your assistant noticing. As punishment for poor planning, ${he} is forbidden from leaving. Additionally, ${his} birth will be turned into a live broadcast.`); humiliation = 1; r.push(clothingBirth()); r.push(`Exhausted from the birth, ${he} is permitted a short break as ${his} ${childrenAre} removed to be cleaned up before the lesson is continued.`); break; case Job.BROTHEL: if (slave.fetish === "mindbroken") { r.push(`${He} is placed in a private room in the back of the brothel before an audience of eager patrons. Instinctively, ${he} begins to push out ${his} ${babies}, indifferent to ${his} audience. ${His} ${childrenAre} promptly taken and, following a cleaning and fresh change of clothes, the audience is allowed to have their way with ${him}.`); } else { r.push(`${He} is placed in a private room in the back of the brothel before an audience of eager patrons. ${He} wiggles ${himself} into a comfortable spot and begins working on birthing ${his} ${babies},`); if (slave.geneticQuirks.uterineHypersensitivity === 2) { r.push(`convulsing with orgasms in the process, while`); } r.push(`fully aware of ${his} captive audience and blushing strongly. ${His} ${childrenAre} promptly taken and, following a cleaning and fresh change of clothes, the audience is allowed to have their way with ${him}.`); humiliation = 1; } break; case Job.TEACHER: r.push(`${He} is stripped and placed on a specially designed seat before ${his} class. ${He} has been planning this lesson for several months now. ${He} wiggles ${himself} into a comfortable spot and begins working on birthing ${his} ${babies},`); if (slave.geneticQuirks.uterineHypersensitivity === 2) { r.push(`convulsing with orgasms in the process and`); } r.push(`fully aware of ${his} watching students. ${He} demonstrates the proper ways to labor and, with the assistance of a helper, how to deliver a baby. ${His} ${childrenAre} promptly taken and, following a cleaning and fresh change of clothes, ${he} resumes ${his} previous lesson.`); humiliation = 1; break; case Job.CONCUBINE: if (slave.pregSource === -1 && slave.relationship === -3) { r.push(`You make sure to find time in your busy schedule to be at your concubine ${wife}'s side as ${he} gives birth to your ${children}. You gently caress ${slave.slaveName}'s body as ${he} begins to push out your ${babies}${UH}. You help ${him} upright and hold your ${children} to ${his} ${breasts}. The two of you cuddle as you watch your ${newborns} suckle from their mother. Since ${he} is quite special to you, you allow ${him} the time to pick out names before ${his} ${children} must be taken away. When the time comes to pick up the ${newborns}, the slave servant is surprised to find`); if (slave.pregType === 1) { r.push(`a`); } r.push(`${(slave.pregType > 1) ? `name-cards` : `name-card`} affixed to their ${(slave.pregType > 1) ? `blankets` : `blanket`}.`); if (slave.fetish !== "mindbroken") { r.push(`${He} can't help but feel more devoted to ${his} master after seeing such a touching act. Before you leave, ${slave.slaveName} expresses how cute ${he} found your ${children} and that ${he}'d love to bear more for you.`); } } else if (slave.fetish === "mindbroken") { r.push(`${He} is placed by your side. You strip ${him} as ${he} instinctively begins to push out ${his} ${babies}, indifferent to your wandering hands. ${His} ${childrenAre} promptly taken and, following a cleaning, a fresh change of clothes, and some private time with you, ${he} is carried back to your master suite.`); } else { r.push(`${He} is placed by your side. You strip ${him} as ${he} dutifully begins to push out ${his} ${babies},`); if (slave.geneticQuirks.uterineHypersensitivity === 2) { r.push(`convulsing with orgasms in the process, while`); } r.push(`enjoying your wandering hands and attention. ${His} ${childrenAre} promptly taken and, following a cleaning, a fresh change of clothes, and some private time with you, ${he} is carried back to your master suite. As ${he} leaves your office, ${he} throws you a wink, hoping to see you again soon.`); } break; case Job.HEADGIRLSUITE: ({he2} = getPronouns(S.HeadGirl).appendSuffix("2")); if (slave.pregSource === V.HeadGirlID) { r.push(`${S.HeadGirl.slaveName} makes sure that the mother of ${his2} ${children} is happy and comfortable for the upcoming birth, even if they won't be spending much time with their offspring. ${He2} carefully undresses ${slave.slaveName}, all the while whispering sweet nothings in ${his} ear. ${He} begins to push out ${his} ${babies},`); if (slave.geneticQuirks.uterineHypersensitivity === 2) { r.push(`convulsing with orgasms in the process,`); } r.push(`and ${his} ${childrenAre} carefully collected by their father. Once they are out of the way, ${S.HeadGirl.slaveName} moves in to fondle ${slave.slaveName}'s tired body.`); } else if (slave.fetish === "mindbroken") { r.push(`${He} is placed with ${S.HeadGirl.slaveName}. ${He2} unwraps ${him} as ${he} instinctively begins to push out ${his} ${babies}, indifferent to ${his2} wandering hands. ${His} ${childrenAre} promptly taken and, following a cleaning, a fresh change of clothes, and some private time with your Head Girl, ${he} is carried back to ${S.HeadGirl.slaveName}'s room.`); } else { r.push(`${He} is placed with ${S.HeadGirl.slaveName}. ${He2} unwraps ${him} as ${he} dutifully begins to push out ${his} ${babies},`); if (slave.geneticQuirks.uterineHypersensitivity === 2) { r.push(`convulsing with orgasms in the process and`); } r.push(`enjoying ${his2} wandering hands and attention. ${His} ${childrenAre} promptly taken and, following a cleaning, a fresh change of clothes, and some private time with your Head Girl, ${he} is carried back to ${S.HeadGirl.slaveName}'s room.`); } break; case Job.ARCADE: r.push(`Or ${he} would have been, if ${he} weren't locked in an arcade cabinet. A gush of liquid pours from the ${slave.slaveName}'s cunt, followed by the attendant in charge of the arcade hanging an "out of order" sign on ${his} exposed rear. While ${his} mouth is filled with a customer's dick, ${his} body instinctively births ${his} ${children} into the waiting basket. As they are carried away, ${his} rear is cleaned up and the sign removed.`); break; case Job.CLINIC: r.push(`${He} is taken to the clinic's maternity ward.`); if (S.Nurse) { r.push(S.Nurse.slaveName); } else { r.push(`A freelance nurse`); } r.push(`delivers ${his} ${children} before taking them away. Before long ${he} is returned to ${his} recovery room to rest.`); break; default: if (slave.fetish === "mindbroken") { r.push(`${He} is placed on ${his} bed and stripped. Instinctively, ${he} begins to push out ${his} ${babies}, indifferent to ${his} watching helper. ${His} ${childrenAre} promptly taken and, following a cleaning and fresh change of clothes, ${he} is carried back to ${his} station.`); } else { r.push(`${He} is placed on ${his} bed and stripped. ${He} wiggles ${himself} into a comfortable spot and begins working on birthing ${his} ${babies},`); if (slave.geneticQuirks.uterineHypersensitivity === 2) { r.push(`convulsing with orgasms in the process and`); } r.push(`fully aware of ${his} watching helper. ${His} ${childrenAre} promptly taken and, following a cleaning and fresh change of clothes, ${he} is carried back to ${his} station.`); humiliation = 1; } } } App.Events.addParagraph(el, r); return el; } function suddenBirthScene() { const el = document.createElement("p"); let He2, he2, his2, him2; const { HeU, heU, himU, himselfU, girlU } = getNonlocalPronouns(V.seeDicks).appendSuffix('U'); let r = []; const birthScene = random(1, 100); const babies = slave.pregType > 1 ? `babies` : `baby`; const children = slave.pregType > 1 ? `children` : `child`; const childrenAre = slave.pregType > 1 ? `children are` : `child is`; const breasts = slave.pregType > 1 ? `breasts` : `breast`; const newborns = slave.pregType > 1 ? `newborns` : `newborn`; const UH = (slave.geneticQuirks.uterineHypersensitivity === 2) ? `, convulsing with orgasms in the process` : ``; if (random(1, 2) === 1 && canWalk(slave)) { // at assignment else in halls/etc, only if able to move const rival = slave.rivalry > 0 ? getSlave(slave.rivalryTarget) : null; if (rival) { ({he2} = getPronouns(rival).appendSuffix("2")); } if (slave.fetish === "mindbroken") { r.push(`While wandering the penthouse absentmindedly, ${slave.slaveName}'s water breaks. ${He} carries on until the contractions drag ${him} to the floor.`); r.push(clothingBirth()); r.push(`${He} draws ${his} ${children} to ${his} ${breasts} and resumes wandering aimlessly until a servant collects ${his} ${children} and sends ${him} someplace useful.`); } else if (slave.fetish === "humiliation") { r.push(`While waddling through the penthouse between assignments, ${slave.slaveName}'s water breaks. Sensing an opportunity, ${he} waddles to the nearest balcony overlooking the city. ${He} calls out, making sure all eyes are on ${him} for what happens next.`); humiliation = 1; r.push(clothingBirth()); r.push(`${He} gathers ${his} ${newborns} and recovers ${his} strength before finding a servant to give ${his} ${children} to. ${He} resumes ${his} previous task, feeling much lighter.`); } else { if (birthScene < 40) { r.push(`While`); if (canWalk(slave)) { r.push(`walking`); } else { r.push(`traveling`); } r.push(`through the penthouse on the way to ${his} next assignment, ${slave.slaveName}'s water breaks. Unable to reach the prepared birthing room in time, ${he} finds a secluded nook to give birth in.`); r.push(clothingBirth()); r.push(`${He} gathers ${his} ${newborns} and recovers ${his} strength before finding a servant to give ${his} ${children} to before hurrying to ${his} assignment.`); } else if (birthScene > 66 && slave.rivalry === 3 && isSlaveAvailable(rival) && canWalk(rival)) { if (slave.pregSource === rival.ID) { r.push(`While hustling through the penthouse on ${his} way to give birth, ${slave.slaveName} finds ${his} path blocked by ${rival.slaveName} — and a hospital gurney, of all things. ${He2} appears genuinely concerned for the (soon-to-be) mother of ${his2} ${children}, and helps ${him} onto the bed, then pushes the surprised ${girl} onwards. ${slave.slaveName}, focusing on ${his} labor, begins to rethink the animosity ${he} feels for ${him2} — until ${he} realizes ${rival.slaveName} has brought them to the cafeteria. With a smug pride in ${his2} potency, ${he2} introduces the shocked pregnant ${girl} to ${his} new audience. ${His} contractions becoming too frequent to move, ${he} begins giving birth in front of ${his} audience.`); humiliation = 1; r.push(clothingBirth()); r.push(`${rival.slaveName} gathers ${his2} ${babies} from ${his2} exhausted rival, roughly pushes ${him} off the gurney, then hands the ${children} to a servant that had been called in by the commotion. ${slave.slaveName}, humiliated by the spectacle and ${his} own naïveté, pushes through the jeering crowd and hastily heads back to ${his} bed to hide ${himself} from the mockery.`); } else { r.push(`While hustling through the penthouse on ${his} way to give birth, ${slave.slaveName} finds ${his} path blocked by ${rival.slaveName}. Seeing ${his} distress brings a grin to ${his2} face. ${He2} quickly rushes the laboring ${slave.slaveName}, circling around behind ${him} and hooking ${him} under the arms. ${He2} forces the poor ${girl} into the cafeteria and holds ${him} in place, leaving ${him} with no other option than to begin giving birth in front of ${his} audience.`); humiliation = 1; r.push(clothingBirth()); r.push(`${rival.slaveName} releases ${him} and ${he} moves to gather ${his} ${newborns}. With a shove from ${his} rival, ${he} rushes out of the jeering crowd's sight. Finding a servant to give ${his} ${children} to, ${he} hastily heads back to ${his} bed to hide ${himself} from the mockery.`); } } else { r.push(`While waddling through the penthouse on ${his} way to the cafeteria, ${slave.slaveName}'s water breaks. Unable to reach the prepared birthing room in time, ${he} finds ${himself} stranded in the middle of all the dining slaves.`); humiliation = 1; r.push(clothingBirth()); r.push(`${He} gathers ${his} ${newborns} and recovers ${his} strength before rushing out of sight of the jeering crowd. Finding a servant to give ${his} ${children} to, ${he} hastily heads back to ${his} bed to hide ${himself} from the mockery.`); } } } else { switch (slave.assignment) { case Job.REST: if (!canWalk(slave)) { if (slave.fetish === "mindbroken") { r.push(`${slave.slaveName} is awoken from ${his} rest by a strong contraction. ${He} rolls over and begins to fall back to sleep as another wracks ${his} body.`); r.push(clothingBirth()); r.push(`${He} draws ${his} ${children} to ${his} ${breasts} and resumes resting.`); } else { r.push(`${slave.slaveName} is awoken from ${his} rest by a moist sensation followed by a contraction. ${He} rolls over and clutches ${his} gravid belly as another wracks ${his} body.`); r.push(clothingBirth()); r.push(`${He} collects ${his} ${newborns} and places them in the cradle readied for ${him}. ${He} is helped to the shower as your servants clean up and remove ${his} ${children}.`); } } else { if (slave.fetish === "mindbroken") { r.push(`${slave.slaveName} is awoken from ${his} rest by a strong contraction. ${He} rolls over and begins to fall back to sleep as another wracks ${his} body.`); r.push(clothingBirth()); r.push(`${He} draws ${his} ${children} to ${his} ${breasts} and resumes resting.`); } else { r.push(`${slave.slaveName} is awoken from ${his} rest by a moist sensation followed by a contraction. ${He} rolls over and clutches ${his} gravid belly as another wracks ${his} body.`); r.push(clothingBirth()); r.push(`${He} collects ${his} ${newborns} and places them in the cradle readied for ${him}. ${He} leaves to take a shower as your servants clean up and remove ${his} ${children}.`); } } break; case Job.SUBORDINATE: { const domSlave = getSlave(slave.subTarget); if (domSlave) { ({he2} = getPronouns(domSlave).appendSuffix("2")); } if (slave.fetish === "mindbroken") { if (slave.subTarget === 0) { r.push(`While servicing your other slaves, ${slave.slaveName}'s water breaks, though it does nothing to deter ${him} from ${his} task.`); r.push(clothingBirth()); r.push(`No sooner than ${his} ${babies}`); if (slave.pregType > 1) { r.push(`are`); } else { r.push(`is`); } r.push(`born, a cock is shoved into ${his} gaping`); if (slave.mpreg === 1) { r.push(`asshole`); } else { r.push(`pussy`); } r.push(`as ${he} draws ${his} ${children} to ${his} ${breasts}.`); } else { r.push(`While servicing ${domSlave.slaveName}, ${slave.slaveName}'s water breaks, though it does nothing to deter ${him} from ${his} task.`); r.push(clothingBirth()); r.push(`No sooner than ${his} ${babies}`); if (slave.pregType > 1) { r.push(`are`); } else { r.push(`is`); } r.push(`born does ${he} go back to pleasuring ${his} dom.`); } } else { if (slave.subTarget === 0) { r.push(`While servicing your other slaves, ${slave.slaveName}'s water breaks, causing ${him} to immediately try to break off. However, a hand quickly hooks ${his} gravid bulk and ${he} is pulled back into another slave's crotch.`); humiliation = 1; r.push(clothingBirth()); r.push(`${He} is allowed a moment to prepare ${his} ${children}`); r.push(`to be sent off before returning to pleasuring your other slaves.`); } else { r.push(`While servicing ${domSlave.slaveName}, ${slave.slaveName}'s water breaks, causing ${him} to immediately try to break off. ${His} dom eagerly watches ${his2} pregnant sub's ordeal.`); humiliation = 1; r.push(clothingBirth()); r.push(`${domSlave.slaveName} collects the newborn ${childrenAre} to be sent off before returning and planting ${his2} crotch directly onto ${his2} exhausted sub's face.`); } } break; } case Job.WHORE: if (!canWalk(slave)) { if (slave.fetish === "mindbroken") { r.push(`While attempting to attract customers with ${his} gravid body, ${slave.slaveName}'s water breaks.`); r.push(clothingBirth()); r.push(`${He} draws ${his} ${children} to ${his} ${breasts} as ${he} resumes whoring, oblivious to the free show ${he} just gave ${his} customers.`); } else { r.push(`While attempting to attract customers with ${his} gravid body, ${slave.slaveName}'s water breaks, soaking ${him}. ${He} attempts to get someplace safe to give birth but finds it impossible.`); humiliation = 1; r.push(clothingBirth()); r.push(`${He} lies on the ground, exhausted and covered in sperm from the circle of men watching ${him}, until ${he} recovers enough to collect ${his} ${children} to be sent off.`); } } else { if (slave.fetish === "mindbroken") { r.push(`While attempting to attract customers with ${his} gravid body, ${slave.slaveName}'s water breaks.`); r.push(clothingBirth()); r.push(`${He} draws ${his} ${children} to ${his} ${breasts} as ${he} resumes whoring, oblivious to the free show ${he} just gave ${his} customers.`); } else { r.push(`While attempting to attract customers with ${his} gravid body, ${slave.slaveName}'s water breaks, soaking ${him}. ${He} attempts to get someplace safe to give birth but finds ${his} path blocked by rowdy johns.`); humiliation = 1; r.push(clothingBirth()); r.push(`${He} lies on the ground, exhausted and covered in sperm from the circle of men watching ${him}, until ${he} recovers enough to collect ${his} ${children} to be sent off.`); } } break; case Job.PUBLIC: if (slave.fetish === "mindbroken") { if (birthScene > 80 && canDoVaginal(slave)) { r.push(`While riding a citizen's dick, ${slave.slaveName}'s water breaks on him. Showing no signs of stopping, he shoves ${his} bulk off of him. Instinctively, ${he} begins to push out ${his} ${babies}, indifferent to who may be watching ${his} naked crotch. ${He} draws ${his} ${children} to ${his} ${breasts} before seeking out the next citizen's cock.`); } else if (birthScene > 60 && canDoAnal(slave)) { r.push(`While taking a citizen's dick in ${his} ass, ${slave.slaveName}'s water breaks. ${He} shows no signs of slowing down, so he allows ${him} to reposition and continue. Instinctively, ${he} begins to push out ${his} ${babies}, indifferent to who may be watching ${his} naked crotch. He came strongly thanks to ${him} and gives ${him} a slap on the ass as ${he} begins drawing ${his} ${children} to ${his} ${breasts} and seeking out the next citizen's cock.`); } else if (birthScene > 40) { r.push(`While sucking a citizen's dick, ${slave.slaveName}'s water breaks. ${He} shows no signs of slowing down, so he allows ${him} to reposition and continue.`); r.push(clothingBirth()); r.push(`He cums down ${his} throat before ${he} begins drawing ${his} ${children} to ${his} ${breasts} and seeking out the next citizen's cock.`); } else { r.push(`While licking a citizen's cunt, ${slave.slaveName}'s water breaks. ${He} shows no signs of slowing down, so she allows ${him} to reposition and continue.`); r.push(clothingBirth()); r.push(`The citizen splashes across ${his} face before ${he} begins drawing ${his} ${children} to ${his} ${breasts} and seeking out the next citizen's cunt.`); } } else { if (birthScene > 80 && canDoVaginal(slave)) { r.push(`While riding a citizen's dick, ${slave.slaveName}'s water breaks on him. ${He} desperately tries to disengage but he grabs ${his} hips and slams ${him} back down. He thoroughly enjoys ${his} contracting cunt before pushing ${him} off and standing over ${him}, jacking off. Quickly ${he} spreads ${his} legs apart and begins pushing out ${his} ${babies}${UH}. ${He} can't hide what's happening between ${his} legs,`); if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } r.push(`He cums over ${his} exhausted body and moves on leaving ${him} to recover and collect ${his} ${children} to be sent off.`); humiliation = 1; } else if (birthScene > 60 && canDoAnal(slave)) { r.push(`While taking a citizen's dick in ${his} ass, ${slave.slaveName}'s water breaks. ${He} desperately tries to disengage but he grabs ${his} hips and slams into ${him} hard. Quickly ${he} spreads ${his} legs apart and begins pushing out ${his} ${babies}${UH}. ${He} can't hide what's happening between ${his} legs,`); if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } r.push(`He came strongly thanks to ${him} and gives ${him} a slap on the ass as ${he} collapses to the ground. ${He} quickly gathers ${his} ${children} to be sent off.`); humiliation = 1; } else if (birthScene > 40) { r.push(`While sucking a citizen's dick, ${slave.slaveName}'s water breaks. ${He} desperately tries to disengage but he grabs ${his} head and slams ${him} back into his crotch.`); humiliation = 1; r.push(clothingBirth()); r.push(`He cums down ${his} throat before letting ${him} collapse to the ground and leaving. When ${he} recovers, ${he} quickly gathers ${his} ${children} to be sent off.`); } else { r.push(`While licking a citizen's cunt, ${slave.slaveName}'s water breaks. ${He} desperately tries to disengage but she grabs ${his} head and slams ${him} back into her crotch.`); humiliation = 1; r.push(clothingBirth()); r.push(`She cums across ${his} face before helping ${him} to the ground and leaving. When ${he} recovers, ${he} quickly gathers ${his} ${children} to be sent off.`); } } break; case Job.GLORYHOLE: if (slave.fetish === "mindbroken") { r.push(`While sucking a dick through the hole of ${his} confining box, ${slave.slaveName}'s water breaks. ${He} makes no effort to stop sucking the dicks presented to ${him}.`); r.push(clothingBirth()); r.push(`${His} ${childrenAre} quickly extracted from the box. ${He} never notices, having focused entirely on the fresh cock poking through the glory hole.`); } else { r.push(`While sucking a dick through the hole of ${his} confining box, ${slave.slaveName}'s water breaks. ${He} quickly finishes the dick off before seating ${himself} in the back of the box.`); r.push(clothingBirth()); r.push(`As ${he} finishes, ${he}`); if (canSee(slave)) { r.push(`could have sworn ${he} saw an eye`); } else { r.push(`swears ${he} can feel somebody`); } r.push(`peeping through the glory hole, watching the show. The box is opened and ${his} ${childrenAre} gathered and taken away as ${he} turns to suck the fresh cock poking through the hole.`); } break; case Job.MILKED: if (slave.fetish === "mindbroken") { r.push(`While getting milked, ${slave.slaveName}'s water breaks. ${He} show little regard and continues kneading ${his} breasts.`); r.push(clothingBirth()); r.push(`${He} shows no interest in ${his} ${children} being removed from the milking stall, instead focusing entirely on draining ${his} breasts.`); } else { r.push(`While getting milked, ${slave.slaveName}'s water breaks. ${He} shifts into a comfortable position to give birth while the milker works ${his} breasts.`); r.push(clothingBirth()); r.push(`${He} takes a break from milking to collect ${his} ${children} for removal and to catch ${his} breath before reattaching the milkers and coaxing ${his} milk to begin flowing anew.`); } break; case Job.FUCKTOY: if (!canWalk(slave)) { if (slave.fetish === "mindbroken") { r.push(`While sitting absentmindedly nearby, ${slave.slaveName}'s water breaks soaking the floor under ${him}. ${He} pays no heed to it and continues waiting for you to use ${him}.`); r.push(clothingBirth()); r.push(`You certainly enjoyed the show as you call for a servant to take away ${his} ${children} and to clean up the spill.`); } else { r.push(`While sitting nearby, ${slave.slaveName}'s water breaks, startling ${him}. ${He} looks to you for guidance and you shake your head "no". Without permission to leave ${he}`); if (slave.devotion > 50) { r.push(`decides to give you a show`); } else if (slave.devotion > 20) { r.push(`reluctantly decides giving birth in front of you isn't so bad.`); } else { r.push(`begins to panic as ${his} contractions come sooner and sooner.`); humiliation = 1; } r.push(clothingBirth()); r.push(`As thanks for the show, you help ${his} exhausted body onto the couch so ${he} can recover before returning to ${his} duties. You call for a servant to take away ${his} ${children} and to clean up your floor and your toy.`); } } else { if (slave.fetish === "mindbroken") { r.push(`While standing absentmindedly nearby, ${slave.slaveName}'s water breaks soaking the floor under ${him}. ${He} pays no heed to it and continues waiting for you to use ${him}.`); r.push(clothingBirth()); r.push(`You certainly enjoyed the show as you call for a servant to take away ${his} ${children} and to clean up the spill.`); } else { r.push(`While standing nearby, ${slave.slaveName}'s water breaks, startling ${him}. ${He} looks to you for guidance and you shake your head "no". Without permission to leave ${he}`); if (slave.devotion > 50) { r.push(`decides to give you a show.`); } else if (slave.devotion > 20) { r.push(`reluctantly decides giving birth in front of you isn't so bad.`); } else { r.push(`begins to panic as ${his} contractions come sooner and sooner.`); humiliation = 1; } r.push(clothingBirth()); r.push(`As thanks for the show, you help ${his} exhausted body onto the couch so ${he} can recover before returning to ${his} duties. You call for a servant to take away ${his} ${children} and to clean up your floor and your toy.`); } } break; case Job.BODYGUARD: r.push(`Refusing to leave your side even when on the verge of giving birth, ${slave.slaveName} continues to serve as your bodyguard despite ${his} condition. A splashing sound and a loud groan emit from behind you. Your bodyguard has gone into labor. You quickly help ${him} to the ground and prepare for the coming birth.`); r.push(clothingBirth()); r.push(`You sit by your loyal guard holding ${his} ${children} until a servant comes by to take them away. Once ${he} is thoroughly rested, you help ${him} up and lead ${him} back to the penthouse to shower and change.`); break; case Job.CONFINEMENT: if (slave.fetish === "mindbroken") { r.push(`While waiting in confinement, ${slave.slaveName}'s water breaks. ${He} assumes a birthing position.`); r.push(clothingBirth()); r.push(`${He} draws ${his} ${children} to ${his} ${breasts} and resumes waiting.`); } else { r.push(`${slave.slaveName} is awoken from ${his} stupor by moist sensation followed by a contraction. ${He} rolls over and clutches ${his} gravid belly as another wracks ${his} body.`); r.push(clothingBirth()); r.push(`${He} collects ${his} ${children} and holds them close knowing someone will soon come to take them away from ${him}.`); } break; case Job.RECRUITER: r.push(`While on a video call with a potential recruit, ${slave.slaveName}'s water breaks. ${He} attempts to play it cool and act like nothing is happening but the worsening contractions finally get to ${him}.`); humiliation = 1; r.push(clothingBirth()); if (birthScene > 50) { r.push(`Exhausted from the birth and clutching ${his} newborn ${children}, ${he} returns to find that ${he} never ended the call. The prospective slave is blushing furiously and seems to have begun touching ${himselfU} to the show. Apologizing for the interruption, while red with embarrassment, ${slave.slaveName} resumes chatting with the somewhat more pliant ${girlU}.`); } else { r.push(`Exhausted from the birth and clutching ${his} newborn ${children}, ${he} returns to find that ${he} never ended the call. The prospective slave is grinning widely and states ${heU} has been recording the show. ${HeU} signs off, but not before saying ${heU}'ll be seeing more of ${slave.slaveName} around the internet.`); if (slave.fetish === "humiliation") { r.push(`Your recruiter can't help but become aroused at the prospect.`); } else { r.push(`Your recruiter is terrified that ${his} birth video is out there for everyone to see, partly due to ${his} own shame and to the potential damage it will do to ${his} reputation.`); } } break; case Job.HEADGIRL: r.push(`While overseeing your other slaves, ${slave.slaveName}'s water breaks. ${He} attempts to hold back the coming birth until ${he} can catch a break in ${his} duties but ultimately fails.`); humiliation = 1; r.push(clothingBirth()); r.push(`Upon finishing, ${he} quickly collects ${his} ${children} and orders the mess to be cleaned promptly without breaking ${his} dominant appearance.`); break; case Job.QUARTER: case Job.HOUSE: if (slave.fetish === "mindbroken") { if (birthScene > 50) { r.push(`While giving a slave oral service, ${slave.slaveName}'s water breaks. ${He} disregards this development and continues working.`); r.push(clothingBirth()); r.push(`The slave gets off quite strongly to the show and shoves ${him} out of the way, leaving ${him} to clean up ${his} mess. Instead, ${he} draws ${his} ${children} to ${his} ${breasts} until`); if (S.Stewardess) { r.push(S.Stewardess.slaveName); } else if (S.HeadGirl) { r.push(S.HeadGirl.slaveName); } else { r.push(`${V.assistant.name}`); } r.push(`shouts at ${him} to move ${his} useless ass.`); } else { r.push(`While scrubbing the penthouse floor, ${slave.slaveName}'s water breaks. ${He} turns to clean this new spill, disregarding what it means.`); r.push(clothingBirth()); r.push(`Instead of cleaning the fresh mess ${he} made, ${he} draws ${his} ${children} to ${his} ${breasts} until`); if (S.Stewardess) { r.push(S.Stewardess.slaveName); } else if (S.HeadGirl) { r.push(S.HeadGirl.slaveName); } else { r.push(`${V.assistant.name}`); } r.push(`shouts at ${him} to move ${his} useless ass.`); } } else { if (birthScene > 50) { r.push(`While giving a slave oral service, ${slave.slaveName}'s water breaks. ${He} desperately tries to pull away but they grab ${his} head and force ${him} back to their crotch.`); humiliation = 1; r.push(clothingBirth()); r.push(`The slave gets off quite strongly to the show and shoves ${him} out of the way, leaving ${him} to clean up ${his} mess. ${He} hurriedly tries to mop up the mess and collect ${his} ${children} before`); if (S.Stewardess) { r.push(S.Stewardess.slaveName); } else if (S.HeadGirl) { r.push(S.HeadGirl.slaveName); } else { r.push(`${V.assistant.name}`); } r.push(`shouts at ${him}.`); } else { r.push(`While scrubbing the penthouse floor, ${slave.slaveName}'s water breaks. ${He} panics at the thought of not cleaning up ${his} spill but ${his} worsening contractions force ${him} to find a secluded place to give birth.`); r.push(clothingBirth()); r.push(`Collecting ${his} ${children}, ${he} exits ${his} hiding place before coming under the eye of`); if (S.Stewardess) { r.push(`the glaring ${S.Stewardess.slaveName}.`); } else if (V.HeadGirlID !== 0) { r.push(`the glaring ${S.HeadGirl.slaveName}.`); } else { r.push(`${V.assistant.name}.`); } r.push(`${His} ${children} are promptly taken by other servants following a lecture about priorities and time management.`); } } break; case Job.MASTERSUITE: if (!canWalk(slave)) { if (slave.fetish === "mindbroken") { if (V.masterSuiteUpgradeLuxury === 1) { r.push(`While awaiting your return on the big bed in the master suite, ${slave.slaveName}'s water breaks thoroughly soaking the sheets. Ignoring the mess, ${he} shifts into a more comfortable position.`); r.push(clothingBirth()); r.push(`Resting in your bed, ${he} draws ${his} ${children} to ${his} ${breasts} and resumes waiting for you.`); if (S.Concubine) { r.push(`${S.Concubine.slaveName} furiously orders ${his} ${children} removed, and ${him} forcefully ejected from the bed so it can be cleaned before your return.`); } } else if (V.masterSuiteUpgradeLuxury === 2) { r.push(`While at the bottom of the master suite's fuckpit, ${slave.slaveName}'s water breaks. While ${he} doesn't stop having sex, the fucktoys using ${him} do and drag ${him} from the pit to give birth. Instinctively, ${he} begins to push out ${his} ${babies}, indifferent to who may be watching ${his} naked crotch. Without a second thought about ${his} ${children}, ${he} slips back into the fuckpit.`); } else { r.push(`While awaiting your return in the master suite, ${slave.slaveName}'s water breaks. ${He} pays it no heed and continues blankly waiting.`); r.push(clothingBirth()); r.push(`Resting on the floor, ${he} draws ${his} ${children} to ${his} ${breasts} and resumes waiting for you.`); if (S.Concubine) { r.push(`${S.Concubine.slaveName} furiously orders ${his} ${children} removed and ${him} thoroughly cleaned before your return.`); } } } else { if (V.masterSuiteUpgradeLuxury === 1) { r.push(`While awaiting your return on the big bed in the master suite, ${slave.slaveName}'s water breaks thoroughly soaking the sheets. ${He} quickly shifts ${himself} off the bed and calls for a servant before dropping to the floor.`); r.push(clothingBirth()); r.push(`Once ${his} ${childrenAre} removed, ${his} body cleaned, and the sheets changed, ${he} is helped back into bed to recover for your return.`); } else if (V.masterSuiteUpgradeLuxury === 2) { r.push(`While participating in the fuckpit orgy, ${slave.slaveName}'s water breaks. ${He} begs to be let out of the pit but the other fucktoys pull ${him} in and position themselves for ${him} to pleasure them while giving birth.`); humiliation = 1; r.push(clothingBirth()); r.push(`Once the fucktoys are done tormenting the exhausted new mother, they hand ${his} ${children} off to a servant and pull ${him} into an embrace to allow ${him} to regain ${his} strength.`); } else { r.push(`While awaiting your return in the master suite, ${slave.slaveName}'s water breaks. ${He} tries to get to the prepared area but fails to untangle ${himself} from the toys ${he} was playing with. ${He} calls for a servant to hurry as ${he} begins laboring.`); r.push(clothingBirth()); r.push(`The servant collects ${his} ${children} and helps ${him} onto a cushion to recover for your return.`); if (canDoAnal(slave) && slave.anus > 0) { r.push(`With a little effort, ${he} pushes the vibrating dildo out of ${his} ass`); } else { r.push(`With things settling down, ${he} finally manages to switch off the bullet vibrators stuck to ${his} crotch`); } r.push(`before settling down for a nap.`); } } } else { if (slave.fetish === "mindbroken") { if (V.masterSuiteUpgradeLuxury === 1) { r.push(`While awaiting your return on the big bed in the master suite, ${slave.slaveName}'s water breaks thoroughly soaking the sheets. Ignoring the mess, ${he} shifts into a more comfortable position.`); r.push(clothingBirth()); r.push(`Resting in your bed, ${he} draws ${his} ${children} to ${his} ${breasts} and resumes waiting for you.`); if (S.Concubine) { r.push(`${S.Concubine.slaveName} furiously orders ${his} ${children} removed, and ${him} forcefully ejected from the bed so it can be cleaned before your return.`); } } else if (V.masterSuiteUpgradeLuxury === 2) { r.push(`While being the bottom of the master suite's fuckpit, ${slave.slaveName}'s water breaks. While ${he} doesn't stop having sex, the fucktoys using ${him} do and drag ${him} from the pit to give birth. Instinctively, ${he} begins to push out ${his} ${babies}, indifferent to who may be watching ${his} naked crotch. Without a second thought about ${his} ${children}, ${he} slips back into the fuckpit.`); } else { r.push(`While awaiting your return in the master suite, ${slave.slaveName}'s water breaks. ${He} pays it no heed and continues blankly waiting.`); r.push(clothingBirth()); r.push(`Resting on the floor, ${he} draws ${his} ${children} to ${his} ${breasts} and resumes waiting for you.`); if (S.Concubine) { r.push(`${S.Concubine.slaveName} furiously orders ${his} ${children} removed, and ${him} thoroughly cleaned before your return.`); } } } else { if (V.masterSuiteUpgradeLuxury === 1) { r.push(`While awaiting your return on the big bed in the master suite, ${slave.slaveName}'s water breaks thoroughly soaking the sheets. ${He} quickly moves ${himself} off the bed and calls for a servant before dropping to the floor.`); r.push(clothingBirth()); r.push(`Once ${his} ${childrenAre} removed, ${his} body cleaned, and the sheets are changed, ${he} crawls back into bed to recover for your return.`); } else if (V.masterSuiteUpgradeLuxury === 2) { r.push(`While participating in the fuckpit orgy, ${slave.slaveName}'s water breaks. ${He} tries to crawl out of the pit but the other fucktoys pull ${him} back in and position themselves for ${him} to pleasure them while giving birth.`); humiliation = 1; r.push(clothingBirth()); r.push(`Once the fucktoys are done tormenting the exhausted new mother, they hand ${his} ${children} off to a servant and pull ${him} into an embrace to allow ${him} to regain ${his} strength.`); } else { r.push(`While awaiting your return in the master suite, ${slave.slaveName}'s water breaks. ${He} tries to get to the prepared area but fails to untangle ${himself} from the toys ${he} was playing with. ${He} calls for a servant to hurry as ${he} begins laboring.`); r.push(clothingBirth()); r.push(`The servant collects ${his} ${children} and helps ${him} onto a cushion to recover for your return.`); if (canDoAnal(slave) && slave.anus > 0) { r.push(`With a little effort, ${he} pushes the vibrating dildo out of ${his} ass`); } else { r.push(`With things settling down, ${he} finally manages to switch off the bullet vibrators stuck to ${his} crotch`); } r.push(`before settling down for a nap.`); } } } break; case Job.CLUB: if (!canWalk(slave)) { if (slave.fetish === "mindbroken") { r.push(`${slave.slaveName} is showing off ${his} gravid body and trying to attract citizens as well as ${he} can. During one of ${his} teases, ${his} water breaks, soaking the floor. ${He} keeps on teasing, despite ${his} condition, until ${his} contractions drag ${him} to the floor.`); r.push(clothingBirth()); r.push(`Multiple citizens drag ${him} into a booth so that they may tease ${his} exhausted body while the floor is dried and ${his} ${childrenAre} carried off.`); } else if (slave.fetish === "humiliation") { r.push(`${slave.slaveName} is showing off ${his} gravid body and trying to attract citizens by "dancing" as well as ${he} can, all the while being a huge tease. During one of ${his} "dances", ${his} water breaks, soaking the floor. ${He} calls out to the crowd, hyping them up for ${his} new show.`); humiliation = 1; r.push(clothingBirth()); r.push(`As ${his} ${children}`); r.push(`are removed, ${he} is helped into one of the back rooms by several of ${his} aroused onlookers.`); } else { r.push(`${slave.slaveName} is showing off ${his} gravid body and trying to attract citizens by "dancing" as well as ${his} body will let ${him}. During one of ${his} dances, ${his} water breaks, soaking the floor. ${He} hastily tries to find help to leave, but only finds hands groping ${his} body. ${He} is quickly pulled into one of the side rooms by a group of men looking forward to the show ${he}'s about to perform for them.`); humiliation = 1; r.push(clothingBirth()); r.push(`Only once the last of ${his} clients cums over ${his} body is ${he} allowed to gather ${his} ${children} and take a seat. ${He} enjoys a moment with ${his} ${newborns} before a servant comes to collect them.`); } } else { if (slave.fetish === "mindbroken") { r.push(`${slave.slaveName} is showing off ${his} gravid body and trying to attract citizens by dancing as well as ${he} can. During one of ${his} dances, ${his} water breaks, soaking the dance floor. ${He} keeps on dancing, despite ${his} condition, until ${his} contractions drag ${him} to the floor.`); r.push(clothingBirth()); r.push(`Multiple citizens drag ${him} into a booth so that they may tease ${his} exhausted body while the dance floor is dried and ${his} ${childrenAre} carried off.`); } else if (slave.fetish === "humiliation") { r.push(`${slave.slaveName} is showing off ${his} gravid body and trying to attract citizens by dancing as well as ${he} can, all the while flashing glimpses of ${his} crotch and nipples. During one of ${his} dances, ${his} water breaks, soaking the dance floor. ${He} calls out to the crowd, hyping them up for ${his} new show.`); humiliation = 1; r.push(clothingBirth()); r.push(`As ${his} ${childrenAre} are removed from the dance floor, ${he} is helped into one of the back rooms by several of ${his} aroused onlookers.`); } else { r.push(`${slave.slaveName} is showing off ${his} gravid body and trying to attract citizens by dancing as well as ${he} can. During one of ${his} dances, ${his} water breaks, soaking the dance floor. ${He} hastily tries to leave the dance floor only to find hands groping ${his} body. ${He} is quickly pulled into one of the side rooms by a group of men looking forward to the show ${he}'s about to perform for them.`); humiliation = 1; r.push(clothingBirth()); r.push(`Only once the last of ${his} clients cums over ${his} body is ${he} allowed to gather ${his} ${children} and take a seat. ${He} enjoys a moment with ${his} ${newborns} before a servant comes to collect them.`); } } break; case Job.CHOICE: if (!canWalk(slave)) { r.push(`While deciding on ${his} post, ${slave.slaveName}'s water breaks. Unable to reach the prepared birthing room in time, ${he} pulls ${himself} into a secluded nook to give birth in.`); r.push(clothingBirth()); r.push(`${He} gathers ${his} ${children} and recovers ${his} strength before a servant finds ${him} and collects ${his} ${children}. ${He} decides to rest for the rest of the day before returning to choosing ${his} next task.`); } else if (slave.fetish === "humiliation") { r.push(`While wandering the penthouse deciding on ${his} post, ${slave.slaveName}'s water breaks. Sensing an opportunity, ${he} waddles to the nearest balcony overlooking the city. ${He} calls out, making sure all eyes are on ${him} for what happens next.`); humiliation = 1; r.push(clothingBirth()); r.push(`${He} gathers ${his} ${newborns} and recovers ${his} strength before finding a servant to give ${his} ${children} to. ${He} decides to rest for the rest of the day before returning to choosing ${his} next task.`); } else { r.push(`While wandering the penthouse deciding on ${his} post, ${slave.slaveName}'s water breaks. Unable to reach the prepared birthing room in time, ${he} finds a secluded nook to give birth in.`); r.push(clothingBirth()); r.push(`${He} gathers ${his} ${newborns} and recovers ${his} strength before finding a servant to give ${his} ${children} to. ${He} decides to rest for the rest of the day before returning to choosing ${his} next task.`); } break; case Job.SPA: if (!canWalk(slave)) { if (slave.fetish === "mindbroken") { r.push(`While soaking in the spa's pool, ${slave.slaveName}'s water breaks. As ${he} begins to ready ${himself} for birth,`); if (S.Attendant) { r.push(`${S.Attendant.slaveName} pulls ${him} out of the pool and glares at ${him}.`); } else { r.push(`the other bathers watch curiously.`); } r.push(clothingBirth()); r.push(`${He} and ${his} ${children} are quickly dried off as ${he} begins nursing them. A servant soon arrives to take ${his} ${children} away.`); } else { r.push(`While changing in the changing room before a nice soak,${slave.slaveName}'s water breaks. ${He} hurries to find someone to help ${him} but only finds curious onlookers. Without any choice left, ${he} assumes a birthing position.`); humiliation = 1; r.push(clothingBirth()); r.push(`Several of the other slaves present help ${him} with ${his} ${newborns} while the rest finish pleasuring themselves from the show.`); if (S.Attendant) { r.push(`${S.Attendant.slaveName}, lured in by the commotion, shoos the other slaves out and helps the new mother to a private relaxation room to unwind.`); } else { r.push(`Soon a servant arrives to take ${his} ${children} away, and ${he} is helped into the bath to clean up and relax.`); } } } else { if (slave.fetish === "mindbroken") { r.push(`While soaking in the spa's pool, ${slave.slaveName}'s water breaks. As ${he} begins to ready ${himself} for birth,`); if (S.Attendant) { r.push(`${S.Attendant.slaveName} pulls ${him} out of the pool and glares at ${him}.`); } else { r.push(`the other bathers watch curiously.`); } r.push(clothingBirth()); r.push(`${He} and ${his} ${children} are quickly dried off as ${he} begins nursing them. A servant soon arrives to take ${his} ${children} away.`); } else { r.push(`While heading for the changing room before a nice soak,${slave.slaveName}'s water breaks. ${He} hurries into the changing room only to find it unusually crowded. Without any choice left, ${he} assumes a birthing position.`); humiliation = 1; r.push(clothingBirth()); r.push(`Several of the other slaves present help ${him} with ${his} ${newborns} while the rest finish pleasuring themselves from the show.`); if (S.Attendant) { r.push(`${S.Attendant.slaveName}, lured in by the commotion, shoos the other slaves out and helps the new mother to a private relaxation room to unwind.`); } else { r.push(`Soon a servant arrives to take ${his} ${children} away, and ${he} is ushered into the bath to clean up and relax.`); } } } break; case Job.NURSERY: r.push(`In the middle of`); if (V.nurseryChildren) { r.push(`changing a baby's diaper,`); } else { r.push(`cleaning ${V.nurseryName},`); } r.push(`${slave.slaveName}'s water breaks. ${He} hurries into a changing room and assumes a birthing position.`); r.push(clothingBirth()); r.push(`Several of the other slaves present help ${him} with ${his} ${newborns}.`); if (S.Matron) { r.push(`${S.Matron.slaveName}, lured in by the commotion, shoos the other slaves out and helps the new mother to a private room to unwind.`); } else { r.push(`Soon a servant arrives to take ${his} ${children} away, and ${he} is ushered into a shower to clean up and relax.`); } break; case Job.SCHOOL: if (S.Schoolteacher) { ({he2, his2} = getPronouns(S.Schoolteacher).appendSuffix("2")); } if (!canWalk(slave)) { r.push(`During a lesson in ${V.schoolroomName}, ${slave.slaveName}'s water breaks. Since ${he} can't leave the lesson, ${he} tries ${his} best to hold back the upcoming birth. ${He} fails to do so and a particularly strong contraction elicits a moan noticeable enough to draw all the students' attention.`); humiliation = 1; r.push(clothingBirth()); if (S.Schoolteacher) { r.push(`${S.Schoolteacher.slaveName}, furious that ${his2} lesson was interrupted, drags ${him} from the class along with ${his} newborn ${children}.`); } else { r.push(`${He} gathers ${his} newborn ${children} up and is quickly helped from the class.`); } r.push(`${He} can feel all eyes watching ${him} leave.`); } else { r.push(`During a lesson in ${V.schoolroomName}, ${slave.slaveName}'s water breaks. Since ${he} can't leave the lesson, ${he} tries ${his} best to hold back the upcoming birth. ${He} fails to do so and a particularly strong contraction elicits a moan noticeable enough to draw all the students' attention.`); humiliation = 1; r.push(clothingBirth()); if (S.Schoolteacher) { r.push(`${S.Schoolteacher.slaveName}, furious that ${his2} lesson was interrupted, dismisses ${him} from the class along with ${his} newborn ${children}.`); } else { r.push(`${He} gathers ${his} newborn ${children} up and quickly excuses ${himself} from the class.`); } r.push(`${He} can feel all eyes watching ${him} leave.`); } break; case Job.CLASSES: if (!canWalk(slave)) { r.push(`During a lesson under ${V.assistant.name}, ${slave.slaveName}'s water breaks. Since ${he} can't leave the lesson, ${he} tries ${his} best to hold back the upcoming birth, not without your assistant noticing. As punishment for poor planning, ${he} is forbidden from leaving. Additionally, ${his} birth will be turned into a live broadcast.`); humiliation = 1; r.push(clothingBirth()); r.push(`Exhausted from the birth, ${he} is permitted a short break as ${his} ${childrenAre} gathered to be cleaned up before the lesson is continued.`); } else { r.push(`During a lesson under ${V.assistant.name}, ${slave.slaveName}'s water breaks. Since ${he} can't leave the lesson, ${he} tries ${his} best to hold back the upcoming birth, not without your assistant noticing. As punishment for poor planning, ${he} is forbidden from leaving. Additionally, ${his} birth will be turned into a live broadcast.`); humiliation = 1; r.push(clothingBirth()); r.push(`Exhausted from the birth, ${he} is permitted a short break as ${his} ${childrenAre} gathered to clean ${himself} up before the lesson is continued.`); } break; case Job.BROTHEL: if (slave.fetish === "mindbroken") { if (birthScene > 80 && canDoVaginal(slave)) { r.push(`While riding a customer's dick, ${slave.slaveName}'s water breaks on him. Showing no signs of stopping, he shoves ${his} gravid bulk off of him. Instinctively, ${he} begins to push out ${his} ${babies}, indifferent to who may be watching ${his} naked crotch. ${He} draws ${his} ${children} to ${his} ${breasts} before seeking out the next customer's cock.`); } else if (birthScene > 60 && canDoAnal(slave)) { r.push(`While taking a customer's dick in ${his} ass, ${slave.slaveName}'s water breaks. ${He} shows no signs of slowing down, so he allows ${him} to reposition and continue. Instinctively, ${he} begins to push out ${his} ${babies}, indifferent to who may be watching ${his} naked crotch. He came strongly thanks to ${him} and gives ${him} a slap on the ass as ${he} begins drawing ${his} ${children} to ${his} ${breasts} and seeking out the next customer's cock.`); } else if (birthScene > 40) { r.push(`While sucking a customer's dick, ${slave.slaveName}'s water breaks. ${He} shows no signs of slowing down, so he allows ${him} to reposition and continue.`); r.push(clothingBirth()); r.push(`He cums down ${his} throat before ${he} begins drawing ${his} ${children} to ${his} ${breasts} and seeking out the next customer's cock.`); } else { r.push(`While licking a customer's cunt, ${slave.slaveName}'s water breaks. ${He} shows no signs of slowing down, so she allows ${him} to reposition and continue.`); r.push(clothingBirth()); r.push(`The customer splashes across ${his} face before ${he} begins drawing ${his} ${children} to ${his} ${breasts} and seeking out the next customer's cunt.`); } } else { if (birthScene > 80 && canDoVaginal(slave)) { r.push(`While riding a customer's dick, ${slave.slaveName}'s water breaks on him. ${He} desperately tries to disengage but he grabs ${his} hips and slams ${him} back down. He thoroughly enjoys ${his} contracting cunt before pushing ${him} off and standing over ${him}, jacking off. Quickly ${he} spreads ${his} legs apart and begins pushing out ${his} ${babies}${UH}. ${He} can't hide what's happening between ${his} legs,`); if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } r.push(`He cums over ${his} exhausted body and moves on leaving ${him} to recover and collect ${his} ${children} to be sent off.`); humiliation = 1; } else if (birthScene > 60 && canDoAnal(slave)) { r.push(`While taking a customer's dick in ${his} ass, ${slave.slaveName}'s water breaks. ${He} desperately tries to disengage but he grabs ${his} hips and slams into ${him} hard. Quickly, ${he} spreads ${his} legs apart and begins pushing out ${his} ${babies}${UH}. ${He} can't hide what's happening between ${his} legs,`); if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } r.push(`He came strongly thanks to ${him} and gives ${him} a slap on the ass as ${he} collapses to the ground. ${He} quickly gathers ${his} ${children} to be sent off.`); humiliation = 1; } else if (birthScene > 40) { r.push(`While sucking a customer's dick, ${slave.slaveName}'s water breaks. ${He} desperately tries to disengage but he grabs ${his} head and slams ${him} back into his crotch.`); humiliation = 1; r.push(clothingBirth()); r.push(`He cums down ${his} throat before letting ${him} collapse to the ground and leaving. When ${he} recovers, ${he} quickly gathers ${his} ${children} to be sent off.`); } else { r.push(`While licking a customer's cunt, ${slave.slaveName}'s water breaks. ${He} desperately tries to disengage but she grabs ${his} head and slams ${him} back into her crotch.`); humiliation = 1; r.push(clothingBirth()); r.push(`She cums across ${his} face before helping ${him} to the ground and leaving. When ${he} recovers, ${he} quickly gathers ${his} ${children} to be sent off.`); } } break; case Job.DJ: r.push(`While DJing ${V.clubName}, ${slave.slaveName}'s water breaks. ${He} can't stop ${his} setlist without drawing attention so ${he} tries ${his} best to ride out the contractions. As soon as the opportunity arises, ${he} attempts to sneak off stage. However, a number of fans block ${his} progress keeping ${him} on stage. Before long the contractions are too much to bear and ${he} drops to the ground.`); humiliation = 1; r.push(clothingBirth()); r.push(`Exhausted, ${he} sits up and smiles to the crowd. ${His} show definitely drew attention to ${his} club. With a burst of energy ${he} leaps to ${his} feet, bows to the crowd, and gathers ${his} ${children}, before making ${his} way off stage. As ${he} leaves the public's gaze, ${he} shouts out with a wink "the next showing ought to be in about nine months".`); break; case Job.ATTENDANT: r.push(`While tending to the guests in the spa, ${slave.slaveName}'s water breaks. The slaves quickly come to ${his} aid as the contractions get closer and closer together. Their hands are all over ${his} laboring body, unsure of what they should be doing.`); humiliation = 1; r.push(clothingBirth()); r.push(`${He} thanks ${his} charges for their less than helpful efforts and collects ${his} ${children} for removal. Upon returning, ${he} strips down and enters the pool, desperate for a break.`); break; case Job.MATRON: r.push(`While tending to the infants in ${V.nurseryName}, ${slave.slaveName}'s water breaks. The nannies quickly come to ${his} aid as the contractions get closer and closer together. They crowd around and watch, their curiosity getting the better of them.`); humiliation = 1; r.push(clothingBirth()); r.push(`${He} thanks ${his} assistants for their less than helpful efforts and collects ${his} ${children} for removal.`); break; case Job.MADAM: r.push(`While managing ${V.brothelName}, ${slave.slaveName}'s water breaks. Knowing ${he} lacks the time to leave, ${he} sets up a sign reading "Birthshow: ${cashFormat(100)} a viewer" and takes a seat.`); humiliation = 1; r.push(clothingBirth()); r.push(`Upon completing ${his} show, ${he} reclines with ${his} ${slave.pregType} ${children} and begins counting the credits ${he} bought in. In total ${he} made ${cashFormat(100 * birthScene)} and feels that business will be up in the brothel as patrons line up hoping another showing.`); cashX((100 * birthScene), "birth", slave); break; case Job.TEACHER: if (!canWalk(slave)) { r.push(`While teaching a lesson, ${slave.slaveName}'s water breaks. Sensing ${he} wouldn't be able to make it to the birthing area, ${he} instead chooses to act on the opportunity. Today's lesson will be on childbirth.`); humiliation = 1; r.push(clothingBirth()); r.push(`Once ${he} recovers enough, ${he} gathers ${his} newborn ${children} and instructs the class to take notes on the lesson ${he} just demonstrated before being escorted out of the classroom.`); } else { r.push(`While teaching a lesson, ${slave.slaveName}'s water breaks. Sensing ${he} wouldn't be able to make it to the birthing area, ${he} instead chooses to act on the opportunity. Today's lesson will be on childbirth.`); humiliation = 1; r.push(clothingBirth()); r.push(`Once ${he} recovers enough, ${he} gathers ${his} ${newborns} and instructs the class to take notes on the lesson ${he} just demonstrated before leaving to drop off ${his} ${children} for removal.`); } break; case Job.STEWARD: r.push(`While overseeing the house servants, ${slave.slaveName}'s water breaks. ${He} has no time to strip down so ${he} takes a seat and readies ${himself}. Commandingly, ${he} snaps ${his} fingers and orders ${his} charges to clean up the floor, assist ${him} with ${his} clothes, and be ready to take ${his} ${children} away.`); humiliation = 1; r.push(clothingBirth()); r.push(`Once ${he} catches ${his} breath, ${he} rises and takes the fresh change of clothing provided by ${his} servants before ordering them back to work.`); break; case Job.MILKMAID: r.push(`While tending to ${his} stock, ${slave.slaveName}'s water breaks. ${He} hastily pulls ${himself} into a vacant stall and seats ${himself} in its corner.`); r.push(clothingBirth()); r.push(`Quickly, ${he} collects ${his} ${children} for removal before returning to ${V.dairyName}. The cows around ${his} stall all have a knowing look on their ${(V.dairyPregSetting > 0) ? `faces but with their own swollen bellies hanging heavily from them, they know that they soon will follow ${his} lead` : `faces`}.`); break; case Job.FARMER: r.push(`While tending to some of ${his} livestock, ${slave.slaveName}'s water breaks. ${He} hastily finds a secluded corner and takes a seat on the (luckily fresh) hay.`); r.push(clothingBirth()); r.push(`Once ${he}'s finished, ${he} hands off ${his} ${children} to a nearby slave to look after for the time being before returning to what ${he} was previously doing.`); break; case Job.WARDEN: if (slave.fetish === "mindbroken") { r.push(`While punishing a slave, ${slave.slaveName}'s water breaks, soaking ${himU}. Indifferent, ${he} resumes beating ${himU} until the contractions are to much to bear. Settling to the floor, ${he} begins giving birth.`); r.push(clothingBirth()); r.push(`As soon as ${he} regains ${his} strength, ${he} resumes beating the confused slave. ${His} ${childrenAre} collected by a servant, who carefully hints that ${slave.slaveName} should take a break before returning to ${his} task.`); } else { r.push(`While punishing a rebellious slave, ${slave.slaveName}'s water breaks, soaking ${himU}. Noticing the slave's smirk, ${he} resumes beating ${himU} until the contractions are too much to bear. Relocking the cell, ${he} waddles into the nearest empty cell and drops ${his} weight onto the cot.`); r.push(clothingBirth()); r.push(`Quickly, ${he} collects ${his} ${children} for removal before returning to ${V.cellblockName}. On ${his} way past the cells, ${he} takes note of any slaves whispering or gesturing about what transpired for future punishment.`); } break; case Job.NURSE: r.push(`While tending to your unwell slaves, ${slave.slaveName}'s water breaks. Counting the time between contractions, ${he} knows ${he} has no time to get to ${his} prepared birthing chamber. ${He} waddles into the nearest empty room and hoists ${his} gravid body into the examination chair, placing ${his} feet in the stirrups.`); r.push(clothingBirth()); r.push(`Quickly, ${he} collects ${his} ${children} for removal before retiring to the recovery ward. Within an hour of rest, ${he} is back on ${his} feet tending to ${his} charges.`); break; case Job.CONCUBINE: if (slave.fetish === "mindbroken") { r.push(`${He} is placed by your side. You strip ${him} as ${he} instinctively begins to push out ${his} ${babies}, indifferent to your wandering hands. ${His} ${childrenAre} promptly taken and, following a cleaning, a fresh change of clothes, and some private time with you, ${he} is carried back to your master suite.`); } else { r.push(`${slave.slaveName} cradles ${his} swollen belly, waiting for your return, when ${his} water breaks. Saddened that you aren't there for the show, ${he} begins waddling off to find you. By the time ${he} reaches your office, ${he} is barely holding back ${his} ${children}. You rise to meet ${him} and help ${him} onto the couch, just before it's too late.`); r.push(clothingBirth()); r.push(`Cradling your ${newborns}, the two of you rest for a spell before sending them off and spending some more intimate time together.`); } break; case Job.HEADGIRLSUITE: ({he2} = getPronouns(S.HeadGirl).appendSuffix("2")); if (!canWalk(slave)) { if (slave.fetish === "mindbroken") { r.push(`${slave.slaveName} is awoken from ${his} rest by a strong contraction. ${He} rolls over and begins to fall back to sleep as another wracks ${his} body.`); r.push(clothingBirth()); r.push(`${He} draws ${his} ${children} to ${his} ${breasts} and resumes resting before ${S.HeadGirl.slaveName} returns from ${his2} duties.`); } else { r.push(`${slave.slaveName} is awoken from ${his} rest by a moist sensation followed by a contraction. ${He} rolls over and clutches ${his} gravid belly as another wracks ${his} body.`); r.push(clothingBirth()); r.push(`${He} collects ${his} ${newborns} and places them in the cradle readied for ${him}. ${He} is helped to the shower as your servants clean up and remove ${his} ${children}. Freshened up, ${he} returns to resting knowing full well that ${S.HeadGirl.slaveName} will be eager to play with ${his} body upon returning.`); } } else { if (slave.fetish === "mindbroken") { r.push(`${slave.slaveName} is awoken from ${his} rest by a strong contraction. ${He} rolls over and begins to fall back to sleep as another wracks ${his} body.`); r.push(clothingBirth()); r.push(`${He} draws ${his} ${children} to ${his} ${breasts} and resumes resting before ${S.HeadGirl.slaveName} returns from ${his2} duties.`); } else { r.push(`${slave.slaveName} is awoken from ${his} rest by a moist sensation followed by a contraction. ${He} rolls over and clutches ${his} gravid belly as another wracks ${his} body.`); r.push(clothingBirth()); r.push(`${He} collects ${his} ${newborns} and places them in the cradle readied for ${him}. ${He} leaves to take a shower as your servants clean up and remove ${his} ${children}. Freshened up, ${he} returns to resting knowing full well that ${S.HeadGirl.slaveName} will be eager to play with ${his} body upon returning.`); } } break; case Job.ARCADE: r.push(`A gush of liquid pours from the ${slave.slaveName}'s cunt, followed by the attendant in charge of the arcade hanging an "out of order" sign on ${his} exposed rear. While ${his} mouth is filled with a customer's dick, ${his} body instinctively births ${his} ${children} into the waiting basket. As they are carried away, ${his} rear is cleaned up and the sign removed.`); break; case Job.CLINIC: if (S.Nurse) { ({he2, his2} = getPronouns(S.Nurse).appendSuffix("2")); } r.push(`${slave.slaveName} is in the perfect place to give birth when ${his} water breaks.`); if (S.Nurse) { r.push(S.Nurse.slaveName); } else { r.push(`A freelance nurse`); } r.push(`delivers ${his} ${children} before taking them away.`); if (S.Nurse) { r.push(`Before long ${he2} returns to attend to ${his2} patient's post-birth health.`); } else { r.push(`Another nurse takes over to attend to ${his} post-birth health.`); } break; case Job.CELLBLOCK: if (slave.fetish === "mindbroken") { r.push(`While waiting in a cell in ${V.cellblockName}, ${slave.slaveName}'s water breaks. ${He} assumes a birthing position,`); r.push(clothingBirth()); r.push(`${He} draws ${his} ${children} to ${his} ${breasts} and resumes waiting.`); } else { r.push(`${slave.slaveName} is awoken from ${his} stupor by moist sensation followed by a contraction. ${He} rolls over and clutches ${his} gravid belly as another wracks ${his} body.`); r.push(clothingBirth()); r.push(`${He} collects ${his} ${children} and holds them close knowing someone will soon come to take them away from ${him}.`); } break; default: App.Events.addParagraph(el, r); App.UI.DOM.appendNewElement("div", el, `Assignment was "${slave.assignment}" and defaulted. Report this!`, "note"); r = []; if (!canWalk(slave)) { if (slave.fetish === "mindbroken") { r.push(`${slave.slaveName} is awoken from ${his} rest by a strong contraction. ${He} rolls over and begins to fall back to sleep as another wracks ${his} body.`); r.push(clothingBirth()); r.push(`${He} draws ${his} ${children} to ${his} ${breasts} and resumes resting.`); } else { r.push(`${slave.slaveName} is awoken from ${his} rest by a moist sensation followed by a contraction. ${He} rolls over and clutches ${his} gravid belly as another wracks ${his} body.`); r.push(clothingBirth()); r.push(`${He} collects ${his} ${newborns} and places them in the cradle readied for ${him}. ${He} is helped to the shower as your servants clean up and remove ${his} ${children}.`); } } else { if (slave.fetish === "mindbroken") { r.push(`${slave.slaveName} is awoken from ${his} rest by a strong contraction. ${He} rolls over and begins to fall back to sleep as another wracks ${his} body.`); r.push(clothingBirth()); r.push(`${He} draws ${his} ${children} to ${his} ${breasts} and resumes resting.`); } else { r.push(`${slave.slaveName} is awoken from ${his} rest by a moist sensation followed by a contraction. ${He} rolls over and clutches ${his} gravid belly as another wracks ${his} body.`); r.push(clothingBirth()); r.push(`${He} collects ${his} ${newborns} and places them in the cradle readied for ${him}. ${He} heads to the shower as your servants clean up and remove ${his} ${children}.`); } } } } App.Events.addParagraph(el, r); return el; } function deadlyBirthScene() { const el = document.createElement("p"); const {HeU, heU} = getNonlocalPronouns(V.seeDicks).appendSuffix('U'); let r = []; slaveDead = 1; const babies = slave.pregType > 1 ? `babies` : `baby`; const children = slave.pregType > 1 ? `children` : `child`; r.push(`Feeling childbirth approaching, ${slave.slaveName} is helped to ${his} prepared birthing area.`); switch (slave.assignment) { case Job.GLORYHOLE: r.push(`Since ${he} is unable to leave ${his} box, ${he} doesn't have far to go. ${He} quickly finishes the waiting dick before shifting ${himself} into a slightly, though not by much, more comfortable position. ${He} begins laboring on ${his} ${babies}. However, ${he} soon finds that ${he} is incapable of actually giving birth to ${his} ${children}. As blood begins to seep from ${his} nethers, ${he} desperately tries to get anyone's attention.`); App.Events.addParagraph(el, r); r = []; r.push(`Only after several complaints of a non-functional glory hole is ${he} checked up on. ${His} gravid corpse,`); if (slave.mpreg === 1) { r.push(`asshole`); } else { r.push(`vagina`); } r.push(`agape, is all that remains of the unfortunate ${slave.slaveName}.`); break; case Job.CONFINEMENT: case Job.CELLBLOCK: r.push(`Since ${he} is locked in a cell, ${he} doesn't have far to go. Reluctantly, ${he} begins laboring on ${his} ${babies}. However, ${he} soon finds that ${he} is incapable of actually giving birth to ${his} ${children}. As blood begins to seep from ${his} nethers, ${he} desperately tries to get anyone's attention.`); App.Events.addParagraph(el, r); r = []; r.push(`Only once meal time comes around and food shoved into ${his} cell does anyone think something is amiss. When the food isn't desperately snatched away, ${his} cell is opened and ${he} checked up on. ${His} gravid corpse, propped up in the corner,`); if (slave.mpreg === 1) { r.push(`asshole`); } else { r.push(`vagina`); } r.push(`agape, is all that remains of the unfortunate ${slave.slaveName}.`); break; case Job.ARCADE: r.push(`Or ${he} would have been, if ${he} weren't locked in an arcade cabinet. A gush of liquid pours from the ${slave.slaveName}'s cunt, followed by the attendant in charge of the arcade hanging an "out of order" sign on ${his} exposed rear. While ${his} mouth is filled with a customer's dick, ${his} body instinctively attempts laboring on ${his} ${babies}. However, ${he} soon finds that ${he} is incapable of actually giving birth to ${his} ${children}. As blood begins to seep from ${his} nethers, ${he} desperately tries to get anyone's attention. The attendant rushes to ${his} aid, but fails to get the cabinet open in time to save ${slave.slaveName}. ${He} and ${his} ${children} were an unfortunate loss.`); break; default: r.push(`As ${he} is helped back to ${his} bed and to give birth, ${his} water breaks and ${he} slumps to the ground. As ${his} helper rushes off to find aid, ${he} begins laboring on ${his} ${babies}. However, ${he} soon finds that ${he} is incapable of actually giving birth to ${his} ${children}. As blood begins to seep from ${his} nethers, ${he} desperately tries to get anyone's attention.`); App.Events.addParagraph(el, r); r = []; r.push(`${His} helper arrives with aid far too late.${HeU} screams when ${heU} sees ${slave.slaveName}'s gravid corpse,`); if (slave.mpreg === 1) { r.push(`asshole`); } else { r.push(`vagina`); } r.push(`agape. An unfortunate loss.`); } App.Events.addParagraph(el, r); r.push(deadBabiesResponse(slave.pregType)); return el; } /** * * @param {number} babies the number of babies that just died. */ function deadBabiesResponse(babies) { const el = new DocumentFragment(); if ( babies && V.arcologies[0].FSRestart !== "unset" && slave.breedingMark === 1 && V.propOutcome === 1 && V.eugenicsFullControl !== 1 && (slave.pregSource === -1 || slave.pregSource === -6) ) { const div = document.createElement("div"); div.append(`The ${V.arcologies[0].FSNeoImperialistLaw2 === 1 ? "Barons" : "Societal Elite"} `); App.UI.DOM.appendNewElement("span", div, `are furious `, "red"); div.append(`you would allow an Elite child to perish under your watch`); if (babies > 1) { div.append(`, let alone multiple`); } div.append(`.`); el.append(div); V.failedElite += 100; } return el; } function clothingBirth() { const el = document.createElement("p"); const r = []; let clothesSeed = random(1, 100); let undressed = 0; const babies = slave.pregType > 1 ? `babies` : `baby`; const children = slave.pregType > 1 ? `children` : `child`; const newborns = slave.pregType > 1 ? `newborns` : `newborn`; const UH = (slave.geneticQuirks.uterineHypersensitivity === 2) ? `, convulsing with orgasms in the process` : ``; let babyIntro; if (slave.fetish === "mindbroken") { clothesSeed += 20; } if (isInduced(slave)) { clothesSeed += 90; } switch (slave.bellyAccessory) { case "a corset": clothesSeed += 15; break; case "an extreme corset": clothesSeed += 30; break; case "a support band": clothesSeed += 5; break; } switch (slave.clothes) { case "a sports bra": case "striped panties": case "a scalemail bikini": case "a string bikini": case "a tube top and thong": case "a bra": case "a button-up shirt": case "a sweater": case "a tank-top": case "a thong": case "a tube top": case "a one-piece swimsuit": case "a striped bra": case "a skimpy loincloth": case "a t-shirt": case "a tank-top and panties": case "a t-shirt and thong": case "an oversized t-shirt and boyshorts": case "an oversized t-shirt": case "boyshorts": case "panties": case "sport shorts and a t-shirt": case "a t-shirt and panties": case "panties and pasties": case "pasties": case "striped underwear": case "sport shorts and a sports bra": case "sport shorts": case "a slutty outfit": case "a bimbo outfit": case "a courtesan dress": // easy or pointless to remove if (clothesSeed < 90) { undressed = 1; } break; case "attractive lingerie": case "attractive lingerie for a pregnant woman": case "kitty lingerie": case "spats and a tank top": case "stretch pants and a crop-top": case "a button-up shirt and panties": case "a slutty klan robe": case "a sweater and panties": case "a t-shirt and jeans": case "cutoffs": case "leather pants and pasties": case "leather pants": case "jeans": case "a sweater and cutoffs": case "leather pants and a tube top": case "a chattel habit": case "a fallen nuns habit": case "a huipil": case "a mini dress": case "a toga": case "an apron": case "clubslut netting": case "a leotard": case "a monokini": case "cutoffs and a t-shirt": // easy to remove if (clothesSeed < 80) { undressed = 1; } break; case "a ball gown": case "a burqa": case "a halter top dress": case "a hijab and abaya": case "a maternity dress": case "a niqab and abaya": case "a slave gown": case "a klan robe": case "a gothic lolita dress": case "a hanbok": case "a kimono": case "a biyelgee costume": case "a cheerleader outfit": case "a dirndl": case "a long qipao": case "a schoolgirl outfit": case "a slutty maid outfit": case "a slutty nurse outfit": case "a slutty qipao": case "a succubus outfit": case "harem gauze": case "lederhosen": case "a hijab and blouse": // dresses and etc if (clothesSeed < 60) { undressed = 1; } break; case "a bunny outfit": case "a burkini": case "a comfortable bodysuit": case "a cybersuit": case "a tight Imperial bodysuit": case "a latex catsuit": case "a nice maid outfit": case "a nice nurse outfit": case "battlearmor": case "Imperial Plate": case "battledress": case "conservative clothing": case "nice business attire": case "a nice pony outfit": case "a slutty pony outfit": case "a police uniform": case "a military uniform": case "a mounty outfit": case "a red army uniform": case "a schutzstaffel uniform": case "a slutty schutzstaffel uniform": case "overalls": case "slutty business attire": case "slutty jewelry": case "Western clothing": // getting hard to get out of quickly if (clothesSeed < 40) { undressed = 1; } break; case "chains": case "restrictive latex": case "shibari ropes": case "uncomfortable straps": // very hard to get out of quickly if (clothesSeed < 20) { undressed = 1; } break; } if (slave.broodmother > 0) { if (slave.counter.birthsTotal === 0) { babyIntro = `${his} first baby${UH}`; } else { babyIntro = `this week's baby${UH}`; } } else { babyIntro = `${his} ${babies}${UH}`; } if (undressed === 0 && slave.clothes !== "no clothing" && slave.clothes !== "body oil") { if (slave.fetish === "mindbroken") { r.push(`Instinctively, ${he} begins to push out`); if (slave.broodmother > 0) { if (slave.counter.birthsTotal === 0) { r.push(`${his} first`); } else { r.push(`this week's`); } } else { r.push(his); } } switch (slave.clothes) { case "attractive lingerie": if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to who may be watching. ${His} g-string stretches as ${his} newborn crowns into it before finally snapping and clearing the way for childbirth.`); } else { r.push(`Quickly ${he} spreads ${his} legs apart and shifts ${his} g-string aside before beginning to push out ${babyIntro}. ${He} can't hide what's happening between ${his} legs,`); if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } } break; case "a succubus outfit": case "slutty jewelry": case "a fallen nuns habit": case "harem gauze": case "slutty business attire": case "a slutty maid outfit": case "a slutty nurse outfit": case "a schoolgirl outfit": case "restrictive latex": case "a cheerleader outfit": case "clubslut netting": case "Western clothing": case "a slutty qipao": case "a chattel habit": if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to who may be watching ${his} naked`); if (slave.mpreg === 1) { r.push(`asshole.`); } else { r.push(`crotch.`); } } else { r.push(`Quickly ${he} spreads ${his} legs apart and begins pushing out ${babyIntro}. ${He} can't hide what's happening between ${his} legs,`); if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } } break; case "attractive lingerie for a pregnant woman": case "kitty lingerie": if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to who may be watching. ${His} panties stretch as ${his} baby crowns into them before finally snapping and clearing the way for childbirth.`); } else { r.push(`Quickly ${he} spreads ${his} legs apart and shifts ${his} panties aside before beginning to push out ${babyIntro}. ${He} can't hide what's happening between ${his} legs,`); if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } } break; case "a maternity dress": case "a slave gown": case "a halter top dress": if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to the obvious wetness forming`); if (slave.mpreg === 1) { r.push(`under ${his} rear.`); } else { r.push(`over ${his} crotch.`); } } else { r.push(`Quickly ${he} spreads ${his} legs apart and begins pushing out${babyIntro}.`); if (slave.fetish === "humiliation") { r.push(`${He} is disappointed that ${his} dress hides what's happening between ${his} legs.`); } else { r.push(`${He} does ${his} best to hide what's happening between ${his} legs.`); } } break; case "a string bikini": case "a scalemail bikini": if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to who may be watching. ${His} bikini bottom stretches as ${his} baby crowns into it before finally snapping and clearing the way for childbirth.`); } else { r.push(`Quickly ${he} spreads ${his} legs apart and shifts ${his} bikini bottom aside before beginning to push out ${babyIntro}. ${He} can't hide what's happening between ${his} legs,`); if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } } break; case "striped panties": if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to who may be watching. ${His} panties stretch as ${his} baby crowns into it before finally snapping and clearing the way for childbirth.`); } else { r.push(`Quickly ${he} spreads ${his} legs apart and shifts ${his} panties aside before beginning to push out ${babyIntro}. ${He} can't hide what's happening between ${his} legs,`); if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } } break; case "cutoffs and a t-shirt": if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to who may be watching.`); if (slave.mpreg === 1) { r.push(`The seat of ${his}`); } else { r.push(his); } r.push(`jean cutoffs bulge as ${his} baby crowns into them as ${he} continues ${his} tasks, oblivious to the wetness and ${his} child's dilemma. Seeing ${him} in this state, someone manages to remove ${his} pants to allow ${his} body to finish giving birth.`); } else { r.push(`Quickly ${he} attempts to unfasten ${his} jean cutoffs but fails to do so before having to push out ${babyIntro}. As ${he} crowns into ${his} jeans, ${he} can't hide the wetness and bulge between ${his}`); if (slave.mpreg === 1) { r.push(`buttocks,`); } else { r.push(`legs,`); } if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } r.push(`With a little help, ${he} manages to escape ${his} clothes and finish giving birth.`); } break; case "a slutty outfit": if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to who may be watching. ${His} pasties come off as ${his} baby crowns into it, clearing the way for childbirth.`); } else { r.push(`Quickly ${he} spreads ${his} legs apart and pulls ${his} pasties off before beginning to push out ${babyIntro}. ${He} can't hide what's happening between ${his} legs,`); if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } } break; case "uncomfortable straps": if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to who may be watching. ${His} straps are pushed taut as ${his} baby crowns into the steel ring covering ${his}`); if (slave.mpreg === 1) { r.push(`asshole.`); } else { r.push(`vagina.`); } r.push(`${He} continues ${his} tasks, oblivious to ${his} child's dilemma, until someone manages to cut ${his} straps and allow ${his} body to finish giving birth.`); } else { r.push(`Quickly ${he} attempts to undo ${his} straps but fails to do so before having to push out ${babyIntro}. As ${he} crowns into the steel ring covering ${his}`); if (slave.mpreg === 1) { r.push(`asshole,`); } else { r.push(`vagina,`); } r.push(`${he} can't hide what's happening between ${his} legs,`); if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } r.push(`With a little help, ${he} manages to escape ${his} bindings and finish giving birth.`); } break; case "a penitent nuns habit": if (slave.fetish === "mindbroken") { r.push(`${babies} into ${his} habit, indifferent to their discomfort.`); } else { r.push(`Quickly ${he} spreads ${his} legs apart and begins pushing out ${babyIntro}.`); if (slave.fetish === "humiliation") { r.push(`${He} is disappointed that ${his} habit hides what's happening between ${his} legs.`); } else { r.push(`${He} does ${his} best to hide what's happening between ${his} legs.`); } r.push(`${He} tries to keep ${his} ${newborns} from being chafed by ${his} habit.`); } break; case "nice business attire": if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to the obvious wetness forming`); if (slave.mpreg === 1) { r.push(`under ${his} rear.`); } else { r.push(`over ${his} crotch.`); } } else { r.push(`Quickly ${he} spreads ${his} legs apart and begins pushing out ${babyIntro}.`); if (slave.fetish === "humiliation") { r.push(`${He} is disappointed that ${his} business suit hides what's happening between ${his} legs.`); } else { r.push(`${He} does ${his} best to hide what's happening between ${his} legs.`); } } break; case "stretch pants and a crop-top": if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to the obvious wetness forming`); if (slave.mpreg === 1) { r.push(`under ${his} rear.`); } else { r.push(`over ${his} crotch.`); } if (slave.pregType > 10 && slave.broodmother === 0) { r.push(`Child after child is born into ${his} stretch pants as the`); if (slave.mpreg === 1) { r.push(`seat`); } else { r.push(`front`); } r.push(`distends more and more. With nowhere left to go, ${his} newborns begin to slip down ${his} pantlegs, but that isn't enough to relieve the straining material. With a loud rip, the overburdened garment splits and frees ${his} brood into the world.`); } else if (slave.pregType > 4 && slave.broodmother === 0) { r.push(`Child after child is born into ${his} stretch pants as the`); if (slave.mpreg === 1) { r.push(`seat`); } else { r.push(`front`); } r.push(`distends more and more. With nowhere left to go, ${his} newborns begin to slip down ${his} pantlegs. ${He} struggles to carry on with ${his} task until someone helps free them from their cloth prison.`); } else { r.push(`${He} finishes giving birth and begins anew on ${his} assigned task, ignoring the squirming ${babies} distending the`); if (slave.mpreg === 1) { r.push(`seat`); } else { r.push(`front`); } r.push(`of ${his} stretch pants until someone helps them from their cloth prison.`); } } else { r.push(`Quickly ${he} attempts to pull down ${his} stretch pants but fails to do so before having to push out ${babyIntro}. ${He} can't hide what's happening between ${his} legs as the`); if (slave.mpreg === 1) { r.push(`seat`); } else { r.push(`front`); } r.push(`of ${his} pants bulges as ${his} child crowns,`); if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } r.push(`The tight material stretches as ${his} child is born into it and with a little help they are removed so that ${he} may finish giving birth.`); } break; case "spats and a tank top": if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to the obvious wetness forming`); if (slave.mpreg === 1) { r.push(`under ${his} rear.`); } else { r.push(`over ${his} crotch.`); } r.push(`The material of ${his} spats is too tight to allow ${his} child to fully be born, trapping it in ${his} straining`); if (slave.mpreg === 1) { r.push(`anus.`); } else { r.push(`pussy.`); } r.push(`Ignoring the pain, ${he} begins anew on ${his} assigned task, ${his}`); if (slave.mpreg === 1) { r.push(`pants`); } else { r.push(`crotch`); } r.push(`bulging lewdly, until someone manages to pants ${him}. With the way clear, ${his} ${children}`); if (slave.pregType > 1) { r.push(`promptly slip from ${his} stretched`); } else { r.push(`quickly slips out of ${his} loosened`); } if (slave.mpreg === 1) { r.push(`ass`); } else { r.push(`cunt`); } r.push(`and into the world.`); } else { r.push(`Quickly ${he} attempts to pull down ${his} spats but fails to do so before having to push out ${babyIntro}. ${He} can't hide what's happening between ${his} legs as the bulge in the`); if (slave.mpreg === 1) { r.push(`seat`); } else { r.push(`front`); } r.push(`of ${his} shorts steadily grows as ${his} child crowns,`); if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } r.push(`The material is too tight to allow ${his} child to fully be born, trapping it in ${his} straining`); if (slave.mpreg === 1) { r.push(`anus.`); } else { r.push(`pussy.`); } r.push(`The sensation is far too powerful to allow ${him} to slip ${his} spats down, instead forcing ${him} to the ground where ${he} stays, ass up,`); if (slave.geneticQuirks.uterineHypersensitivity === 2) { r.push(`moaning`); } else { r.push(`sobbing`); } r.push(`into the floor.`); if (slave.pregType > 1 && slave.broodmother !== 1) { r.push(`${His} other ${children}`); if (slave.pregType > 2) { r.push(`refuse`); } else { r.push(`refuses`); } r.push(`to wait and quickly join their sister in birth. ${He} wails in anguish at the ever mounting pressure in ${his}`); if (slave.mpreg === 1) { r.push(`rear,`); } else { r.push(`birth canal,`); } r.push(`until a ripping sound brings ${him} back to ${his} senses. The`); if (slave.mpreg === 1) { r.push(`seat`); } else { r.push(`crotch`); } r.push(`of ${his} pants has begun splitting! ${He} has no time to get to ${his} knees as the combined force of ${his} eager children blow out both ${his}`); if (slave.mpreg === 1) { r.push(`anus`); } else { r.push(`vagina`); } r.push(`and spats on their way into the world.`); } else { r.push(`${He} struggles to push it out, beginning to lose hope, until a ripping sound brings ${him} back to ${his} senses. The`); if (slave.mpreg === 1) { r.push(`seat`); } else { r.push(`crotch`); } r.push(`of ${his} pants has begun splitting! ${He} gets to ${his} knees and pushes with all ${his} might, ${his} child moving little by little as the tear grows larger and larger. Finally ${his} child pops out the hole and the ordeal is over${(slave.broodmother > 0) ? `, for now at least` : ``}.`); } } break; case "a comfortable bodysuit": if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to who may be watching ${his}`); if (slave.mpreg === 1) { r.push(`ass.`); } else { r.push(`crotch.`); } if (slave.pregType > 20 && slave.broodmother === 0) { r.push(`Child after child is born into ${his} bodysuit as the`); if (slave.mpreg === 1) { r.push(`seat`); } else { r.push(`front`); } r.push(`distends more and more. Eventually the squirming mass pulls ${him} to the floor, where ${he} lies, still very much in labor. As the load of newborns reaches the bodysuit's limit, a loud rip sounds out as the overburdened garment splits and frees ${his} brood into the world.`); } else if (slave.pregType > 10 && slave.broodmother === 0) { r.push(`Child after child is born into ${his} bodysuit as the`); if (slave.mpreg === 1) { r.push(`seat`); } else { r.push(`front`); } r.push(`distends more and more. Eventually the squirming mass pulls ${him} to the floor, where ${he} lays until ${he} finishes giving birth. ${He} struggles to get to ${his} feet and carry on with ${his} task until someone helps free them from their nylon prison.`); } else if (slave.pregType > 4 && slave.broodmother === 0) { r.push(`Child after child is born into ${his} bodysuit as the`); if (slave.mpreg === 1) { r.push(`seat`); } else { r.push(`front`); } r.push(`distends more and more. ${He} struggles to carry on with ${his} task with the squirming mass between ${his} legs until someone helps free them from their nylon prison.`); } else { r.push(`${He} finishes giving birth and begins anew on ${his} assigned task, ignoring the squirming ${babies} distending the`); if (slave.mpreg === 1) { r.push(`seat`); } else { r.push(`crotch`); } r.push(`of ${his} bodysuit until someone helps them from their nylon prison.`); } } else { r.push(`Quickly ${he} attempts to remove ${his} bodysuit but fails to do so before having to push out ${babyIntro}. ${He} can't hide what's happening between ${his} legs,`); if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } r.push(`The tight material stretches as ${his} child is born into it and with a little help ${his} child`); if (slave.pregType > 1) { r.push(`is freed from the taut nylon so that ${he} may continue giving birth.`); } else { r.push(`is freed from the taut nylon.`); } } break; case "overalls": if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to who may be watching ${his}`); if (slave.mpreg === 1) { r.push(`ass.`); } else { r.push(`crotch.`); } if (slave.pregType > 30 && slave.broodmother === 0) { r.push(`Child after child is born into ${his} overalls as the`); if (slave.mpreg === 1) { r.push(`seat`); } else { r.push(`front`); } r.push(`distends more and more. Eventually the thick shoulder straps tear apart, and the squirming mass pulls ${him} to the floor, where ${he} lies, still very much in labor. As the load of newborns reaches the garment's limit, a loud rip sounds out as the overstretched fabric splits and frees ${his} brood into the world.`); } else if (slave.pregType > 15 && slave.broodmother === 0) { r.push(`Child after child is born into ${his} overalls as the`); if (slave.mpreg === 1) { r.push(`seat`); } else { r.push(`front`); } r.push(`distends more and more. Eventually the thick shoulder straps tear apart, and the squirming mass pulls ${him} to the floor, where ${he} lays until ${he} finishes giving birth. ${He} struggles to get to ${his} feet and carry on with ${his} task until someone helps free them from their denim prison.`); } else if (slave.pregType > 4 && slave.broodmother === 0) { r.push(`Child after child is born into ${his} overalls as the`); if (slave.mpreg === 1) { r.push(`seat`); } else { r.push(`front`); } r.push(`distends more and more. ${He} struggles to carry on with ${his} task with the squirming mass between ${his} legs until someone helps free them from their denim prison.`); } else { r.push(`${He} finishes giving birth and begins anew on ${his} assigned task, ignoring the squirming ${babies} distending the`); if (slave.mpreg === 1) { r.push(`seat`); } else { r.push(`crotch`); } r.push(`of ${his} overalls until someone helps them from their denim prison.`); } } else { r.push(`Quickly ${he} attempts to remove ${his} overalls but fails to do so before having to push out ${babyIntro}. ${He} can't hide what's happening between ${his} legs,`); if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } r.push(`The tight material stretches as ${his} child is born into it and with a little help ${his} child`); if (slave.pregType > 1) { r.push(`is freed from the tight denim so that ${he} may continue giving birth.`); } else { r.push(`is freed from the tight denim.`); } } break; case "a kimono": if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to the obvious wetness forming`); if (slave.mpreg === 1) { r.push(`under ${his} rear.`); } else { r.push(`over ${his} crotch.`); } } else { r.push(`Quickly ${he} spreads ${his} legs apart and begins pushing out ${babyIntro}.`); if (slave.fetish === "humiliation") { r.push(`${He} is disappointed that ${his} kimono hides what's happening between ${his} legs.`); } else { r.push(`${He} does ${his} best to hide what's happening between ${his} legs.`); } } break; case "a burqa": if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to the obvious wetness forming`); if (slave.mpreg === 1) { r.push(`under ${his} rear.`); } else { r.push(`over ${his} crotch.`); } } else { r.push(`Quickly ${he} spreads ${his} legs apart and begins pushing out ${babyIntro}.`); if (slave.fetish === "humiliation") { r.push(`${He} is disappointed that ${his} burqa hides what's happening between ${his} legs.`); } else { r.push(`${He} does ${his} best to hide what's happening between ${his} legs.`); } } break; case "a hijab and abaya": case "a niqab and abaya": if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to the obvious wetness forming`); if (slave.mpreg === 1) { r.push(`under ${his} rear.`); } else { r.push(`over ${his} crotch.`); } } else { r.push(`Quickly ${he} spreads ${his} legs apart and begins pushing out ${babyIntro}.`); if (slave.fetish === "humiliation") { r.push(`${He} is disappointed that ${his} abaya hides what's happening between ${his} legs.`); } else { r.push(`${He} does ${his} best to hide what's happening between ${his} legs.`); } } break; case "a klan robe": if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to the obvious wetness forming`); if (slave.mpreg === 1) { r.push(`under ${his} rear.`); } else { r.push(`over ${his} crotch.`); } } else { r.push(`Quickly ${he} spreads ${his} legs apart and begins pushing out ${babyIntro}.`); if (slave.fetish === "humiliation") { r.push(`${He} is disappointed that ${his} robe hides what's happening between ${his} legs.`); } else { r.push(`${He} does ${his} best to hide what's happening between ${his} legs.`); } } break; case "a military uniform": case "a red army uniform": case "a hijab and blouse": case "a slutty schutzstaffel uniform": case "a dirndl": case "a biyelgee costume": if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to the obvious wetness forming`); if (slave.mpreg === 1) { r.push(`under ${his} rear.`); } else { r.push(`over ${his} crotch.`); } } else { r.push(`Quickly ${he} spreads ${his} legs apart and begins pushing out ${babyIntro}.`); if (slave.fetish === "humiliation") { r.push(`${He} is disappointed that ${his} skirt hides what's happening between ${his} legs.`); } else { r.push(`${He} does ${his} best to hide what's happening between ${his} legs.`); } } break; case "battledress": if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to who may be watching.`); if (slave.mpreg === 1) { r.push(`The seat of ${his} fatigues`); } else { r.push(`${His} fatigues`); } r.push(`bulge as ${his} baby crowns into them as ${he} continues ${his} tasks oblivious to the wetness and ${his} child's dilemma. Seeing ${him} in this state, someone manages to remove ${his} pants to allow ${his} body to finish giving birth.`); } else { r.push(`Quickly ${he} attempts to unfasten ${his} fatigues but fails to do so before having to push out ${babyIntro}. As ${he} crowns into ${his} pants, ${he} can't hide the wetness and bulge`); if (slave.mpreg === 1) { r.push(`under ${his} rear,`); } else { r.push(`between ${his} legs,`); } if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } r.push(`With a little help, ${he} manages to escape ${his} clothes and finish giving birth.`); } break; case "a nice maid outfit": if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to the obvious wetness forming`); if (slave.mpreg === 1) { r.push(`under ${his} rear.`); } else { r.push(`over ${his} crotch.`); } } else { r.push(`Quickly ${he} spreads ${his} legs apart and begins pushing out ${babyIntro}.`); if (slave.fetish === "humiliation") { r.push(`${He} is disappointed that ${his} maid outfit hides what's happening between ${his} legs.`); } else { r.push(`${He} does ${his} best to hide what's happening between ${his} legs.`); } } break; case "conservative clothing": if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to who may be watching.`); if (slave.mpreg === 1) { r.push(`The seat of ${his} pants`); } else { r.push(`${His} pants`); } r.push(`bulge as ${his} baby crowns into them as ${he} continues ${his} tasks oblivious to the wetness and ${his} child's dilemma. Seeing ${him} in this state, someone manages to remove ${his} pants to allow ${his} body to finish giving birth.`); } else { r.push(`Quickly ${he} attempts to unfasten ${his} pants but fails to do so before having to push out ${babyIntro}. As ${he} crowns into ${his} pants, ${he} can't hide the wetness and bulge between ${his}`); if (slave.mpreg === 1) { r.push(`buttocks,`); } else { r.push(`legs,`); } if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } r.push(`With a little help, ${he} manages to escape ${his} clothes and finish giving birth.`); } break; case "chains": if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to who may be watching. ${His} chains stretch as ${his} baby crowns into them before finally slipping to the side clearing the way for ${his} body to finish giving birth.`); } else { r.push(`Quickly ${he} spreads ${his} legs apart and shifts ${his} chains aside before beginning to push out ${babyIntro}. ${He} can't hide what's happening between ${his} legs,`); if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } } break; case "shibari ropes": if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to who may be watching. ${His} ropes are pulled taut as ${his} baby crowns into the rope covering ${his}`); if (slave.mpreg === 1) { r.push(`asshole.`); } else { r.push(`vagina.`); } r.push(`${He} continues ${his} tasks, oblivious to ${his} child's dilemma, until someone manages to cut ${his} ropes and allow ${his} body to finish giving birth.`); } else { r.push(`Quickly ${he} attempts to undo ${his} ropes but fails to do so before having to push out ${babyIntro}. As ${he} crowns into the rope covering ${his}`); if (slave.mpreg === 1) { r.push(`asshole,`); } else { r.push(`vagina,`); } r.push(`${he} can't hide what's happening between ${his} legs,`); if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } r.push(`With a little help, ${he} manages to escape ${his} bindings and finish giving birth.`); } break; case "a toga": if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to the obvious wetness forming`); if (slave.mpreg === 1) { r.push(`under ${his} rear.`); } else { r.push(`over ${his} crotch.`); } } else { r.push(`Quickly ${he} spreads ${his} legs apart and begins pushing out ${babyIntro}.`); if (slave.fetish === "humiliation") { r.push(`${He} is disappointed that ${his} toga hides what's happening between ${his} legs.`); } else { r.push(`${He} does ${his} best to hide what's happening between ${his} legs.`); } } break; case "a huipil": if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to the obvious wetness forming`); if (slave.mpreg === 1) { r.push(`under ${his} rear.`); } else { r.push(`over ${his} crotch.`); } } else { r.push(`Quickly ${he} spreads ${his} legs apart and begins pushing out ${babyIntro}. ${He} can't hide what's going on with how skimpy the huipil is`); if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } } break; case "a bunny outfit": if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to who may be watching. ${His} teddy bulges as ${his} baby crowns into it as ${he} continues ${his} tasks, oblivious to the wetness and ${his} child's dilemma. Seeing ${him} in this state, someone manages to tear ${his} outfit open to allow ${his} body to finish giving birth.`); } else { r.push(`Quickly ${he} attempts to remove ${his} teddy but fails to do so before having to push out ${babyIntro}. As ${he} crowns into ${his} outfit, ${he} can't hide the wetness and bulge between ${his}`); if (slave.mpreg === 1) { r.push(`buttocks,`); } else { r.push(`legs,`); } if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } r.push(`With a little help, ${he} manages to escape ${his} bunny suit and finish giving birth.`); } break; case "a leotard": if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to who may be watching ${his}`); if (slave.mpreg === 1) { r.push(`crotch.`); } else { r.push(`ass.`); } if (slave.pregType > 30 && slave.broodmother === 0) { r.push(`Child after child is born into ${his} leotard as the`); if (slave.mpreg === 1) { r.push(`seat`); } else { r.push(`front`); } r.push(`distends more and more. Eventually the squirming mass pulls ${him} to the floor, where ${he} lies, still very much in labor. As the load of newborns reaches the leotard's limit, a loud rip sounds out as the overburdened garment splits and frees ${his} brood into the world.`); } else if (slave.pregType > 10 && slave.broodmother === 0) { r.push(`Child after child is born into ${his} leotard as the`); if (slave.mpreg === 1) { r.push(`seat`); } else { r.push(`front`); } r.push(`distends more and more. Eventually the squirming mass pulls ${him} to the floor, where ${he} lays until ${he} finishes giving birth. ${He} struggles to get to ${his} feet and carry on with ${his} task until someone helps free them from their nylon prison.`); } else if (slave.pregType > 4 && slave.broodmother === 0) { r.push(`Child after child is born into ${his} leotard as the`); if (slave.mpreg === 1) { r.push(`seat`); } else { r.push(`front`); } r.push(`distends more and more. ${He} struggles to carry on with ${his} task with the squirming mass between ${his} legs until someone helps free them from their nylon prison.`); } else { r.push(`${He} finishes giving birth and begins anew on ${his} assigned task, ignoring the squirming ${babies} distending the`); if (slave.mpreg === 1) { r.push(`seat`); } else { r.push(`crotch`); } r.push(`of ${his} leotard until someone helps them from their nylon prison.`); } } else { r.push(`Quickly ${he} attempts to remove ${his} leotard but fails to do so before having to push out ${babyIntro}. ${He} can't hide what's happening between ${his} legs,`); if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } r.push(`The tight material stretches as ${his} child is born into it and with a little help ${he}'s freed to finish giving birth.`); } break; case "a burkini": if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to who may be watching ${his}`); if (slave.mpreg === 1) { r.push(`crotch.`); } else { r.push(`ass.`); } if (slave.pregType > 30 && slave.broodmother === 0) { r.push(`Child after child is born into ${his} burkini as the`); if (slave.mpreg === 1) { r.push(`seat`); } else { r.push(`front`); } r.push(`distends more and more. Eventually the squirming mass pulls ${him} to the floor, where ${he} lies, still very much in labor. As the load of newborns reaches the swimsuit's limit, a loud rip sounds out as the overburdened garment splits and frees ${his} brood into the world.`); } else if (slave.pregType > 10 && slave.broodmother === 0) { r.push(`Child after child is born into ${his} burkini as the`); if (slave.mpreg === 1) { r.push(`seat`); } else { r.push(`front`); } r.push(`distends more and more. Eventually the squirming mass pulls ${him} to the floor, where ${he} lays until ${he} finishes giving birth. ${He} struggles to get to ${his} feet and carry on with ${his} task until someone helps free them from their polyester prison.`); } else if (slave.pregType > 4 && slave.broodmother === 0) { r.push(`Child after child is born into ${his} burkini as the`); if (slave.mpreg === 1) { r.push(`seat`); } else { r.push(`front`); } r.push(`distends more and more. ${He} struggles to carry on with ${his} task with the squirming mass between ${his} legs until someone helps free them from their polyester prison.`); } else { r.push(`${He} finishes giving birth and begins anew on ${his} assigned task, ignoring the squirming ${babies} distending the`); if (slave.mpreg === 1) { r.push(`seat`); } else { r.push(`crotch`); } r.push(`of ${his} swimsuit until someone helps them from their polyester prison.`); } } else { r.push(`Quickly ${he} attempts to remove ${his} burkini but fails to do so before having to push out ${babyIntro}. ${He} can't hide what's happening between ${his} legs,`); if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } r.push(`The tight material stretches as ${his} child is born into it and with a little help ${he}'s freed to finish giving birth.`); } break; case "a monokini": if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to who may be watching ${his}`); if (slave.mpreg === 1) { r.push(`crotch.`); } else { r.push(`ass.`); } if (slave.pregType > 30 && slave.broodmother === 0) { r.push(`Child after child is born into ${his} monokini as the`); if (slave.mpreg === 1) { r.push(`seat`); } else { r.push(`front`); } r.push(`distends more and more. Eventually the squirming mass pulls ${him} to the floor, where ${he} lies, still very much in labor. As the load of newborns reaches the swimsuit's limit, a loud rip sounds out as the overburdened garment splits and frees ${his} brood into the world.`); } else if (slave.pregType > 10 && slave.broodmother === 0) { r.push(`Child after child is born into ${his} monokini as the`); if (slave.mpreg === 1) { r.push(`seat`); } else { r.push(`front`); } r.push(`distends more and more. Eventually the squirming mass pulls ${him} to the floor, where ${he} lays until ${he} finishes giving birth. ${He} struggles to get to ${his} feet and carry on with ${his} task until someone helps free them from their nylon prison.`); } else if (slave.pregType > 4 && slave.broodmother === 0) { r.push(`Child after child is born into ${his} monokini as the`); if (slave.mpreg === 1) { r.push(`seat`); } else { r.push(`front`); } r.push(`distends more and more. ${He} struggles to carry on with ${his} task with the squirming mass between ${his} legs until someone helps free them from their nylon prison.`); } else { r.push(`${He} finishes giving birth and begins anew on ${his} assigned task, ignoring the squirming ${babies} distending the`); if (slave.mpreg === 1) { r.push(`seat`); } else { r.push(`crotch`); } r.push(`of ${his} swimsuit until someone helps them from their nylon prison.`); } } else { r.push(`Quickly ${he} attempts to remove ${his} monokini but fails to do so before having to push out ${babyIntro}. ${He} can't hide what's happening between ${his} legs,`); if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } r.push(`The tight material stretches as ${his} child is born into it and with a little help ${he}'s freed to finish giving birth.`); } break; case "a cybersuit": case "a tight Imperial bodysuit": if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to who may be watching ${his}`); if (slave.mpreg === 1) { r.push(`crotch.`); } else { r.push(`ass.`); } if (slave.pregType > 30 && slave.broodmother === 0) { r.push(`Child after child is born into ${his} bodysuit as the`); if (slave.mpreg === 1) { r.push(`seat`); } else { r.push(`front`); } r.push(`distends more and more. Eventually the squirming mass pulls ${him} to the floor, where ${he} lies, still very much in labor. As the load of newborns reaches the bodysuit's limit, a loud rip sounds out as the overburdened garment splits and frees ${his} brood into the world.`); } else if (slave.pregType > 10 && slave.broodmother === 0) { r.push(`Child after child is born into ${his} bodysuit as the`); if (slave.mpreg === 1) { r.push(`seat`); } else { r.push(`front`); } r.push(`distends more and more. Eventually the squirming mass pulls ${him} to the floor, where ${he} lays until ${he} finishes giving birth. ${He} struggles to get to ${his} feet and carry on with ${his} task until someone helps free them from their rubber prison.`); } else if (slave.pregType > 4 && slave.broodmother === 0) { r.push(`Child after child is born into ${his} bodysuit as the`); if (slave.mpreg === 1) { r.push(`seat`); } else { r.push(`front`); } r.push(`distends more and more. ${He} struggles to carry on with ${his} task with the squirming mass between ${his} legs until someone helps free them from their rubber prison.`); } else { r.push(`${He} finishes giving birth and begins anew on ${his} assigned task, ignoring the squirming ${babies} distending the`); if (slave.mpreg === 1) { r.push(`seat`); } else { r.push(`crotch`); } r.push(`of ${his} bodysuit until someone helps them from their rubber prison.`); } } else { r.push(`Quickly ${he} attempts to remove ${his} bodysuit but fails to do so before having to push out ${babyIntro}. ${He} can't hide what's happening between ${his} legs,`); if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } r.push(`The tight material stretches as ${his} child is born into it and with a little help ${he}'s freed to finish giving birth.`); } break; case "a ball gown": if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to the obvious wetness forming`); if (slave.mpreg === 1) { r.push(`under ${his} rear.`); } else { r.push(`over ${his} crotch.`); } } else { r.push(`Quickly ${he} spreads ${his} legs apart and begins pushing out ${babyIntro}.`); if (slave.fetish === "humiliation") { r.push(`${He} is disappointed that ${his} gown hides what's happening between ${his} legs.`); } else { r.push(`${He} does ${his} best to hide what's happening between ${his} legs.`); } } break; case "a latex catsuit": if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to the closed zipper covering ${his}`); if (slave.mpreg === 1) { r.push(`asshole.`); } else { r.push(`vagina.`); } r.push(`As ${his} child bulges the latex around ${his}`); if (slave.mpreg === 1) { r.push(`ass,`); } else { r.push(`pussy,`); } r.push(`someone rushes to try and undo the zipper. They succeed in clearing ${his}`); if (slave.mpreg === 1) { r.push(`anus,`); } else { r.push(`birth canal,`); } r.push(`allowing ${him} to carry on with childbirth.`); } else { r.push(`Quickly ${he} attempts to undo ${his} zipper but fails to do so before having to push out ${babyIntro}. ${He} can't hide what's happening between ${his} legs,`); if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } r.push(`The latex covering ${his}`); if (slave.mpreg === 1) { r.push(`ass`); } else { r.push(`crotch`); } r.push(`bulges as ${his} child is born into it, making it even harder to unzip. As ${he} struggles between the newborn stuck in ${his}`); if (slave.mpreg === 1) { r.push(`asshole`); } else { r.push(`vagina`); } r.push(`and the equally stuck zipper, someone comes to ${his} aid allowing ${him} to finish giving birth.`); } break; case "a schutzstaffel uniform": if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to the obvious wetness forming`); if (slave.mpreg === 1) { r.push(`under ${his} rear.`); } else { r.push(`over ${his} crotch.`); } } else { r.push(`Quickly ${he} attempts to unfasten ${his} trousers but fails to do so before having to push out ${babyIntro}. As ${he} crowns into ${his} pants, ${he} can't hide the wetness and bulge between ${his}`); if (slave.mpreg === 1) { r.push(`buttocks,`); } else { r.push(`legs,`); } if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } r.push(`With a little help, ${he} manages to escape ${his} clothes and finish giving birth.`); } break; case "a long qipao": if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to the obvious wetness forming`); if (slave.mpreg === 1) { r.push(`under ${his} rear.`); } else { r.push(`over ${his} crotch.`); } } else { r.push(`Quickly ${he} spreads ${his} legs apart and begins pushing out ${babyIntro}.`); if (slave.fetish === "humiliation") { r.push(`${He} is disappointed that ${his} dress hides what's happening between ${his} legs.`); } else { r.push(`${He} does ${his} best to hide what's happening between ${his} legs.`); } } break; case "battlearmor": case "Imperial Plate": if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to the obvious wetness forming`); if (slave.mpreg === 1) { r.push(`under ${his} rear.`); } else { r.push(`over ${his} crotch.`); } } else { r.push(`Quickly ${he} attempts to unfasten ${his} armor but fails to do so before having to push out ${babyIntro}. As ${he} crowns into ${his} armor, ${he} can't hide the wetness and bulge between ${his}`); if (slave.mpreg === 1) { r.push(`buttocks,`); } else { r.push(`legs,`); } if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } r.push(`With a little help, ${he} manages to escape ${his} armor and finish giving birth.`); } break; case "a mounty outfit": case "a police uniform": case "leather pants and pasties": case "leather pants": case "jeans": case "leather pants and a tube top": if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to the obvious wetness forming`); if (slave.mpreg === 1) { r.push(`under ${his} rear.`); } else { r.push(`over ${his} crotch.`); } } else { r.push(`Quickly ${he} attempts to unfasten ${his} slacks but fails to do so before having to push out ${babyIntro}. As ${he} crowns into ${his} pants, ${he} can't hide the wetness and bulge between ${his}`); if (slave.mpreg === 1) { r.push(`buttocks,`); } else { r.push(`legs,`); } if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } r.push(`With a little help, ${he} manages to escape ${his} clothes and finish giving birth.`); } break; case "lederhosen": if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to the obvious wetness forming`); if (slave.mpreg === 1) { r.push(`under ${his} rear.`); } else { r.push(`over ${his} crotch.`); } } else { r.push(`Quickly ${he} attempts to unfasten ${his} shorts but fails to do so before having to push out ${babyIntro}. As ${he} crowns into ${his} shorts, ${he} can't hide the wetness and bulge between ${his}`); if (slave.mpreg === 1) { r.push(`buttocks,`); } else { r.push(`legs,`); } if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } r.push(`With a little help, ${he} manages to escape ${his} clothes and finish giving birth.`); } break; case "a nice nurse outfit": case "a t-shirt and jeans": if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to who may be watching.`); if (slave.mpreg === 1) { r.push(`The seat of ${his} trousers`); } else { r.push(`${His} trousers`); } r.push(`bulge as ${his} baby crowns into them as ${he} continues ${his} tasks oblivious to the wetness and ${his} child's dilemma. Seeing ${him} in this state, someone manages to remove ${his} pants to allow ${his} body to finish giving birth.`); } else { r.push(`Quickly ${he} attempts to unfasten ${his} trousers but fails to do so before having to push out ${babyIntro}. As ${he} crowns into ${his} pants, ${he} can't hide the wetness and bulge between ${his}`); if (slave.mpreg === 1) { r.push(`buttocks,`); } else { r.push(`legs,`); } if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } r.push(`With a little help, ${he} manages to escape ${his} clothes and finish giving birth.`); } break; case "a nice pony outfit": if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to who may be watching.`); if (slave.mpreg === 1) { r.push(`The seat of ${his} trousers`); } else { r.push(`${His} trousers`); } r.push(`bulge as ${his} baby crowns into them as ${he} continues ${his} tasks oblivious to the wetness and ${his} child's dilemma. Seeing ${him} in this state, someone manages to remove ${his} pants to allow ${his} body to finish giving birth.`); } else { r.push(`Quickly ${he} attempts to unfasten ${his} leather bodysuit but fails to do so before having to push out ${babyIntro}. As ${he} crowns into ${his} pants, ${he} can't hide the wetness and bulge between ${his}`); if (slave.mpreg === 1) { r.push(`buttocks,`); } else { r.push(`legs,`); } if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } r.push(`With a little help, ${he} manages to escape ${his} clothes and finish giving birth.`); } break; case "a mini dress": case "a Santa dress": if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to the obvious wetness forming`); if (slave.mpreg === 1) { r.push(`under ${his} rear.`); } else { r.push(`over ${his} crotch.`); } } else { r.push(`Quickly ${he} spreads ${his} legs apart and begins pushing out ${babyIntro}.`); if (slave.fetish === "humiliation") { r.push(`${He} is thrilled that ${his} short dress reveals what's happening between ${his} legs.`); } else { r.push(`${He} does ${his} best to hide what's happening between ${his} legs.`); } } break; case "a gothic lolita dress": case "a hanbok": case "a bra": case "a button-up shirt": case "a sweater": case "a tank-top": case "a tube top": case "a striped bra": case "a skimpy loincloth": case "a sports bra": case "a t-shirt": case "an oversized t-shirt": case "pasties": if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to the obvious wetness forming`); if (slave.mpreg === 1) { r.push(`under ${his} rear.`); } else { r.push(`over ${his} crotch.`); } } else { r.push(`Quickly ${he} spreads ${his} legs apart and begins pushing out ${babyIntro}.`); if (slave.fetish === "humiliation") { r.push(`${He} is thrilled that ${his} dress reveals what's happening between ${his} legs.`); } else { r.push(`${He} does ${his} best to hide what's happening between ${his} legs.`); } } break; case "an apron": if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to the obvious wetness forming`); if (slave.mpreg === 1) { r.push(`under ${his} rear.`); } else { r.push(`over ${his} crotch.`); } } else { r.push(`Quickly ${he} spreads ${his} legs apart and begins pushing out ${babyIntro}.`); if (slave.fetish === "humiliation") { r.push(`${He} is thrilled that ${his} frilly apron reveals what's happening between ${his} legs.`); } else { r.push(`${He} does ${his} best to hide what's happening between ${his} legs.`); } } break; case "a button-up shirt and panties": case "a slutty klan robe": case "a slutty pony outfit": case "a sweater and panties": case "a t-shirt and panties": case "a tank-top and panties": case "an oversized t-shirt and boyshorts": case "boyshorts": case "panties": case "panties and pasties": case "striped underwear": if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to the obvious wetness forming`); if (slave.mpreg === 1) { r.push(`under ${his} rear.`); } else { r.push(`over ${his} crotch.`); } } else { r.push(`Quickly ${he} spreads ${his} legs apart and begins pushing out ${babyIntro}.`); if (slave.fetish === "humiliation") { r.push(`${He} is thrilled that ${his} underwear reveals what's happening between ${his} legs.`); } else { r.push(`${He} does ${his} best to hide what's happening between ${his} legs.`); } } break; case "a t-shirt and thong": case "a thong": case "a tube top and thong": case "a bimbo outfit": if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to the thong covering ${his}`); if (slave.mpreg === 1) { r.push(`anus.`); } else { r.push(`vagina.`); } r.push(`${He} crowns into the straining undergarment until the straps give out and clear ${his}`); if (slave.mpreg === 1) { r.push(`anus,`); } else { r.push(`birth canal,`); } r.push(`allowing ${him} to carry on with childbirth.`); } else { r.push(`Quickly ${he} spreads ${his} legs apart, pulls ${his} thong aside, and begins pushing out ${babyIntro}.`); if (slave.fetish === "humiliation") { r.push(`${He} is thrilled that what's happening between ${his} legs is visible for all to see.`); } else { r.push(`${He} does ${his} best to hide what's happening between ${his} legs.`); } } break; case "cutoffs": case "sport shorts and a t-shirt": case "sport shorts and a sports bra": case "a sweater and cutoffs": case "sport shorts": if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to the obvious wetness forming`); if (slave.mpreg === 1) { r.push(`under ${his} rear.`); } else { r.push(`over ${his} crotch.`); } } else { r.push(`Quickly ${he} spreads ${his} legs apart and begins pushing out ${babyIntro}.`); if (slave.fetish === "humiliation") { r.push(`${He} is thrilled that ${his} shorts reveal what's happening between ${his} legs.`); } else { r.push(`${He} does ${his} best to hide what's happening between ${his} legs.`); } } break; case "a one-piece swimsuit": if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to the obvious wetness forming`); if (slave.mpreg === 1) { r.push(`under ${his} rear.`); } else { r.push(`over ${his} crotch.`); } } else { r.push(`Quickly ${he} spreads ${his} legs apart and begins pushing out ${babyIntro}.`); if (slave.fetish === "humiliation") { r.push(`${He} is thrilled that ${his} swimsuit fully reveals what's happening between ${his} legs.`); } else { r.push(`${He} does ${his} best to hide what's happening between ${his} legs.`); } } break; case "a courtesan dress": if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to who may be watching the show under ${his} parted dress.`); } else { r.push(`Quickly ${he} spreads ${his} legs apart, parting ${his} skirt, and begins pushing out ${babyIntro}. ${He} can't hide what's happening between ${his} legs since ${his} dress makes it clear something is going on down there,`); if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } } break; default: if (slave.fetish === "mindbroken") { r.push(`${babies}, indifferent to who may be watching ${his} naked`); if (slave.mpreg === 1) { r.push(`ass.`); } else { r.push(`pussy.`); } } else { r.push(`Quickly ${he} spreads ${his} legs apart and begins pushing out ${babyIntro}. ${He} can't hide what's happening between ${his} legs,`); if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } } } } else if (slave.clothes === "no clothing" || slave.clothes === "body oil") { if (slave.fetish === "mindbroken") { r.push(`Instinctively, ${he} begins to push out`); if (slave.broodmother > 0) { if (slave.counter.birthsTotal === 0) { r.push(`${his} first`); } else { r.push(`this week's`); } } else { r.push(his); } r.push(`${babies}, indifferent to who may be watching ${his} naked`); if (slave.mpreg === 1) { r.push(`ass.`); } else { r.push(`pussy.`); } } else { r.push(`Quickly ${he} spreads ${his} legs apart and begins pushing out ${babyIntro}. ${He} can't hide what's happening between ${his} legs,`); if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } } } else { if (slave.fetish === "mindbroken") { r.push(`${He} removes ${his}`); switch (slave.clothes) { case "a slutty pony outfit": r.push(`slutty pony outfit`); break; case "a slutty klan robe": r.push(`slutty klan robe`); break; case "a police uniform": r.push(`police uniform`); break; case "a nice pony outfit": r.push(`nice pony outfit`); break; case "a hanbok": r.push(`hanbok`); break; case "a gothic lolita dress": r.push(`gothic lolita dress`); break; case "a slutty maid outfit": r.push(`slutty maid outfit`); break; case "a slutty nurse outfit": r.push(`slutty nurse outfit`); break; case "a schoolgirl outfit": r.push(`schoolgirl outfit`); break; case "a cheerleader outfit": r.push(`cheerleader outfit`); break; case "a slutty qipao": r.push(`slutty qipao`); break; case "a chattel habit": r.push(`chattel habit`); break; case "a toga": r.push(`toga`); break; case "a huipil": r.push(`huipil`); break; case "a fallen nuns habit": r.push(`fallen nun's habit`); break; case "a succubus outfit": r.push(`succubus outfit`); break; case "a klan robe": r.push(`klan robe`); break; case "cutoffs and a t-shirt": r.push(`cutoffs and t-shirt`); break; case "a mini dress": r.push(`mini dress`); break; case "a military uniform": r.push(`military uniform`); break; case "a schutzstaffel uniform": r.push(`schutzstaffel uniform`); break; case "a slutty schutzstaffel uniform": r.push(`slutty schutzstaffel uniform`); break; case "a red army uniform": r.push(`red army uniform`); break; case "a long qipao": r.push(`long qipao`); break; case "battlearmor": r.push(`battlearmor`); break; case "Imperial Plate": r.push(`imperial armor `); break; case "a mounty outfit": r.push(`mounty uniform`); break; case "a dirndl": r.push(`dirndl`); break; case "lederhosen": r.push(`lederhosen`); break; case "a biyelgee costume": r.push(`biyelgee costume`); break; case "an apron": r.push(`apron`); break; case "a string bikini": r.push(`string bikini`); break; case "a scalemail bikini": r.push(`scalemail bikini`); break; case "a kimono": r.push(`kimono`); break; case "a slave gown": r.push(`slave gown`); break; case "a hijab and abaya": case "a niqab and abaya": r.push(`abaya`); break; case "a halter top dress": r.push(`halter top dress`); break; case "a ball gown": r.push(`ball gown`); break; case "a maternity dress": r.push(`maternity dress`); break; case "a slutty outfit": r.push(`slutty outfit`); break; case "a nice maid outfit": r.push(`nice maid outfit`); break; case "a leotard": r.push(`leotard`); break; case "a hijab and blouse": r.push(`skirt`); break; case "a burqa": r.push(`burqa`); break; case "a burkini": r.push(`burkini`); break; case "a monokini": r.push(`monokini`); break; case "a cybersuit": r.push(`cybersuit`); break; case "a tight Imperial bodysuit": r.push(`bodysuit`); break; case "a comfortable bodysuit": r.push(`comfortable bodysuit`); break; case "a bunny outfit": r.push(`bunny outfit`); break; case "a nice nurse outfit": r.push(`nice nurse outfit`); break; case "a latex catsuit": r.push(`latex catsuit`); break; case "stretch pants and a crop-top": r.push(`stretch pants`); break; case "spats and a tank top": r.push(`spats`); break; case "a tube top and thong": case "a thong": case "a t-shirt and thong": case "a bimbo outfit": r.push(`thong`); break; case "a button-up shirt and panties": r.push(`panties`); break; case "a bra": r.push(`bra`); break; case "a button-up shirt": r.push(`button-up shirt`); break; case "a sweater": r.push(`sweater`); break; case "a tank-top": r.push(`tank-top`); break; case "a tube top": r.push(`tube top`); break; case "a one-piece swimsuit": r.push(`swimsuit`); break; case "a striped bra": r.push(`bra`); break; case "a skimpy loincloth": r.push(`loincloth`); break; case "a sports bra": r.push(`sports bra`); break; case "a t-shirt": r.push(`t-shirt`); break; case "an oversized t-shirt and boyshorts": r.push(`boy shorts`); break; case "an oversized t-shirt": r.push(`t-shirt`); break; case "a t-shirt and jeans": r.push(`blue jeans`); break; case "boyshorts": r.push(`boy shorts`); break; case "cutoffs": r.push(`jean shorts`); break; case "leather pants and pasties": r.push(`leather pants`); break; case "leather pants": r.push(`leather pants`); break; case "panties": case "a t-shirt and panties": case "panties and pasties": case "striped underwear": case "a tank-top and panties": case "a sweater and panties": r.push(`panties`); break; case "sport shorts and a t-shirt": r.push(`shorts`); break; case "sport shorts and a sports bra": r.push(`shorts`); break; case "jeans": r.push(`blue jeans`); break; case "a sweater and cutoffs": r.push(`jean shorts`); break; case "leather pants and a tube top": r.push(`leather pants`); break; case "sport shorts": r.push(`shorts`); break; case "a Santa dress": r.push(`Santa dress`); break; case "a courtesan dress": r.push(`courtesan dress`); break; default: r.push(`${slave.clothes}`); } r.push(`as instinct takes hold compelling ${him} to begin pushing. ${He} pays no mind to who may be watching ${his} naked`); if (slave.mpreg === 1) { r.push(`rear`); } else { r.push(`crotch`); } r.push(`as`); if (slave.broodmother > 0) { if (slave.counter.birthsTotal === 0) { r.push(`${his} first`); } else { r.push(`this week's`); } r.push(`baby`); } else { r.push(his); if (slave.pregType > 1) { r.push(`first`); } r.push(`baby`); } r.push(`begins to crown.`); } else { r.push(`${He} hastily removes ${his}`); switch (slave.clothes) { case "a slutty pony outfit": r.push(`slutty pony outfit`); break; case "a slutty klan robe": r.push(`slutty klan robe`); break; case "a police uniform": r.push(`police uniform`); break; case "a nice pony outfit": r.push(`nice pony outfit`); break; case "a hanbok": r.push(`hanbok`); break; case "a gothic lolita dress": r.push(`gothic lolita dress`); break; case "a slutty maid outfit": r.push(`slutty maid outfit`); break; case "a slutty nurse outfit": r.push(`slutty nurse outfit`); break; case "a schoolgirl outfit": r.push(`schoolgirl outfit`); break; case "a cheerleader outfit": r.push(`cheerleader outfit`); break; case "a slutty qipao": r.push(`slutty qipao`); break; case "a chattel habit": r.push(`chattel habit`); break; case "a toga": r.push(`toga`); break; case "a huipil": r.push(`huipil`); break; case "a fallen nuns habit": r.push(`fallen nun's habit`); break; case "a succubus outfit": r.push(`succubus outfit`); break; case "a klan robe": r.push(`klan robe`); break; case "cutoffs and a t-shirt": r.push(`cutoffs and t-shirt`); break; case "a mini dress": r.push(`mini dress`); break; case "a military uniform": r.push(`military uniform`); break; case "a schutzstaffel uniform": r.push(`schutzstaffel uniform`); break; case "a slutty schutzstaffel uniform": r.push(`slutty schutzstaffel uniform`); break; case "a red army uniform": r.push(`red army uniform`); break; case "a long qipao": r.push(`long qipao`); break; case "battlearmor": r.push(`battlearmor`); break; case "Imperial Plate": r.push(`imperial armor `); break; case "a mounty outfit": r.push(`mounty uniform`); break; case "a dirndl": r.push(`dirndl`); break; case "lederhosen": r.push(`lederhosen`); break; case "a biyelgee costume": r.push(`biyelgee costume`); break; case "an apron": r.push(`apron`); break; case "a string bikini": r.push(`string bikini`); break; case "a scalemail bikini": r.push(`scalemail bikini`); break; case "a kimono": r.push(`kimono`); break; case "a slave gown": r.push(`slave gown`); break; case "a hijab and abaya": case "a niqab and abaya": r.push(`abaya`); break; case "a halter top dress": r.push(`halter top dress`); break; case "a ball gown": r.push(`ball gown`); break; case "a maternity dress": r.push(`maternity dress`); break; case "a slutty outfit": r.push(`slutty outfit`); break; case "a nice maid outfit": r.push(`nice maid outfit`); break; case "a leotard": r.push(`leotard`); break; case "a hijab and blouse": r.push(`skirt`); break; case "a burqa": r.push(`burqa`); break; case "a burkini": r.push(`burkini`); break; case "a monokini": r.push(`monokini`); break; case "a cybersuit": r.push(`cybersuit`); break; case "a tight Imperial bodysuit": r.push(`bodysuit`); break; case "a comfortable bodysuit": r.push(`comfortable bodysuit`); break; case "a bunny outfit": r.push(`bunny outfit`); break; case "a nice nurse outfit": r.push(`nice nurse outfit`); break; case "a latex catsuit": r.push(`latex catsuit`); break; case "stretch pants and a crop-top": r.push(`stretch pants`); break; case "spats and a tank top": r.push(`spats`); break; case "a tube top and thong": r.push(`thong`); break; case "a button-up shirt and panties": r.push(`panties`); break; case "a bra": r.push(`bra`); break; case "a button-up shirt": r.push(`button-up shirt`); break; case "a sweater": r.push(`sweater`); break; case "a tank-top": r.push(`tank-top`); break; case "a thong": r.push(`thong`); break; case "a tube top": r.push(`tube top`); break; case "a one-piece swimsuit": r.push(`swimsuit`); break; case "a striped bra": r.push(`bra`); break; case "a skimpy loincloth": r.push(`loincloth`); break; case "a sports bra": r.push(`sports bra`); break; case "a sweater and panties": r.push(`panties`); break; case "a t-shirt": r.push(`t-shirt`); break; case "a tank-top and panties": r.push(`panties`); break; case "a t-shirt and thong": r.push(`thong`); break; case "an oversized t-shirt and boyshorts": r.push(`boy shorts`); break; case "an oversized t-shirt": r.push(`t-shirt`); break; case "a t-shirt and jeans": r.push(`blue jeans`); break; case "boyshorts": r.push(`boy shorts`); break; case "cutoffs": r.push(`jean shorts`); break; case "leather pants and pasties": r.push(`leather pants`); break; case "leather pants": r.push(`leather pants`); break; case "panties": r.push(`panties`); break; case "sport shorts and a t-shirt": r.push(`shorts`); break; case "a t-shirt and panties": r.push(`panties`); break; case "panties and pasties": r.push(`panties`); break; case "striped underwear": r.push(`panties`); break; case "sport shorts and a sports bra": r.push(`shorts`); break; case "jeans": r.push(`blue jeans`); break; case "a sweater and cutoffs": r.push(`jean shorts`); break; case "leather pants and a tube top": r.push(`leather pants`); break; case "sport shorts": r.push(`shorts`); break; case "a Santa dress": r.push(`Santa dress`); break; case "a courtesan dress": r.push(`courtesan dress`); break; case "a bimbo outfit": r.push(`thong`); break; default: r.push(`${slave.clothes}`); } r.push(`and tosses it aside. Quickly ${he} spreads ${his} legs and begins pushing out`); if (slave.broodmother > 0) { if (slave.counter.birthsTotal === 0) { r.push(`${his} first`); } else { r.push(`this week's`); } r.push(`baby${UH}.`); } else { r.push(`${his} ${babies}${UH}.`); } r.push(`${He} can't hide what's happening between ${his} legs,`); if (slave.fetish === "humiliation") { r.push(`but that only makes it more exciting.`); } else { r.push(`so ${he} bears with it.`); } } } App.Events.addParagraph(el, r); return el; } }; /** * Sends newborns to incubator or nursery * @param {App.Entity.SlaveState} mom * @param {object[]} babiesBeingBorn ovum objects (FIXME: need defined type) * @returns {object[]} remaining ova */ globalThis.sendNewbornsToFacility = function(mom, babiesBeingBorn) { const remainingBabies = []; for (const ovum of babiesBeingBorn) { if (ovum.reserve === "incubator" && V.tanks.length < V.incubator) { App.Facilities.Incubator.newChild(generateChild(mom, ovum, true)); } else if (ovum.reserve === "nursery" && V.cribs.length < V.nursery) { App.Facilities.Nursery.newChild(generateChild(mom, ovum)); } else { remainingBabies.push(ovum); } } return remainingBabies; };
MonsterMate/fc
src/js/birth/birth.js
JavaScript
mit
515,003
/* checks V.slaves for consistency */ $(document).on(":passagestart", event => { if (event.passage.title !== "AS Dump" // Don't put in the work on passages we leave immediately anyway. && V.slaves !== undefined) { // no V.slaves at game start if (V.slaves.includes(null)) { const p = document.createElement("p"); p.append(App.UI.DOM.makeElement("span", "ERROR: Main slaves array contains a null entry! Please report this. ", "error"), // we can't reload the passage as we could be on a passage that changes the game state. App.UI.DOM.link("Fix for next passage.", () => { V.slaves.delete(null); })); event.content.append(p); } else { // This part would break with a null entry. _(V.slaves).countBy(s => s.ID) .pickBy(count => count > 1) .keys() .map(id => Number(id)) .value() .forEach(id => { event.content.append(App.UI.DOM.makeElement("p", `Duplicate slave ID ${id} at indices ${ _(V.slaves) .map((s, idx) => ({ ID: s.ID, idx: idx, name: s.slaveName, assignment: s.assignment })) .filter(s => s.ID === id) .map(s => `${s.idx}: ${s.name} (${s.assignment})`) .join(', ') }`, "error")); }); } } });
MonsterMate/fc
src/js/consistencyCheck.js
JavaScript
mit
1,215
globalThis.planDeath = function(slave, reason) { slave.death = reason; V.slaveDeath = 1; };
MonsterMate/fc
src/js/death.js
JavaScript
mit
94
globalThis.DJRepBonus = function() { if (!S.DJ) { return 0; } let value = 0; const djIntel = S.DJ.intelligence + S.DJ.intelligenceImplant; if (S.DJ.relationship === -3 && S.DJ.devotion > 50) { value += 0.1; // $He tries $his best to be your energetic, cheerful $wife. } if (!canSee(S.DJ)) { value += 0.15; } if ( S.DJ.skill.entertainment > 10 && S.DJ.skill.entertainment <= 30) { value += 0.05; // $DJ.slaveName's basic skills marginally <span class="green">improve</span> the atmosphere in $clubName. } else if (S.DJ.skill.entertainment <= 60) { value += 0.1; // $DJ.slaveName's skills <span class="green">improve</span> the atmosphere in $clubName. } else if (S.DJ.skill.entertainment < 100) { value += 0.15; // $DJ.slaveName's skills greatly <span class="green">improve</span> the atmosphere in $clubName. } else if (S.DJ.skill.entertainment >= 100) { value += 0.20; // $DJ.slaveName's mastery immensely <span class="green">;improves</span> the atmosphere in $clubName. } if (S.DJ.muscles > 5 && S.DJ.muscles <= 95) { value += 0.05; // $His toned body helps $him lead $his fellow club sluts by letting $him dance all night. } if (djIntel > 15) { value += 0.05 * Math.floor((-0.00008 * djIntel * djIntel) + (0.0337 * djIntel) + 0.5); // $He's smart enough to make an actual contribution to the music, greatly enhancing the entire experience. } if (S.DJ.face > 95) { value += 0.05; // $His great beauty is a further draw, even when $he's in $his DJ booth, but especially when $he comes out to dance. } if (setup.DJCareers.includes(S.DJ.career)) { value += 0.05; // $He has musical experience from $his life before $he was a slave, a grounding that gives $his tracks actual depth. } else if (S.DJ.skill.DJ >= V.masteredXP) { value += 0.05; // $He has musical experience from working for you, giving $his tracks actual depth. } return value; }; globalThis.CategoryAssociatedGroup = Object.freeze({ PENTHOUSE: [ 'slaveAssignmentRest', 'slaveAssignmentRestVign', 'slaveAssignmentFucktoy', 'slaveAssignmentClasses', 'slaveAssignmentHouse', 'slaveAssignmentWhore', 'slaveAssignmentWhoreVign', 'slaveAssignmentPublic', 'slaveAssignmentPublicVign', 'slaveAssignmentSubordinate', 'slaveAssignmentMilked', 'slaveAssignmentMilkedVign', 'slaveAssignmentExtraMilk', 'slaveAssignmentExtraMilkVign', 'slaveAssignmentGloryhole', 'slaveAssignmentConfinement', 'slaveAssignmentChoice' ], HEADGIRLSUITE: [ 'slaveAssignmentHeadgirl', 'slaveAssignmentHeadgirlsuite' ], RECRUITER: [ 'slaveAssignmentRecruiter' ], DOJO: [ 'slaveAssignmentBodyguard' ], MASTERSUITE: [ 'masterSuite', 'slaveAssignmentConcubine', 'slaveAssignmentMastersuite' ], AGENT: [ 'slaveAssignmentAgent', 'slaveAssignmentAgentPartner' ], ARCADE: [ 'arcade', 'slaveAssignmentArcade' ], BROTHEL: [ 'brothel', 'slaveAssignmentMadam', 'slaveAssignmentMadamVign', 'slaveAssignmentBrothel', 'slaveAssignmentBrothelVign', 'brothelAds' ], CELLBLOCK: [ 'cellblock', 'slaveAssignmentWarden', 'slaveAssignmentCellblock' ], CLUB: [ 'club', 'slaveAssignmentDj', 'slaveAssignmentDjVign', 'slaveAssignmentClub', 'slaveAssignmentClubVign', 'clubAds' ], CLINIC: [ 'clinic', 'slaveAssignmentNurse', 'slaveAssignmentClinic' ], DAIRY: [ 'dairy', 'slaveAssignmentMilkmaid', 'slaveAssignmentDairy', 'slaveAssignmentDairyVign' ], FARMYARD: [ 'farmyard', 'slaveAssignmentFarmer', 'slaveAssignmentFarmyard', 'slaveAssignmentFarmyardVign', ], INCUBATOR: [ 'incubator', 'incubatorSlaves' ], NURSERY: [ 'nursery', 'slaveAssignmentMatron', 'slaveAssignmentNursery', 'slaveAssignmentNurseryVign' ], PIT: [ 'pit' ], PROSTHETICLAB: [ 'lab', 'labResearch', 'labScientists', 'labMenials' ], SCHOOLROOM: [ 'school', 'slaveAssignmentTeacher', 'slaveAssignmentSchool' ], SERVANTSQUARTERS: [ 'servantsQuarters', 'slaveAssignmentSteward', 'slaveAssignmentQuarter', 'slaveAssignmentQuarterVign' ], SPA: [ 'spa', 'slaveAssignmentAttendant', 'slaveAssignmentSpa' ], SLAVES: [ 'porn', 'slaveMod', 'slaveSurgery', 'birth' ], LABOR: [ 'menialTrades', 'fuckdolls', 'menialBioreactors' ], FLIPPING: [ 'slaveTransfer', 'menialTransfer', 'fuckdollsTransfer', 'menialBioreactorsTransfer', 'menialTransferA', 'fuckdollsTransferA', 'menialBioreactorsTransferA', 'menialRetirement', 'labScientistsTransfer', 'babyTransfer' ], FINANCIALS: [ 'weather', 'rents', 'fines', 'event', 'capEx', 'futureSocieties', 'schoolBacking', 'war', 'cheating' ], POLICIES: [ 'policies', 'subsidiesAndBarriers' ], EDICTS: [ 'edicts' ], PERSONALFINANCE: [ 'personalBusiness', 'personalLivingExpenses', 'PCSkills', 'PCtraining', 'PCmedical', 'citizenOrphanage', 'privateOrphanage', 'stocks', 'stocksTraded' ], SECURITY: [ 'mercenaries', 'securityExpansion', 'specialForces', 'specialForcesCap', 'peacekeepers' ] }); globalThis.calculateCosts = (function() { return { predict: predictCost, bill: getCost, }; function predictCost() { let totalCosts = ( getBrothelCosts() + getBrothelAdsCosts() + getArcadeCosts() + getClubCosts() + getClubAdsCosts() + getDairyCosts() + getIncubatorCosts() + getIncubatorSlavesCosts() + getServantsQuartersCosts() + getMasterSuiteCosts() + getNurseryCosts() + getFarmyardCosts() + getSecurityExpansionCost() + getLifestyleCosts() + getFSCosts() + getCitizenOrphanageCosts() + getPrivateOrphanageCosts() + getPeacekeeperCosts() + getMercenariesCosts() + getMenialRetirementCosts() + getRecruiterCosts() + getSchoolCosts() + getPolicyCosts() + getLabCosts() + getLabScientistsCosts() + getLabMenialsCosts() + getPCTrainingCosts() + getPCCosts() + predictTotalSlaveCosts() ); // these two apply a multiplicative effect to all costs so far. totalCosts = getEnvironmentCosts(totalCosts); totalCosts = getPCMultiplierCosts(totalCosts); // in the old order these were applied after multiplication. Not sure if deliberate, but I'm leaving it for now. totalCosts += getSFCosts() + getWeatherCosts(); /* // clean up if (totalCosts > 0) { totalCosts = 0; } else { totalCosts = Math.ceil(totalCosts); } */ return totalCosts; } function getCost() { const oldCash = V.cash; cashX(forceNeg(getBrothelCosts()), "brothel"); cashX(forceNeg(getBrothelAdsCosts()), "brothelAds"); cashX(forceNeg(getArcadeCosts()), "arcade"); cashX(forceNeg(getClubCosts()), "club"); cashX(forceNeg(getClubAdsCosts()), "clubAds"); cashX(forceNeg(getDairyCosts()), "dairy"); cashX(forceNeg(getIncubatorCosts()), "incubator"); cashX(forceNeg(getIncubatorSlavesCosts()), "incubatorSlaves"); cashX(forceNeg(getServantsQuartersCosts()), "servantsQuarters"); cashX(forceNeg(getMasterSuiteCosts()), "masterSuite"); cashX(forceNeg(getNurseryCosts()), "nursery"); cashX(forceNeg(getFarmyardCosts()), "farmyard"); cashX(forceNeg(getSecurityExpansionCost()), "securityExpansion"); cashX(forceNeg(getLifestyleCosts()), "personalLivingExpenses"); cashX(forceNeg(getFSCosts()), "futureSocieties"); cashX(forceNeg(getCitizenOrphanageCosts()), "citizenOrphanage"); cashX(forceNeg(getPrivateOrphanageCosts()), "privateOrphanage"); cashX(forceNeg(getPeacekeeperCosts()), "peacekeepers"); cashX(forceNeg(getMercenariesCosts()), "mercenaries"); cashX(forceNeg(getMenialRetirementCosts()), "menialRetirement"); cashX(forceNeg(getRecruiterCosts()), "slaveAssignmentRecruiter"); cashX(forceNeg(getSchoolCosts()), "schoolBacking"); cashX(forceNeg(getPolicyCosts()), "policies"); cashX(forceNeg(getLabCosts()), "lab"); cashX(forceNeg(getLabScientistsCosts()), "labScientists"); cashX(forceNeg(getLabMenialsCosts()), "labMenials"); cashX(forceNeg(getPCTrainingCosts()), "PCtraining"); cashX(forceNeg(getPCCosts()), "PCmedical"); getTotalSlaveCosts(); // these two apply a multiplicative effect to all costs so far. // Calculate what the deduced expenses would be, then subtract let costSoFar = (oldCash - V.cash); // How much we have spent by this point; expected to be positive. cashX(costSoFar - getEnvironmentCosts(costSoFar), "environment"); // getEnv takes total costs and makes it worse. Figure out how much worse and record it costSoFar = (oldCash - V.cash); cashX(costSoFar - getPCMultiplierCosts(costSoFar), "PCskills"); // in the old order these were applied after multiplication. Not sure if deliberate, but I'm leaving it for now. cashX(forceNeg(getSFCosts()), "specialForces"); cashX(forceNeg(getWeatherCosts()), "weather"); return (oldCash - V.cash); } // slave expenses function predictTotalSlaveCosts() { let loopCosts = 0; let number = 0; for (const slave of V.slaves) { loopCosts += getSlaveCost(slave); } const reducibleUpkeep = Math.trunc(loopCosts * 0.2); App.Utils.jobForAssignment(Job.QUARTER).employees().forEach( s => { number += getSlaveMinorCosts(s); }); App.Utils.jobForAssignment(Job.HOUSE).employees().forEach(s => { number += getSlaveMinorCosts(s); }); if (V.slaves.length > number) { loopCosts -= Math.trunc(reducibleUpkeep / V.slaves.length * number); } else { loopCosts -= reducibleUpkeep; } return loopCosts; } function getTotalSlaveCosts() { let slaveCost = 0; let slaveCostMinor = 0; let numberServed = 0; let loopCosts = 0; // Figure out how many slaves are effectively getting their upkeep reduced by 20% App.Utils.jobForAssignment(Job.QUARTER).employees().forEach(s => { numberServed += getSlaveMinorCosts(s); }); App.Utils.jobForAssignment(Job.HOUSE).employees().forEach(s => { numberServed += getSlaveMinorCosts(s); }); /* Implement a system that calculates and subtracts slave upkeep per assignment // Find the total slave upkeep and pay for it for (const slave of V.slaves) { slaveCost = getSlaveCost(slave); loopCosts += slaveCost; cashX(forceNeg(slaveCost), "slaveUpkeep", slave); } */ // Find the total slave upkeep, calculate and subtract per assignment for (const slave of V.slaves) { slaveCost = getSlaveCost(slave); loopCosts += slaveCost; // Switch to subtract and track upkeep per assignment switch (slave.assignment) { // Penthouse Assignments case Job.REST: cashX(forceNeg(slaveCost), "slaveAssignmentRest", slave); break; case Job.FUCKTOY: cashX(forceNeg(slaveCost), "slaveAssignmentFucktoy", slave); break; case Job.CLASSES: cashX(forceNeg(slaveCost), "slaveAssignmentClasses", slave); break; case Job.HOUSE: cashX(forceNeg(slaveCost), "slaveAssignmentHouse", slave); break; case Job.WHORE: cashX(forceNeg(slaveCost), "slaveAssignmentWhore", slave); break; case Job.PUBLIC: cashX(forceNeg(slaveCost), "slaveAssignmentPublic", slave); break; case Job.SUBORDINATE: cashX(forceNeg(slaveCost), "slaveAssignmentSubordinate", slave); break; case Job.MILKED: cashX(forceNeg(slaveCost), "slaveAssignmentMilked", slave); break; case Job.GLORYHOLE: cashX(forceNeg(slaveCost), "slaveAssignmentGloryhole", slave); break; case Job.CONFINEMENT: cashX(forceNeg(slaveCost), "slaveAssignmentConfinement", slave); break; // Leadership Assignments case Job.BODYGUARD: cashX(forceNeg(slaveCost), "slaveAssignmentBodyguard", slave); break; case Job.HEADGIRL: cashX(forceNeg(slaveCost), "slaveAssignmentHeadgirl", slave); break; case Job.RECRUITER: cashX(forceNeg(slaveCost), "slaveAssignmentRecruiter", slave); break; case Job.AGENT: cashX(forceNeg(slaveCost), "slaveAssignmentAgent", slave); break; case Job.AGENTPARTNER: cashX(forceNeg(slaveCost), "slaveAssignmentAgentPartner", slave); break; // Facility Assignments case Job.ARCADE: cashX(forceNeg(slaveCost), "slaveAssignmentArcade", slave); break; case Job.MADAM: cashX(forceNeg(slaveCost), "slaveAssignmentMadam", slave); break; case Job.BROTHEL: cashX(forceNeg(slaveCost), "slaveAssignmentBrothel", slave); break; case Job.WARDEN: cashX(forceNeg(slaveCost), "slaveAssignmentWarden", slave); break; case Job.CELLBLOCK: cashX(forceNeg(slaveCost), "slaveAssignmentCellblock", slave); break; case Job.DJ: cashX(forceNeg(slaveCost), "slaveAssignmentDj", slave); break; case Job.CLUB: cashX(forceNeg(slaveCost), "slaveAssignmentClub", slave); break; case Job.NURSE: cashX(forceNeg(slaveCost), "slaveAssignmentNurse", slave); break; case Job.CLINIC: cashX(forceNeg(slaveCost), "slaveAssignmentClinic", slave); break; case Job.MILKMAID: cashX(forceNeg(slaveCost), "slaveAssignmentMilkmaid", slave); break; case Job.DAIRY: cashX(forceNeg(slaveCost), "slaveAssignmentDairy", slave); break; case Job.FARMER: cashX(forceNeg(slaveCost), "slaveAssignmentFarmer", slave); break; case Job.FARMYARD: cashX(forceNeg(slaveCost), "slaveAssignmentFarmyard", slave); break; case Job.HEADGIRLSUITE: cashX(forceNeg(slaveCost), "slaveAssignmentHeadgirlsuite", slave); break; case Job.CONCUBINE: cashX(forceNeg(slaveCost), "slaveAssignmentConcubine", slave); break; case Job.MASTERSUITE: cashX(forceNeg(slaveCost), "slaveAssignmentMastersuite", slave); break; case Job.MATRON: cashX(forceNeg(slaveCost), "slaveAssignmentMatron", slave); break; case Job.NURSERY: cashX(forceNeg(slaveCost), "slaveAssignmentNursery", slave); break; case Job.TEACHER: cashX(forceNeg(slaveCost), "slaveAssignmentTeacher", slave); break; case Job.SCHOOL: cashX(forceNeg(slaveCost), "slaveAssignmentSchool", slave); break; case Job.STEWARD: cashX(forceNeg(slaveCost), "slaveAssignmentSteward", slave); break; case Job.QUARTER: cashX(forceNeg(slaveCost), "slaveAssignmentQuarter", slave); break; case Job.ATTENDANT: cashX(forceNeg(slaveCost), "slaveAssignmentAttendant", slave); break; case Job.SPA: cashX(forceNeg(slaveCost), "slaveAssignmentSpa", slave); break; case Job.BABY_FACTORY: cashX(forceNeg(slaveCost), "slaveAssignmentBaby_factory", slave); break; case Job.CHOICE: cashX(forceNeg(slaveCost), "slaveAssignmentChoice", slave); break; default: cashX(forceNeg(slaveCost), "slaveAssignmentUndefined", slave); break; } } // Calculate the servant reduction and credit them for it const reducibleUpkeep = Math.trunc(loopCosts * 0.2); App.Utils.jobForAssignment(Job.QUARTER).employees().forEach(s => { if (V.slaves.length > numberServed) { slaveCostMinor = Math.trunc(reducibleUpkeep / V.slaves.length * getSlaveMinorCosts(s)); cashX(Math.abs(slaveCostMinor), "slaveAssignmentQuarter", s); } else { slaveCostMinor = Math.trunc(reducibleUpkeep / numberServed * getSlaveMinorCosts(s)); cashX(Math.abs(slaveCostMinor), "slaveAssignmentQuarter", s); } }); App.Utils.jobForAssignment(Job.HOUSE).employees().forEach(s => { if (V.slaves.length > numberServed) { slaveCostMinor = Math.trunc(reducibleUpkeep / V.slaves.length * getSlaveMinorCosts(s)); cashX(Math.abs(slaveCostMinor), "slaveAssignmentHouse", s); } else { slaveCostMinor = Math.trunc(reducibleUpkeep / numberServed * getSlaveMinorCosts(s)); cashX(Math.abs(slaveCostMinor), "slaveAssignmentHouse", s); } }); // nothing to return, cashX already billed. } // facility expenses function getBrothelCosts() { return (1 + 0.1 * V.brothelUpgradeDrugs) * (V.brothel * V.facilityCost); } function getBrothelAdsCosts() { return (V.brothel > 0) ? V.brothelAdsSpending : 0; } function getArcadeCosts() { const healthUpgrade = V.arcadeUpgradeHealth >= 0 ? V.arcadeUpgradeHealth : 0; return (0.05 + (0.02 * V.arcadeUpgradeInjectors) + (0.05 * V.arcadeUpgradeCollectors) + (0.02 * healthUpgrade)) * (V.arcade * V.facilityCost); } function getClubCosts() { const initCosts = (V.club * V.facilityCost) + (0.2 * V.clubUpgradePDAs * V.club * V.facilityCost); return (V.club > 0) ? initCosts + V.clubAdsSpending : initCosts; } function getClubAdsCosts() { return (V.club > 0) ? V.clubAdsSpending : 0; } function getDairyCosts() { const facDairyMultiplier = V.facilityCost * V.dairy; let costs = facDairyMultiplier + (0.2 * V.dairyFeedersUpgrade + 0.1 * V.dairyPregUpgrade) * facDairyMultiplier + (0.2 * V.dairyStimulatorsUpgrade * V.facilityCost); if (V.dairy > 0) { costs += ((V.bioreactorsXY + V.bioreactorsXX + V.bioreactorsHerm + V.bioreactorsBarren) * 100); } return costs; } function getIncubatorCosts() { let costs = 0; if (V.incubator > 0) { costs += ((V.incubatorWeightSetting + V.incubatorMusclesSetting + V.incubatorReproductionSetting + V.incubatorGrowthStimsSetting) * 500); if (V.incubatorUpgradePregAdaptation === 1) { costs += 5000 * V.incubator; } } return costs; } function getIncubatorSlavesCosts() { const facIncMultiplier = V.facilityCost * V.incubator; let costs = (facIncMultiplier * 10); costs += (0.2 * V.incubatorUpgradeWeight + 0.2 * V.incubatorUpgradeMuscles + 0.2 * V.incubatorUpgradeReproduction + 0.2 * V.incubatorUpgradeGrowthStims + 0.5 * V.incubatorUpgradeSpeed) * facIncMultiplier; return costs; } function getServantsQuartersCosts() { return (0.2 * V.servantsQuartersUpgradeMonitoring * V.servantsQuarters * V.facilityCost); } function getMasterSuiteCosts() { let costs = 0; if (V.masterSuitePregnancySlaveLuxuries === 1) { costs += 500; } if (V.masterSuitePregnancyFertilitySupplements === 1) { costs += 1000; } return costs; } function getNurseryCosts() { return (V.nursery * V.facilityCost); } function getFarmyardCosts() { const facility = V.farmyard*V.facilityCost; return ( ( (facility) +(0.1*V.farmyardUpgrades.fertilizer*facility) -(0.2*V.farmyardUpgrades.hydroponics*facility) +(0.2*V.farmyardUpgrades.seeds*facility) -(0.4*V.farmyardUpgrades.machinery*facility) )*2 ); } // security expansion function getSecurityExpansionCost() { let secExpCost = 0, soldierMod = 1.5; // V.SecExp.edicts.defense.soldierWages === 1 if (V.secExpEnabled > 0) { secExpCost += App.SecExp.upkeep.edictsCash(); secExpCost += App.SecExp.upkeep.SF(); secExpCost += App.SecExp.upkeep.buildings(); if (V.SecExp.edicts.defense.soldierWages === 0) { soldierMod = 1; } else if (V.SecExp.edicts.defense.soldierWages === 2) { soldierMod = 2; } const militiaUnits = V.militiaUnits.length, slaveUnits = V.slaveUnits.length, mercUnits = V.mercUnits.length; // predefined for optimization const soldierUpkeep = 10; if (V.militiaUnits !== null) { for (let i = 0; i < militiaUnits; i++) { if (V.militiaUnits[i] !== null) { secExpCost += V.militiaUnits[i].troops * soldierUpkeep * soldierMod; } } } if (V.slaveUnits !== null) { for (let i = 0; i < slaveUnits; i++) { if (V.slaveUnits[i] !== null) { secExpCost += V.slaveUnits[i].troops * soldierUpkeep * 0.5 * soldierMod; } } } if (V.mercUnits !== null) { for (let i = 0; i < mercUnits; i++) { if (V.mercUnits[i] !== null) { secExpCost += V.mercUnits[i].troops * soldierUpkeep * 1.5 * soldierMod; } } } } return secExpCost; } // general arcology costs function getLifestyleCosts() { let ownerExpense = 1; if (V.PC.rules.living === "luxurious") { ownerExpense = 3; } else if (V.PC.rules.living === "normal") { ownerExpense = 2; } return (ownerExpense * (250 + (50000 / V.localEcon))); } function getFSCosts() { let costs = V.FSSpending; if (V.arcologies[0].FSRepopulationFocusLaw === 1 && V.PC.pregKnown === 1) { costs -= 500; } return costs; } function getCitizenOrphanageCosts() { return V.citizenOrphanageTotal * 100; } function getPrivateOrphanageCosts() { const costs = V.privateOrphanageTotal * 500; return (V.breederOrphanageTotal > 0) ? costs + 50 : costs; } function getPeacekeeperCosts() { return (V.peacekeepers !== 0 && V.peacekeepers.undermining !== 0) ? V.peacekeepers.undermining : 0; } function getMercenariesCosts() { let costs = 0; let mercCosts = V.mercenaries * 2000; if (V.mercenaries > 0) { if (V.barracks) { mercCosts *= 0.5; } if ((V.PC.skill.warfare >= 100) || (V.PC.career === 'arcology owner')) { mercCosts *= 0.5; } costs += mercCosts; } return costs; } function getMenialRetirementCosts() { return (V.policies.retirement.menial2Citizen === 1) ? V.menials * 2 : 0; } // policy and other expenses function getRecruiterCosts() { return V.RecruiterID ? 250 : 0; } function getSchoolCosts() { let costs = 0; for (const school of App.Data.misc.schools.keys()) { if (school === 'TFS') { if (V[school].subsidize === 1 && ((V.PC.dick === 0) || (V.PC.vagina === -1) || (V.PC.boobs < 300))) { costs += 1000; } } else { if (V[school].subsidize === 1) { costs += 1000; } } } return costs; } function getPolicyCosts() { let costs = 0; if (V.policies.alwaysSubsidizeGrowth === 1) { costs += policies.cost(); } if (V.policies.alwaysSubsidizeRep === 1) { costs += policies.cost(); } if (V.policies.regularParties === 1) { costs += policies.cost(); } if (V.policies.immigrationCash === 1) { costs += policies.cost(); } if (V.policies.coursingAssociation === 1) { costs += 1000; } return costs; } function getLabCosts() { return (100 * V.researchLab.maxSpace); } function getLabScientistsCosts() { return (300 * V.researchLab.hired); } function getLabMenialsCosts() { return (100 * V.researchLab.menials); } // player expenses function getPCTrainingCosts() { const PA = Object.values(PersonalAttention); const currentPA = V.personalAttention; let costs = 0; if (V.PC.actualAge >= V.IsInPrimePC && V.PC.actualAge < V.IsPastPrimePC) { if (PA.includes(currentPA) && currentPA !== PersonalAttention.MAID && currentPA !== PersonalAttention.SUPPORTHG) { costs += 10000 * V.AgeEffectOnTrainerPricingPC; } } return costs; } function getPCCosts() { let costs = 0; if (V.PC.preg === -1) { costs += 25; } else if (V.PC.fertDrugs === 1) { costs += 50; } else if (V.PC.preg >= 16) { costs += 100; } if (V.PC.staminaPills === 1) { costs += 50; } return costs; } function getPCMultiplierCosts(cost) { if (V.PC.career === 'servant') { if (V.personalAttention === PersonalAttention.MAID) { if (V.PC.belly >= 5000) { cost *= 0.80; } else { cost *= 0.75; } } else { cost *= 0.9; } } return cost; } function getEnvironmentCosts(cost = 0) { if (V.secExpEnabled > 0 && V.SecExp.buildings.transportHub) { cost *= (1 - V.SecExp.buildings.transportHub.surfaceTransport * 0.05); } return Math.trunc(cost); } function getSFCosts() { if (V.SF.Toggle && V.SF.Active >= 1) { return App.SF.AAR(0); } return 0; } function getWeatherCosts() { let costs = 0; if (V.econWeatherDamage && V.disasterResponse > 0) { costs += Math.trunc(V.disasterResponse * 200000 / V.localEcon); } if (V.antiWeatherFreeze > 0) { costs += Math.trunc(V.antiWeatherFreeze * 200000 / V.localEcon); } return costs; } /** * The amount of slaves served by a servant * @param {App.Entity.SlaveState} slave */ function getSlaveMinorCosts(slave) { let effectiveness = 0; if (slave.trust < -20) { effectiveness = 80; } else if (slave.devotion < -20) { effectiveness += (slave.trust >= 20) ? 25 : 50; } else if (slave.devotion <= 20) { effectiveness = 65; } else if (slave.devotion <= 50) { effectiveness = 80; } else { effectiveness = 100; } if (slave.fetish === 'submissive') { effectiveness *= 1.1; } else if (slave.fetish === 'dom') { effectiveness *= 0.9; } if (slave.relationship < -1) { effectiveness *= 1.1; } if (slave.energy < 20) { effectiveness *= 1.1; } else if (slave.energy < 40) { effectiveness *= 1.05; } if (slave.lactation > 0) { effectiveness *= 1.025; } if (slave.assignment === Job.QUARTER) { effectiveness *= 1.1; } if (setup.servantCareers.includes(slave.career) || slave.skill.servant >= V.masteredXP) { effectiveness *= 1.1; } effectiveness = Math.trunc(effectiveness * restEffects(slave) / 10); return effectiveness; } })(); /** * @param {App.Entity.SlaveState} s * @returns {Array<{text:string, value:number}>} */ globalThis.getSlaveCostArray = function(s) { if (!s) { // @ts-ignore return 0; } // Data duplicated from Cost Report let cost = 0; let retval = []; let t = ""; const rulesCost = V.rulesCost; const foodCost = V.foodCost; const drugsCost = V.drugsCost; // Living expenses switch (s.assignment) { case Job.ARCADE: cost += rulesCost * 0.75; break; case Job.DAIRY: if (V.dairyRestraintsSetting >= 2) { cost += rulesCost * 0.75; } else if (s.rules.living === LivingRule.NORMAL) { cost += rulesCost * 1.5; } else if (V.dairyDecoration === 'Degradationist') { cost += rulesCost * 0.90; } else { cost += rulesCost; } break; case Job.FARMYARD: if (s.rules.living === LivingRule.NORMAL) { cost += rulesCost * 1.5; } else if (V.farmyardDecoration === 'Roman Revivalist') { cost += rulesCost * 1.5; } else { cost += rulesCost; } break; case Job.BROTHEL: cost += (s.rules.living === LivingRule.NORMAL) ? rulesCost * 1.5 : rulesCost; break; case Job.SCHOOL: case Job.CLUB: cost += rulesCost * 1.5; break; case Job.CLINIC: if (s.rules.living === LivingRule.LUXURIOUS) { cost += rulesCost * 2; } else if (s.rules.living === LivingRule.NORMAL) { cost += rulesCost * 1.5; } else { cost += rulesCost; } break; case Job.SPA: case Job.NURSERY: if (s.rules.living === LivingRule.LUXURIOUS) { cost += rulesCost * 1.75; } else if (s.rules.living === LivingRule.NORMAL) { cost += rulesCost * 1.5; } else { cost += rulesCost; } break; case Job.QUARTER: if (s.rules.living === LivingRule.NORMAL) { cost += rulesCost * 1.5; } else { cost += (V.servantsQuartersDecoration === 'Degradationist') ? rulesCost * 0.90 : rulesCost; } break; case Job.CELLBLOCK: cost += (s.rules.living === LivingRule.NORMAL) ? rulesCost * 1.25 : rulesCost * 0.90; break; case Job.MADAM: case Job.DJ: case Job.NURSE: case Job.WARDEN: case Job.ATTENDANT: case Job.STEWARD: case Job.MILKMAID: case Job.FARMER: case Job.TEACHER: case Job.MATRON: cost += rulesCost * 2; break; default: if (s.rules.living === LivingRule.LUXURIOUS) { cost += rulesCost * (s.relationship >= 4 ? 3 : 4); } else if (s.rules.living === LivingRule.NORMAL) { cost += rulesCost * 2; } else { cost += rulesCost; } break; } cost = Math.trunc(cost); retval.push({text: "Living Expenses", value: cost}); cost = 0; // Food retval.push({text: "Basic slave food cost", value: foodCost * 4}); switch (s.diet) { case 'fattening': case 'muscle building': retval.push({text: "Heavy diet", value: foodCost}); break; case 'restricted': case 'slimming': retval.push({text: "Light diet, reduced by", value: -Math.abs(foodCost)}); break; } if (s.weight > 130) { retval.push({text: "Heavy weight", value: foodCost * 2}); } else if (s.weight > 50) { retval.push({text: "High weight", value: foodCost}); } else if (s.weight < -50) { retval.push({text: "Light weight, reduced by", value: -Math.abs(foodCost)}); } if (s.geneticQuirks.fertility === 2 && s.geneticQuirks.hyperFertility === 2 && s.preg === 0 && (s.ovaries === 1 || s.mpreg === 1)) { if (V.geneticMappingUpgrade >= 1) { retval.push({text: "Additional dietary supplements due to genetic hyper-fertility", value: foodCost * 0.5}); } else { retval.push({text: "Adjustment for unusual dietary deficiencies", value: foodCost * 0.5}); } } if (s.geneticQuirks.rearLipedema === 2) { if (V.geneticMappingUpgrade >= 1) { retval.push({text: "Additional dietary supplements due to lipedema", value: foodCost * 0.2}); } else { retval.push({text: "Adjustment for unusual dietary deficiencies", value: foodCost * 0.2}); } } if (s.geneticQuirks.macromastia === 2) { if (V.geneticMappingUpgrade >= 1) { retval.push({text: "Additional dietary supplements due to macromastia", value: foodCost * 0.2}); } else { retval.push({text: "Adjustment for unusual dietary deficiencies", value: foodCost * 0.2}); } } if (s.geneticQuirks.gigantomastia === 2) { if (V.geneticMappingUpgrade >= 1) { retval.push({text: "Additional dietary supplements due to gigantomastia", value: foodCost * 0.2}); } else { retval.push({text: "Adjustment for unusual dietary deficiencies", value: foodCost * 0.2}); } } if (s.geneticQuirks.mGain === 2 && s.geneticQuirks.mLoss !== 2) { if (V.geneticMappingUpgrade >= 1) { retval.push({text: "Additional dietary supplements due to myotonic hypertrophy", value: Math.trunc(foodCost * 0.2)}); } else { retval.push({text: "Adjustment for unusual dietary deficiencies", value: Math.trunc(foodCost * 0.2)}); } } if (s.geneticQuirks.wGain === 2 && s.geneticQuirks.wLoss !== 2) { if (V.geneticMappingUpgrade >= 1) { retval.push({text: "Additional dietary supplements due to hyperleptinemia", value: Math.trunc(foodCost * 0.2)}); } else { retval.push({text: "Adjustment for unusual dietary deficiencies", value: Math.trunc(foodCost * 0.2)}); } } if (s.drugs === 'appetite suppressors') { retval.push({text: "Food saved via suppressed appetite", value: -Math.abs(foodCost)}); } if (s.lactation > 0) { t = "Food to support "; if (s.lactation > 1) { t += "heavy "; } else { t += "natural "; } t += "lactation from "; if (Math.trunc(s.boobs/10000) > 2) { t += "absurd udders"; } else if (Math.trunc(s.boobs/10000) > 1) { t += "enormous boobs"; } else { t += "reasonable breasts"; } retval.push({text: t, value: foodCost * s.lactation * (1 + Math.trunc(s.boobs / 10000))}); } if (s.preg > s.pregData.normalBirth / 8) { if (s.assignment === Job.DAIRY && V.dairyFeedersSetting > 0) { // Extra feeding costs to support pregnancy are covered by dairy feeders. // TODO: Include them here anyway? retval.push({text: "Extra feeding costs to support pregnancy are covered by dairy feeders", value: 0}); } else if ((s.assignment === Job.MASTERSUITE || s.assignment === Job.CONCUBINE) && V.masterSuiteUpgradePregnancy === 1) { // Extra feeding costs to support pregnancy are covered by master suite luxuries. // TODO: Include them here anyway? retval.push({text: "Extra feeding costs to support pregnancy are covered by $masterSuiteName luxuries", value: 0}); } else { t = "Extra feeding to support "; if (s.pregControl === "speed up") { t += "accelerated "; } t += "pregnancy"; retval.push({ text: t, value: foodCost * s.pregType * (s.pregControl === 'speed up' ? 3 : 1) }); if (s.pregType >= 100) { retval.push({ text: "Specialized dietary requirements and feeding methods to support absurd multiples", value: foodCost * 5 * s.pregType * (s.pregControl === 'speed up' ? 3 : 1) }); } else if (s.pregType >= 50) { retval.push({ text: "Specialized dietary adjustments and concentrated, quick to digest food required to support absurd multiples", value: foodCost * 3 * s.pregType * (s.pregControl === 'speed up' ? 3 : 1) }); } else if (s.pregType >= 30) { retval.push({ text: "Concentrated, quick to digest food blend to support extreme multiples", value: foodCost * 2 * s.pregType * (s.pregControl === 'speed up' ? 3 : 1) }); } else if (s.pregType >= 10) { retval.push({ text: "Specialized food blend to support multiples", value: foodCost * s.pregType * (s.pregControl === 'speed up' ? 3 : 1) }); } } } if (s.diet === 'XX' || s.diet === 'XY') { retval.push({text: "Hormone enriched diet", value: 25}); } else if (s.diet === 'fertility') { retval.push({text: "Specialized fertility diet", value: 25}); } else if (s.diet === 'cleansing') { retval.push({text: "Chemical cleansing diet", value: 50}); } else if (s.diet === 'XXY') { retval.push({text: "Specialized hermaphrodite diet", value: 75}); } // Accessibility costs if (V.boobAccessibility !== 1 && s.boobs > 20000 && (s.assignment !== Job.DAIRY || V.dairyRestraintsSetting < 2) && (s.assignment !== Job.ARCADE)) { retval.push({text: "Increased living expenses due to inconveniently huge boobs", value: 50}); } if (V.pregAccessibility !== 1 && (s.belly >= 60000) && s.assignment !== Job.BABY_FACTORY && (s.assignment !== Job.DAIRY || V.dairyRestraintsSetting < 2) && (s.assignment !== Job.ARCADE)) { retval.push({text: "Increased living expenses due to an inconveniently huge belly", value: 100}); } if (V.dickAccessibility !== 1 && s.dick > 45 && (s.assignment !== Job.DAIRY || V.dairyRestraintsSetting < 2) && (s.assignment !== Job.ARCADE)) { retval.push({text: "Increased living expenses due to an inconveniently huge penis", value: 50}); } if (V.ballsAccessibility !== 1 && s.balls > 90 && (s.assignment !== Job.DAIRY || V.dairyRestraintsSetting < 2) && (s.assignment !== Job.ARCADE)) { retval.push({text: "Increased living expenses due to inconveniently huge balls", value: 50}); } if (V.buttAccessibility !== 1 && s.butt > 15 && (s.assignment !== Job.DAIRY || V.dairyRestraintsSetting < 2) && (s.assignment !== Job.ARCADE)) { retval.push({text: "Increased living expenses due to an inconveniently huge butt", value: 50}); } if (!canSee(s) && (s.assignment !== Job.DAIRY || V.dairyRestraintsSetting < 2) && (s.assignment !== Job.ARCADE)) { retval.push({text: "Increased living expenses due to lack of sight", value: 50}); } else if (!canSeePerfectly(s)) { if (getBestVision(s) < 2) { retval.push({text: "Increased living expenses due to poor vision", value: 25}); } else { retval.push({text: "Increased living expenses due to blurred vision", value: 25}); } } if (!canHear(s) && (s.assignment !== Job.DAIRY || V.dairyRestraintsSetting < 2) && (s.assignment !== Job.ARCADE)) { retval.push({text: "Increased living expenses due to lack of hearing", value: 40}); } else if (s.hears <= -1 && s.earwear !== 'hearing aids') { retval.push({text: "Increased living expenses due to poor hearing", value: 15}); } else if (s.earwear === 'muffling ear plugs') { retval.push({text: "Increased living expenses due to muffled hearing", value: 15}); } if ((s.assignment !== Job.DAIRY || V.dairyRestraintsSetting < 2) && (s.assignment !== Job.ARCADE)) { if (!canMove) { retval.push({text: "Increased living expenses due to immobility", value: rulesCost}); } else if (!canWalk) { retval.push({text: "Increased living expenses due to limited mobility", value: rulesCost * 0.50}); } else { if (!hasAllLimbs(s)) { retval.push({ text: "Increased living expenses due to limblessness", value: Math.trunc(getLimbCount(s, 0) * 0.25 * rulesCost) }); } if (hasAnyProstheticLimbs(s)) { retval.push({ text: "Increased living expenses due to prosthetics", value: Math.trunc(getLimbCount(s, 102) * 0.125 * rulesCost) }); } } } // Maintenance if (s.boobsImplant > 10000 && s.boobsImplantType === "string") { retval.push({text: "Maintenance cost for oversized string implants", value: 50}); } if (s.buttImplant > 5 && s.buttImplantType === "string") { retval.push({text: "Maintenance cost for oversized string implants", value: 50}); } if ((s.assignment !== Job.DAIRY || V.dairyRestraintsSetting < 2) && (s.assignment !== Job.ARCADE)) { if (s.preg > s.pregData.minLiveBirth && V.universalRulesBirthing === 1) { retval.push({text: "Coverage cost for daily pregnancy scanning", value: 50}); } } // Retirement account if (V.policies.retirement.menial2Citizen === 1 && V.policies.retirement.fate !== "citizen") { retval.push({text: "Retirement account payments for menials", value: 2}); } if (V.policies.retirement.fate === "citizen") { retval.push({text: "Retirement account payments", value: 250}); } // Enemas if (s.inflation === 3) { switch (s.inflationType) { case 'water': retval.push({text: "Costs of specially formulated water for enemas; 2 gallons", value: 100}); break; case 'food': retval.push({text: "Costs of filler food for slave stuffing; 2 gallons", value: (foodCost * 4)}); break; case 'curative': case 'aphrodisiac': case 'tightener': retval.push({text: "Costs of specially formulated drug mixtures for enemas; 2 gallons", value: (100 + (drugsCost * 2))}); break; } } else if (s.inflation === 2) { switch (s.inflationType) { case 'water': retval.push({text: "Costs of specially formulated water for enemas; 1 gallon", value: 50}); break; case 'food': retval.push({text: "Costs of filler food for slave stuffing; 1 gallon", value: foodCost * 2}); break; case 'curative': case 'aphrodisiac': case 'tightener': retval.push({text: "Costs of specially formulated drug mixtures for enemas", value: (50 + (drugsCost * 2))}); break; } } else if (s.inflation === 1) { switch (s.inflationType) { case 'water': retval.push({text: "Costs of specially formulated water for enemas; 2 quarts", value: 25}); break; case 'food': retval.push({text: "Costs of filler food for slave stuffing; 2 quarts", value: foodCost}); break; case 'curative': case 'aphrodisiac': case 'tightener': retval.push({text: "Costs of specially formulated drug mixtures for enemas", value: (25 + (drugsCost * 2))}); break; } } // Drugs switch (s.drugs) { case 'anti-aging cream': retval.push({text: "Anti-aging creams", value: drugsCost * 10}); break; case 'female hormone injections': case 'male hormone injections': retval.push({text: "Hormonal injections", value: drugsCost * 5}); break; case 'intensive breast injections': case 'intensive butt injections': case 'intensive penis enhancement': case 'intensive testicle enhancement': case 'hyper breast injections': case 'hyper butt injections': case 'hyper penis enhancement': case 'hyper testicle enhancement': retval.push({text: "Intensive drugs", value: drugsCost * 5}); break; case 'growth stimulants': retval.push({text: "Growth stimulants", value: drugsCost * 5}); break; case 'psychostimulants': retval.push({text: "Mental stimulants", value: drugsCost * 5}); break; case 'sag-B-gone': retval.push({text: "Questionable infomercial creams", value: Math.trunc(drugsCost * 0.1)}); break; case 'no drugs': break; default: retval.push({text: "Standard drugs", value: drugsCost * 2}); break; } if (s.curatives > 0 && assignmentVisible(s)) { retval.push({text: "Health drugs", value: drugsCost * s.curatives}); } if (s.aphrodisiacs !== 0) { retval.push({text: "Aphrodisiacs/Anaphrodisiacs", value: Math.trunc(drugsCost * Math.abs(s.aphrodisiacs))}); } if (s.hormones !== 0) { retval.push({text: "Hormones", value: Math.trunc((drugsCost * Math.abs(s.hormones) * 0.5))}); } if (s.bodySwap > 0) { retval.push({text: "JS-Suppressants", value: Math.trunc((drugsCost * s.bodySwap * 10))}); } if (s.preg === -1 && isFertile(s)) { retval.push({text: "Contraceptives", value: Math.trunc((drugsCost * 0.5))}); } if ((Job.CONCUBINE === s.assignment || s.relationship === -3) && V.arcologies[0].FSPetiteAdmirationLaw === 1) { retval.push({text: "Big & Small Subsidy", value: -200}); } return retval; }; /** * @param {App.Entity.SlaveState} s * @returns {number} */ globalThis.getSlaveCost = function(s) { return getSlaveCostArray(s).reduce((result, {value})=>result + value, 0); }; /** * Supply and Demand for slaves (linear, simple) * PC buying slaves reduces supply, selling slaves reduces demand. * @param {number} q * @returns {number} */ globalThis.menialSlaveCost = function(q = 0) { const demand = V.menialDemandFactor; const supply = V.menialSupplyFactor; const baseCost = 1000; const random = V.slaveCostRandom; return (Math.trunc(baseCost + demand / 400 - supply / 400 + q / 400) + random); }; globalThis.NPCSexSupply = function(lowerDemandLeft, lowerTotalDemand, middleDemandLeft, middleTotalDemand, upperDemandLeft, upperTotalDemand, topDemandLeft, topTotalDemand) { const NPCSexSupply = { lowerClass: V.NPCSexSupply.lowerClass, middleClass: V.NPCSexSupply.middleClass, upperClass: V.NPCSexSupply.upperClass, topClass: V.NPCSexSupply.topClass }; // Lower class calculations const lowerClassNPCRatio = NPCSexSupply.lowerClass / lowerDemandLeft; const lowerClassOptimalRatio = 0.5 + V.sexSubsidies.lowerClass / 10 - V.sexSupplyBarriers.lowerClass / 10; const lowerClassOptimal = lowerDemandLeft * lowerClassOptimalRatio; if (NPCSexSupply.lowerClass > lowerTotalDemand * (0.3 - V.sexSupplyBarriers.lowerClass / 20)) { // Checking if NPCs are supplying more than the standard minimum share of supply if (lowerClassNPCRatio >= lowerClassOptimalRatio + 0.05) { // NPCs provide more than they really care to and some wish to stop providing sexual services, max reduction of 10% of previous NPCSexSupply.lowerClass -= Math.min(NPCSexSupply.lowerClass - Math.trunc((NPCSexSupply.lowerClass * 4 + lowerClassOptimal) / 5), Math.trunc(NPCSexSupply.lowerClass * 0.1)); } else if (lowerClassNPCRatio <= lowerClassOptimalRatio - 0.05) { // NPCs see business opportunities and provide more sexual services, minimum increse of 500, max of 10% of previous NPCSexSupply.lowerClass += Math.trunc(Math.clamp((NPCSexSupply.lowerClass * 4 + lowerClassOptimal) / 5 - NPCSexSupply.lowerClass, 500, NPCSexSupply.lowerClass * 0.1) * (1 - V.sexSupplyBarriers.lowerClass / 5)); // Slow down NPC growth through beauraucracy } else { NPCSexSupply.lowerClass = Math.trunc(NPCSexSupply.lowerClass * (1 + normalRandInt(0, 20) / 1000)); // Some random fluxuations whenever the NPC supply is roughly on target. } } else { // Increase NPC supply if it drops below the standard minimum share of supply NPCSexSupply.lowerClass += Math.max(Math.trunc(NPCSexSupply.lowerClass * (normalRandInt(150, 10) / 1000)), 500); } // Middle class calculations const middleClassNPCRatio = NPCSexSupply.middleClass / middleDemandLeft; const middleClassOptimalRatio = 0.5 + V.sexSubsidies.middleClass / 10 - V.sexSupplyBarriers.middleClass / 10; const middleClassOptimal = middleDemandLeft * middleClassOptimalRatio; if (NPCSexSupply.middleClass > middleTotalDemand * (0.3 - V.sexSupplyBarriers.middleClass / 20)) { if (middleClassNPCRatio >= middleClassOptimalRatio + 0.05) { NPCSexSupply.middleClass -= Math.min(NPCSexSupply.middleClass - Math.trunc((NPCSexSupply.middleClass * 4 + middleClassOptimal) / 5), Math.trunc(NPCSexSupply.middleClass * 0.1)); } else if (middleClassNPCRatio <= middleClassOptimalRatio - 0.05) { NPCSexSupply.middleClass += Math.trunc(Math.clamp((NPCSexSupply.middleClass * 4 + middleClassOptimal) / 5 - NPCSexSupply.middleClass, 500, NPCSexSupply.middleClass * 0.1) * (1 - V.sexSupplyBarriers.middleClass / 5)); } else { NPCSexSupply.middleClass = Math.trunc(NPCSexSupply.middleClass * (1 + normalRandInt(0, 20) / 1000)); } } else { NPCSexSupply.middleClass += Math.max(Math.trunc(NPCSexSupply.middleClass * (normalRandInt(150, 10) / 1000)), 500); } // Upper class Calculations const upperClassNPCRatio = NPCSexSupply.upperClass / upperDemandLeft; const upperClassOptimalRatio = 0.5 + V.sexSubsidies.upperClass / 10 - V.sexSupplyBarriers.upperClass / 10; const upperClassOptimal = upperDemandLeft * upperClassOptimalRatio; if (NPCSexSupply.upperClass > upperTotalDemand * (0.3 - V.sexSupplyBarriers.upperClass / 20)) { if (upperClassNPCRatio >= upperClassOptimalRatio + 0.05) { NPCSexSupply.upperClass -= Math.min(NPCSexSupply.upperClass - Math.trunc((NPCSexSupply.upperClass * 4 + upperClassOptimal) / 5), Math.trunc(NPCSexSupply.upperClass * 0.1)); } else if (upperClassNPCRatio <= upperClassOptimalRatio - 0.05) { NPCSexSupply.upperClass += Math.trunc(Math.clamp((NPCSexSupply.upperClass * 4 + upperClassOptimal) / 5 - NPCSexSupply.upperClass, 500, NPCSexSupply.upperClass * 0.1) * (1 - V.sexSupplyBarriers.upperClass / 5)); } else { NPCSexSupply.upperClass = Math.trunc(NPCSexSupply.upperClass * (1 + normalRandInt(0, 20) / 1000)); } } else { NPCSexSupply.upperClass += Math.max(Math.trunc(NPCSexSupply.upperClass * (normalRandInt(150, 10) / 1000)), 500); } // Top class calculations const topClassNPCRatio = NPCSexSupply.topClass / topDemandLeft; const topClassOptimalRatio = 0.5 + V.sexSubsidies.topClass / 8 - V.sexSupplyBarriers.topClass / 10; const topClassOptimal = topDemandLeft * topClassOptimalRatio; if (NPCSexSupply.topClass > topTotalDemand * (0.3 - V.sexSupplyBarriers.topClass / 20)) { if (topClassNPCRatio >= topClassOptimalRatio + 0.025) { NPCSexSupply.topClass -= Math.min(NPCSexSupply.topClass - Math.trunc((NPCSexSupply.topClass * 4 + topClassOptimal) / 5), Math.trunc(NPCSexSupply.topClass * 0.1)); } else if (topClassNPCRatio <= topClassOptimalRatio - 0.025) { NPCSexSupply.topClass += Math.trunc(Math.clamp((NPCSexSupply.topClass * 4 + topClassOptimal) / 5 - NPCSexSupply.topClass, 500, NPCSexSupply.topClass * 0.1) * (1 - V.sexSupplyBarriers.topClass / 5)); } else { NPCSexSupply.topClass = Math.trunc(NPCSexSupply.topClass * (1 + normalRandInt(0, 20) / 1000)); } } else { NPCSexSupply.topClass += Math.max(Math.trunc(NPCSexSupply.topClass * (normalRandInt(150, 10) / 1000)), 500); } return NPCSexSupply; }; // The function for calculating and storing a slave's sexual interaction with citizens/'the outside' globalThis.slaveJobValues = function(lowerClassSexDemandRef, middleClassSexDemandRef, upperClassSexDemandRef, topClassSexDemandRef) { const slaveJobValues = { arcade: 0, club: 0, clubSP: 0, brothel: { lowerClass: 0, middleClass: 0, upperClass: 0, topClass: 0, boost: 0 } // A list of values for each tier of whore (low, middle, upper, top) and a variable for the amount of money earned through the boost }; let clubSpots; let brothelSpots; let toTheClubTotal = 0; let toTheBrothelTotal = 0; const AL = App.Entity.facilities.arcade.employeesIDs().size; const CL = App.Entity.facilities.club.employeesIDs().size; const BL = App.Entity.facilities.brothel.employeesIDs().size; V.clubSlavesGettingHelp = 0; V.brothelSlavesGettingHelp = 0; // This section is for specific slaves or non-unique slaves adding their values to the whole // Accounting for Fuckdolls if (V.fuckdolls > 0) { slaveJobValues.arcade += (V.fuckdolls - (V.arcade - AL)) * 150 + (V.arcade - AL) * (200 + 20 * V.arcadeUpgradeInjectors); } // Accounting for the DJ. if (S.DJ) { if (!canTalk(S.DJ)) { V.djID = 0; V.unDJ = 1; } else if (S.DJ.preg > 37 && S.DJ.broodmother === 2) { V.djID = 0; V.unDJ = 2; } else if (S.DJ.fetish === "mindbroken") { V.djID = 0; V.unDJ = 3; } else if (!canWalk(S.DJ)) { V.djID = 0; V.unDJ = 4; } else if (!canHear(S.DJ)) { V.djID = 0; V.unDJ = 5; } } if (S.DJ) { // The DJ adding to 'club' SJVClub(S.DJ); } // Checking for space in the club if (V.club > 0 && CL < V.club) { clubSpots = V.club - CL; } // Accounting for the Madam if (V.MadamID !== 0) { const madam = S.Madam; if (!canTalk(madam)) { V.MadamID = 0; V.unMadam = 1; } else if (madam.preg > 37 && madam.broodmother === 2) { V.MadamID = 0; V.unMadam = 2; } else if (madam.fetish === "mindbroken") { V.MadamID = 0; V.unMadam = 3; } else if (!canWalk(madam)) { V.MadamID = 0; V.unMadam = 4; } else if (!canSee(madam)) { V.MadamID = 0; V.unMadam = 5; } else if (!canHear(madam)) { V.MadamID = 0; V.unMadam = 6; } else if (!canHold(madam)) { V.MadamID = 0; V.unMadam = 7; } } if (V.MadamID !== 0) { const madam = S.Madam; const madamIntel = madam.intelligence + madam.intelligenceImplant; App.EndWeek.saVars.madamBonus = 0; if (madam.relationship === -3 && madam.devotion > 50) { // As your loving $wife, $he does $his best to attract attention to your brothel. App.EndWeek.saVars.madamBonus += 0.25; } if (madam.skill.whoring > 10 && madam.skill.whoring <= 30) { // S.Madam.slaveName's basic skills marginally yellowgreen;improve business at $brothelName. App.EndWeek.saVars.madamBonus += 0.05; } else if (madam.skill.whoring <= 60) { // S.Madam.slaveName's skills yellowgreen;improve business at $brothelName. App.EndWeek.saVars.madamBonus += 0.1; } else if (madam.skill.whoring < 100) { // S.Madam.slaveName's skills greatly yellowgreen;improve business at $brothelName. App.EndWeek.saVars.madamBonus += 0.15; } else { // S.Madam.slaveName's mastery immensely yellowgreen;improves business at $brothelName. App.EndWeek.saVars.madamBonus += 0.20; } if (madam.actualAge > 35) { // $His age and experience also contribute. App.EndWeek.saVars.madamBonus += 0.05; } else if (V.AgePenalty === 0) { App.EndWeek.saVars.madamBonus += 0.05; } if (setup.madamCareers.includes(madam.career)) { // $He has experience from $his life before $he was a slave that helps $him in the seedy business of selling other people's bodies for sex. App.EndWeek.saVars.madamBonus += 0.05; } else if (madam.skill.madam >= V.masteredXP) { // $He has experience from working for you that helps $him in the seedy business of selling other people's bodies for sex. App.EndWeek.saVars.madamBonus += 0.05; } else { madam.skill.madam += jsRandom(1, Math.ceil((madamIntel) / 15) + 8); } if (madamIntel > 15) { // $He is a clever manager. App.EndWeek.saVars.madamBonus += 0.05 * Math.floor((-0.00008 * madamIntel * madamIntel) + (0.0337 * madamIntel) + 0.5); } if (madam.dick > 2 && canPenetrate(madam)) { // $His turgid dick helps $him manage the bitches. App.EndWeek.saVars.madamBonus += 0.05; } for (const slave of App.Entity.facilities.brothel.employees()) { if (madam.relationshipTarget === slave.ID) { App.EndWeek.saVars.madamBonus -= 0.05; } else if (areRelated(madam, slave)) { App.EndWeek.saVars.madamBonus += 0.05; } if (slave.prestigeDesc === "$He is a famed Free Cities whore, and commands top prices.") { App.EndWeek.saVars.madamBonus += 0.15; } else if (slave.prestigeDesc === "$He is a famed Free Cities slut, and can please anyone.") { App.EndWeek.saVars.madamBonus += 0.15; } else if (slave.prestigeDesc === "$He is remembered for winning best in show as a dairy cow.") { if (V.arcologies[0].FSPhysicalIdealist !== "unset") { if (slave.muscles > 60 && slave.weight < 30 && slave.lactation > 0 && slave.boobs - slave.boobsImplant > 6000) { App.EndWeek.saVars.madamBonus += 0.15; } } else if (slave.lactation > 0 && slave.boobs - slave.boobsImplant > 6000) { App.EndWeek.saVars.madamBonus += 0.10; } } else if (slave.prestigeDesc === "$He is remembered for winning best in show as a cockmilker.") { if (V.arcologies[0].FSGenderFundamentalist !== "unset") { if (slave.balls === 0 && slave.dick === 0 && slave.vagina > -1) { /* this needs review - doesn't fit right. An XY slave would be expected to be masculine. */ App.EndWeek.saVars.madamBonus += 0.20; } } else if ((slave.balls > 5 && slave.dick !== 0) || (slave.balls > 4 && slave.dick !== 0 && slave.prostate > 1)) { App.EndWeek.saVars.madamBonus += 0.15; } } else if (slave.prestigeDesc === "$He is remembered for winning best in show as a breeder.") { if (canGetPregnant(slave)) { App.EndWeek.saVars.madamBonus += 0.15; } else if (isPreg(slave) && slave.bellyPreg >= 5000) { App.EndWeek.saVars.madamBonus += 0.1; } } } // The Madam adding to 'brothel' SJVBrothel(S.Madam, lowerClassSexDemandRef, middleClassSexDemandRef, upperClassSexDemandRef, topClassSexDemandRef); } // Checking for space in the brothel if (V.brothel > 0 && BL < V.club) { brothelSpots = V.brothel - BL; } // Glory hole slaves adding to 'arcade' App.Utils.jobForAssignment(Job.GLORYHOLE).employees().forEach(s => { s.sexAmount = Math.trunc(restEffects(s, 20) * ((normalRandInt(600, 20) + (4 - s.anus) * 10 + (4 - s.vagina) * 10 + Math.trunc(s.health.condition / 2)) * 0.75)); tiredFucks(s); slaveJobValues.arcade += s.sexAmount; }); // Arcade slaves adding to 'arcade' App.Utils.jobForAssignment(Job.ARCADE).employees().forEach(s => { s.sexAmount = (normalRandInt(600, 20) + (4 - (s.anus - 2 * V.arcadeUpgradeInjectors)) * 10 + (4 - (s.vagina - 2 * V.arcadeUpgradeInjectors)) * 10 + Math.trunc(s.health.condition / 2)); slaveJobValues.arcade += s.sexAmount; }); // Public sluts adding to 'club' App.Utils.jobForAssignment(Job.PUBLIC).employees().forEach(s => { SJVClub(s); }); // Club sluts adding to 'club' App.Utils.jobForAssignment(Job.CLUB).employees().forEach(s => { SJVClub(s); }); // Saturation penalty for public servants. Even the most beautiful slaves lose some of their shine if they have too much competition. if (slaveJobValues.club > 0) { slaveJobValues.clubSP = (Math.pow(slaveJobValues.club / 1000, 0.95) * 1000) / slaveJobValues.club; } // Street whores adding to 'brothel' App.Utils.jobForAssignment(Job.WHORE).employees().forEach(s => { SJVBrothel(s, lowerClassSexDemandRef, middleClassSexDemandRef, upperClassSexDemandRef, topClassSexDemandRef); }); // Brothel whores adding to 'brothel' App.Utils.jobForAssignment(Job.BROTHEL).employees().forEach(s => { SJVBrothel(s, lowerClassSexDemandRef, middleClassSexDemandRef, upperClassSexDemandRef, topClassSexDemandRef); }); function SJVClub(s) { let toTheClub = 0; let beautyMultiplier = 1; let restEffect = restEffects(s, 15); s.minorInjury = 0; // The beauty multiplier if (s.sexualFlaw === "attention whore") { beautyMultiplier += 0.1; } if (V.arcologies[0].FSEdoRevivalist !== "unset") { beautyMultiplier += V.arcologies[0].FSEdoRevivalist / (V.FSLockinLevel * 3); } if (((V.universalRulesFacilityWork === 1) && (s.assignment === Job.PUBLIC) && (clubSpots > 0)) || (s.assignment === Job.CLUB)) { if (s.assignment === Job.PUBLIC) { toTheClub = 1; toTheClubTotal += 1; V.clubSlavesGettingHelp += 1; } if (V.clubAdsSpending !== 0) { beautyMultiplier += 0.05 * App.Ads.getMatchedCategoryCount(s, "club"); } } if (s.assignment === Job.CLUB || toTheClub === 1) { beautyMultiplier += DJRepBonus(); if (canHear(s) === false) { beautyMultiplier -= 0.65; // $His inability to move to the rhythm of the music is very off putting to those looking to party. } else if ((s.hears === -1 && s.earwear !== "hearing aids") || (s.hears === 0 && s.earwear === "muffling ear plugs")) { beautyMultiplier -= 0.75; } } // Injuries if (s.assignment === Job.PUBLIC && !toTheClub) { if (s.curatives < 1 && s.inflationType !== "curative") { if (s.health.condition < -50) { healthDamage(s, 13); s.minorInjury = 1; } else if (s.health.condition < -20 && jsRandom(1, 100) > 50) { healthDamage(s, 10); s.minorInjury = 1; } else { const canA = canDoAnal(s) ? 1 : 0; const canV = canDoVaginal(s) ? 1 : 0; let skilltarget = (100 + ((s.skill.anal - 100) * canA * (1.5 - 0.5 * canV) + (s.skill.vaginal - 100) * canV * (1.5 - 0.5 * canA) + (s.skill.oral - 100) * (3 - 1.5 * canA - 1.5 * canV + canA * canV)) * 3 / 10); // Complicated, I know - but it should automatically account for what acts are possible to scale the injury risk smoothly between 90% when totally unskilled // and 0% when perfectly skilled in the relevant method or methods. if (jsRandom(1, 100) > skilltarget) { healthDamage(s, 10 - 7 * canA * canV); // Any limitations means an injury inflicts the harsher 10 instead of 3 s.minorInjury = 1; } } } if (s.minorInjury === 1) { let injuryChance; beautyMultiplier -= 0.05; if (canDoAnal(s)) { injuryChance = jsRandom(1, 100); } else { injuryChance = jsRandom(1, 80); } if (injuryChance > 80) { s.minorInjury = "sore ass"; } else if (injuryChance > 60) { s.minorInjury = "black eye"; } else if (injuryChance > 40) { s.minorInjury = "split lip"; } else if (injuryChance > 20) { s.minorInjury = "bad bruise"; } else { s.minorInjury = "sore muscle"; } } } // The amount of sexual acts s.sexAmount = Beauty(s) / 2 + 100; if (s.assignment === Job.DJ) { if ((CL + toTheClubTotal > 0) && (CL + toTheClubTotal < 10)) { s.sexAmount *= (10 - CL - toTheClubTotal) / 10; } } if (restEffect !== healthPenalty(s)) { s.sexAmount *= restEffect; } s.sexAmount = Math.trunc(s.sexAmount * beautyMultiplier); // The effect of sexual acts on tiredness tiredFucks(s); // The quality/value of each sexual act s.sexQuality = FResult(s); if (!App.Utils.hasNonassignmentSex(s) && s.rules.reward !== "orgasm" && s.energy >= 20) { s.sexQuality += 2; } if (canDoAnal(s) && s.anus === 0) { s.sexQuality += 5; // This was at 10, not sure what the reasoning behind that was } if (canDoVaginal(s) && s.vagina === 0) { s.sexQuality += 5; } if (s.devotion > 95 || s.energy > 95) { s.sexQuality += 2; } else if (s.devotion > 50) { s.sexQuality += 1; } else if (s.trust > -20 && s.trust <= 20) { s.sexQuality -= 1; } else if (s.trust < -20) { s.sexQuality -= 2; } if (s.assignment === Job.CLUB) { s.sexQuality += 2; } else if (toTheClub === 1) { s.sexQuality += 2; clubSpots -= 1; } if (healthPenalty(s) < restEffect) { s.sexQuality = Math.trunc(s.sexQuality * healthPenalty(s) / restEffect); } if (s.assignment !== Job.RECRUITER) { slaveJobValues.club += Math.trunc(s.sexAmount * s.sexQuality); } } /** * @param {App.Entity.SlaveState} s * @param {number} lowerClassSexDemandRef * @param {number} middleClassSexDemandRef * @param {number} upperClassSexDemandRef * @param {number} topClassSexDemandRef */ function SJVBrothel(s, lowerClassSexDemandRef, middleClassSexDemandRef, upperClassSexDemandRef, topClassSexDemandRef) { let toTheBrothel = 0; let beautyMultiplier = 1; s.minorInjury = 0; // Beauty multipliers if (s.sexualFlaw === "neglectful") { beautyMultiplier += 0.1; } if ((s.hears === -1 && s.earwear !== "hearing aids") || (s.hears === 0 && s.earwear === "muffling ear plugs") || (s.hears === -2)) { if (!canHear(s)) { beautyMultiplier -= 0.25; } else { beautyMultiplier -= 0.10; } } if (V.brothel > 0) { if ((V.universalRulesFacilityWork === 1 && s.assignment === Job.WHORE && brothelSpots > 0) || (s.assignment === Job.BROTHEL)) { if (s.assignment === Job.WHORE) { toTheBrothel = 1; toTheBrothelTotal += 1; V.brothelSlavesGettingHelp += 1; } // ads if (V.brothelAdsSpending !== 0) { beautyMultiplier += 0.05 * App.Ads.getMatchedCategoryCount(s, "brothel"); } if (V.MadamID !== 0) { if (App.EndWeek.saVars.madamBonus > 0) { if (!canHear(s)) { beautyMultiplier += App.EndWeek.saVars.madamBonus * 0.5; } else { beautyMultiplier += App.EndWeek.saVars.madamBonus; } } } } } // Injuries if (s.assignment === Job.WHORE && !toTheBrothel) { if (s.curatives < 1 && s.inflationType !== "curative") { if (s.health.condition < -50) { healthDamage(s, 13); s.minorInjury = 1; } else if (s.health.condition < -20 && jsRandom(1, 100) > 50) { healthDamage(s, 10); s.minorInjury = 1; } else { const canA = canDoAnal(s) ? 1 : 0; const canV = canDoVaginal(s) ? 1 : 0; let skilltarget = (100 + ((s.skill.anal - 100) * canA * (1.5 - 0.5 * canV) + (s.skill.vaginal - 100) * canV * (1.5 - 0.5 * canA) + (s.skill.oral - 100) * (3 - 1.5 * canA - 1.5 * canV + canA * canV)) * 3 / 10); // Complicated, I know - but it should automatically account for what acts are possible to scale the injury risk smoothly between 90% when totally unskilled // and 0% when perfectly skilled in the relevant method or methods. if (jsRandom(1, 100) > skilltarget) { healthDamage(s, 10 - 7 * canA * canV); // Any limitations means an injury inflicts the harsher 10 instead of 3 s.minorInjury = 1; } } } if (s.minorInjury === 1) { const injuryChance = canDoAnal(s) ? jsRandom(1, 100) : jsRandom(1, 80); beautyMultiplier -= 0.05; if (injuryChance > 80) { s.minorInjury = "sore ass"; } else if (injuryChance > 60) { s.minorInjury = "black eye"; } else if (injuryChance > 40) { s.minorInjury = "split lip"; } else if (injuryChance > 20) { s.minorInjury = "bad bruise"; } else { s.minorInjury = "sore muscle"; } } } // The amount of sexual acts s.sexAmount = Math.trunc(Beauty(s) * beautyMultiplier * (1 + (0.002 * s.skill.whoring))); // The quality/value of each sexual act s.sexQuality = FResult(s); if (!App.Utils.hasNonassignmentSex(s) && s.rules.reward !== "orgasm" && s.energy >= 20) { s.sexQuality += 2; } if (canDoAnal(s) && s.anus === 0) { s.sexQuality += 5; // This was at 10, not sure what the reasoning behind that was } if (canDoVaginal(s) && s.vagina === 0) { s.sexQuality += 5; } if (s.devotion > 95 || s.energy > 95) { s.sexQuality += 2; } else if (s.devotion > 50) { s.sexQuality += 1; } else if (s.trust > -20 && s.trust <= 20) { s.sexQuality -= 1; } else if (s.trust < -20) { s.sexQuality -= 2; } if (s.assignment === Job.BROTHEL || s.assignment === Job.MADAM) { s.sexQuality += 2; } else if (toTheBrothel === 1) { s.sexQuality += 2; brothelSpots -= 1; } if (s.sexQuality < 2) { s.sexQuality = 2; } /** * The whoreScore function finds the appropriate customer class and then calculates the whore income stats associated with that class and adds to the class supply. * whoreClass is the MAXIMUM player set class the whore is allowed to service, if the whore is not eligible it will service the highest it is capable of servicing properly. A whoreClass of 0 means it is on auto (always service the highest possible class). * @param {App.Entity.SlaveState} s * @param {number} lowerClassSexDemandRef * @param {number} middleClassSexDemandRef * @param {number} upperClassSexDemandRef * @param {number} topClassSexDemandRef */ function whoreScore(s, lowerClassSexDemandRef, middleClassSexDemandRef, upperClassSexDemandRef, topClassSexDemandRef) { let income = s.sexAmount * s.sexQuality; let sexMin; let sexBudget; let targetBudget; // Finding the right budget target let fuckMin; // minimum amount of fucks let fuckDev = 3; // standard deviation of fucks const initialHealthPenalty = restEffects(s, 15); s.effectiveWhoreClass = effectiveWhoreClass(s); s.maxWhoreClass = s.effectiveWhoreClass; income *= initialHealthPenalty; // Automatically changing effectiveWhoreClass // what is the initial effective whore class? Are we providing more sex than overall demand? Is the ratio of supply/demand for this tier higher than the one below it? // This also takes into consideration public sluts and ignores the NPC market and arcades const topSDRatio = slaveJobValues.brothel.topClass / (topClassSexDemandRef - V.NPCSexSupply.topClass); const upperSDRatio = slaveJobValues.brothel.upperClass / (upperClassSexDemandRef - V.NPCSexSupply.upperClass); const middleClubSupply = slaveJobValues.club * slaveJobValues.clubSP * (middleClassSexDemandRef / (lowerClassSexDemandRef + middleClassSexDemandRef)); const middleSupply = slaveJobValues.brothel.middleClass + middleClubSupply; const middleSDRatio = middleSupply / (middleClassSexDemandRef - V.NPCSexSupply.middleClass); const lowerClubSupply = slaveJobValues.club * slaveJobValues.clubSP * (lowerClassSexDemandRef / (lowerClassSexDemandRef + middleClassSexDemandRef)); const lowerSupply = slaveJobValues.brothel.lowerClass + lowerClubSupply; const lowerSDRatio = lowerSupply / (lowerClassSexDemandRef - V.NPCSexSupply.lowerClass); let demandBoost = 1; let priceBoost = 1; if (toTheBrothel === 1 || s.assignment === Job.BROTHEL) { demandBoost += V.brothelBoost.eligible / 50; priceBoost += V.brothelBoost.eligible / 20; } if (s.effectiveWhoreClass === 4 && topSDRatio > 1 && topSDRatio > upperSDRatio) { s.effectiveWhoreClass -= 1; } if (s.effectiveWhoreClass === 3 && upperSDRatio > 1 && upperSDRatio > middleSDRatio) { s.effectiveWhoreClass -= 1; } if (s.effectiveWhoreClass === 2 && middleSDRatio > 1 && middleSDRatio > lowerSDRatio) { s.effectiveWhoreClass -= 1; } switch (s.effectiveWhoreClass) { case 1: targetBudget = V.whoreBudget.lowerClass * 3; fuckMin = 60; break; case 2: targetBudget = V.whoreBudget.middleClass; fuckMin = 50; break; case 3: targetBudget = V.whoreBudget.upperClass * 0.5; fuckMin = 40; break; case 4: targetBudget = V.whoreBudget.topClass * 0.2; fuckMin = 30; fuckDev = 2; break; default: targetBudget = V.whoreBudget.lowerClass * 3; fuckMin = 60; } if (initialHealthPenalty !== healthPenalty(s)) { fuckMin *= initialHealthPenalty; } sexMin = normalRandInt(fuckMin, fuckDev); // The minimum of fucks per week; can increase if needed sexBudget = Math.trunc(targetBudget); // initial maximum price per fuck; can increase if needed while (income > sexBudget * sexMin) { // if the income can not be caught within the initial values of sexMin and sexBudget we increase both as needed in this loop sexMin = Math.trunc(sexMin * 1.1); if (income > sexBudget * sexMin) { sexBudget = Math.trunc(sexBudget * 1.1); } } s.sexAmount = Math.round(sexMin * demandBoost); tiredFucks(s); // adding tiredness based on number of fucks and then adjusting income in case the tiredness penalty changed as a result. if (healthPenalty(s) < initialHealthPenalty) { income *= healthPenalty(s) / initialHealthPenalty; } s.sexQuality = Math.trunc((income * demandBoost * priceBoost) / s.sexAmount); const incomeBoostCorrected = Math.trunc(s.sexAmount * s.sexQuality / priceBoost); if ((toTheBrothel === 1 || s.assignment === Job.BROTHEL) && V.brothelBoost.eligible > 0) { slaveJobValues.brothel.boost += Math.max(Math.trunc(s.sexAmount * s.sexQuality / demandBoost) - Math.trunc(income), 0); // Keeping track of additional benefits from boosting the brothel on the price side and not the amount side. } switch (s.effectiveWhoreClass) { case 1: slaveJobValues.brothel.lowerClass += incomeBoostCorrected; // Registering the job value in the right slot break; case 2: slaveJobValues.brothel.middleClass += incomeBoostCorrected; break; case 3: slaveJobValues.brothel.upperClass += incomeBoostCorrected; break; case 4: slaveJobValues.brothel.topClass += incomeBoostCorrected; break; default: slaveJobValues.brothel.lowerClass += incomeBoostCorrected; } } whoreScore(s, lowerClassSexDemandRef, middleClassSexDemandRef, upperClassSexDemandRef, topClassSexDemandRef); if (s.assignment === Job.MADAM) { if ((BL + toTheBrothelTotal > 0) && (BL + toTheBrothelTotal < 10)) { s.sexAmount = Math.trunc(s.sexAmount * ((10 - BL - toTheBrothelTotal) / 10)); s.sexQuality = Math.trunc(s.sexQuality * 1.2); } } } return slaveJobValues; }; /** * @param {App.Entity.SlaveState} s * @returns {number} */ globalThis.effectiveWhoreClass = function(s) { let score = s.sexAmount * s.sexQuality; let result; if (typeof s.whoreClass === 'undefined' || s.whoreClass === 0) { result = 4; } else { result = s.whoreClass; } // Find maximum eligible class // these could be refined further if needed. if (result === 4 && !(score > 5000 && s.skill.whoring > 80 && s.skill.entertainment > 50)) { result -= 1; } if (result === 3 && !(score > 2500 && s.skill.whoring > 50)) { result -= 1; } if (result === 2 && (score <= 1000)) { result -= 1; } return result; }; /** * End week function to handle the (menial) slave market prices through supply and demand * @returns {void} */ globalThis.endWeekSlaveMarket = function() { const demandVariance = jsRandom(-10, 10) * 20; const supplyVariance = jsRandom(-10, 10) * 20; const demand = V.menialDemandFactor; const supply = V.menialSupplyFactor; const relativeDemand = Math.trunc(Math.pow(Math.abs(demand) / 10000, 2)); // A variable that gets much greater the further demand is from 0 const relativeSupply = Math.trunc(Math.pow(Math.abs(supply) / 10000, 2)); let randomDemand; let randomSupply; V.slaveCostRandom = jsRandom(-3, 3); if (V.demandTimer === 0) { // First week setup let random = jsRandom(1, 100); if (random > 55) { V.deltaDemand = normalRandInt(350, 60) * 10; } else if (random <= 45) { V.deltaDemand = normalRandInt(-350, 60) * 10; } else { V.deltaDemand = 0; } newTimer(); random = jsRandom(1, 100); if (random > 55) { V.deltaDemand = normalRandInt(350, 60) * 10; } else if (random <= 45) { V.deltaDemand = normalRandInt(-350, 60) * 10; } else { V.deltaDemand = 0; } } if (demand >= 50000 && V.deltaDemand >= 0) { // Turning the market around if demand hits the upper bound newTimer(); V.deltaDemand = normalRandInt(-500, 40) * 10; // Force with which the market moves } else if (demand <= -50000 && V.deltaDemand <= 0) { // Turning the market around if demand hits the lower bound newTimer(); V.deltaDemand = normalRandInt(500, 40) * 10; } if (V.elapsedDemandTimer >= V.demandTimer) { // Changing the delta once the timer runs out newTimer(); randomDemand = jsRandom(1, 100) - relativeDemand * 2; // A variable used to determine if demand will go up, down or remain stable while taking into account relativeDemand, thus making movement towards the extreme less likely if (demand >= 0) { // If demand is currently positive (or 0) the chances for even greater demand are reduced by randomDemand if (randomDemand > 55) { V.deltaDemand = normalRandInt(350, 60) * 10; } else if (randomDemand <= 45) { V.deltaDemand = normalRandInt(-350, 60) * 10; } else { V.deltaDemand = 0; } } else { // If demand is currently negative the chances for even lower demand are reduced by randomDemand if (randomDemand > 55) { V.deltaDemand = normalRandInt(-350, 60) * 10; } else if (randomDemand <= 45) { V.deltaDemand = normalRandInt(350, 60) * 10; } else { V.deltaDemand = 0; } } } V.elapsedDemandTimer += 1; const relativeTimeDemand = V.elapsedDemandTimer / V.demandTimer; V.menialDemandFactor += demandVariance + Math.trunc(relativeTimeDemand * V.deltaDemand + (1 - relativeTimeDemand) * V.deltaDemandOld); // Actual movement of demand gradually shifts from old to 'new' deltaDemand if (V.supplyTimer === 0) { // First week setup let random = jsRandom(1, 100); if (random > 55) { V.deltaSupply = normalRandInt(350, 60) * 10; } else if (random <= 45) { V.deltaSupply = normalRandInt(-350, 60) * 10; } else { V.deltaSupply = 0; } newTimer("supply"); random = jsRandom(1, 100); if (random > 55) { V.deltaSupply = normalRandInt(350, 60) * 10; } else if (random <= 45) { V.deltaSupply = normalRandInt(-350, 60) * 10; } else { V.deltaSupply = 0; } } if (supply >= 50000 && V.deltaSupply >= 0) { // Turning the market around if supply hits the upper bound newTimer("supply"); V.deltaSupply = normalRandInt(-500, 40) * 10; // Force with which the market moves } else if (supply <= -50000 && V.deltaSupply <= 0) { // Turning the market around if supply hits the lower bound newTimer("supply"); V.deltaSupply = normalRandInt(500, 40) * 10; } if (V.elapsedSupplyTimer >= V.supplyTimer) { // Changing the delta once the timer runs out newTimer("supply"); randomSupply = jsRandom(1, 100) - relativeSupply * 2; if (supply >= 0) { // If supply is currently positive (or 0) the chances for even greater supply are reduced by randomSupply if (randomSupply > 55) { V.deltaSupply = normalRandInt(350, 60) * 10; } else if (randomSupply <= 45) { V.deltaSupply = normalRandInt(-350, 60) * 10; } else { V.deltaSupply = 0; } } else { // If supply is currently negative the chances for even lower supply are reduced by randomSupply if (randomSupply > 55) { V.deltaSupply = normalRandInt(-350, 60) * 10; } else if (randomSupply <= 45) { V.deltaSupply = normalRandInt(350, 60) * 10; } else { V.deltaSupply = 0; } } } V.elapsedSupplyTimer += 1; const relativeTimeSupply = V.elapsedSupplyTimer / V.supplyTimer; V.menialSupplyFactor += supplyVariance + Math.trunc(relativeTimeSupply * V.deltaSupply + (1 - relativeTimeSupply) * V.deltaSupplyOld); // Actual movement of supply gradually shifts from old to 'new' deltaSupply function newTimer(side="demand") { if (side === "demand") { V.demandTimer = jsRandom(6, 10); V.elapsedDemandTimer = 0; V.deltaDemandOld = V.deltaDemand; } else if (side === "supply") { V.supplyTimer = jsRandom(6, 10); V.elapsedSupplyTimer = 0; V.deltaSupplyOld = V.deltaSupply; } } }; /** * @param {App.Entity.SlaveState} s * @param {object|undefined} facility * @returns {Object} */ globalThis.getSlaveStatisticData = function(s, facility) { if (!facility) { // Base data, even without facility return { ID: s.ID, slaveName: s.slaveName, customLabel: s.custom.label, income: 0, adsIncome: 0, rep: 0, food: 0, cost: getSlaveCost(s), customers: 0 // brothel, club, ... }; } if (!facility.income) { facility.income = new Map(); } if (facility.income.has(s.ID)) { return facility.income.get(s.ID); } const data = { ID: s.ID, slaveName: s.slaveName, customLabel: s.custom.label, income: 0, adsIncome: 0, rep: 0, food: 0, cost: getSlaveCost(s), customers: 0 /* brothel, club, ... */ }; facility.income.set(s.ID, data); return data; }; globalThis.initFacilityStatistics = function(facility = {}) { facility.adsIncome = 0; facility.maintenance = 0; facility.totalIncome = 0; facility.totalExpenses = 0; facility.profit = 0; facility.income = new Map(); return facility; }; /* Welcome to the new way to spend and make money, all while having it recorded: cashX! In the past, costs were directly deducted from $cash, with something like <<set $cash -= 100>>. The new system will still happily spend your money, but it will also record it in the appropriate budget category and (optionally) the appropriate slave as well. Let's say you were going to spend 100 on your favorite $activeSlave with cashX. You might try: <<run cashX(-100, "slaveMod", $activeSlave)>> There we go! 1. -100 taken from your account 2. Recorded: -100 for the slaveMod category, to be displayed on the Budget screen 3. Recorded: -100 noted in your activeSlave's permanent record. $He better get busy paying that off! cashX can be used in JS as well, and can be included in [[]] style links. Make sure that expenses arrive in the COST slot as a negative, they are often positive in code. Use the new function forceNeg or pass it along on a temporary variable if needed. Costs don't have to be numbers either, you can use variables. <<run cashX(forceNeg(_ContractCost), "slaveTransfer", $activeSlave)>>. forceNeg makes sure that whatever value _ContractCost has is negative, and will therefore be recorded as an expense. You don't have to use it if you're sure the number you are passing along is negative. A full list of categories (slaveMod, slaveTransfer, event) are in App.Data.Records.LastWeeksCash(). It's important to match your cost to one of those categories (or add a new one there, and display it in costsBudget.tw.) The third category, the "slave slot" is completely optional. Sometimes you just want to spend money by yourself. */ /** Spend or gain money and record the transaction for accounting * @param {number} cost * @param {string} what - @see App.Data.Records.LastWeeksCash() for a full list * @param {FC.HumanState} [who] - the slave whose ledger the transaction should be recorded to. V.PC may be passed but will be ignored. */ globalThis.cashX = function(cost, what, who) { if (!Number.isFinite(cost)) { V.lastWeeksCashErrors += `Expected a finite number for ${what}, but got ${cost}<br>`; return 0; } // remove fractions from the money cost = Math.trunc(cost); // Spend the money V.cash += cost; // INCOME if (cost > 0) { // record the action if (typeof V.lastWeeksCashIncome[what] !== 'undefined') { V.lastWeeksCashIncome[what] += cost; } else { V.lastWeeksCashErrors += `Unknown place "${what}" gained you ${cost}<br>`; } // record the slave, if available if (typeof who !== 'undefined' && who.ID !== -1) { who.lastWeeksCashIncome += cost; who.lifetimeCashIncome += cost; } } else if (cost < 0) { // EXPENSES // record the action if (typeof V.lastWeeksCashExpenses[what] !== 'undefined') { V.lastWeeksCashExpenses[what] += cost; } else { V.lastWeeksCashErrors += `Unknown place "${what}" charged you ${cost}<br>`; } // record the slave, if available if (typeof who !== 'undefined' && who.ID !== -1) { if (what === "slaveTransfer") { who.slaveCost = cost; } else { // who.lastWeeksCashExpenses = cost; - weekly slave expenses are not tracked this way who.lifetimeCashExpenses += cost; } } } App.Utils.scheduleSidebarRefresh(); return cost; }; /** Spend or gain reputation and record the transaction for accounting * @param {number} rep * @param {string} what - @see App.Data.Records.LastWeeksRep() for a full list * @param {App.Entity.SlaveState} [who] - the slave whose ledger the transaction should be recorded to. V.PC may be passed but will be ignored. */ globalThis.repX = function(rep, what, who) { if (!Number.isFinite(rep)) { V.lastWeeksRepErrors += `Expected a finite number for ${what}, but got ${rep}<br>`; return 0; } // round the change rep = Math.trunc(rep); // INCOME // These are all scaled relative to current rep except when recording the who, to keep comparisons between slaves possible across times. This quite drastically reduces rep income at high levels of rep and only slightly at low levels. if (rep > 0) { // record the slave, if available if (typeof who !== 'undefined' && who.ID !== -1) { who.lastWeeksRepIncome += rep; who.lifetimeRepIncome += rep; } // record the action if (what === "cheating" || passage() === "init" || passage() === "Intro Summary") { /* we don't want to curve startup or cheating.*/ V.lastWeeksRepIncome[what] += rep; } else if (typeof V.lastWeeksRepIncome[what] !== 'undefined') { rep = Math.round(Math.pow(1000 * rep + Math.pow(V.rep, 2), 0.5) - V.rep); V.lastWeeksRepIncome[what] += rep; } else { V.lastWeeksRepErrors += `Unknown place "${what}" gained you ${rep}<br>`; } } else if (rep < 0) { // EXPENSES // record the action if (typeof V.lastWeeksRepExpenses[what] !== 'undefined') { V.lastWeeksRepExpenses[what] += rep; } else { V.lastWeeksRepErrors += `Unknown place "${what}" cost you ${rep}<br>`; } // record the slave, if available if (typeof who !== 'undefined' && who.ID !== -1) { who.lastWeeksRepExpenses += rep; who.lifetimeRepExpenses += rep; } } // Apply the reputation change V.rep += rep; // Check if total rep is over cap, and use "overflow" category to expense it down if needed. if (V.rep > 20000) { V.lastWeeksRepExpenses.overflow += (20000 - V.rep); V.rep = 20000; } else if (V.rep < 0) { // Rep should never be lower than 0. Record this rounding purely to keep the books balanced. V.lastWeeksRepIncome.overflow += (0 - V.rep); V.rep = 0; } App.Utils.scheduleSidebarRefresh(); return rep; }; /** Make sure a number is negative. * @param {number} x * @returns {number} */ globalThis.forceNeg = function(x) { return -Math.abs(x); }; Number.prototype.toFixedHTML = function() { return num(Number.prototype.toFixed.apply(this, arguments)).replace(/\.0+$/, '<span style="opacity: 0.3">$&</span>'); }; globalThis.SectorCounts = function() { // Ternaries: - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Conditional_Operator V.AProsperityCapModified = V.AProsperityCapModified > 0 ? V.AProsperityCapModified : 0; const caps = [ {upgrade: "drones", cap: 10}, {upgrade: "hydro", cap: 30}, {upgrade: "apron", cap: 60}, {upgrade: "grid", cap: 100}, {upgrade: "spire", cap: 150}]; V.AProsperityCap = 0; caps.forEach(cap => { if (V.arcologyUpgrade[cap.upgrade] > 0) { V.AProsperityCap = cap.cap; } }); // The idea is that cells used for your private benefit contribute less to the economy as they cannot be used by // others to generate revenue and therefore increase total cash flow. Can be offset by more luxury apartments. V.Sweatshops = 0; V.building.findCells(cell => !(cell instanceof App.Arcology.Cell.Penthouse)) .forEach(cell => { if (cell instanceof App.Arcology.Cell.Apartment) { if (cell.type === 1) { V.AProsperityCap += 10; } else if (cell.type === 2) { V.AProsperityCap += 5; } } else if (cell instanceof App.Arcology.Cell.Shop) { if (cell.type !== "Club" && cell.type !== "Brothel") { V.AProsperityCap += 10; } } else if (cell instanceof App.Arcology.Cell.Market) { if (cell.type === "Transport Hub") { V.AProsperityCap += 15; } else if (cell.type !== "Pit" && cell.type !== "Arcade") { V.AProsperityCap += 10; } } else if (cell instanceof App.Arcology.Cell.Manufacturing) { if (cell.type !== "Dairy" && cell.type !== "Farmyard" && cell.type !== "Barracks") { V.AProsperityCap += 10; if (cell.type === "Sweatshops") { V.Sweatshops++; } } } }); V.AProsperityCap += V.AProsperityCapModified; }; /** * Calculate the agent bonus for a given arcology governed by an agent. * @param {number} arcology Arcology Index * @returns {number} */ globalThis.agentBonus = function(arcology) { const agent = App.currentAgent(arcology); let bonus = Math.floor((agent.intelligence+agent.intelligenceImplant)/32); if (agent.actualAge > 35) { bonus++; } if (agent.career === "an arcology owner" || setup.HGCareers.includes(agent.career)) { bonus++; } if (agent.fetishStrength > 95) { if (agent.fetish === "dom" || agent.fetish === "sadist") { bonus++; } else if (agent.fetish === "submissive" || agent.fetish === "masochist") { bonus--; } } if (agent.energy > 95) { bonus++; } if (bonus > jsRandom(0, 5)) { bonus++; } return bonus; }; /** * Report supply market status, charge for subsidies and supply barriers and report the results * @param {string} NPCclass One of "lower", "middle", "upper", or "top" * @returns {string} */ globalThis.supplyPoliciesReport = function(NPCclass) { let r = ``; const varName = `${NPCclass}Class`; const className = NPCclass !== 'top' ? `<b>${NPCclass} class citizens</b>` : `<b>arcology's millionaires</b>`; const dissatisfaction = `and their <span class='red'>dissatisfaction</span> with you is rising.`; let overSupply = 0; if (V.sexDemandResult[varName] < 350) { r += `Your ${className} have <span class='red'>far too few options for sexual relief</span> inside your arcology`; if (V.classSatisfied[varName] === 0) { r += `. They trust you will take care of this issue as soon as you are settled in.`; } else { r += ` ${dissatisfaction}`; } } else if (V.sexDemandResult[varName] < 550) { r += `Your ${className} need <span class='red'>some more avenues for sexual relief</span> inside your arcology`; if (V.classSatisfied[varName] === 1) { r += `. They see <span class='green'>you are on the right track</span> and anticipate further improvements.`; } else if (V.classSatisfied[varName] === 0) { r += `. Their patience is being tested.`; } else { r += ` ${dissatisfaction}`; } } else if (V.sexDemandResult[varName] < 750) { r += `Your ${className} have no issue finding the sexual relief they need inside your arcology.`; if (V.classSatisfied[varName] === 1) { r += ` They are <span class='green'>delighted</span> with how quickly you've provided for them.`; } } else { r += `Your ${className} are <span class='green'>${V.sexDemandResult[varName] < 950 ? `happy with the availability` : `delighted with the abundance`} of sexual services</span> inside your arcology.`; } if (V.sexDemandResult[varName] > 1000) { overSupply = V.sexDemandResult[varName] - 1000; V.sexDemandResult[varName] = 1000; } r += `<i><br>&nbsp;Satisfaction is at ${V.sexDemandResult[varName]/10}%`; if (overSupply > 0) { r += ` and the arcology provides ${overSupply/10}% more sexual services than required which <span class='red'>drives prices down,</span>`; } r += ` ${V.NPCMarketShare[varName]/10 === V.sexDemandResult[varName]/10 ? `the entire` : `${V.NPCMarketShare[varName]/10}% of the`} market is serviced by other suppliers operating inside your arcology.</i><br>`; // charge supply barriers (unreported, since it's a flat amount that you were told when you enacted the policy) const supplyCosts = [0, 1000, 5000, 20000, 60000]; cashX(forceNeg(supplyCosts[V.sexSupplyBarriers[varName]]), "subsidiesAndBarriers"); // report subsidy cost since it is variable if (V.sexSubsidies[varName] > 0) { const severity = ["none", "minor", "moderate", "substantial", "gratuitous"]; const subsidyCost = forceNeg(Math.trunc(V.NPCSexSupply[varName] * Math.pow(V.sexSubsidies[varName], 2) * 0.25)); r += `<i>&nbsp;Your ${severity[V.sexSubsidies[varName]]} subsidy costs ${cashFormatColor(subsidyCost)} this week</i>`; cashX(subsidyCost, "subsidiesAndBarriers"); // warn about conflicting policies if (V.sexSupplyBarriers[varName] > 0) { r += `<i>, however the barriers that are also in place <span class="red">reduce its effectiveness and increase</span> your costs</i>`; } r += `.<br>`; } return r; }; /** * @param {boolean} short * @returns {DocumentFragment} */ globalThis.ownershipReport = function(short) { const fragment = document.createDocumentFragment(); let cssClass; let warning = false; const ownership = V.arcologies[0].ownership; const minority = V.arcologies[0].minority; if (ownership <= minority + 5) { cssClass = 'warning'; warning = true; } else if (ownership >= minority + 10) { cssClass = 'yellowgreen'; } else if (ownership >= minority) { cssClass = 'yellow'; } if (short === true) { const span = document.createElement("span"); span.className = cssClass; span.append(`${ownership}%`); if (V.assistant.power >= 1 && ownership < 100) { span.append(`:${minority}%`); } fragment.append("(", span, ")"); } else { fragment.append("You own ", App.UI.DOM.makeElement("span", `${ownership}%`, "bold"), ` of ${V.arcologies[0].name}, `); if (minority > 0) { fragment.append("against ", App.UI.DOM.makeElement("span", `${minority}%`, "bold"), " owned by the second most significant holder."); } else { fragment.append("and there are no other significant holders."); } if (warning) { App.UI.DOM.appendNewElement("span", fragment, " A dangerously narrow margin of control.", "warning"); } } return fragment; }; globalThis.setupLastWeeksCash = function() { V.lastWeeksCashIncome = new App.Data.Records.LastWeeksCash(); V.lastWeeksCashExpenses = new App.Data.Records.LastWeeksCash(); V.lastWeeksCashErrors = "Errors: "; }; globalThis.setupLastWeeksRep = function() { V.lastWeeksRepIncome = new App.Data.Records.LastWeeksRep(); V.lastWeeksRepExpenses = new App.Data.Records.LastWeeksRep(); V.lastWeeksRepErrors = "Errors: "; };
MonsterMate/fc
src/js/economyJS.js
JavaScript
mit
88,561
App.EventHandlers = function() { /** * @param {TwineSugarCube.SaveObject} save */ function onLoad(save) { const v = save.state.history[0].variables; if (v.releaseID === 2000) { v.releaseID = 1100; } if (v.releaseID > App.Version.release) { console.error("Save game version problem. Loaded : " + v.releaseID + ", above expected:" + App.Version.release); // eslint-disable-line no-console throw new Error("The save you're attempting to load was created with the game version newer than one you are running. Please download the latest game version."); } // updating settings only for the same releaseID, otherwise user will run // backwards compatibility and we update settings from there if (v.releaseID === App.Version.release) { App.UI.SlaveSummary.settingsChanged(v); } } /** * @param {TwineSugarCube.SaveObject} save */ function onSave(save) { } function storyReady() { App.UI.Theme.init(); App.UI.Hotkeys.init(); } function optionsChanged() { App.UI.SlaveSummary.settingsChanged(); } return { onLoad: onLoad, onSave: onSave, storyReady: storyReady, optionsChanged: optionsChanged }; }();
MonsterMate/fc
src/js/eventHandlers.js
JavaScript
mit
1,159
/** * STANDARD EVENTS * @param {App.Entity.SlaveState} eventSlave */ globalThis.generateRandomEventPoolStandard = function(eventSlave) { if (eventSlave.fetish !== "mindbroken") { if (hasAnyArms(eventSlave) && hasAnyLegs(eventSlave)) { if (canTalk(eventSlave)) { if (V.RECockmilkInterceptionIDs.length > 1 || (V.RECockmilkInterceptionIDs.length === 1 && eventSlave.ID !== V.RECockmilkInterceptionIDs[0])) { if (eventSlave.devotion > 20) { if (eventSlave.dietCum > 0 || (eventSlave.fetishKnown && eventSlave.fetish === "cumslut")) { V.RETSevent.push("cockmilk interception"); } } } if (V.REInterslaveBeggingIDs.length > 1 || (V.REInterslaveBeggingIDs.length === 1 && eventSlave.ID !== V.REInterslaveBeggingIDs[0])) { if (V.universalRulesConsent === 1) { if (eventSlave.devotion > 20) { if (eventSlave.energy > 40) { if (canPenetrate(eventSlave)) { if (canSee(eventSlave)) { if (eventSlave.rules.release.slaves === 1) { V.RETSevent.push("interslave begging"); } } } } } } } if (V.seeIncest === 1) { if (eventSlave.devotion > 20) { if (eventSlave.sexualQuirk === "perverted" || eventSlave.energy > 80) { if (eventSlave.belly < 100000) { if (eventSlave.lactation > 0) { if (eventSlave.nipples !== "fuckable") { if (eventSlave.rules.release.family === 1) { if (eventSlave.daughters > 0) { V.RETSevent.push("incestuous nursing"); } } } } } } } } if (eventSlave.skill.entertainment >= 60 || ["a ballerina", "a camgirl", "a camwhore", "a cheerleader", "a classical dancer", "a dancer", "a house DJ", "a party girl", "an aspiring pop star", "an exotic dancer", "an idol"].includes(eventSlave.career)) { if (canHear(eventSlave)) { if (eventSlave.health.condition > 40) { if (eventSlave.devotion > 50) { if (eventSlave.trust > 50) { V.RESSevent.push("happy dance"); } } } } } if (V.RERepressedAnalVirginSubIDs.length > 0) { if (eventSlave.anus === 0) { if (eventSlave.devotion >= -50) { if (eventSlave.trust >= -50) { if (eventSlave.sexualFlaw === "repressed") { V.RETSevent.push("repressed anal virgin"); } } } } } if (V.assistant.personality === 1) { if (V.assistant.appearance !== "normal") { if (eventSlave.devotion >= -20) { if (canSee(eventSlave)) { if (eventSlave.devotion <= 50) { if (eventSlave.assignment === Job.HOUSE) { if (canDoAnal(eventSlave) || canDoVaginal(eventSlave)) { V.RESSevent.push("PA servant"); } } } else if (eventSlave.trust > 75) { if (eventSlave.energy > 60) { if ((canDoAnal(eventSlave) && eventSlave.anus > 0) || (canDoVaginal(eventSlave) && eventSlave.vagina > 0)) { V.RESSevent.push("PA flirting"); } } } } } } } if (eventSlave.clothes === "a succubus outfit") { if (eventSlave.devotion > 20) { if (eventSlave.trust > 20) { V.RESSevent.push("sexy succubus"); } } } if (V.HeadGirlID !== 0) { if (eventSlave.devotion <= 50) { if (eventSlave.anus !== 0 && canDoAnal(eventSlave)) { if (V.HGSeverity >= 0) { V.events.push("RE anal punishment"); } V.events.push("RE shower punishment"); } } if (eventSlave.ID === V.HeadGirlID) { if (eventSlave.trust > 50) { V.RESSevent.push("trusting HG"); } } if (eventSlave.ID !== V.HeadGirlID) { if (canSee(eventSlave) && canWalk(eventSlave)) { if (eventSlave.rules.speech !== "restrictive") { if (eventSlave.trust > 75) { if (eventSlave.devotion > 50) { if (eventSlave.skill.oral > 30) { if (eventSlave.intelligence + eventSlave.intelligenceImplant >= S.HeadGirl.intelligence + S.HeadGirl.intelligenceImplant) { if (eventSlave.skill.oral > S.HeadGirl.skill.oral) { V.events.push("RE HG replacement"); } } } } } } } } } if (eventSlave.rules.living === "spare") { if (eventSlave.devotion <= 20) { if (eventSlave.devotion > -10) { V.RESSevent.push("sleeping ambivalent"); } if (eventSlave.trust < -20) { V.RESSevent.push("bad dream"); } } } if (eventSlave.devotion <= 50) { if (eventSlave.devotion >= -20) { if (eventSlave.weekAcquired > 0) { if (V.week - eventSlave.weekAcquired < 10) { if (eventSlave.energy > 20) { if (eventSlave.anus !== 0) { if (eventSlave.vagina !== 0) { V.RESSevent.push("ignorant horny"); } } } } } } } if (V.RETasteTestSubIDs.length > 1) { if (eventSlave.rules.living === "luxurious") { if (eventSlave.devotion > 20) { if (eventSlave.energy > 80) { if (canTaste(eventSlave)) { V.RETSevent.push("taste test"); } } } } } if (V.modRequestsAllowed > 0) { if (eventSlave.trust > 50) { if (eventSlave.devotion > 20) { if (eventSlave.dick !== 0 || eventSlave.vagina !== -1) { if (eventSlave.nipples !== "fuckable") { if (eventSlave.rules.speech === "permissive") { if (eventSlave.corsetPiercing === 0) { if (eventSlave.tonguePiercing === 0) { if (eventSlave.anusPiercing === 0) { if (eventSlave.nipplesPiercing === 0) { if (eventSlave.dickPiercing === 0) { if (eventSlave.vaginaPiercing === 0) { if (eventSlave.lipsTat === 0 || eventSlave.lipsTat === "none") { if (eventSlave.vaginaTat === 0 || eventSlave.vaginaTat === "none") { V.RESSevent.push("mods please"); } } } } } } } } } } } } } } if (eventSlave.muscles > 5) { if (eventSlave.devotion > 20) { if (eventSlave.diet !== "slimming") { V.RESSevent.push("sore shoulders"); } } } if (eventSlave.relationship > 3) { let relationshipSlave = V.slaves.find(s => s.ID === eventSlave.relationshipTarget); if (relationshipSlave.devotion > 20) { if (canWalk(relationshipSlave)) { if (canTalk(relationshipSlave)) { if (eventSlave.devotion > 50) { if (eventSlave.trust > 50) { if (eventSlave.rules.speech !== "restrictive") { V.RETSevent.push("date please"); } if (relationshipSlave.anus !== 0) { if (relationshipSlave.dick !== 1) { if (relationshipSlave.dick === 0 || canAchieveErection(relationshipSlave)) { if (relationshipSlave.fetish === "dom" || relationshipSlave.fetish === "sadist") { V.RETSevent.push("top exhaustion"); } } } } } } } } } } if (V.REAnalCowgirlSubIDs.length > 1 || (V.REAnalCowgirlSubIDs.length === 1 && eventSlave.ID !== V.REAnalCowgirlSubIDs[0])) { if (eventSlave.devotion > 20) { if (eventSlave.rules.release.slaves === 1) { if (eventSlave.fetish === "buttslut" || eventSlave.fetish === "sadist" || eventSlave.fetish === "dom") { if ((eventSlave.chastityPenis !== 1) || (eventSlave.dick === 0)) { V.RETSevent.push("anal cowgirl"); } } } } } if (V.REBoobCollisionSubIDs.length > 1) { if (eventSlave.devotion > 20) { if (eventSlave.trust > 20) { if (eventSlave.boobs > 3000) { if (eventSlave.attrXX >= 50 || (eventSlave.fetish === "boobs" && eventSlave.fetishStrength > 95)) { V.RETSevent.push("boob collision"); } } } } } if (V.weatherToday.severity <= 1) { if (eventSlave.trust > 50) { if (eventSlave.devotion > 20) { if (eventSlave.anus !== 0 && canDoAnal(eventSlave)) { if (eventSlave.vagina !== 0) { V.RESSevent.push("confident tanning"); } } } } } if (eventSlave.devotion > 50) { if (eventSlave.trust > 50) { let giver = 0; if (V.HeadGirlID === 0) { giver = 1; } else if (V.HeadGirlID !== eventSlave.ID) { giver = 1; } if (giver === 1) { V.RESSevent.push("a gift"); } } } if (eventSlave.relationship >= 2) { if (eventSlave.relationship < 5) { if (eventSlave.devotion > 20) { if (eventSlave.trust >= -20) { V.events.push("RE relationship advice"); } } } } if (eventSlave.devotion > 50) { if (eventSlave.anus > 0) { if (eventSlave.vagina !== 0) { if (eventSlave.trust > 20) { V.RESSevent.push("devoted exhibition"); V.RESSevent.push("devoted lotion"); } if (eventSlave.energy > 95 && canDoAnal(eventSlave)) { V.RESSevent.push("devoted nympho"); } if (eventSlave.rules.release.masturbation === 1) { if (hasBothArms(eventSlave)) { if ((eventSlave.chastityPenis !== 1) || (eventSlave.dick === 0)) { V.RESSevent.push("permitted masturbation"); } } } } } } if (eventSlave.trust < -50) { if (eventSlave.devotion <= 20) { V.RESSevent.push("terrified inspection"); } } /* if(eventSlave.drugs === "breast injections") { if(eventSlave.anus > 0 || eventSlave.vagina > 0) { if(eventSlave.devotion <= 50) { if(eventSlave.devotion >= -20) { if(eventSlave.trust >= -50) { if(V.REReductionCheckinIDs.includes(eventSlave.ID)) { V.RECIevent.push("reduction"); } } } } } } */ if (eventSlave.assignment === Job.HOUSE) { if (eventSlave.devotion <= 95) { if (eventSlave.intelligence + eventSlave.intelligenceImplant < -50) { V.RESSevent.push("cooler lockin"); } } } if (V.universalRulesConsent === 0) { if (eventSlave.devotion > 50) { if (eventSlave.fetish === "sadist" || eventSlave.fetish === "dom" || eventSlave.energy > 95) { if (V.REShowerForceSubIDs.length > 0) { if (eventSlave.trust <= 75) { V.RETSevent.push("shower force"); } } if (eventSlave.anus > 0) { if (V.RESadisticDescriptionSubIDs.length > 0) { V.RETSevent.push("sadistic description"); } } } if (V.REIfYouEnjoyItSubIDs.length > 0) { V.RETSevent.push("if you enjoy it"); } } } if (eventSlave.devotion < -50) { if (eventSlave.trust >= -20) { if (eventSlave.rules.speech === "restrictive") { V.RESSevent.push("vocal disobedience"); } } } if (V.boobAccessibility !== 1 && V.ballsAccessibility !== 1 && V.pregAccessibility !== 1) { if (eventSlave.boobs > 10000) { if (eventSlave.devotion >= -20) { if (V.slaves.length > 2) { if (canDoAnal(eventSlave) || canDoVaginal(eventSlave)) { V.RESSevent.push("huge tits"); } } } } } if (eventSlave.physicalAge > 30) { if (eventSlave.ageImplant > 0) { if (eventSlave.devotion > 20) { V.RESSevent.push("age implant"); } } } if (V.seeAge !== 0) { if (eventSlave.devotion > 50) { if (eventSlave.rules.speech !== "restrictive") { if (eventSlave.birthWeek >= 51) { /* let's give this a much higher chance of appearing */ V.RESSevent.push("birthday"); V.RESSevent.push("birthday"); V.RESSevent.push("birthday"); V.RESSevent.push("birthday"); V.RESSevent.push("birthday"); V.RESSevent.push("birthday"); V.RESSevent.push("birthday"); V.RESSevent.push("birthday"); } } } } if (eventSlave.clothes === "a penitent nuns habit") { if (eventSlave.anus > 0) { if (eventSlave.devotion >= -20) { if (eventSlave.devotion <= 50) { V.RESSevent.push("penitent"); } } } } if (eventSlave.slaveName !== eventSlave.birthName && eventSlave.birthName !== "") { if (eventSlave.devotion <= 20) { if (eventSlave.trust >= -20) { if (eventSlave.anus > 0 && canDoAnal(eventSlave)) { V.RESSevent.push("not my name"); } } } } if (V.slaves.length > 2) { if (eventSlave.devotion >= -20) { if (eventSlave.heels === 1) { if (eventSlave.shoes === "heels" || eventSlave.shoes === "boots" || eventSlave.shoes === "extreme heels") { V.RESSevent.push("tendon fall"); } } } } if (eventSlave.devotion > 50) { if (eventSlave.trust > 20) { if (eventSlave.physicalAge > 37) { if (eventSlave.anus > 0) { if (eventSlave.vagina > 0) { V.RESSevent.push("devoted old"); } } } } } if (eventSlave.devotion > 20) { if (eventSlave.trust > 20) { if (eventSlave.actualAge > 35) { if (canDoAnal(eventSlave) || canDoVaginal(eventSlave)) { if (V.PC.actualAge < 25) { V.RESSevent.push("young PC age difference"); } } } } } if (eventSlave.devotion > 20) { if (eventSlave.trust > 20) { if (eventSlave.actualAge < 22) { if (canDoAnal(eventSlave) || canDoVaginal(eventSlave)) { if (V.PC.actualAge >= 50) { V.RESSevent.push("old PC age difference"); } } } } } if (eventSlave.fetish === "humiliation" || eventSlave.energy > 95) { if (eventSlave.devotion <= 50) { if (eventSlave.devotion >= -20) { if (canDoAnal(eventSlave) || canDoVaginal(eventSlave)) { if (eventSlave.vagina !== 0) { if (eventSlave.anus !== 0) { if (eventSlave.fetishKnown === 1) { V.RESSevent.push("fearful humiliation"); } } } } } } } if (eventSlave.rules.living === "luxurious") { if (eventSlave.devotion <= 75) { if (eventSlave.devotion > 50) { V.RESSevent.push("newly devoted sunrise"); } } } if (V.spa > 0) { if (eventSlave.boobs > 2000) { if (eventSlave.devotion > 20) { if (eventSlave.trust > 20) { if (canDoAnal(eventSlave) || canDoVaginal(eventSlave)) { V.RESSevent.push("spa boobs"); } } } } } if (eventSlave.lactation > 0) { if (eventSlave.boobs > 800) { if (eventSlave.nipples !== "fuckable") { if (eventSlave.devotion > 20) { if (eventSlave.trust > 20) { V.RESSevent.push("cow milking"); } } } } } if (V.arcologies[0].FSSubjugationist !== "unset") { if (eventSlave.race !== V.arcologies[0].FSSubjugationistRace) { if (V.week - eventSlave.weekAcquired > 1) { if (V.week - eventSlave.weekAcquired < 10) { if (eventSlave.devotion < -20) { if (eventSlave.trust >= -20) { if (eventSlave.health.condition > -20) { if (eventSlave.race === eventSlave.origRace) { if (eventSlave.indentureRestrictions < 1) { V.RESSevent.push("subjugation blues"); } } } } } } } } } if (eventSlave.drugs === "intensive breast injections" || eventSlave.drugs === "hyper breast injections") { if (eventSlave.boobs <= 8000) { if (eventSlave.boobs > 2000) { if (eventSlave.devotion <= 50) { if (eventSlave.devotion >= -50) { if (eventSlave.trust >= -50) { if (eventSlave.fetish !== "boobs") { if (eventSlave.intelligence + eventSlave.intelligenceImplant >= -50) { V.RESSevent.push("breast expansion blues"); } } } } } } } } if (eventSlave.physicalAge > 35) { if (eventSlave.rules.speech !== "restrictive") { if ([Job.PUBLIC, Job.WHORE].includes(eventSlave.assignment)) { if (eventSlave.devotion >= -20) { if (eventSlave.devotion <= 95) { V.RESSevent.push("ara ara"); } } } } } if (eventSlave.anus > 3) { if (eventSlave.devotion > 50) { if (eventSlave.trust > 50) { V.RESSevent.push("gaped asshole"); } } } if (eventSlave.fetish === "sadist") { if (eventSlave.fetishStrength > 20) { if (App.Entity.facilities.arcade.established) { if (eventSlave.trust >= -20) { if (eventSlave.devotion > 50) { if (eventSlave.belly < 300000) { V.RESSevent.push("arcade sadist"); } } } } } } if (eventSlave.dick === 0) { if (eventSlave.vagina === -1) { if (canDoAnal(eventSlave)) { if (eventSlave.energy > 20) { if (eventSlave.devotion >= -50) { if (eventSlave.fetish !== "buttslut" || eventSlave.fetishStrength <= 20) { if (eventSlave.nipples !== "fuckable") { V.RESSevent.push("desperate null"); } } } } } } } if (eventSlave.devotion > 20) { if (eventSlave.boobs > 2000) { V.RESSevent.push("back stretch"); } } if (eventSlave.devotion > 20) { if (eventSlave.trust > 20) { if (eventSlave.rules.speech !== "restrictive") { if (eventSlave.choosesOwnClothes !== 1) { if (setup.modestClothes.includes(eventSlave.clothes)) { V.RESSevent.push("modest clothes"); } } } } } if (V.PC.vagina > -1) { if (eventSlave.devotion <= 20) { if ((eventSlave.trust >= -20 && eventSlave.behavioralFlaw === "arrogant") || (eventSlave.trust > 20)) { if (eventSlave.muscles > 30) { if (eventSlave.health.condition > 20) { if (eventSlave.energy > 50) { if (canPenetrate(eventSlave)) { if (V.BodyguardID === 0) { V.RESSevent.push("mutinery attempt"); } } } } } } } } } /* closes mute exempt */ if (eventSlave.devotion > 20) { if (eventSlave.mouthAccessory !== "none") { V.RESSevent.push("gagged slave"); } } if (eventSlave.devotion <= 20) { if (eventSlave.trust <= -20) { if (eventSlave.genes === "XY") { if (eventSlave.dick > 0) { if (eventSlave.chastityPenis !== 1) { if (eventSlave.vagina === -1) { if (eventSlave.attrXY < 50) { V.RESSevent.push("transition anxiety"); } } } } } } } if (V.seeAge === 1) { if (eventSlave.actualAge < 18) { if (eventSlave.devotion > 20) { if (eventSlave.ovaries === 1) { if (eventSlave.pubertyXX === 0) { if (eventSlave.preg === 0) { if (eventSlave.physicalAge + eventSlave.birthWeek / 52 >= eventSlave.pubertyAgeXX - 0.5) { V.RESSevent.push(...Array.from({length: 10}, () => "first period")); } } } } if (canPenetrate(eventSlave)) { if (eventSlave.balls > 0) { if (eventSlave.pubertyXY === 0) { if (eventSlave.physicalAge + eventSlave.birthWeek / 52 >= eventSlave.pubertyAgeXY - 0.5) { V.RESSevent.push(...Array.from({length: 10}, () => "wet dreams")); } } } } } } } /* closes aging exemption */ if (eventSlave.devotion >= -150) { if (eventSlave.devotion <= 50) { V.events.push("RE standard punishment"); } } if (eventSlave.boobs > 600) { if (eventSlave.boobShape === "torpedo-shaped") { if (eventSlave.devotion >= -50) { V.RESSevent.push("torpedo squeeze"); } } } if (eventSlave.assignment === Job.PUBLIC) { if (eventSlave.fetishKnown === 1) { if (V.arcologies[0].FSDegradationist === "unset") { if (V.arcologyUpgrade.drones === 1) { V.RESSevent.push("mean girls"); } } } } if (eventSlave.balls > 0) { if (eventSlave.hormoneBalance >= 100) { if (V.hormoneUpgradeMood === 0) { if (eventSlave.trust >= -50) { if (eventSlave.devotion >= -20) { if (eventSlave.devotion <= 50) { V.RESSevent.push("orchiectomy please"); } } } } } } if (eventSlave.trust > 20) { if (eventSlave.devotion > 50) { if (V.PC.belly < 5000) { V.RESSevent.push("shower slip"); } if (getLimbCount(eventSlave, 102) === 4) { V.RESSevent.push("plimb help"); } } } if (eventSlave.relationship <= -2) { if (eventSlave.trust > 50) { if (eventSlave.devotion > 50) { V.RESSevent.push("bonded love"); } } } if (eventSlave.trust > 20) { if (eventSlave.devotion > 50) { V.RESSevent.push("objectifying visit"); } } if (canWalk(eventSlave)) { if (eventSlave.devotion > 20) { if (eventSlave.trust > -10) { if (eventSlave.ID !== V.HeadGirlID) { if (eventSlave.ID !== V.ConcubineID) { V.RESSevent.push("refreshment delivery"); } } } } } if (eventSlave.dick > 8) { if (eventSlave.balls > 0) { if (eventSlave.energy > 60) { if (eventSlave.devotion > 50) { if (eventSlave.trust > 50) { if (canDoAnal(eventSlave) || canDoVaginal(eventSlave)) { if (eventSlave.belly < 100000) { V.RESSevent.push("dick wringing"); } } } } } } } if (eventSlave.balls > 0) { if (eventSlave.scrotum > 0) { if (eventSlave.chastityPenis === 1) { if (eventSlave.devotion <= 95) { if (eventSlave.energy > 50) { if (eventSlave.energy < 95) { if (eventSlave.devotion >= -20 || eventSlave.trust < -20) { V.RESSevent.push("cage relief"); } } } } } } } if (V.PC.dick > 0) { if (V.PC.boobs >= 300) { if (canSee(eventSlave)) { if (eventSlave.devotion <= 50) { if (eventSlave.devotion >= -20) { if (((eventSlave.attrXY <= 35) && (eventSlave.attrXX > 65)) || ((eventSlave.attrXX <= 35) && (eventSlave.attrXY > 65))) { V.RESSevent.push("dickgirl PC"); } } } } } } if (eventSlave.voice > 0) { if (eventSlave.lips <= 95) { if (eventSlave.mouthAccessory === "none") { if (eventSlave.accent === 3) { if (eventSlave.devotion <= 50) { if (eventSlave.trust > -10) { if (eventSlave.devotion >= -20 || eventSlave.trust < -20) { V.RESSevent.push("language lesson"); } } } } } } } if (eventSlave.trust <= 20) { if (eventSlave.trust >= -75) { if (eventSlave.devotion <= 30) { if (eventSlave.devotion >= -20) { V.RESSevent.push("like me"); } } } } if (eventSlave.boobs >= 2000) { if (eventSlave.boobsImplant === 0) { if (eventSlave.nipples !== "tiny" && eventSlave.nipples !== "fuckable") { if (eventSlave.devotion > 20) { V.RESSevent.push("huge naturals"); } } } } if (eventSlave.boobs > 800) { if (Math.floor(eventSlave.boobsImplant / eventSlave.boobs) >= 0.60) { if (eventSlave.devotion > 20) { V.RESSevent.push("implant inspection"); } } } if (eventSlave.devotion < -20) { if (eventSlave.trust >= -20) { if (eventSlave.clothes === "uncomfortable straps") { V.RESSevent.push("bondage gear"); } } } if (eventSlave.labia > 1 && eventSlave.vagina >= 0) { if (eventSlave.muscles > 5 || eventSlave.diet === "muscle building") { if (eventSlave.belly < 10000) { if (eventSlave.devotion > 20) { if (eventSlave.trust > 20) { V.RESSevent.push("inconvenient labia"); } } } } } if (eventSlave.devotion <= 50) { if (eventSlave.trust >= -50) { if (eventSlave.behavioralFlaw === "gluttonous") { if (eventSlave.diet === "restricted") { V.RESSevent.push("diet"); } } } } if (eventSlave.devotion <= 20) { if (eventSlave.devotion >= -50) { V.RESSevent.push("resistant shower"); } } if (eventSlave.rules.speech !== "restrictive") { if (eventSlave.devotion >= -20) { if (eventSlave.trust >= -20) { if (eventSlave.energy > 75) { if (eventSlave.fetish !== "buttslut") { if (eventSlave.vagina !== 0 || eventSlave.anus !== 0) { V.RESSevent.push("night visit"); } } } } } } if (eventSlave.rules.release.masturbation === 0 && !App.Utils.hasNonassignmentSex(eventSlave)) { if (eventSlave.need) { if (eventSlave.devotion <= 95) { if (eventSlave.trust >= -20) { if ((eventSlave.chastityPenis !== 1) || (eventSlave.dick === 0)) { V.RESSevent.push("forbidden masturbation"); } } } if (eventSlave.devotion >= -20) { if (eventSlave.trust >= -50) { V.RESSevent.push("desperately horny"); } } } } if (eventSlave.devotion >= -20) { if (eventSlave.lactation > 1) { if (canDoVaginal(eventSlave) || canDoAnal(eventSlave)) { V.RESSevent.push("milkgasm"); } } } if (eventSlave.skill.entertainment >= 100) { if (eventSlave.trust > 50) { if (eventSlave.assignment === Job.PUBLIC) { V.RESSevent.push("masterful entertainer"); } } } if (eventSlave.skill.whoring >= 100) { if (eventSlave.trust > 50) { if (eventSlave.assignment === Job.WHORE) { V.RESSevent.push("masterful whore"); } } } if (eventSlave.dick > 0) { if (eventSlave.balls === 0) { if (eventSlave.genes === "XY") { if (eventSlave.devotion <= 50) { if (eventSlave.trust < -50) { if (eventSlave.anus > 0) { if (canDoAnal(eventSlave)) { V.RESSevent.push("resistant gelding"); } } } } } } } if (V.seePreg !== 0) { if (isFertile(eventSlave)) { if (eventSlave.devotion > 50) { if (V.PC.dick !== 0) { if (eventSlave.fetish === "pregnancy" || eventSlave.energy > 95) { if (eventSlave.eggType === "human") { if (eventSlave.fetishKnown === 1) { if (eventSlave.vagina !== 0) { if (eventSlave.anus > 0) { if (eventSlave.geneticQuirks.superfetation === 2 && (eventSlave.intelligence + eventSlave.intelligenceImplant > 15) && eventSlave.womb.length > 0) { if (eventSlave.belly < (eventSlave.pregAdaptation * 1750)) { V.RESSevent.push("impregnation please"); } } else { V.RESSevent.push("impregnation please"); } } } } } } } } } } if (["huge plug", "large plug", "long, huge plug", "long, large plug"].includes(eventSlave.buttplug)) { if (eventSlave.assignment !== Job.CONFINEMENT && isSlaveAvailable(eventSlave)) { if (eventSlave.devotion <= 20) { if (eventSlave.trust >= -50) { if (eventSlave.anus < 3) { V.RESSevent.push("plug disobedience"); } } } } } if ([Job.PUBLIC, Job.WHORE].includes(eventSlave.assignment)) { if (eventSlave.vagina !== 0) { if (eventSlave.anus !== 0) { if (canDoAnal(eventSlave)) { if (eventSlave.devotion <= 50) { V.RESSevent.push("used whore"); } } } } } if (eventSlave.assignment === Job.PUBLIC) { if (eventSlave.devotion >= -20) { if (canDoAnal(eventSlave) || canDoVaginal(eventSlave)) { V.RESSevent.push("nice guys"); } } } } /* closes amp/crawling exempt */ if (canTalk(eventSlave)) { if (eventSlave.rules.speech !== "restrictive") { if (eventSlave.boobsImplant > 400) { if (eventSlave.lipsImplant >= 30) { if (eventSlave.buttImplant > 3) { if (eventSlave.boobs < 9000 || eventSlave.butt < 8) { V.RESSevent.push("surgery addict"); } } } } } if ([Job.CONCUBINE, Job.FUCKTOY, Job.MASTERSUITE].includes(eventSlave.assignment)) { if (eventSlave.devotion > 20) { if (eventSlave.trust >= -20) { if (canDoAnal(eventSlave) || canDoVaginal(eventSlave)) { if ((eventSlave.chastityPenis !== 1) || (eventSlave.dick === 0)) { if (V.corp.Incorporated !== 0) { V.RESSevent.push("shift sleep"); } if (canWalk(eventSlave)) { if (eventSlave.rules.release.masturbation === 1) { V.RESSevent.push("shift masturbation"); } } if (eventSlave.skill.entertainment >= 60) { V.RESSevent.push("shift doorframe"); } } if (canDoVaginal(eventSlave)) { if (V.PC.vagina > -1) { if (eventSlave.dick === 0) { if (V.fuckSlaves > 2) { V.RESSevent.push("fucktoy tribbing"); } } } } } } } } if (eventSlave.rules.speech !== "restrictive") { if (eventSlave.counter.oral + eventSlave.counter.vaginal + eventSlave.counter.anal > 900) { if (eventSlave.counter.oral + eventSlave.counter.vaginal + eventSlave.counter.anal < 1100) { if (eventSlave.vagina !== 0) { if (eventSlave.anus > 0) { if (canDoAnal(eventSlave) || canDoVaginal(eventSlave)) { V.RESSevent.push("millenary"); } } } } } } if (eventSlave.assignment === Job.CONFINEMENT) { if (eventSlave.devotion <= 50) { V.RESSevent.push("solitary desperation"); } } if (eventSlave.rules.speech === "restrictive") { if (eventSlave.devotion > 60) { if (eventSlave.trust >= -20) { V.RESSevent.push("restricted profession"); } } } if (eventSlave.rules.speech === "restrictive") { if (eventSlave.intelligence > 15) { if (eventSlave.trust >= -20) { if (eventSlave.devotion <= 20) { V.RESSevent.push("restricted smart"); } } } } if (V.expansionRequestsAllowed > 0) { if (eventSlave.drugs === "no drugs") { if (eventSlave.rules.speech === "permissive") { if (eventSlave.health.condition > 20) { if (eventSlave.devotion >= -20) { if (eventSlave.trust > 20) { if (V.arcologies[0].FSSlimnessEnthusiast === "unset") { V.RESSevent.push("injections please"); } } } } } } } } /* closes mute exempt */ if (eventSlave.boobs > 25000) { if (eventSlave.belly < 100000) { V.RESSevent.push("tittymonster inspection"); } } if (V.assistant.personality === 1) { if (eventSlave.fetishKnown === 1) { if (eventSlave.energy > 95) { if (eventSlave.devotion > 20) { if (eventSlave.rules.release.masturbation === 1) { V.RESSevent.push("nympho with assistant"); } } } } } if (eventSlave.devotion > 50) { if (eventSlave.trust > 50) { if ([Job.CONCUBINE, Job.FUCKTOY, Job.MASTERSUITE].includes(eventSlave.assignment)) { V.RESSevent.push("bed snuggle"); } } } if (eventSlave.minorInjury === "sore ass") { if (eventSlave.devotion <= 50) { V.RESSevent.push("sore ass"); } } if (eventSlave.sexualFlaw === "hates oral") { if (V.PC.dick !== 0) { if (eventSlave.devotion <= 50) { V.RESSevent.push("hates oral"); } } } if (V.seeExtreme === 1) { if (eventSlave.balls > 1) { if (eventSlave.scrotum > 0) { if (eventSlave.devotion <= 20) { if (eventSlave.trust <= 20) { if (eventSlave.rules.speech !== "restrictive") { V.RESSevent.push("fearful balls"); } } } } } } if (eventSlave.devotion <= 50) { if (eventSlave.assignment === Job.QUARTER || eventSlave.assignment === Job.HOUSE) { V.RESSevent.push("scrubbing"); } } if (eventSlave.devotion <= 20) { if (eventSlave.assignment === Job.QUARTER || eventSlave.assignment === Job.HOUSE) { if (eventSlave.clothes === "a slutty maid outfit" || eventSlave.clothes === "a nice maid outfit") { V.RESSevent.push("servant maid"); } } } if (eventSlave.rules.speech !== "restrictive") { if (canDoVaginal(eventSlave)) { if (eventSlave.fetish !== "buttslut") { if (eventSlave.vagina === 0) { if (eventSlave.anus !== 0) { if (eventSlave.counter.oral + eventSlave.counter.vaginal + eventSlave.counter.anal > 100) { V.RESSevent.push("unhappy virgin"); } } } } } } if (eventSlave.aphrodisiacs > 1 || eventSlave.inflationType === "aphrodisiac") { if (eventSlave.rules.speech === "restrictive" && eventSlave.rules.release.master === 1 && App.Utils.releaseRestricted(eventSlave)) { V.RESSevent.push("extreme aphrodisiacs"); } } if (eventSlave.rules.release.masturbation === 1) { if (eventSlave.dick > 4) { if (hasAnyArms(eventSlave)) { if (canAchieveErection(eventSlave)) { if (eventSlave.belly < 10000) { if (eventSlave.chastityPenis !== 1) { V.RESSevent.push("slave dick huge"); } } } } } } if (eventSlave.heels === 1) { if (eventSlave.shoes === "heels" || eventSlave.shoes === "extreme heels") { if (canDoAnal(eventSlave) || canDoVaginal(eventSlave)) { V.RESSevent.push("heels"); } } } if (eventSlave.rules.release.masturbation === 1) { if (eventSlave.belly < 300000) { if (eventSlave.anus > 2) { if (eventSlave.fetish === "buttslut" || eventSlave.energy > 95) { if (eventSlave.fetish !== "none") { if (canHold(eventSlave)) { if (canDoAnal(eventSlave)) { V.RESSevent.push("loose buttslut"); } } } } } } } if (eventSlave.assignment === Job.WHORE) { if (canDoAnal(eventSlave) && (eventSlave.vagina < 0 || canDoVaginal(eventSlave))) { if (eventSlave.devotion < -20 && eventSlave.trust >= -20) { V.RESSevent.push("whore rebellious"); } } } if (isAmputee(eventSlave)) { if (eventSlave.devotion > 20) { if (eventSlave.anus > 0 && canDoAnal(eventSlave)) { V.RESSevent.push("devoted amp"); } } if (eventSlave.assignment === Job.REST) { V.RESSevent.push("resting amp"); } } if (eventSlave.boobs > 1200) { if (eventSlave.areolaeShape !== "circle") { if (eventSlave.devotion > 50) { V.RESSevent.push("shaped areolae"); } } } if (eventSlave.behavioralFlaw === "arrogant") { if (eventSlave.devotion < -50) { if (eventSlave.trust >= -50) { V.RESSevent.push("rebellious arrogant"); } } } if (V.seePreg !== 0) { if (eventSlave.bellyPreg >= 10000) { V.RESSevent.push("hugely pregnant"); } } if (eventSlave.hormoneBalance >= 50) { if (eventSlave.vagina === -1) { if (eventSlave.balls >= 0) { if (eventSlave.devotion > 20 || eventSlave.trust < -20) { if (eventSlave.devotion <= 50) { if (eventSlave.fetish !== "buttslut") { if (eventSlave.rules.speech === "permissive") { V.RESSevent.push("hormone dysfunction"); } } } } } } } if (eventSlave.vaginaPiercing > 1) { if (eventSlave.nipplesPiercing > 1) { if (eventSlave.clitPiercing > 1) { if (eventSlave.devotion > 20 || eventSlave.trust < -20) { if (eventSlave.devotion <= 50) { if (canDoAnal(eventSlave) || canDoVaginal(eventSlave)) { V.RESSevent.push("heavy piercing"); } } } } } } if (eventSlave.fetishKnown === 1) { if (eventSlave.fetish === "cumslut" || eventSlave.energy > 95) { if ([Job.PUBLIC, Job.WHORE, Job.GLORYHOLE].includes(eventSlave.assignment)) { if (eventSlave.devotion > 20) { if (V.PC.dick !== 0) { V.RESSevent.push("cumslut whore"); } } } } } if (eventSlave.anus === 0) { if (eventSlave.devotion < -20) { if (eventSlave.trust >= -20) { V.RESSevent.push("resistant anal virgin"); } } } if (V.PC.dick !== 0) { if (eventSlave.bellyPreg >= 300000) { V.RESSevent.push("hyperpreg stuck"); } } if (eventSlave.devotion >= 50) { if (eventSlave.trust <= 20) { if (canWalk(eventSlave)) { V.RESSevent.push("devoted fearful slave"); } } } if (eventSlave.prestige === 0) { if (eventSlave.devotion > 50) { if (eventSlave.trust > 50) { if (eventSlave.skill.entertainment >= 100) { if (eventSlave.assignment === Job.PUBLIC) { V.events.push("RE legendary entertainer"); } } if (eventSlave.skill.whoring >= 100) { if (eventSlave.assignment === Job.WHORE) { V.events.push("RE legendary whore"); } } if (eventSlave.lactation > 0) { if ((eventSlave.boobs - eventSlave.boobsImplant) > 6000) { if (eventSlave.assignment === Job.MILKED) { V.events.push("RE legendary cow"); } } } if (eventSlave.bellyPreg >= 14000) { if (eventSlave.broodmother === 0) { if (eventSlave.counter.births > 10) { if (eventSlave.assignment === Job.WHORE || eventSlave.assignment === Job.PUBLIC) { if (!isAmputee(eventSlave)) { V.events.push("RE legendary womb"); } } } } } if (eventSlave.balls > 6) { if (eventSlave.dick > 6) { if (eventSlave.assignment === Job.MILKED) { V.events.push("RE legendary balls"); } } } if (eventSlave.origin === "You sentenced $him to enslavement as a punishment for attempted theft of a slave." || eventSlave.origin === "$He is an enslaved Daughter of Liberty." || eventSlave.origin === "You got $him at the Slave Shelter. $He is an enslaved Daughter of Liberty, caught some weeks after the failed coup. $His previous owner used $him as a punching bag and dart board, then when he was bored of $him tattooed obscenities all over $his body and threw $him away." || eventSlave.origin === "$He is an enslaved member of an anti-slavery extremist group." || eventSlave.career === "an antislavery activist") { if (eventSlave.devotion > 95 && eventSlave.assignment === Job.FUCKTOY) { V.events.push("RE former abolitionist"); } } } } } if (eventSlave.relationship === 4) { if (eventSlave.devotion > 20) { if (eventSlave.trust > 20) { V.events.push("RE slave marriage"); } } } if (V.eventResults.snatch === 0 && eventSlave.origin === "$He is your share of a raid on an illegal laboratory by your mercenaries." && eventSlave.newGamePlus === 0) { if (V.geneticMappingUpgrade === 2 && eventSlave.health.condition > 25 && eventSlave.devotion > 50 && V.cash > V.surgeryCost*4) { /* only one slave ever qualifies, so give it a bit more weight */ V.events.push("RE snatch and grab followup"); V.events.push("RE snatch and grab followup"); V.events.push("RE snatch and grab followup"); } } /* NICKNAME EVENTS */ if (V.nicknamesAllowed === 1) { let toSearch = eventSlave.slaveName.toLowerCase(); if (!toSearch.includes("'")) { if (V.week - eventSlave.weekAcquired >= 4) { V.events.push("RE nickname"); V.seed = 0; } } /* closes nickname check */ } /* closes no nicknames option */ } /* closes mindbreak exempt */ if (eventSlave.fetish === "mindbroken") { if (canWalk(eventSlave)) { V.RESSevent.push("mindbroken morning"); } if (eventSlave.kindness !== undefined && eventSlave.kindness >= 100) { if ((isSlaveAvailable(eventSlave) && canWalk(eventSlave)) || ([Job.CONCUBINE, Job.FUCKTOY, Job.MASTERSUITE].includes(eventSlave.assignment))) { if (eventSlave.relationship === -3) { if (jsRandom(1, 200) < eventSlave.kindness || V.cheatMode) { V.RESSevent.push("surprising wakeup"); } } } } if (eventSlave.career === "a breeding bull" && canImpreg(V.PC, eventSlave) && eventSlave.assignment === Job.MASTERSUITE && canPenetrate(eventSlave) && eventSlave.dick >= 5 && hasAllLimbs(eventSlave) && V.PC.vagina > -1 && V.PC.preg === 0 && (eventSlave.muscles > 30 || eventSlave.weight > 30)) { V.RESSevent.push("breeding bull"); if (V.PC.fertDrugs > 0) { V.RESSevent.push("breeding bull"); V.RESSevent.push("breeding bull"); } if (V.PC.forcedFertDrugs > 0) { V.RESSevent.push("breeding bull"); V.RESSevent.push("breeding bull"); } } } }; /** * servants spend a lot of time in the penthouse, so should be eligible for a number (but not all) random events * @param {App.Entity.SlaveState} eventSlave */ globalThis.generateRandomEventPoolServant = function(eventSlave) { /* STANDARD EVENTS */ if (eventSlave.fetish !== "mindbroken") { if (hasAnyArms(eventSlave) && hasAnyLegs(eventSlave)) { if (canTalk(eventSlave)) { if (V.RECockmilkInterceptionIDs.length > 1 || (V.RECockmilkInterceptionIDs.length === 1 && eventSlave.ID !== V.RECockmilkInterceptionIDs[0])) { if (eventSlave.devotion > 20) { if (eventSlave.dietCum > 0 || (eventSlave.fetishKnown && eventSlave.fetish === "cumslut")) { V.RETSevent.push("cockmilk interception"); } } } if (V.REInterslaveBeggingIDs.length > 1 || (V.REInterslaveBeggingIDs.length === 1 && eventSlave.ID !== V.REInterslaveBeggingIDs[0])) { if (V.universalRulesConsent === 1) { if (eventSlave.devotion > 20) { if (eventSlave.energy > 40) { if (canPenetrate(eventSlave)) { if (canSee(eventSlave)) { if (eventSlave.rules.release.slaves === 1) { V.RETSevent.push("interslave begging"); } } } } } } } if (V.seeIncest === 1) { if (eventSlave.devotion > 20) { if (eventSlave.sexualQuirk === "perverted" || eventSlave.energy > 80) { if (eventSlave.belly < 100000) { if (eventSlave.lactation > 0) { if (eventSlave.nipples !== "fuckable") { if (eventSlave.rules.release.family === 1) { if (eventSlave.daughters > 0) { V.RETSevent.push("incestuous nursing"); } } } } } } } } if (V.assistant.personality === 1) { if (V.assistant.appearance !== "normal") { if (eventSlave.devotion >= -20) { if (canSee(eventSlave)) { if (eventSlave.devotion <= 50) { if (canDoAnal(eventSlave) || canDoVaginal(eventSlave)) { V.RESSevent.push("PA servant"); } } } } } } if (V.HeadGirlID !== 0) { if (eventSlave.devotion <= 50) { if (eventSlave.anus !== 0 && canDoAnal(eventSlave)) { if (V.HGSeverity >= 0) { V.events.push("RE anal punishment"); } V.events.push("RE shower punishment"); } } } if (V.RETasteTestSubIDs.length > 1) { if (eventSlave.rules.living === "luxurious") { if (eventSlave.devotion > 20) { if (eventSlave.energy > 80) { if (canTaste(eventSlave)) { V.RETSevent.push("taste test"); } } } } } if (eventSlave.relationship > 3) { let relationshipSlave = V.slaves.find(s => s.ID === eventSlave.relationshipTarget); if (relationshipSlave.devotion > 20) { if (canWalk(relationshipSlave)) { if (canTalk(relationshipSlave)) { if (eventSlave.devotion > 50) { if (eventSlave.trust > 50) { if (relationshipSlave.anus !== 0) { if (relationshipSlave.dick !== 1) { if (relationshipSlave.dick === 0 || canAchieveErection(relationshipSlave)) { if (relationshipSlave.fetish === "dom" || relationshipSlave.fetish === "sadist") { V.RETSevent.push("top exhaustion"); } } } } } } } } } } if (V.weatherToday.severity <= 1) { if (eventSlave.trust > 50) { if (eventSlave.devotion > 20) { if (eventSlave.anus !== 0 && canDoAnal(eventSlave)) { if (eventSlave.vagina !== 0) { V.RESSevent.push("confident tanning"); } } } } } if (eventSlave.devotion > 50) { if (eventSlave.trust > 50) { let giver = 0; if (V.HeadGirlID === 0) { giver = 1; } else if (V.HeadGirlID !== eventSlave.ID) { giver = 1; } if (giver === 1) { V.RESSevent.push("a gift"); } } } if (eventSlave.devotion > 50) { if (eventSlave.anus > 0) { if (eventSlave.vagina !== 0) { if (eventSlave.trust > 20) { V.RESSevent.push("devoted lotion"); } } } } if (eventSlave.devotion <= 95) { if (eventSlave.intelligence + eventSlave.intelligenceImplant < -50) { V.RESSevent.push("cooler lockin"); } } if (V.universalRulesConsent === 0) { if (eventSlave.devotion > 50) { if (eventSlave.fetish === "sadist" || eventSlave.fetish === "dom" || eventSlave.energy > 95) { if (V.REShowerForceSubIDs.length > 0) { if (eventSlave.trust <= 75) { V.RETSevent.push("shower force"); } } if (eventSlave.anus > 0) { if (V.RESadisticDescriptionSubIDs.length > 0) { V.RETSevent.push("sadistic description"); } } } if (V.REIfYouEnjoyItSubIDs.length > 0) { V.RETSevent.push("if you enjoy it"); } } } if (V.boobAccessibility !== 1 && V.ballsAccessibility !== 1 && V.pregAccessibility !== 1) { if (eventSlave.boobs > 10000) { if (eventSlave.devotion >= -20) { if (V.slaves.length > 2) { if (canDoAnal(eventSlave) || canDoVaginal(eventSlave)) { V.RESSevent.push("huge tits"); } } } } } if (V.seeAge !== 0) { if (eventSlave.devotion > 50) { if (eventSlave.rules.speech !== "restrictive") { if (eventSlave.birthWeek >= 51) { /* let's give this a much higher chance of appearing */ V.RESSevent.push("birthday"); V.RESSevent.push("birthday"); V.RESSevent.push("birthday"); V.RESSevent.push("birthday"); V.RESSevent.push("birthday"); V.RESSevent.push("birthday"); V.RESSevent.push("birthday"); V.RESSevent.push("birthday"); } } } } if (eventSlave.slaveName !== eventSlave.birthName && eventSlave.birthName !== "") { if (eventSlave.devotion <= 20) { if (eventSlave.trust >= -20) { if (eventSlave.anus > 0 && canDoAnal(eventSlave)) { V.RESSevent.push("not my name"); } } } } if (V.slaves.length > 2) { if (eventSlave.devotion >= -20) { if (eventSlave.heels === 1) { if (eventSlave.shoes === "heels" || eventSlave.shoes === "boots" || eventSlave.shoes === "extreme heels") { V.RESSevent.push("tendon fall"); } } } } if (eventSlave.devotion > 50) { if (eventSlave.trust > 20) { if (eventSlave.physicalAge > 37) { if (eventSlave.anus > 0) { if (eventSlave.vagina > 0) { V.RESSevent.push("devoted old"); } } } } } if (eventSlave.devotion > 20) { if (eventSlave.trust > 20) { if (eventSlave.actualAge > 35) { if (canDoAnal(eventSlave) || canDoVaginal(eventSlave)) { if (V.PC.actualAge < 25) { V.RESSevent.push("young PC age difference"); } } } } } if (eventSlave.devotion > 20) { if (eventSlave.trust > 20) { if (eventSlave.actualAge < 22) { if (canDoAnal(eventSlave) || canDoVaginal(eventSlave)) { if (V.PC.actualAge >= 50) { V.RESSevent.push("old PC age difference"); } } } } } if (eventSlave.fetish === "humiliation" || eventSlave.energy > 95) { if (eventSlave.devotion <= 50) { if (eventSlave.devotion >= -20) { if (canDoAnal(eventSlave) || canDoVaginal(eventSlave)) { if (eventSlave.vagina !== 0) { if (eventSlave.anus !== 0) { if (eventSlave.fetishKnown === 1) { V.RESSevent.push("fearful humiliation"); } } } } } } } if (eventSlave.rules.living === "luxurious") { if (eventSlave.devotion <= 75) { if (eventSlave.devotion > 50) { V.RESSevent.push("newly devoted sunrise"); } } } if (V.spa > 0) { if (eventSlave.boobs > 2000) { if (eventSlave.devotion > 20) { if (eventSlave.trust > 20) { if (canDoAnal(eventSlave) || canDoVaginal(eventSlave)) { V.RESSevent.push("spa boobs"); } } } } } if (eventSlave.lactation > 0) { if (eventSlave.boobs > 800) { if (eventSlave.nipples !== "fuckable") { if (eventSlave.devotion > 20) { if (eventSlave.trust > 20) { V.RESSevent.push("cow milking"); } } } } } if (V.arcologies[0].FSSubjugationist !== "unset") { if (eventSlave.race !== V.arcologies[0].FSSubjugationistRace) { if (V.week - eventSlave.weekAcquired > 1) { if (V.week - eventSlave.weekAcquired < 10) { if (eventSlave.devotion < -20) { if (eventSlave.trust >= -20) { if (eventSlave.health.condition > -20) { if (eventSlave.race === eventSlave.origRace) { if (eventSlave.indentureRestrictions < 1) { V.RESSevent.push("subjugation blues"); } } } } } } } } } if (eventSlave.fetish === "sadist") { if (eventSlave.fetishStrength > 20) { if (App.Entity.facilities.arcade.established) { if (eventSlave.trust >= -20) { if (eventSlave.devotion > 50) { if (eventSlave.belly < 300000) { V.RESSevent.push("arcade sadist"); } } } } } } if (V.PC.vagina > -1) { if (eventSlave.devotion <= 20) { if ((eventSlave.trust >= -20 && eventSlave.behavioralFlaw === "arrogant") || (eventSlave.trust > 20)) { if (eventSlave.muscles > 30) { if (eventSlave.health.condition > 20) { if (eventSlave.energy > 50) { if (canPenetrate(eventSlave)) { if (V.BodyguardID === 0) { V.RESSevent.push("mutinery attempt"); } } } } } } } } } /* closes mute exempt */ if (eventSlave.devotion > 20) { if (eventSlave.mouthAccessory !== "none") { V.RESSevent.push("gagged slave"); } } if (V.seeAge === 1) { if (eventSlave.actualAge < 18) { if (eventSlave.devotion > 20) { if (eventSlave.ovaries === 1) { if (eventSlave.pubertyXX === 0) { if (eventSlave.preg === 0) { if (eventSlave.physicalAge + eventSlave.birthWeek / 52 >= eventSlave.pubertyAgeXX - 0.5) { V.RESSevent.push(...Array.from({length: 10}, () => "first period")); } } } } if (canPenetrate(eventSlave)) { if (eventSlave.balls > 0) { if (eventSlave.pubertyXY === 0) { if (eventSlave.physicalAge + eventSlave.birthWeek / 52 >= eventSlave.pubertyAgeXY - 0.5) { V.RESSevent.push(...Array.from({length: 10}, () => "wet dreams")); } } } } } } } /* closes aging exemption */ if (eventSlave.devotion >= -150) { if (eventSlave.devotion <= 50) { V.events.push("RE standard punishment"); } } if (eventSlave.trust > 20) { if (eventSlave.devotion > 50) { if (V.PC.belly < 5000) { V.RESSevent.push("shower slip"); } if (getLimbCount(eventSlave, 102) === 4) { V.RESSevent.push("plimb help"); } } } if (eventSlave.relationship <= -2) { if (eventSlave.trust > 50) { if (eventSlave.devotion > 50) { V.RESSevent.push("bonded love"); } } } if (eventSlave.trust > 20) { if (eventSlave.devotion > 50) { V.RESSevent.push("objectifying visit"); } } if (canWalk(eventSlave)) { if (eventSlave.devotion > 20) { if (eventSlave.trust > -10) { if (eventSlave.ID !== V.HeadGirlID) { if (eventSlave.ID !== V.ConcubineID) { V.RESSevent.push("refreshment delivery"); } } } } } if (eventSlave.dick > 8) { if (eventSlave.balls > 0) { if (eventSlave.energy > 60) { if (eventSlave.devotion > 50) { if (eventSlave.trust > 50) { if (canDoAnal(eventSlave) || canDoVaginal(eventSlave)) { if (eventSlave.belly < 100000) { V.RESSevent.push("dick wringing"); } } } } } } } if (eventSlave.balls > 0) { if (eventSlave.scrotum > 0) { if (eventSlave.chastityPenis === 1) { if (eventSlave.devotion <= 95) { if (eventSlave.energy > 50) { if (eventSlave.energy < 95) { if (eventSlave.devotion >= -20 || eventSlave.trust < -20) { V.RESSevent.push("cage relief"); } } } } } } } if (V.PC.dick > 0) { if (V.PC.boobs >= 300) { if (canSee(eventSlave)) { if (eventSlave.devotion <= 50) { if (eventSlave.devotion >= -20) { if (((eventSlave.attrXY <= 35) && (eventSlave.attrXX > 65)) || ((eventSlave.attrXX <= 35) && (eventSlave.attrXY > 65))) { V.RESSevent.push("dickgirl PC"); } } } } } } if (eventSlave.trust <= 20) { if (eventSlave.trust >= -75) { if (eventSlave.devotion <= 30) { if (eventSlave.devotion >= -20) { V.RESSevent.push("like me"); } } } } if (eventSlave.devotion < -20) { if (eventSlave.trust >= -20) { if (eventSlave.clothes === "uncomfortable straps") { V.RESSevent.push("bondage gear"); } } } if (eventSlave.labia > 1 && eventSlave.vagina >= 0) { if (eventSlave.muscles > 5 || eventSlave.diet === "muscle building") { if (eventSlave.belly < 10000) { if (eventSlave.devotion > 20) { if (eventSlave.trust > 20) { V.RESSevent.push("inconvenient labia"); } } } } } if (eventSlave.devotion <= 50) { if (eventSlave.trust >= -50) { if (eventSlave.behavioralFlaw === "gluttonous") { if (eventSlave.diet === "restricted") { V.RESSevent.push("diet"); } } } } if (eventSlave.devotion <= 20) { if (eventSlave.devotion >= -50) { V.RESSevent.push("resistant shower"); } } if (eventSlave.rules.speech !== "restrictive") { if (eventSlave.devotion >= -20) { if (eventSlave.trust >= -20) { if (eventSlave.energy > 75) { if (eventSlave.fetish !== "buttslut") { if (eventSlave.vagina !== 0 || eventSlave.anus !== 0) { V.RESSevent.push("night visit"); } } } } } } if (eventSlave.rules.release.masturbation === 0) { if (eventSlave.need) { if (eventSlave.devotion <= 95) { if (eventSlave.trust >= -20) { if ((eventSlave.chastityPenis !== 1) || (eventSlave.dick === 0)) { V.RESSevent.push("forbidden masturbation"); } } } if (eventSlave.devotion >= -20) { if (eventSlave.trust >= -50) { V.RESSevent.push("desperately horny"); } } } } if (eventSlave.devotion >= -20) { if (eventSlave.lactation > 1) { if (canDoVaginal(eventSlave) || canDoAnal(eventSlave)) { V.RESSevent.push("milkgasm"); } } } if (eventSlave.dick > 0) { if (eventSlave.balls === 0) { if (eventSlave.genes === "XY") { if (eventSlave.devotion <= 50) { if (eventSlave.trust < -50) { if (eventSlave.anus > 0) { if (canDoAnal(eventSlave)) { V.RESSevent.push("resistant gelding"); } } } } } } } if (V.seePreg !== 0) { if (isFertile(eventSlave)) { if (eventSlave.devotion > 50) { if (V.PC.dick !== 0) { if (eventSlave.fetish === "pregnancy" || eventSlave.energy > 95) { if (eventSlave.eggType === "human") { if (eventSlave.fetishKnown === 1) { if (eventSlave.vagina !== 0) { if (eventSlave.anus > 0) { if (eventSlave.geneticQuirks.superfetation === 2 && (eventSlave.intelligence + eventSlave.intelligenceImplant > 15) && eventSlave.womb.length > 0) { if (eventSlave.belly < (eventSlave.pregAdaptation * 1750)) { V.RESSevent.push("impregnation please"); } } else { V.RESSevent.push("impregnation please"); } } } } } } } } } } if (["huge plug", "large plug", "long, huge plug", "long, large plug"].includes(eventSlave.buttplug)) { if (isSlaveAvailable(eventSlave)) { if (eventSlave.devotion <= 20) { if (eventSlave.trust >= -50) { if (eventSlave.anus < 3) { V.RESSevent.push("plug disobedience"); } } } } } } /* closes amp/crawling exempt */ if (canTalk(eventSlave)) { if (eventSlave.rules.speech !== "restrictive") { if (eventSlave.boobsImplant > 400) { if (eventSlave.lipsImplant >= 30) { if (eventSlave.buttImplant > 3) { if (eventSlave.boobs < 9000 || eventSlave.butt < 8) { V.RESSevent.push("surgery addict"); } } } } } if (eventSlave.rules.speech !== "restrictive") { if (eventSlave.counter.oral + eventSlave.counter.vaginal + eventSlave.counter.anal > 900) { if (eventSlave.counter.oral + eventSlave.counter.vaginal + eventSlave.counter.anal < 1100) { if (eventSlave.vagina !== 0) { if (eventSlave.anus > 0) { if (canDoAnal(eventSlave) || canDoVaginal(eventSlave)) { V.RESSevent.push("millenary"); } } } } } } if (V.expansionRequestsAllowed > 0) { if (eventSlave.drugs === "no drugs") { if (eventSlave.rules.speech === "permissive") { if (eventSlave.health.condition > 20) { if (eventSlave.devotion >= -20) { if (eventSlave.trust > 20) { if (V.arcologies[0].FSSlimnessEnthusiast === "unset") { V.RESSevent.push("injections please"); } } } } } } } } /* closes mute exempt */ if (V.assistant.personality === 1) { if (eventSlave.fetishKnown === 1) { if (eventSlave.energy > 95) { if (eventSlave.devotion > 20) { if (eventSlave.rules.release.masturbation === 1) { V.RESSevent.push("nympho with assistant"); } } } } } if (eventSlave.minorInjury === "sore ass") { if (eventSlave.devotion <= 50) { V.RESSevent.push("sore ass"); } } if (eventSlave.sexualFlaw === "hates oral") { if (V.PC.dick !== 0) { if (eventSlave.devotion <= 50) { V.RESSevent.push("hates oral"); } } } if (eventSlave.devotion <= 50) { V.RESSevent.push("scrubbing"); } if (eventSlave.devotion <= 20) { if (eventSlave.clothes === "a slutty maid outfit" || eventSlave.clothes === "a nice maid outfit") { V.RESSevent.push("servant maid"); } } if (eventSlave.aphrodisiacs > 1 || eventSlave.inflationType === "aphrodisiac") { if (eventSlave.rules.speech === "restrictive" && eventSlave.rules.release.master === 1 && App.Utils.releaseRestricted(eventSlave)) { V.RESSevent.push("extreme aphrodisiacs"); } } if (eventSlave.rules.release.masturbation === 1) { if (eventSlave.dick > 4) { if (hasAnyArms(eventSlave)) { if (canAchieveErection(eventSlave)) { if (eventSlave.belly < 10000) { if (eventSlave.chastityPenis !== 1) { V.RESSevent.push("slave dick huge"); } } } } } } if (eventSlave.heels === 1) { if (eventSlave.shoes === "heels" || eventSlave.shoes === "extreme heels") { if (canDoAnal(eventSlave) || canDoVaginal(eventSlave)) { V.RESSevent.push("heels"); } } } if (eventSlave.rules.release.masturbation === 1) { if (eventSlave.belly < 300000) { if (eventSlave.anus > 2) { if (eventSlave.fetish === "buttslut" || eventSlave.energy > 95) { if (eventSlave.fetish !== "none") { if (canHold(eventSlave)) { if (canDoAnal(eventSlave)) { V.RESSevent.push("loose buttslut"); } } } } } } } if (eventSlave.boobs > 1200) { if (eventSlave.areolaeShape !== "circle") { if (eventSlave.devotion > 50) { V.RESSevent.push("shaped areolae"); } } } if (V.seePreg !== 0) { if (eventSlave.bellyPreg >= 10000) { V.RESSevent.push("hugely pregnant"); } } if (eventSlave.hormoneBalance >= 50) { if (eventSlave.vagina === -1) { if (eventSlave.balls >= 0) { if (eventSlave.devotion > 20 || eventSlave.trust < -20) { if (eventSlave.devotion <= 50) { if (eventSlave.fetish !== "buttslut") { if (eventSlave.rules.speech === "permissive") { V.RESSevent.push("hormone dysfunction"); } } } } } } } if (eventSlave.vaginaPiercing > 1) { if (eventSlave.nipplesPiercing > 1) { if (eventSlave.clitPiercing > 1) { if (eventSlave.devotion > 20 || eventSlave.trust < -20) { if (eventSlave.devotion <= 50) { if (canDoAnal(eventSlave) || canDoVaginal(eventSlave)) { V.RESSevent.push("heavy piercing"); } } } } } } if (eventSlave.anus === 0) { if (eventSlave.devotion < -20) { if (eventSlave.trust >= -20) { V.RESSevent.push("resistant anal virgin"); } } } if (V.PC.dick !== 0) { if (eventSlave.bellyPreg >= 300000) { V.RESSevent.push("hyperpreg stuck"); } } if (eventSlave.devotion >= 50) { if (eventSlave.trust <= 20) { if (canWalk(eventSlave)) { V.RESSevent.push("devoted fearful slave"); } } } if (eventSlave.relationship === 4) { if (eventSlave.devotion > 20) { if (eventSlave.trust > 20) { V.events.push("RE slave marriage"); } } } if (V.eventResults.snatch === 0 && eventSlave.origin === "$He is your share of a raid on an illegal laboratory by your mercenaries." && eventSlave.newGamePlus === 0) { if (V.geneticMappingUpgrade === 2 && eventSlave.health.condition > 25 && eventSlave.devotion > 50 && V.cash > V.surgeryCost*4) { /* only one slave ever qualifies, so give it a bit more weight */ V.events.push("RE snatch and grab followup"); V.events.push("RE snatch and grab followup"); V.events.push("RE snatch and grab followup"); } } /* NICKNAME EVENTS */ if (V.nicknamesAllowed === 1) { let toSearch = eventSlave.slaveName.toLowerCase(); if (!toSearch.includes("'")) { if (V.week - eventSlave.weekAcquired >= 4) { V.events.push("RE nickname"); V.seed = 0; } } /* closes nickname check */ } /* closes no nicknames option */ } /* closes mindbreak exempt */ if (eventSlave.fetish === "mindbroken") { if (canWalk(eventSlave)) { V.RESSevent.push("mindbroken morning"); } } }; globalThis.populateEventArray = function(RESS = V.RESSevent.length, RESSTR = V.RESSTRevent.length, RETS = V.RETSevent.length, RECI = V.RECIevent.length) { /* EVENT RANDOMIZATION */ let events = V.events; let i = 0; for (i = 0; i < RESS; i++) { events.push("RESS"); } for (i = 0; i < RESSTR; i++) { events.push("RESSTR"); } for (i = 0; i < RETS; i++) { events.push("RETS"); } for (i = 0; i < RECI; i++) { events.push("RECI"); } if (events.length === 0) { events.push("RE no event"); } return events; };
MonsterMate/fc
src/js/eventSelectionJS.js
JavaScript
mit
64,463
/* see documentation for details /devNotes/Extended Family Mode Explained.txt */ /** @typedef Relative * An object that represents a entity in a family tree. Represents a group of common properties shared by SlaveState, InfantState, and PlayerState, as well as genepool objects. * @type {object} * @property {number} ID * @property {number} mother * @property {number} father * @property {number} actualAge * @property {number} birthWeek * @property {string} genes */ /** Returns true if mother is the mother of daughter * @param {Relative} daughter * @param {Relative} mother * @returns {boolean} */ globalThis.isMotherP = function(daughter, mother) { return daughter.mother === mother.ID; }; /** Returns true if father is the father of daughter * @param {Relative} daughter * @param {Relative} father * @returns {boolean} */ globalThis.isFatherP = function(daughter, father) { return daughter.father === father.ID; }; /** Returns true if parent is either the father or mother of daughter * @param {Relative} daughter * @param {Relative} parent * @returns {boolean} */ globalThis.isParentP = function(daughter, parent) { return isMotherP(daughter, parent) || isFatherP(daughter, parent); }; /** Returns true if grandmother is the grandmother of granddaughter * @param {Relative} granddaughter * @param {Relative} grandmother * @returns {boolean} */ globalThis.isGrandmotherP = function(granddaughter, grandmother) { let father; let mother; if (((mother = getSlave(granddaughter.mother)) && (mother.mother === grandmother.ID)) || ((father = getSlave(granddaughter.father)) && (father.mother === grandmother.ID))) { return true; } return false; }; /** Returns true if grandfather is the grandfather of granddaughter * @param {Relative} granddaughter * @param {Relative} grandfather * @returns {boolean} */ globalThis.isGrandfatherP = function(granddaughter, grandfather) { let father; let mother; if (((mother = getSlave(granddaughter.mother)) && (mother.father === grandfather.ID)) || ((father = getSlave(granddaughter.father)) && (father.father === grandfather.ID))) { return true; } return false; }; /** Returns true if grandparent is the either the grandmother or grandfather of granddaughter * @param {Relative} granddaughter * @param {Relative} grandparent * @returns {boolean} */ globalThis.isGrandparentP = function(granddaughter, grandparent) { return isGrandmotherP(granddaughter, grandparent) || isGrandfatherP(granddaughter, grandparent); }; /** Returns true if slave1 and slave2 share the same father * @param {Relative} slave1 * @param {Relative} slave2 * @returns {boolean} */ globalThis.sameDad = function(slave1, slave2) { if ((slave1.father === slave2.father) && (specificDad(slave1))) { return true; } return false; }; /** Returns true if slave1 and slave2 share the same mother * @param {Relative} slave1 * @param {Relative} slave2 * @returns {boolean} */ globalThis.sameMom = function(slave1, slave2) { if ((slave1.mother === slave2.mother) && (specificMom(slave1))) { return true; } return false; }; /** Returns true if slave1 and slave2 have at least one common parent * @param {Relative} slave1 * @param {Relative} slave2 * @returns {boolean} */ globalThis.sameParent = function(slave1, slave2) { return sameMom(slave1, slave2) || sameDad(slave1, slave2); }; /** Returns true if ID represents a unique, specific, and traceable character; false if it represents a nonspecific or group ID. * @param {number} ID * @returns {boolean} */ globalThis.specificCharacterID = function(ID) { return (ID > 0 // active slave || ID < -20 // missing slave || ID === -1 // player || ID === -3); // player's old master }; /** Returns true if the father of slave is a specific, unique character (current or former slave, or the PC) * @param {Relative} slave * @returns {boolean} */ globalThis.specificDad = function(slave) { return specificCharacterID(slave.father); }; /** Returns true if the mother of slave is a specific, unique character (current or former slave, or the PC) * @param {Relative} slave * @returns {boolean} */ globalThis.specificMom = function(slave) { return specificCharacterID(slave.mother); }; /** Returns true if aunt is the aunt of niece * @param {Relative} niece * @param {Relative} aunt * @returns {boolean} */ globalThis.isAunt = function(niece, aunt) { if (!V.showDistantRelatives) { return false; } if (!niece || !aunt || (niece.ID === aunt.ID)) { return false; } let father; let mother; if ((mother = getSlave(niece.mother)) && (mother.ID !== aunt.ID) && !sameTParent(mother, aunt) && sameMom(mother, aunt) && sameDad(mother, aunt)) { return true; } else if ((father = getSlave(niece.father)) && (father.ID !== aunt.ID) && !sameTParent(father, aunt) && sameMom(father, aunt) && sameDad(father, aunt)) { return true; } return false; }; // catches the case if a mother is a father or a father a mother - thank you familyAnon, for this code globalThis.sameTParent = function(slave1, slave2) { if (slave1.mother === -1 && slave1.father === -1 && slave2.mother === -1 && slave2.father === -1) { return 1; } else if (slave1.mother === slave2.father && slave1.father === slave2.mother && specificMom(slave1) && specificDad(slave1) && slave1.mother !== slave1.father) { return 2; } else if ((slave1.mother === slave2.father || slave1.father === slave2.mother) && specificMom(slave1) && specificMom(slave2) && slave1.mother !== slave1.father) { return 3; } return 0; }; /** Returns the degree of siblinghood shared by two entities * @param {Relative} slave1 * @param {Relative} slave2 * @returns {number} - 0: not siblings; 1: twins; 2: full siblings; 3: half-siblings */ globalThis.areSisters = function(slave1, slave2) { if (slave1.ID === slave2.ID) { return 0; // you are not your own sister } else if (!specificDad(slave1) && !specificMom(slave1)) { return 0; // not related } else { if (!sameDad(slave1, slave2) && sameMom(slave1, slave2)) { return 3; // half sisters } else if (sameDad(slave1, slave2) && !sameMom(slave1, slave2)) { return 3; // half sisters } else if (sameTParent(slave1, slave2) === 3) { return 3; // half sisters } else if (sameTParent(slave1, slave2) === 2) { return 2; // sisters } else if (sameDad(slave1, slave2) && sameMom(slave1, slave2)) { if (slave1.actualAge === slave2.actualAge && slave1.birthWeek === slave2.birthWeek) { return 1; // twins } else { return 2; // sisters } } else { return 0; // not related } } }; /** Returns true if two entities are simple first cousins (i.e. at least one parent of one slave is a full sibling of at least one parent of the other slave) * @param {Relative} slave1 * @param {Relative} slave2 * @returns {boolean} */ globalThis.areCousins = function(slave1, slave2) { if (!V.showDistantRelatives) { return false; } if (!slave1 || !slave2 || (slave1.ID === slave2.ID) || areSisters(slave1, slave2)) { return false; } let slave1Mom; let slave1Dad; let slave2Mom; let slave2Dad; if ((slave1Mom = getSlave(slave1.mother)) && (slave2Mom = getSlave(slave2.mother)) && !sameTParent(slave1Mom, slave2Mom) && sameMom(slave1Mom, slave2Mom) && sameDad(slave1Mom, slave2Mom)) { return true; } else if ((slave1Mom = getSlave(slave1.mother)) && (slave2Dad = getSlave(slave2.father)) && !sameTParent(slave1Mom, slave2Dad) && sameMom(slave1Mom, slave2Dad) && sameDad(slave1Mom, slave2Dad)) { return true; } else if ((slave1Dad = getSlave(slave1.father)) && (slave2Mom = getSlave(slave2.mother)) && !sameTParent(slave1Dad, slave2Mom) && sameMom(slave1Dad, slave2Mom) && sameDad(slave1Dad, slave2Mom)) { return true; } else if ((slave1Dad = getSlave(slave1.father)) && (slave2Dad = getSlave(slave2.father)) && !sameTParent(slave1Dad, slave2Dad) && sameMom(slave1Dad, slave2Dad) && sameDad(slave1Dad, slave2Dad)) { return true; } return false; }; /** Returns whether two entities are *closely* related (i.e. siblings or parent/child). * Distant relatives are not checked by this function. * @param {Relative} slave1 * @param {Relative} slave2 * @returns {boolean} */ globalThis.areRelated = function(slave1, slave2) { return (slave1.father === slave2.ID || slave1.mother === slave2.ID || slave2.father === slave1.ID || slave2.mother === slave1.ID || areSisters(slave1, slave2) > 0); }; /** Returns the total number of relatives that a slave has * @param {App.Entity.SlaveState} slave * @returns {number} */ globalThis.totalRelatives = function(slave) { let relatives = 0; if (slave.mother > 0) { relatives += 1; } if (slave.father > 0) { relatives += 1; } if (slave.daughters > 0) { relatives += slave.daughters; } if (slave.sisters > 0) { relatives += slave.sisters; } return relatives; }; /** Returns the slaves which are mutual children of two entities * @param {Relative} slave1 * @param {Relative} slave2 * @param {App.Entity.SlaveState[]} slaves * @returns {number} */ globalThis.mutualChildren = function(slave1, slave2, slaves) { return slaves.filter(function(s) { return s.ID !== slave1.ID && s.ID !== slave2.ID && s.mother > 0 && s.father > 0 && ((s.mother === slave1.ID && s.father === slave2.ID) || (s.mother === slave2.ID && s.father === slave1.ID)); }).length; }; /** Returns a random slave related to a given entity * @param {Relative} slave * @param {function(App.Entity.SlaveState): boolean} [filterFunction] * @returns {App.Entity.SlaveState} */ globalThis.randomRelatedSlave = function(slave, filterFunction) { if (!slave) { return undefined; } if (typeof filterFunction !== 'function') { filterFunction = () => true; } const arr = V.slaves.filter((s) => areRelated(slave, s) && filterFunction(s)); return arr.random(); }; /** * @param {Relative} slave * @returns {App.Entity.SlaveState} */ globalThis.randomRelatedAvailableSlave = function(slave) { return randomRelatedSlave(slave, (s) => isSlaveAvailable(s)); }; /** * @param {Relative} slave * @returns {App.Entity.SlaveState} */ globalThis.randomSister = function(slave) { return randomRelatedSlave(slave, (s) => areSisters(slave, s) > 0); }; /** * @param {Relative} slave * @returns {App.Entity.SlaveState} */ globalThis.randomTwinSister = function(slave) { return randomRelatedSlave(slave, (s) => areSisters(slave, s) === 1); }; /** * @param {Relative} slave * @returns {App.Entity.SlaveState} */ globalThis.randomAvailableSister = function(slave) { return randomRelatedSlave(slave, (s) => isSlaveAvailable(s) && areSisters(slave, s) > 0); }; /** * @param {Relative} slave * @returns {App.Entity.SlaveState} */ globalThis.randomDaughter = function(slave) { return randomRelatedSlave(slave, (s) => isParentP(s, slave)); }; /** * @param {Relative} slave * @returns {App.Entity.SlaveState} */ globalThis.randomAvailableDaughter = function(slave) { return randomRelatedSlave(slave, (s) => isSlaveAvailable(s) && isParentP(s, slave)); }; /** * @param {Relative} slave * @returns {App.Entity.SlaveState} */ globalThis.randomParent = function(slave) { return randomRelatedSlave(slave, (s) => isParentP(slave, s)); }; /** * @param {Relative} slave * @returns {App.Entity.SlaveState} */ globalThis.randomAvailableParent = function(slave) { return randomRelatedSlave(slave, (s) => isSlaveAvailable(s) && isParentP(slave, s)); }; /** * @param {Relative} slave * @returns {object} */ globalThis.availableRelatives = function(slave) { let avail = { mother: false, motherName: null, father: false, fatherName: null, sisters: 0, daughters: 0, oneSisterRel: null, oneDaughterRel: null }; V.slaves.forEach((other) => { if (slave.mother === other.ID) { avail.motherName = other.slaveName; } if (slave.father === other.ID) { avail.fatherName = other.slaveName; } if (isSlaveAvailable(other)) { if (slave.mother === other.ID) { avail.mother = true; } if (slave.father === other.ID) { avail.father = true; } if (slave.ID === other.mother || slave.ID === other.father) { avail.daughters++; if (avail.daughters === 1) { avail.oneDaughterRel = relativeTerm(slave, other); } } if (areSisters(slave, other) > 0) { avail.sisters++; if (avail.sisters === 1) { avail.oneSisterRel = relativeTerm(slave, other); } } } }); return avail; }; globalThis.totalPlayerRelatives = function(pc) { let relatives = 0; if (pc.mother > 0) { relatives += 1; } if (pc.father > 0) { relatives += 1; } if (pc.daughters > 0) { relatives += pc.daughters; } if (pc.sisters > 0) { relatives += pc.sisters; } return relatives; }; /** * Returns the term for slave2's relationship to slave1 (i.e. "daughter" if slave2 is slave1's daughter). * Performs distant relative checking if enabled. * @param {Relative} slave1 * @param {Relative} slave2 * @returns {string|null} - returns null if the slaves are not related, even distantly. */ globalThis.relativeTerm = function(slave1, slave2) { const useMaleTerms = (V.diversePronouns || slave2.ID === -1); if (slave2.mother === slave1.ID || slave2.father === slave1.ID) { if (slave2.genes === "XY" && useMaleTerms) { return "son"; } else { return "daughter"; } } else if (slave1.mother === slave2.ID && slave1.father === slave2.ID) { return "sole parent"; } else if (slave1.mother === slave2.ID) { return "mother"; } else if (slave1.father === slave2.ID) { return "father"; } else if (areSisters(slave2, slave1) === 1) { if (slave2.genes === "XY" && useMaleTerms) { return "twin brother"; } else { return "twin sister"; } } else if (areSisters(slave2, slave1) === 2) { if (slave2.genes === "XY" && useMaleTerms) { return "brother"; } else { return "sister"; } } else if (areSisters(slave2, slave1) === 3) { if (slave2.genes === "XY" && useMaleTerms) { return "half-brother"; } else { return "half-sister"; } } else if (isAunt(slave1, slave2)) { if (slave2.genes === "XY" && useMaleTerms) { return "uncle"; } else { return "aunt"; } } else if (isAunt(slave2, slave1)) { if (slave2.genes === "XY" && useMaleTerms) { return "nephew"; } else { return "niece"; } } else if (areCousins(slave2, slave1)) { return "cousin"; } else if (isGrandfatherP(slave1, slave2)) { return "grandfather"; } else if (isGrandmotherP(slave1, slave2)) { return "grandmother"; } else if (isGrandparentP(slave2, slave1)) { if (slave2.genes === "XY" && useMaleTerms) { return "grandson"; } else { return "granddaughter"; } } return null; }; /** completely reset all the family counters in the game state (for both PC and slaves) */ globalThis.resetFamilyCounters = function() { for (let slave of V.slaves) { slave.daughters = 0; slave.sisters = 0; } V.PC.daughters = 0; V.PC.sisters = 0; for (let slave of V.slaves) { if (slave.mother === -1 || slave.father === -1) { V.PC.daughters++; } if (areSisters(slave, V.PC)) { V.PC.sisters++; } for (let otherSlave of V.slaves) { if (isParentP(otherSlave, slave)) { slave.daughters++; } if (areSisters(otherSlave, slave)) { slave.sisters++; } } } }; /** Set any missing parents to a known ID for the given entity (usually so that a sibling can be safely generated) * @param {Relative} slave */ globalThis.setMissingParents = function(slave) { const gp = V.genePool.find(s => s.ID === slave.ID); if (!specificMom(slave)) { slave.mother = V.missingParentID; if (gp) { gp.mother = slave.mother; } V.missingParentID--; } if (!specificDad(slave)) { slave.father = V.missingParentID; if (gp) { gp.father = slave.father; } V.missingParentID--; } };
MonsterMate/fc
src/js/extendedFamilyModeJS.js
JavaScript
mit
15,746
/* eslint-disable camelcase */ /* eslint-disable no-console */ let lastActiveSlave, lastSlaves, lastPC; /* To use, add something like: <div id="family-tree"></div> <span id="family-tree-link"> <<link "Pull up the file on $his family tree.">> <<replace #family-tree-link>> <<run renderFamilyTree($slaves, $activeSlave.ID)>> <</replace>> <</link>> </span> */ globalThis.renderFamilyTree = function(slaves, filterID) { 'use strict'; let ftreeWidth, ftreeHeight; let chartWidth, chartHeight; let margin; d3.select('#ftree-canvas').remove(); let svg = d3.select('#family-tree') .append('svg') .attr('id', 'ftree-canvas'); let chartLayer = svg.append('g').classed('chartLayer', true); let data = buildFamilyTree(slaves, filterID); initFtreeSVG(data); runFtreeSim(data); function initFtreeSVG(data) { ftreeWidth = data.nodes.length * 45; ftreeHeight = data.nodes.length * 35; if (ftreeWidth < 600) { ftreeWidth = 600; } else if (ftreeWidth > 1920) { ftreeWidth = 1920; } if (ftreeHeight < 480) { ftreeHeight = 480; } else if (ftreeHeight > 1200) { ftreeHeight = 1200; } margin = { top: 0, left: 0, bottom: 0, right: 0 }; chartWidth = ftreeWidth - (margin.left + margin.right); chartHeight = ftreeHeight - (margin.top + margin.bottom); svg.attr('width', ftreeWidth).attr('height', ftreeHeight); svg.append('defs'); svg.append('defs').append('marker') .attr('id', 'arrowhead') .attr('viewBox', '-0 -5 10 10') .attr('refX', 13) .attr('refY', 0) .attr('orient', 'auto') .attr('markerWidth', 13) .attr('markerHeight', 13) .attr('xoverflow', 'visible') .append('svg:path') .attr('d', 'M 0,-1 L 5,0 L 0,1') .attr('fill', '#a1a1a1') .style('stroke', 'none'); chartLayer .attr('width', chartWidth) .attr('height', chartHeight) .attr('transform', `translate(${[margin.left, margin.top]})`); } function runFtreeSim(data) { let simulation = d3.forceSimulation() .force('link', d3.forceLink().id(function(d) { return d.index; })) // eslint-disable-next-line no-unused-vars .force('collide', d3.forceCollide(function(d) { return 60; }).iterations(4)) .force('charge', d3.forceManyBody().strength(-200).distanceMin(100).distanceMax(1000)) .force('center', d3.forceCenter(chartWidth / 2, chartHeight / 2)) .force('y', d3.forceY(100)) .force('x', d3.forceX(200)); let link = svg.append('g') .attr('class', 'link') .selectAll('link') .data(data.links) .enter() .append('line') .attr('marker-end', 'url(#arrowhead)') .attr('stroke', function(d) { if (d.type === 'homologous') { return '#862d59'; } else if (d.type === 'paternal') { return '#24478f'; } else { return '#aa909b'; } }) .attr('stroke-width', 2) .attr('fill', 'none'); let node = svg.selectAll('.node') .data(data.nodes) .enter().append('g') .attr('class', 'node') .call(d3.drag() .on('start', dragstarted) .on('drag', dragged) .on('end', dragended)); node.append('circle') .attr('r', function(d) { return d.r; }) .attr('stroke', function(d) { if (d.ID === filterID) { return '#ffff20'; } else { return '#5a5a5a'; } }) .attr('class', 'node-circle') .attr('r', 20); node.append('text') .text(function(d) { let ssym; if (d.dick > 0 && d.vagina > -1) { ssym = '☿'; } else if (d.dick > 0) { ssym = '♂'; } else if (d.vagina > -1) { ssym = '♀'; } else { ssym = '?'; } return `${d.name}(${ssym})`; }) .attr('dy', 4) .attr('dx', function(d) { return -(8 * d.name.length) / 2; }) .attr('class', 'node-text') .style('fill', function(d) { if (d.is_mother && d.is_father) { return '#b84dff'; } else if (d.is_father) { return '#00ffff'; } else if (d.is_mother) { return '#ff3399'; } else if (d.unborn) { return '#a3a3c2'; } else { return '#66cc66'; } }); svg.selectAll('.node-circle'); svg.selectAll('.node-text'); let ticked = function() { link .attr('x1', function(d) { return d.source.x; }) .attr('y1', function(d) { return d.source.y; }) .attr('x2', function(d) { return d.target.x; }) .attr('y2', function(d) { return d.target.y; }); node .attr("transform", function(d) { return `translate(${d.x}, ${d.y})`; }); }; simulation.nodes(data.nodes) .on('tick', ticked); simulation.force('link') .links(data.links); function dragstarted(d) { if (!d3.event.active) { simulation.alphaTarget(0.3).restart(); } d.fx = d.x; d.fy = d.y; } function dragged(d) { d.fx = d3.event.x; d.fy = d3.event.y; } function dragended(d) { if (!d3.event.active) { simulation.alphaTarget(0); } d.fx = null; d.fy = null; } } }; globalThis.buildFamilyTree = function(slaves, filterID) { let family_graph = {nodes: [], links: []}; let node_lookup = {}; let preset_lookup = { '-2': 'A citizen', '-3': 'Former Master', '-4': 'An arcology owner', '-5': 'Client', '-6': 'Social Elite', '-7': 'Gene lab' }; let outdads = {}; let outmoms = {}; let kids = {}; let fake_pc = { slaveName: `${V.PC.slaveName}(You)`, mother: V.PC.mother, father: V.PC.father, dick: V.PC.dick, vagina: V.PC.vagina, ID: V.PC.ID }; let charList = [fake_pc]; charList.push.apply(charList, slaves); charList.push.apply(charList, V.tanks); let unborn = {}; for (let i = 0; i < V.tanks.length; i++) { unborn[V.tanks[i].ID] = true; } for (let i = 0; i < V.cribs.length; i++) { unborn[V.cribs[i].ID] = true; } for (let i = 0; i < charList.length; i++) { let mom = charList[i].mother; let dad = charList[i].father; if (mom) { if (!kids[mom]) { kids[mom] = {}; } kids[mom].mother = true; } if (dad) { if (!kids[dad]) { kids[dad] = {}; } kids[dad].father = true; } } for (let i = 0; i < charList.length; i++) { let character = charList[i]; if (character.mother === 0 && character.father === 0 && !kids[character.ID]) { continue; } let mom = character.mother; if (mom < -6) { if (mom in V.missingTable && V.showMissingSlaves) { if (typeof node_lookup[mom] === 'undefined') { node_lookup[mom] = family_graph.nodes.length; let missing = V.missingTable[mom]; charList.push({ ID: mom, mother: missing.mother, father: missing.father, is_mother: true, dick: missing.dick, vagina: missing.vagina, slaveName: missing.slaveName }); } } else { if (typeof outmoms[mom] === 'undefined') { outmoms[mom] = []; } outmoms[mom].push(character.slaveName); } } else if (mom < 0 && typeof node_lookup[mom] === 'undefined' && typeof preset_lookup[mom] !== 'undefined') { node_lookup[mom] = family_graph.nodes.length; charList.push({ ID: mom, mother: 0, father: 0, is_father: true, dick: 0, vagina: 1, slaveName: preset_lookup[mom] }); } let dad = character.father; if (dad < -6) { if (dad in V.missingTable && V.showMissingSlaves) { if (typeof node_lookup[dad] === 'undefined') { node_lookup[dad] = family_graph.nodes.length; let missing = V.missingTable[dad]; charList.push({ ID: dad, mother: missing.mother, father: missing.father, is_father: true, dick: missing.dick, vagina: missing.vagina, slaveName: missing.slaveName }); } } else { if (typeof outdads[dad] === 'undefined') { outdads[dad] = []; } outdads[dad].push(character.slaveName); } } else if (dad < 0 && typeof node_lookup[dad] === 'undefined' && typeof preset_lookup[dad] !== 'undefined') { node_lookup[dad] = family_graph.nodes.length; charList.push({ ID: dad, mother: 0, father: 0, is_father: true, dick: 1, vagina: -1, slaveName: preset_lookup[dad] }); } } let mkeys = Object.keys(outmoms); for (let i = 0; i < mkeys.length; i++) { let name; let key = mkeys[i]; let names = outmoms[key]; if (names.length === 1) { name = names[0]; } else if (names.length === 2) { name = names.join(' and '); } else { names[-1] = `and ${names[-1]}`; name = names.join(', '); } node_lookup[key] = family_graph.nodes.length; // Outside extant slaves set charList.push({ ID: key, mother: 0, father: 0, is_mother: true, dick: 0, vagina: 1, slaveName: `${name}'s mother` }); } let dkeys = Object.keys(outdads); for (let i = 0; i < dkeys.length; i++) { let name; let key = dkeys[i]; let names = outdads[key]; if (names.length === 1) { name = names[0]; } else if (names.length === 2) { name = names.join(' and '); } else { names[-1] = `and ${names[-1]}`; name = names.join(', '); } node_lookup[key] = family_graph.nodes.length; // Outside extant slaves set charList.push({ ID: key, mother: 0, father: 0, is_father: true, dick: 1, vagina: -1, slaveName: `${name}'s father` }); } let charHash = {}; for (let i = 0; i < charList.length; i++) { charHash[charList[i].ID] = charList[i]; } let related = {}; let seen = {}; let saveTree = {}; function relatedTo(character, targetID, relIDs = {tree: {}, related: false}) { relIDs.tree[character.ID] = true; if (related[character.ID]) { relIDs.related = true; return relIDs; } if (character.ID === targetID) { relIDs.related = true; } if (seen[character.ID]) { return relIDs; } seen[character.ID] = true; if (character.mother !== 0) { if (charHash[character.mother]) { relatedTo(charHash[character.mother], targetID, relIDs); } } if (character.father !== 0) { if (charHash[character.father]) { relatedTo(charHash[character.father], targetID, relIDs); } } return relIDs; } if (filterID) { if (charHash[filterID]) { let relIDs = relatedTo(charHash[filterID], filterID); for (let k in relIDs.tree) { related[k] = true; } for (let i = 0; i < charList.length; i++) { if (charHash[charList[i].ID]) { let pRelIDs = relatedTo(charHash[charList[i].ID], filterID); if (pRelIDs.related) { for (let k in pRelIDs.tree) { related[k] = true; if (saveTree[k]) { for (let k2 in saveTree[k].tree) { related[k2] = true; } } } } saveTree[charList[i].ID] = pRelIDs; } } } } for (let i = 0; i < charList.length; i++) { let character = charList[i]; let char_id = character.ID; if (char_id !== filterID) { if (character.mother === 0 && character.father === 0 && !kids[char_id]) { continue; } if (filterID && !related[char_id]) { continue; } } node_lookup[char_id] = family_graph.nodes.length; let char_obj = { ID: char_id, name: character.slaveName, dick: character.dick, unborn: !!unborn[char_id], vagina: character.vagina }; if (kids[char_id]) { char_obj.is_mother = !!kids[char_id].mother; char_obj.is_father = !!kids[char_id].father; } else { char_obj.is_mother = false; char_obj.is_father = false; } family_graph.nodes.push(char_obj); } for (let i = 0; i < charList.length; i++) { let character = charList[i]; let char_id = character.ID; if (character.mother === 0 && character.father === 0 && !kids[char_id]) { continue; } if (filterID && !related[char_id]) { if (related[character.mother]) { console.log('wtf, mom'); } if (related[character.father]) { console.log('wtf, dad'); } continue; } if (typeof node_lookup[character.mother] !== 'undefined') { let ltype; if (character.mother === character.father) { ltype = 'homologous'; } else { ltype = 'maternal'; } family_graph.links.push({ type: ltype, target: node_lookup[char_id] * 1, source: node_lookup[character.mother] * 1 }); } if (character.mother === character.father) { continue; } if (typeof node_lookup[character.father] !== 'undefined') { family_graph.links.push({type: 'paternal', target: node_lookup[char_id] * 1, source: node_lookup[character.father] * 1}); } } return family_graph; }; /* Old version. To use, do something like: <div id="edit-family"> <div id="graph"></div> </div> <<run updateFamilyTree($activeSlave, $slaves, $PC)>> html_script_tag updateFamilyTree() end_html_script_tag // tweego freaks out if the actual end of script tag is used even inside a comment If you want to update the tree, just re-call the run line. If there's no active slave, you can do: <<run updateFamilyTree(null, $slaves, $PC)>> */ globalThis.updateFamilyTree = function(activeSlave = lastActiveSlave, slaves = lastSlaves, PC = lastPC) { lastActiveSlave = activeSlave; lastSlaves = slaves; lastPC = PC; let treeDepth = 0; let numTreeNodes = 0; let graphElement = document.getElementById("graph"); if (!graphElement) { return; } graphElement.innerHTML = ""; /* The way this code works is that we start with the activeSlave then we call slaveInfo() recursively to work our way up the tree finding their parents. */ function getSlave(id, expectedGenes) { if (id === -1) { return { "slaveName": "YOU", "ID": id, "physicalAge": PC.physicalAge, "genes": PC.genes, "father": PC.father, "mother": PC.mother }; } if (id === 0) { return {"slaveName": "-", "ID": id, "genes": expectedGenes}; } if (id === activeSlave.ID) { return activeSlave; } for (let i = 0; i < slaves.length; ++i) { if (slaves[i].ID === id) { return slaves[i]; } } return { "slaveName": "-", "ID": id, "genes": expectedGenes }; } function slaveInfo(slave, activeSlaveId, recursionProtectSlaveId = {}) { numTreeNodes = 0; treeDepth = 0; if (recursionProtectSlaveId[slave.ID]) { console.log("Recursion protection"); return slaveInfo_(slave, activeSlaveId); } recursionProtectSlaveId[slave.ID] = true; if (typeof slave.father === "undefined" || typeof slave.mother === "undefined") { return slaveInfo_(slave, activeSlaveId); } if (slave.father === -1 || slave.mother === -1) { return slaveInfo(getSlave(-1), activeSlaveId, recursionProtectSlaveId); } if (slave.father !== 0) { return slaveInfo(getSlave(slave.father, "unknownXY"), activeSlaveId, recursionProtectSlaveId); } if (slave.mother !== 0) { return slaveInfo(getSlave(slave.mother, "unknownXX"), activeSlaveId, recursionProtectSlaveId); } return slaveInfo_(slave, activeSlaveId); } function slaveInfo_(slave, activeSlaveId, slavesAdded = {}, depth = 1) { numTreeNodes += 1; treeDepth = Math.max(treeDepth, depth); let shouldAddChildren = false; if (!slavesAdded[slave.ID]) { shouldAddChildren = true; slavesAdded[slave.ID] = true; } let data = { "name": slave.slaveName + (slave.physicalAge ? (`&nbsp;(${slave.physicalAge})`) : ""), "class": slave.genes, "textClass": (activeSlaveId === slave.ID) ? "emphasis" : "", "marriages": [], }; let spouseToChild = {}; function maybeAddSpouseToChild(child) { if (child.ID === slave.ID) { return; } if (child.father === slave.ID) { if (!spouseToChild[child.mother]) { spouseToChild[child.mother] = []; } spouseToChild[child.mother].push(child); } else if (child.mother === slave.ID) { if (!spouseToChild[child.father]) { spouseToChild[child.father] = []; } spouseToChild[child.father].push(child); } } if (activeSlave.ID !== PC.ID) { maybeAddSpouseToChild(activeSlave); } maybeAddSpouseToChild(getSlave(-1)); for (let i = 0; i < slaves.length; ++i) { let child = slaves[i]; if (child.ID !== activeSlave.ID) { maybeAddSpouseToChild(child); } } for (let key in spouseToChild) { if (spouseToChild.hasOwnProperty(key)) { let children = shouldAddChildren ? spouseToChild[key] : []; let spouse = getSlave(key, (slaves.genes === "XX") ? "unknownXY" : (slaves.genes === "XY") ? "unknownXX" : "unknown"); let spouseName; if (spouse.ID !== slave.ID) { spouseName = spouse.slaveName + (spouse.physicalAge ? (`&nbsp;(${spouse.physicalAge})`) : ""); } else { spouseName = (spouse.ID === -1) ? "(yourself)" : "(themselves)"; } let marriage = { "spouse": {"name": spouseName, "class": spouse.genes}, "children": children.map(function(x) { return slaveInfo_(x, activeSlaveId, slavesAdded, depth + 1); }) }; data.marriages.push(marriage); } } return data; } if (activeSlave === PC || activeSlave === null) { activeSlave = getSlave(-1); } const treeData = [slaveInfo(activeSlave, activeSlave.ID)]; console.log("Family tree is", treeData, 'and has:', numTreeNodes); let parentWidth = document.getElementById('edit-family').offsetWidth; console.log(parentWidth, document.getElementById('passages').offsetWidth); if (!parentWidth) { parentWidth = document.body.offsetWidth - 483; } console.log(parentWidth, Math.min(200 + 40 * numTreeNodes, parentWidth - 200) + 200); dTree.init(treeData, { target: "#graph", debug: true, height: 50 + 50 * treeDepth, /* very rough heuristics */ width: Math.min(200 + 40 * numTreeNodes, parentWidth - 200) + 200, callbacks: { nodeClick: function( /* name, extra*/ ) {} } }); };
MonsterMate/fc
src/js/familyTreeJS.js
JavaScript
mit
17,373
App.FindSlave = {}; /** * Fragment searching: See if every needle can found somewhere in the field of haystacks * @param {FC.Zeroable<string>[]} haystacks * @param {RegExp[]} needles * @returns {boolean} */ App.FindSlave._fragmentSearch = function(haystacks, needles) { const hs = haystacks.filter(h => !!h).join(" "); return needles.every((needle) => needle.test(hs)); }; /** * Get slave ids which match a predicate * @param {function(App.Entity.SlaveState): boolean} predicate * @returns {number[]} */ App.FindSlave._slaveIDs = function(predicate) { return V.slaves.reduce((acc, slave) => { if (predicate(createReadonlyProxy(slave))) { acc.push(slave.ID); } return acc; }, []); }; /** * Display a list of results, or text indicating that there were none * @param {number[]} ids * @param {DocumentFragment} frag */ App.FindSlave._appendResultList = function(ids, frag) { if (ids.length === 0) { App.UI.DOM.appendNewElement("p", frag, "No matching slaves."); } else { frag.appendChild(App.UI.SlaveList.render(ids, [], App.UI.SlaveList.SlaveInteract.stdInteract)); } }; /** * Generate a slave list as the result of fragment searching all the name-type fields * @param {string} query * @returns {DocumentFragment} */ App.FindSlave.searchByName = function(query) { const frag = document.createDocumentFragment(); if (query) { const resultTitle = App.UI.DOM.appendNewElement("p", frag, "Query results for name: "); App.UI.DOM.appendNewElement("code", resultTitle, query); const needles = query.split(" ").map((needle) => { return new RegExp(needle, "i"); }); const ids = this._slaveIDs((slave) => { return this._fragmentSearch([slave.slaveName, slave.slaveSurname, slave.birthName, slave.birthSurname], needles); }); this._appendResultList(ids, frag); } return frag; }; /** * Generate a slave list as the result of fragment searching profession and origin * @param {string} query * @returns {DocumentFragment} */ App.FindSlave.searchByBackground = function(query) { const frag = document.createDocumentFragment(); if (query) { const resultTitle = App.UI.DOM.appendNewElement("p", frag, "Query results for background: "); App.UI.DOM.appendNewElement("code", resultTitle, query); const needles = query.split(" ").map((needle) => { return new RegExp(needle, "i"); }); const ids = this._slaveIDs((slave) => { return this._fragmentSearch([slave.career, slave.origin], needles); }); this._appendResultList(ids, frag); } return frag; }; /** * Generate a slave list as the result of evaluating an expression * @param {string} query * @returns {DocumentFragment} */ App.FindSlave.searchByExpression = function(query) { const frag = document.createDocumentFragment(); if (query) { const resultTitle = App.UI.DOM.appendNewElement("p", frag, "Query results from expression: "); App.UI.DOM.appendNewElement("code", resultTitle, query); const pred = new Function("slave", "return (" + query + ");"); const ids = runWithReadonlyProxy(() => { return this._slaveIDs(pred); }); this._appendResultList(ids, frag); } return frag; };
MonsterMate/fc
src/js/findSlave.js
JavaScript
mit
3,102