:: RA Selector JS [script]

window.growAdvSelector = function(slave, rule) {

	var ret = "";
	var setd = 0;

	if ((rule.breastSize == "small" && slave.boobs < 350) ||
		(rule.breastSize == "c-cup" && slave.boobs < 550) ||
		(rule.breastSize == "f-cup" && slave.boobs < 1100) ||
		(rule.breastSize == "k-cup" && slave.boobs < 2150) ||
		(rule.breastSize == "p-cup" && slave.boobs < 3700) ||
		(rule.breastSize == "unlimited" && slave.boobs < 24000))	
	{ 
		slave.drugs = "breast injections"; 
		ret = slave.slaveName + "'s boobs could be bigger, so she's been put on breast injections.";
		return ret;
	}
	
	if ((rule.buttSize == "small" && slave.butt < 1) ||
		(rule.buttSize == "plump" && slave.butt < 3) ||
		(rule.buttSize == "huge" && slave.butt < 4) ||
		(rule.buttSize == "enormous" && slave.butt < 6) ||
		(rule.buttSize == "unlimited" && slave.butt < 19))	
	{ 
		slave.drugs = "butt injections"; 
		ret = slave.slaveName + "'s butt could be bigger, so she's been put on butt injections.";
		return ret;
	}

	if (slave.balls > 0 &&
		((rule.ballSize == "small" && slave.balls < 2) ||
		 (rule.ballSize == "big" && slave.balls < 4) ||
		 (rule.ballSize == "huge" && slave.balls < 6) ||
		 (rule.ballSize == "unlimited" && slave.balls < 9)))		
	{ 
		slave.drugs = "testicle enhancement"; 
		ret = slave.slaveName + "'s balls aren't large enough, so she's been put on testicle enhancement.";
		return ret;
	}

	if (slave.dick > 0 &&
		((rule.penisSize == "small" && slave.dick < 2) ||
		 (rule.penisSize == "big" && slave.dick < 4) ||
		 (rule.penisSize == "huge" && slave.dick < 6) ||
		 (rule.penisSize == "unlimited" && slave.dick < 12)))
	{ 
		slave.drugs = "penis enhancement"; 
		ret = slave.slaveName + "'s dick isn't large enough, so she's been put on penis enhancement.";
		return ret;
	}

	if ((rule.lipSize == "normal" && slave.lips < 15) ||
		(rule.lipSize == "pretty" && slave.lips < 30) ||
		(rule.lipSize == "plush" && slave.lips < 55) ||
		(rule.lipSize == "huge" && slave.lips < 85) ||
		(rule.lipSize == "facepussy" && slave.lips < 99))	
	{ 
		slave.drugs = "lip injections"; 
		ret = slave.slaveName + "'s lips aren't large enough, so she's been put on lips enhancement.";
		return ret;
	}

	if (slave.drugs != "no drugs")
	{
		slave.drugs = "no drugs";
		ret = slave.slaveName + " has reached growth targets and has been taken off growth injections.";
	}

	return ret;

}

window.growAdvSelectorSlim = function(slave, rule) {

	var ret = "";
	var setd = 0;

	if ((rule.breastSize == "small" && slave.boobs > 350) ||
		(rule.breastSize == "c-cup" && slave.boobs > 550) ||
		(rule.breastSize == "f-cup" && slave.boobs > 1100) ||
		(rule.breastSize == "k-cup" && slave.boobs > 2150) ||
		(rule.breastSize == "p-cup" && slave.boobs > 3700))	
	{ 
		slave.drugs = "breast redistributors"; 
		ret = slave.slaveName + "'s boobs are too big, so she's been put on breast reduction drugs.";
		return ret;
	}
	
	if ((rule.buttSize == "small" && slave.butt > 1) ||
		(rule.buttSize == "plump" && slave.butt > 3) ||
		(rule.buttSize == "huge" && slave.butt > 4) ||
		(rule.buttSize == "enormous" && slave.butt > 6))	
	{ 
		slave.drugs = "butt redistributors"; 
		ret = slave.slaveName + "'s butt is too big, so she's been put on butt reduction drugs.";
		return ret;
	}

	if ((rule.ballSize == "small" && slave.balls > 2) ||
		(rule.ballSize == "big" && slave.balls > 4) ||
		(rule.ballSize == "huge" && slave.balls > 6))	
	{ 
		slave.drugs = "testicle atrophiers"; 
		ret = slave.slaveName + "'s balls are too big, so she's been put on testicle atrophiers.";
		return ret;
	}

	if ((rule.penisSize == "small" && slave.dick > 2) ||
		(rule.penisSize == "big" && slave.dick > 4) ||
		(rule.penisSize == "huge" && slave.dick > 6))	
	{ 
		slave.drugs = "penis atrophiers"; 
		ret = slave.slaveName + "'s dick is too big, so she's been put on penis atrophiers.";
		return ret;
	}

	if ((rule.lipSize == "normal" && slave.lips > 15) ||
		(rule.lipSize == "pretty" && slave.lips > 30) ||
		(rule.lipSize == "plush" && slave.lips > 55) ||
		(rule.lipSize == "huge" && slave.lips > 85))	
	{ 
		slave.drugs = "lip atrophiers"; 
		ret = slave.slaveName + "'s lips are too big, so she's been put on lips atrophiers.";
		return ret;
	}

	if (slave.drugs != "no drugs")
	{
		slave.drugs = "no drugs";
		ret = slave.slaveName + " has reached growth targets and has been taken off growth injections.";
	}

	return ret;

}
