From bfce539cf404e69c814c3713cdca5d734e87cad7 Mon Sep 17 00:00:00 2001
From: Onithyr <Onithyr@gmail.com>
Date: Fri, 25 Aug 2017 22:17:39 -0400
Subject: [PATCH] Added Cleansers to RA

---
 src/uncategorized/rulesAssistant.tw | 11 +++++++++++
 src/utility/raWidgets.tw            |  7 +++++++
 2 files changed, 18 insertions(+)

diff --git a/src/uncategorized/rulesAssistant.tw b/src/uncategorized/rulesAssistant.tw
index d796660e8da..3200259c089 100644
--- a/src/uncategorized/rulesAssistant.tw
+++ b/src/uncategorized/rulesAssistant.tw
@@ -1425,6 +1425,8 @@ Slave diets:
 	''designed to keep slaves thin.''
 <<elseif $currentRule.diet == "attractive">>
 	''fat slaves will slim down to plush; skinny slaves will fill out to thin.''
+<<elseif $currentRule.diet == "curatives">>
+	''designed to promote health''
 <<else>>
 	''no default setting.''
 <</if>>
@@ -1479,6 +1481,15 @@ Slave diets:
 	<<RAChangeDiet>>
 	<<RARuleModified>>
 <</link>>
+<<if $dietCleanse == 1>>
+|
+<<link "Cleansing">>
+	<<set $currentRule.diet = "cleansing">>
+	<<RAChangeDiet>>
+	<<RAChangeSave>>
+	<<RAChangeApply>>
+<</link>>
+<</if>>
 <</if>>
 <</if>> /* closes $feeder == 1 */
 
diff --git a/src/utility/raWidgets.tw b/src/utility/raWidgets.tw
index 2afe210591a..5af148507b3 100644
--- a/src/utility/raWidgets.tw
+++ b/src/utility/raWidgets.tw
@@ -1636,6 +1636,8 @@ Slave diets:
 	''designed to promote female development.''
 <<elseif $currentRule.diet == "XXY">>
 	''designed to promote hermaphrodite development.''
+<<elseif $currentRule.diet == "cleansing">>
+	''designed to promote health.''
 <<else>>
 	''no default setting.''
 <</if>>
@@ -3777,6 +3779,11 @@ Your brand design is ''$brandDesign.''
 				<<set $args[0].diet = "XXY">>
 				<br>$args[0].slaveName has been put on a diet that enhances a herm's unique sexuality.
 			<</if>>
+		<<elseif (_combinedRule.diet == "cleansing")>>
+			<<if (($args[0].diet !== "cleansing") && ($args[0].health < 100))>>
+				<<set $args[0].diet = "cleansing">>
+				<br>$args[0].slaveName has been put on a diet of cleansers.
+			<</if>>
 		<</if>>
 	<</if>>
 <<elseif (def _combinedRule.muscles) && (_combinedRule.muscles !== "no default setting") && ($args[0].amp != 1)>> /* no diet rule, muscles only */
-- 
GitLab