Skip to content
Snippets Groups Projects
Commit a0cbdabe authored by lowercasedonkey's avatar lowercasedonkey
Browse files

art and more fixes

parent 08df0cad
No related branches found
No related tags found
No related merge requests found
globalThis.brothelReport = function() { globalThis.brothelReport = function() {
const el = new DocumentFragment(); const el = new DocumentFragment();
let His, Him, He, he, him, his, hers, himself, girl, loli, wife; let His, He, he, him, his, himself, wife;
let His2, Him2, He2, he2, him2, his2, hers2, himself2, girl2, loli2, wife2; let he2, him2, his2;
let r; let r;
const brothelStats = document.createElement("span"); const brothelStats = document.createElement("span");
...@@ -44,18 +44,22 @@ globalThis.brothelReport = function() { ...@@ -44,18 +44,22 @@ globalThis.brothelReport = function() {
if (S.Madam.fetishStrength <= 95) { if (S.Madam.fetishStrength <= 95) {
if (S.Madam.fetish !== "dom") { if (S.Madam.fetish !== "dom") {
if (fetishChangeChance(S.Madam) > random(0, 100)) { if (fetishChangeChance(S.Madam) > random(0, 100)) {
_FLsFetish = 1, S.Madam.fetishKnown = 1, S.Madam.fetish = "dom"; _FLsFetish = 1;
S.Madam.fetishKnown = 1;
S.Madam.fetish = "dom";
} }
} else if (S.Madam.fetishKnown === 0) { } else if (S.Madam.fetishKnown === 0) {
_FLsFetish = 1, S.Madam.fetishKnown = 1; _FLsFetish = 1;
S.Madam.fetishKnown = 1;
} else { } else {
_FLsFetish = 2, S.Madam.fetishStrength += 4; _FLsFetish = 2;
S.Madam.fetishStrength += 4;
} }
} }
/* Make sure we have registered living expenses as for any other slave */ /* Make sure we have registered living expenses as for any other slave */
getSlaveStatisticData(S.Madam, V.facility.brothel); getSlaveStatisticData(S.Madam, V.facility.brothel);
({ ({
he, him, his, hers, himself, girl, He, His, loli, wife he, him, his, himself, He, His, wife
} = getPronouns(S.Madam)); } = getPronouns(S.Madam));
// &nbsp;&nbsp;&nbsp;&nbsp; // &nbsp;&nbsp;&nbsp;&nbsp;
r = []; r = [];
...@@ -93,16 +97,20 @@ globalThis.brothelReport = function() { ...@@ -93,16 +97,20 @@ globalThis.brothelReport = function() {
if ((S.Madam.dick > 2) && (canPenetrate(S.Madam))) { if ((S.Madam.dick > 2) && (canPenetrate(S.Madam))) {
r.push(`${His} turgid dick helps ${him} manage the bitches.`); r.push(`${His} turgid dick helps ${him} manage the bitches.`);
} }
App.Events.addNode(el, r);
for (const _slave of _slaves) { for (const _slave of _slaves) {
V.i = V.slaveIndices[_slave.ID]; V.i = V.slaveIndices[_slave.ID];
({ ({
he, him, his, hers, himself, girl, He, His, loli, wife he, him, his, himself, He, His, wife
} = getPronouns(_slave).appendSuffix('2')); } = getPronouns(_slave).appendSuffix('2'));
r = [];
/* for the included passages */ /* for the included passages */
if (S.Madam.rivalryTarget === _slave.ID) { if (S.Madam.rivalryTarget === _slave.ID) {
r.push(`${He} forces ${his} ${rivalryTerm(S.Madam)}, to service all the men in the brothel.`); r.push(`${He} forces ${his} ${rivalryTerm(S.Madam)}, to service all the men in the brothel.`);
_slave.devotion -= 2, _slave.trust -= 2; _slave.devotion -= 2;
_slave.trust -= 2;
if (canDoVaginal(_slave)) { if (canDoVaginal(_slave)) {
seX(_slave, "vaginal", "public", "penetrative", 10); seX(_slave, "vaginal", "public", "penetrative", 10);
} }
...@@ -111,7 +119,8 @@ globalThis.brothelReport = function() { ...@@ -111,7 +119,8 @@ globalThis.brothelReport = function() {
} }
seX(_slave, "anal", "public", "penetrative", 10); seX(_slave, "anal", "public", "penetrative", 10);
if (random(1, 100) > 65) { if (random(1, 100) > 65) {
S.Madam.rivalry++, _slave.rivalry++; S.Madam.rivalry++;
_slave.rivalry++;
} }
} else if (S.Madam.relationshipTarget === _slave.ID) { } else if (S.Madam.relationshipTarget === _slave.ID) {
r.push(`${He} dotes over ${his} ${relationshipTerm(S.Madam)}, ${_slave.slaveName}, making sure ${he2} is safe, but unfortunately driving potential customers away from ${him2}.`); r.push(`${He} dotes over ${his} ${relationshipTerm(S.Madam)}, ${_slave.slaveName}, making sure ${he2} is safe, but unfortunately driving potential customers away from ${him2}.`);
...@@ -199,11 +208,12 @@ globalThis.brothelReport = function() { ...@@ -199,11 +208,12 @@ globalThis.brothelReport = function() {
r.push(`.`); r.push(`.`);
} }
} }
App.Events.addNode(el, r);
} }
if ((_DL + V.brothelSlavesGettingHelp < 10) && V.MadamNoSex !== 1 && !slaveResting(S.Madam)) { if ((_DL + V.brothelSlavesGettingHelp < 10) && V.MadamNoSex !== 1 && !slaveResting(S.Madam)) {
({ ({
he, him, his, hers, himself, girl, He, His, loli, wife he, him, his, himself, He, His, wife
} = getPronouns(S.Madam)); } = getPronouns(S.Madam));
let _oldCash = V.cash; let _oldCash = V.cash;
if (V.showEWD !== 0) { if (V.showEWD !== 0) {
...@@ -213,7 +223,7 @@ globalThis.brothelReport = function() { ...@@ -213,7 +223,7 @@ globalThis.brothelReport = function() {
r.push(App.SlaveAssignment.whore(S.Madam)); r.push(App.SlaveAssignment.whore(S.Madam));
} }
// <br>&nbsp;&nbsp;&nbsp;&nbsp; // <br>&nbsp;&nbsp;&nbsp;&nbsp;
r.push(`${He} whores ${himself} because ${he} doesn't have enough whores to manage to keep ${him} busy, and makes <span class="cash inc">${cashFormat(S.Madam.lastWeeksCashIncome)}.</span> ${He} can charge more for ${his} time, since many citizens find it erotic to fuck the Madam.`); el.append(`${He} whores ${himself} because ${he} doesn't have enough whores to manage to keep ${him} busy, and makes <span class="cash inc">${cashFormat(S.Madam.lastWeeksCashIncome)}.</span> ${He} can charge more for ${his} time, since many citizens find it erotic to fuck the Madam.`);
_profits += V.cash - _oldCash; _profits += V.cash - _oldCash;
_oldCash = V.cash; _oldCash = V.cash;
} }
...@@ -221,7 +231,7 @@ globalThis.brothelReport = function() { ...@@ -221,7 +231,7 @@ globalThis.brothelReport = function() {
// <br><br> // <br><br>
} }
} }
App.Events.addNode(el, r, "div");
if (_DL > 0) { if (_DL > 0) {
const whoreNumber = document.createElement("div"); const whoreNumber = document.createElement("div");
whoreNumber.classList.add("indent", "bold"); whoreNumber.classList.add("indent", "bold");
...@@ -240,15 +250,14 @@ globalThis.brothelReport = function() { ...@@ -240,15 +250,14 @@ globalThis.brothelReport = function() {
if (V.showEWD !== 0) { if (V.showEWD !== 0) {
// <br><br> // <br><br>
if (V.seeImages && V.seeReportImages) { if (V.seeImages && V.seeReportImages) {
const artDiv = document.createElement("div"); App.UI.DOM.appendNewElement("div", el, App.Art.SlaveArtElement(S.Madam, 0, 0), ["imageRef", "tinyImg"]);
artDiv.classList.add("imageRef", "tinyImg");
artDiv.append(SlaveArt(S.Madam, 0, 0));
el.append(artDiv);
} }
el.append(App.EndWeek.favoriteIcon(S.Madam)); el.append(App.EndWeek.favoriteIcon(S.Madam));
App.UI.DOM.appendNewElement("span", el, SlaveFullName(S.Madam), "slave-name"); App.UI.DOM.appendNewElement("span", el, SlaveFullName(S.Madam), "slave-name");
el.append(` is serving as the Madam.`); el.append(` is serving as the Madam.`);
// <br>&nbsp;&nbsp;&nbsp; // <br>&nbsp;&nbsp;&nbsp;
r = [];
r.push(App.SlaveAssignment.choosesOwnClothes(S.Madam)); r.push(App.SlaveAssignment.choosesOwnClothes(S.Madam));
tired(S.Madam); tired(S.Madam);
el.append(App.UI.DOM.renderPassage("SA rules")); el.append(App.UI.DOM.renderPassage("SA rules"));
...@@ -259,6 +268,7 @@ globalThis.brothelReport = function() { ...@@ -259,6 +268,7 @@ globalThis.brothelReport = function() {
r.push(App.SlaveAssignment.rivalries(S.Madam)); r.push(App.SlaveAssignment.rivalries(S.Madam));
// <br>&nbsp;&nbsp;&nbsp;&nbsp; // <br>&nbsp;&nbsp;&nbsp;&nbsp;
r.push(App.SlaveAssignment.devotion(S.Madam)); r.push(App.SlaveAssignment.devotion(S.Madam));
App.Events.addNode(el, r);
} else { } else {
App.SlaveAssignment.choosesOwnClothes(S.Madam); App.SlaveAssignment.choosesOwnClothes(S.Madam);
tired(S.Madam); tired(S.Madam);
...@@ -275,15 +285,17 @@ globalThis.brothelReport = function() { ...@@ -275,15 +285,17 @@ globalThis.brothelReport = function() {
if (_DL > 0) { if (_DL > 0) {
let healthBonus = 0, _aphrod = 0; let healthBonus = 0, _aphrod = 0;
if (V.brothelUpgradeDrugs === 1) { if (V.brothelUpgradeDrugs === 1) {
healthBonus += 1, _aphrod = 1; healthBonus += 1;
_aphrod = 1;
} else if ((V.brothelUpgradeDrugs === 2)) { } else if ((V.brothelUpgradeDrugs === 2)) {
healthBonus += 3, _aphrod = 2; healthBonus += 3;
_aphrod = 2;
} }
let _oldCash = V.cash; let _oldCash = V.cash;
for (const _slave of _slaves) { for (const _slave of _slaves) {
V.i = V.slaveIndices[_slave.ID]; V.i = V.slaveIndices[_slave.ID];
({ ({
he, him, his, hers, himself, girl, He, His, loli, wife he, him, his, himself, He, His, wife
} = getPronouns(_slave)); } = getPronouns(_slave));
if ((V.legendaryWombID === 0) && (!isAmputee(_slave)) && (_slave.preg > _slave.pregData.normalBirth / 1.33) && (_slave.broodmother === 0) && (_slave.eggType === "human") && (_slave.counter.births > 10) && (_slave.devotion > 50) && (_slave.prestige === 0)) { if ((V.legendaryWombID === 0) && (!isAmputee(_slave)) && (_slave.preg > _slave.pregData.normalBirth / 1.33) && (_slave.broodmother === 0) && (_slave.eggType === "human") && (_slave.counter.births > 10) && (_slave.devotion > 50) && (_slave.prestige === 0)) {
V.legendaryWombID = _slave.ID; V.legendaryWombID = _slave.ID;
...@@ -299,6 +311,7 @@ globalThis.brothelReport = function() { ...@@ -299,6 +311,7 @@ globalThis.brothelReport = function() {
case "Degradationist": case "Degradationist":
case "standard": case "standard":
_slave.rules.living = "spare"; _slave.rules.living = "spare";
break;
default: default:
_slave.rules.living = "normal"; _slave.rules.living = "normal";
} }
...@@ -312,7 +325,8 @@ globalThis.brothelReport = function() { ...@@ -312,7 +325,8 @@ globalThis.brothelReport = function() {
improveCondition(_slave, 7); improveCondition(_slave, 7);
} }
if ((_slave.devotion <= 20) && (_slave.trust >= -20)) { if ((_slave.devotion <= 20) && (_slave.trust >= -20)) {
_slave.devotion -= 5, _slave.trust -= 5; _slave.devotion -= 5;
_slave.trust -= 5;
} else if ((_slave.devotion < 45)) { } else if ((_slave.devotion < 45)) {
_slave.devotion += 4; _slave.devotion += 4;
} else if ((_slave.devotion > 50)) { } else if ((_slave.devotion > 50)) {
...@@ -327,11 +341,9 @@ globalThis.brothelReport = function() { ...@@ -327,11 +341,9 @@ globalThis.brothelReport = function() {
if (V.showEWD !== 0) { if (V.showEWD !== 0) {
// <br><br> // <br><br>
r = [];
if (V.seeImages && V.seeReportImages) { if (V.seeImages && V.seeReportImages) {
const artDiv = document.createElement("div"); App.UI.DOM.appendNewElement("div", el, App.Art.SlaveArtElement(_slave, 0, 0), ["imageRef", "tinyImg"]);
artDiv.classList.add("imageRef", "tinyImg");
artDiv.append(SlaveArt(S.Madam, 0, 0));
el.append(artDiv);
} }
el.append(App.EndWeek.favoriteIcon(_slave)); el.append(App.EndWeek.favoriteIcon(_slave));
App.UI.DOM.appendNewElement("span", el, SlaveFullName(_slave), "slave-name"); App.UI.DOM.appendNewElement("span", el, SlaveFullName(_slave), "slave-name");
...@@ -353,6 +365,7 @@ globalThis.brothelReport = function() { ...@@ -353,6 +365,7 @@ globalThis.brothelReport = function() {
r.push(App.SlaveAssignment.rivalries(_slave)); r.push(App.SlaveAssignment.rivalries(_slave));
// <br>&nbsp;&nbsp;&nbsp;&nbsp; // <br>&nbsp;&nbsp;&nbsp;&nbsp;
r.push(App.SlaveAssignment.devotion(_slave)); r.push(App.SlaveAssignment.devotion(_slave));
App.Events.addNode(el, r);
} else { } else {
App.SlaveAssignment.choosesOwnJob(_slave); App.SlaveAssignment.choosesOwnJob(_slave);
App.SlaveAssignment.whore(_slave); App.SlaveAssignment.whore(_slave);
...@@ -394,7 +407,7 @@ globalThis.brothelReport = function() { ...@@ -394,7 +407,7 @@ globalThis.brothelReport = function() {
b.totalExpenses = b.whoreCosts + b.adsCosts + b.maintenance; b.totalExpenses = b.whoreCosts + b.adsCosts + b.maintenance;
b.profit = b.totalIncome - b.totalExpenses; b.profit = b.totalIncome - b.totalExpenses;
r.push(`${_brothelNameCaps} makes you <span class="cash inc" > ${cashFormat(_profits)}</span > this week.`); el.append(`${_brothelNameCaps} makes you <span class="cash inc" > ${cashFormat(_profits)}</span > this week.`);
if (V.brothelDecoration !== "standard") { if (V.brothelDecoration !== "standard") {
App.UI.DOM.appendNewElement("p", el, `${_brothelNameCaps}'s customers enjoyed <span class="reputation inc">fucking whores in ${V.brothelDecoration} surroundings.</span>`); App.UI.DOM.appendNewElement("p", el, `${_brothelNameCaps}'s customers enjoyed <span class="reputation inc">fucking whores in ${V.brothelDecoration} surroundings.</span>`);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment