From 5a59acb34edb6b61f729297c624eb5cc4b3ffd46 Mon Sep 17 00:00:00 2001
From: hexall <hexall90.gmail.com>
Date: Sat, 9 Sep 2017 23:12:04 +0200
Subject: [PATCH] Fixed faulty <<set>> statement in saDrugs.tw

---
 src/uncategorized/saDrugs.tw | 27 ++++++++++++++-------------
 1 file changed, 14 insertions(+), 13 deletions(-)

diff --git a/src/uncategorized/saDrugs.tw b/src/uncategorized/saDrugs.tw
index 37645bbe10d..fd3b160b551 100644
--- a/src/uncategorized/saDrugs.tw
+++ b/src/uncategorized/saDrugs.tw
@@ -364,33 +364,34 @@
 	/*Hormone balance*/
 	<<if $slaves[$i].hormones == 2 || $slaves[$i].hormones == -2>>
 		<<set _growth-->>
-		the massive quantities of sexual hormones flooding $possessive body limits the effectivness of the treatment,
+		the massive quantities of sexual hormones flooding $possessive body limits the effectivness of the treatment
 	<<elseif $slaves[$i].hormones == 0>>
 		<<set _growth += 0.2>>
 		in the absence of significant levels of sexual hormones, the treatment is more effective
 	<<elseif $slaves[$i].hormones == 1 || $slaves[$i].hormones == -1>>
-		$possessive hormonal balance leaves the treatment enough room to manouver,
+		$possessive hormonal balance leaves the treatment enough room to manouver
 	<</if>>
 	/*diet*/
-		
-	<<if ($slaves[$i].diet == "fattening")>>
-		while all the food $pronoun's required to consume boosts growth.
+	<<if $slaves[$i].diet == "fattening">>
+		,while all the food $pronoun's required to consume boosts growth.
 		<<set _growth += 0.2>>
 	<<elseif $slaves[$i].diet == "muscle building">>
-		while $possessive workout diet and constant physical excercise help support growth.
+		,while $possessive workout diet and constant physical excercise help support growth.
 		<<set _growth += 0.5>>
 	<<elseif $slaves[$i].diet == "restricted">>
-		while $possessive restricted diet means $possessive body has few resources to grow on.
+		,while $possessive restricted diet means $possessive body has few resources to grow on.
 		<<set _growth-->>
 	<<elseif $slaves[$i].diet == "slimming">>
-		while $possessive growth is slightly inhibited by $possessive strict diet.
+		,while $possessive growth is slightly inhibited by $possessive strict diet.
 		<<set _growth -= 0.2>>
 	<<elseif $slaves[$i].diet == "XY" || $slaves[$i].diet == "XX" || $slaves[$i].diet == "XXY">>
-		while $possessive growth is restrained by $possessive sexual hormones rich diet.
+		,while $possessive growth is restrained by $possessive sexual hormones rich diet.
 		<<set _growth -= 0.5>>
 	<<elseif $slaves[$i].diet == "cleansing">>
-		while $possessive growth is inhibited by $possessive cleansing treatment.
+		,while $possessive growth is inhibited by $possessive cleansing treatment.
 		<<set _growth-->>
+	<<else>>
+		.
 	<</if>>
 	/*health*/
 	<<if $slaves[$i].health > 80>>
@@ -458,11 +459,11 @@
 		/*health issues*/
 		<<if _growth == 5>>
 			$possessive growth is so extreme that $possessive body can barely keep up, @@.red;severely damaging $possessive health@@.
-			<<set <<set $slaves[$i].health -= 20>>
+			<<set $slaves[$i].health -= 20>>
 		<</if>>
 		<<if random(1,10) == 1 && _growth != 5>>
 			the stimulants stressed $slaves[$i].slaveName's body more than expected, @@.red;damaging $possessive health@@.
-			<<set <<set $slaves[$i].health -= 10>>
+			<<set $slaves[$i].health -= 10>>
 		<</if>>
 		<<if $slaves[$i].physicalAge > $maxGrowthAge>>
 			<<if random(1,6) == 1>>
@@ -473,7 +474,7 @@
 		/*updates slave's height*/
 		<<set $slaves[$i].height += _growth>>	
 	/*if growth is zero or negative*/
-	<<elseif _growth <= 0>>
+	<<else>>
 		Despite the treatment, $possessiveCap height does not increase this week.
 	<</if>>
 	
-- 
GitLab