From b46d58cf0c5c3149d4db0a7947deb9c48b6aff13 Mon Sep 17 00:00:00 2001
From: i107760 <13422-i107760@users.noreply.gitgud.io>
Date: Sun, 2 Aug 2020 11:35:33 +0200
Subject: [PATCH] Add buttons that disable Madam/DJ from serving clients
 themselves

---
 src/uncategorized/brothel.tw       | 8 ++++++++
 src/uncategorized/brothelReport.tw | 2 +-
 src/uncategorized/club.tw          | 8 ++++++++
 src/uncategorized/clubReport.tw    | 2 +-
 4 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/src/uncategorized/brothel.tw b/src/uncategorized/brothel.tw
index cf16b5e47a6..88eabec01bd 100644
--- a/src/uncategorized/brothel.tw
+++ b/src/uncategorized/brothel.tw
@@ -188,6 +188,14 @@
 			_S.Madam.slaveName has been instructed to ignore flaws in the whores serving under $him.
 			[[Fix flaws|Brothel][$MadamIgnoresFlaws = 0]]
 		<</if>>
+		<br>
+		<<if $MadamNoSex != 1>>
+			_S.Madam.slaveName will whore $himself out when $he doesn't have enough whores serving under $him.
+			[[Don't serve clients|Brothel][$MadamNoSex = 1]]
+		<<else>>
+			_S.Madam.slaveName will not whore $himself out even if $he has time.
+			[[Serve clients|Brothel][$MadamNoSex = 0]]
+		<</if>>
 	</div>
 <</if>>
 
diff --git a/src/uncategorized/brothelReport.tw b/src/uncategorized/brothelReport.tw
index 3cab94acf98..53795cfe909 100644
--- a/src/uncategorized/brothelReport.tw
+++ b/src/uncategorized/brothelReport.tw
@@ -151,7 +151,7 @@
 		<</if>>
 	<</for>>
 
-	<<if (_DL+$brothelSlavesGettingHelp < 10)>>
+	<<if (_DL+$brothelSlavesGettingHelp < 10) && $MadamNoSex != 1>>
 		<<setLocalPronouns _S.Madam>>
 		<<set _oldCash = $cash>>
 		<<if $showEWD != 0>>
diff --git a/src/uncategorized/club.tw b/src/uncategorized/club.tw
index e9c220d61ec..d8c659201f6 100644
--- a/src/uncategorized/club.tw
+++ b/src/uncategorized/club.tw
@@ -265,6 +265,14 @@
 			_S.DJ.slaveName has been instructed to ignore flaws in <<print $clubName>>'s sluts.
 			[[Fix flaws|Club][$DJignoresFlaws = 0]]
 		<</if>>
+		<br>
+		<<if $DjNoSex != 1>>
+			_S.DJ.slaveName will be a slut when $he doesn't have enough sluts serving under $him.
+			[[Don't serve clients|Club][$DjNoSex = 1]]
+		<<else>>
+			_S.DJ.slaveName will not be a slut even if $he has time.
+			[[Serve clients|Club][$DjNoSex = 0]]
+		<</if>>
 	<</if>>
 </div>
 
diff --git a/src/uncategorized/clubReport.tw b/src/uncategorized/clubReport.tw
index 99fa96743ea..922853f4f0f 100644
--- a/src/uncategorized/clubReport.tw
+++ b/src/uncategorized/clubReport.tw
@@ -82,7 +82,7 @@
 	<<else>>
 		<<set _S.DJ.skill.DJ += random(1,Math.ceil((_S.DJ.intelligence+_S.DJ.intelligenceImplant)/15) + 8)>>
 	<</if>>
-	<<if (_DL + $clubSlavesGettingHelp < 10)>>
+	<<if (_DL + $clubSlavesGettingHelp < 10) && $DjNoSex != 1>>
 		<<if ($legendaryEntertainerID == 0) && (_S.DJ.prestige == 0) && (_S.DJ.skill.entertainment >= 100) && (_S.DJ.devotion > 50)>>
 			<<set $legendaryEntertainerID = _S.DJ.ID>>
 		<</if>>
-- 
GitLab