diff --git a/src/js/DefaultRules.tw b/src/js/DefaultRules.tw index 83d7b73cf320d4305dd9cc2cc3f6e05a29fbd343..8139705db10695c55ca3a6fe75eaa8eb8dbb49ee 100644 --- a/src/js/DefaultRules.tw +++ b/src/js/DefaultRules.tw @@ -53,6 +53,7 @@ window.DefaultRules = (function() { ProcessPiercings(slave, rule); ProcessSmartPiercings(slave, rule); ProcessTattoos(slave, rule); + ProcessPornFeedEnabled(slave, rule); ProcessPorn(slave, rule); ProcessLabel(slave, rule); return r; @@ -2239,6 +2240,18 @@ window.DefaultRules = (function() { } } + function ProcessPornFeedEnabled(slave, rule) { + if (rule.pornFeed === undefined || rule.pornFeed === "no default setting") { + return; + } + if (rule.pornFeed === slave.pornFeed) { + return; + } + slave.pornFeed = rule.pornFeed; + let yesno = slave.pornFeed ? "are now" : "are no longer"; + r += `<br>Highlights of ${slave.slaveName}'s sex life ${yesno} being released.`; + } + function ProcessPorn(slave, rule) { if ((rule.pornFameSpending !== undefined) && (rule.pornFameSpending !== "no default setting")) { if ((slave.pornPrestige < 3)) { diff --git a/src/js/rulesAssistant.tw b/src/js/rulesAssistant.tw index 2eed0d516a78edff756a14740f450080c2b695ff..7fefeb20aed57d5c05982c4871831d69930c8564 100644 --- a/src/js/rulesAssistant.tw +++ b/src/js/rulesAssistant.tw @@ -258,6 +258,7 @@ window.emptyDefaultRule = function emptyDefaultRule() { aphrodisiacs: "no default setting", autoSurgery: 0, autoBrand: 0, + pornFeed: "no default setting", pornFameSpending: "no default setting", dietGrowthSupport: 0, eyewear: "no default setting", diff --git a/src/js/rulesAssistantOptions.tw b/src/js/rulesAssistantOptions.tw index 9fba2f9b63c313250bd0880630b86fcb447f70d5..3cd821a4733db110d59f4fbceef761a92a86a20b 100644 --- a/src/js/rulesAssistantOptions.tw +++ b/src/js/rulesAssistantOptions.tw @@ -958,8 +958,10 @@ window.rulesAssistantOptions = (function() { this.appendChild(new SmartEnergyList()); this.appendChild(new SpeechList()); this.appendChild(new RelationshipList()); - if (V.studio === 1) + if (V.studio === 1) { + this.appendChild(new PornBroadcastStatus()); this.appendChild(new PornList()); + } } } @@ -1931,6 +1933,19 @@ window.rulesAssistantOptions = (function() { } } + class PornBroadcastStatus extends List { + constructor() { + const pairs = [ + ["No default setting", "no default setting"], + ["Disabled", 0], + ["Enabled", 1] + ]; + super("Porn Broadcasting Status", pairs); + this.setValue(current_rule.set.pornFeed); + this.onchange = (value) => current_rule.set.pornFeed = value; + } + } + class PornList extends List { constructor() { const pairs = [