code:
:: MOD_Edit Slave Cheat Datatype Cleanup New [nobr]

<<set $nextButton = "Continue", $nextLink = "Slave Interact">>
/* Cancel Option Check */
<<if $tempSlave == "unset">>
	<<unset $tempSlave>>
	<<goto "Slave Interact">>
<</if>>
<<set $rep = Number($rep) || 0>>
<<set $cash = Number($cash) || 0>>
<<set $week = Number($week) || 1>>

<<set $tempSlave.indenture = Number($tempSlave.indenture) || 0>>
<<set $tempSlave.indentureRestrictions = Number($tempSlave.indentureRestrictions) || 0>>
<<set $tempSlave.weekAcquired = Number($tempSlave.weekAcquired) || 0>>

<<if $familyTesting == 0 >>
	<<set $tempSlave.relationTarget = Number($tempSlave.relationTarget) || 0>>
<<else>>
	<<set $tempSlave.mother = Number($tempSlave.mother) || 0>>
	<<set $tempSlave.father = Number($tempSlave.father) || 0>>
<</if>>
<<set $tempSlave.relationship = Number($tempSlave.relationship) || 0>>
<<set $tempSlave.relationshipTarget = Number($tempSlave.relationshipTarget) || 0>>
<<set $tempSlave.rivalry = Number($tempSlave.rivalry) || 0>>
<<set $tempSlave.rivalryTarget = Number($tempSlave.rivalryTarget) || 0>>
<<set $tempSlave.actualAge = Number($tempSlave.actualAge)>>
<<set $tempSlave.visualAge = Number($tempSlave.visualAge) || 18>>
<<set $tempSlave.physicalAge = Number($tempSlave.physicalAge) || 18>>
<<set $tempSlave.ageImplant = Number($tempSlave.ageImplant) || 0>>
<<set $tempSlave.birthWeek = Number($tempSlave.birthWeek) || 0>>
<<set $tempSlave.health = Number($tempSlave.health) || 0>>
<<set $tempSlave.chem = Number($tempSlave.chem) || 0>>
<<set $tempSlave.addict = Number($tempSlave.addict) || 0>>
<<set $tempSlave.devotion = Number($tempSlave.devotion) || 0>>
<<set $tempSlave.oldDevotion = Number($tempSlave.oldDevotion) || 0>>
<<set $tempSlave.trust = Number($tempSlave.trust) || 0>>
<<set $tempSlave.oldTrust = Number($tempSlave.oldTrust) || 0>>
<<set $tempSlave.face = Number($tempSlave.face) || 0>>
<<set $tempSlave.faceImplant = Number($tempSlave.faceImplant) || 0>>
<<set $tempSlave.bald = Number($tempSlave.bald) || 0>>
<<set $tempSlave.hLength = Number($tempSlave.hLength) || 0>>
<<set $tempSlave.lips = Number($tempSlave.lips) || 0>>
<<set $tempSlave.lipsImplant = Number($tempSlave.lipsImplant) || 0>>
<<set $tempSlave.voiceImplant = Number($tempSlave.voiceImplant) || 0>>
<<set $tempSlave.voice = Number($tempSlave.voice) || 0>>
<<set $tempSlave.accent = Number($tempSlave.accent) || 0>>
<<set $tempSlave.amp = Number($tempSlave.amp) || 0>>
<<set $tempSlave.fuckdoll = Number($tempSlave.fuckdoll) || 0>>
<<set $tempSlave.muscles = Number($tempSlave.muscles) || 0>>
<<set $tempSlave.weight = Number($tempSlave.weight) || 0>>
<<set $tempSlave.waist = Number($tempSlave.waist) || 0>>
<<set $tempSlave.height = Number($tempSlave.height) || 0>>
<<set $tempSlave.heightImplant = Number($tempSlave.heightImplant) || 0>>
<<set $tempSlave.bellyImplant = Number($tempSlave.bellyImplant)>>
<<set $tempSlave.bellySag = Number($tempSlave.bellySag) || 0>>
<<set $tempSlave.boobs = Number($tempSlave.boobs) || 200>>
<<set $tempSlave.boobsImplant = Number($tempSlave.boobsImplant) || 0>>
<<set $tempSlave.lactation = Number($tempSlave.lactation) || 0>>
<<set $tempSlave.areolae = Number($tempSlave.areolae) || 0>>
<<set $tempSlave.butt = Number($tempSlave.butt) || 0>>
<<set $tempSlave.buttImplant = Number($tempSlave.buttImplant) || 0>>
<<set $tempSlave.anus = Number($tempSlave.anus) || 0>>
<<set $tempSlave.vagina = Number($tempSlave.vagina) || 0>>
<<set $tempSlave.vaginaLube = Number($tempSlave.vaginaLube) || 0>>
<<set $tempSlave.pubertyAgeXX = Number($tempSlave.pubertyAgeXX) || 13>>
<<set $tempSlave.preg = Number($tempSlave.preg) || 0>>
<<set $tempSlave.pregType = Number($tempSlave.pregType) || 0>>
<<set $tempSlave.pregSource = Number($tempSlave.pregSource) || 0>>
<<set $tempSlave.dick = Number($tempSlave.dick) || 0>>
<<set $tempSlave.clit = Number($tempSlave.clit) || 0>>
<<set $tempSlave.balls = Number($tempSlave.balls) || 0>>
<<set $tempSlave.foreskin = Number($tempSlave.foreskin) || 0>>
<<set $tempSlave.scrotum = Number($tempSlave.scrotum) || 0>>
<<set $tempSlave.pubertyAgeXY = Number($tempSlave.pubertyAgeXY) || 13>>
<<set $tempSlave.oralSkill = Number($tempSlave.oralSkill) || 0>>
<<set $tempSlave.vaginalSkill = Number($tempSlave.vaginalSkill) || 0>>
<<set $tempSlave.analSkill = Number($tempSlave.analSkill) || 0>>
<<set $tempSlave.whoreSkill = Number($tempSlave.whoreSkill) || 0>>
<<set $tempSlave.entertainSkill = Number($tempSlave.entertainSkill) || 0>>
<<set $tempSlave.intelligence = Number($tempSlave.intelligence) || 0>>
<<set $tempSlave.fetishStrength = Number($tempSlave.fetishStrength) || 0>>
<<set $tempSlave.attrXY = Number($tempSlave.attrXY) || 0>>
<<set $tempSlave.attrXX = Number($tempSlave.attrXX) || 0>>
<<set $tempSlave.energy = Number($tempSlave.energy) || 0>>
<<set $tempSlave.penetrativeCount = Number($tempSlave.penetrativeCount) || 0>>
<<set $tempSlave.oralCount = Number($tempSlave.oralCount) || 0>>
<<set $tempSlave.vaginalCount = Number($tempSlave.vaginalCount) || 0>>
<<set $tempSlave.analCount = Number($tempSlave.analCount) || 0>>
<<set $tempSlave.publicCount = Number($tempSlave.publicCount) || 0>>
<<set $tempSlave.mammaryCount = Number($tempSlave.mammaryCount) || 0>>
<<set $tempSlave.birthsTotal = Number($tempSlave.birthsTotal) || 0>>
<<set $tempSlave.pitKills = Number($tempSlave.pitKills) || 0>>
<<set $tempSlave.prestige = Number($tempSlave.prestige) || 0>>

/* Dependency Check */

<<if $tempSlave.indenture == -1>>
	<<set $tempSlave.indentureRestrictions = 0>>
<<elseif $tempSlave.indenture < -1>>
	<<set $tempSlave.indenture = -1>>
	<<print "Indenture was smaller than -1 reset to Fulltime Slave">>

<<elseif $tempSlave.indentureRestrictions < 0>>
	<<set $tempSlave.indentureRestrictions = 0>>
	<<print "Indenture Restriction was smaller than 0 reset to No Restrictions">>

<<elseif $tempSlave.indentureRestrictions > 2>>
	<<set $tempSlave.indentureRestrictions = 2>>
	<<print "Indenture Restrictions was bigger than 2 reset to Full Restrictions">>

<</if>>
<<if $tempSlave.weekAcquired < 0>><<set $tempSlave.weekAcquired = 0>><<print "Week Acquired was negativ reset to 0">>
<</if>>
<<if ($tempSlave.relationshipTarget == $tempSlave.ID) && ($tempSlave.relationship > 0)>>
	<<set $tempSlave.relationshipTarget = 0>>
	<<set $tempSlave.relationship = -1>>
	<<print "The Slave was in a relation with herself reset to emotional Slut">>

<</if>>
<<if ($tempSlave.rivalryTarget == $tempSlave.ID) && ($tempSlave.rivalry > 0)>>
	<<set $tempSlave.rivalryTarget = 0>>
	<<set $tempSlave.rivalry = 0>>
	<<print "The Slave was her own Rival reset to No Rivalry">>

<</if>>
<<if $tempSlave.actualAge < 0>>
	<<print "Slave actual Age is set to low reset to Arcology Minimum Age">>

	<<set $tempSlave.actualAge = $minimumSlaveAge>>
<</if>>
<<if $tempSlave.physicalAge < 0>>
	<<print "Slave physical Age is set to low reset to Arcology Minimum Age">>

	<<set $tempSlave.physicalAge = $minimumSlaveAge>>
<</if>>
<<if $tempSlave.visualAge < 0>>
	<<print "Slave visual Age is set to low reset to Arcology Minimum Age">>

	<<set $tempSlave.visualAge = $minimumSlaveAge>>
<</if>>
<<if ($tempSlave.ageImplant == 1) && ($tempSlave.visualAge < 25)>>
	<<print "Slaves Visual Age is smaller than 25 reset to no lifting">>

	<<set $tempSlave.ageImplant = 0>>
<</if>>
<<if $tempSlave.chem < 0>>
	<<print "Slaves DNA Error is set to low reset to 0">>

	<<set $tempSlave.chem = 0>>
<</if>>
<<if $tempSlave.face < -100>>
	<<print "Face Beauty was set to low reset to -100">>

	<<set $tempSlave.face = -100>>
<<elseif $tempSlave.face > 100>>
	<<print "Face Beauty was set to high reset to 100">>

	<<set $tempSlave.face = 100>>
<</if>>
<<if $tempSlave.hLength < 0>>
	<<print "Slaves Hair length was set to low reset to 0">>

	<<set $tempSlave.hLength = 0>>
<</if>>
<<if $tempSlave.lips < 0>>
	<<print "Lips size to small reset to 0">>

	<<set $tempSlave.lips = 0>>
<<elseif $tempSlave.lips > 100>>
	<<print "Lips size to big reset to 100">>

	<<set $tempSlave.lips = 100>>
<</if>>
<<if ($tempSlave.voice == 0) && ($tempSlave.voiceImplant == 1)>>
	<<print "Slave is mute Voice Surgery resetted" >>

	<<set $tempSlave.voiceImplant = 0>>
<</if>>
<<if $tempSlave.amp <-5>>
	<<print "Amputation Value to low reset to -5 (Cybernetic limbs)">>

	<<set $tempSlave.amp = -5>>
<<elseif $tempSlave.amp > 1>>
	<<print "Amputation Value to high reset to 1 (Amputated)">>

	<<set $tempSlave.amp = 1>>
<</if>>
<<if ($tempSlave.amp == 0) && ($tempSlave.PLimb > 0)>>
	<<print "Slave has Normal Limbs, Limb Interface reset to 0 (No Interface)">>

	<<set $tempSlave.PLimb = 0>>
<</if>>
<<if ($tempSlave.amp != 0)>>
	<<set $tempSlave.heightImplant = 0>>
	<<set $tempSlave.legsTat = 0>>
	<<set $tempSlave.armsTat = 0>>
	<<set $tempSlave.nails = 0>>
	<<set $tempSlave.heels = 0>>
	<<if $tempSlave.brand != 0>>
		<<if ($tempSlave.brandLocation == "left upper arm") || ($tempSlave.brandLocation == "right upper arm") || ($tempSlave.brandLocation == "upper arms")>>
			<<set $tempSlave.brand = 0>>
		<<elseif ($tempSlave.brandLocation == "left lower arm") || ($tempSlave.brandLocation == "right lower arm") || ($tempSlave.brandLocation == "lower arms")>>
			<<set $tempSlave.brand = 0>>
		<<elseif ($tempSlave.brandLocation == "left wrist") || ($tempSlave.brandLocation == "right wrist") || ($tempSlave.brandLocation == "wrists")>>
			<<set $tempSlave.brand = 0>>
		<<elseif ($tempSlave.brandLocation == "left hand") || ($tempSlave.brandLocation == "right hand") || ($tempSlave.brandLocation == "hands")>>
			<<set $tempSlave.brand = 0>>
		<<elseif ($tempSlave.brandLocation == "left tight") || ($tempSlave.brandLocation == "right tight") || ($tempSlave.brandLocation == "tights")>>
			<<set $tempSlave.brand = 0>>
		<<elseif ($tempSlave.brandLocation == "left calf") || ($tempSlave.brandLocation == "right calf") || ($tempSlave.brandLocation == "calfs")>>
			<<set $tempSlave.brand = 0>>
		<<elseif ($tempSlave.brandLocation == "left ankle") || ($tempSlave.brandLocation == "right ankle") || ($tempSlave.brandLocation == "ankles")>>
			<<set $tempSlave.brand = 0>>
		<<elseif ($tempSlave.brandLocation == "left foot") || ($tempSlave.brandLocation == "right foot") || ($tempSlave.brandLocation == "feet")>>
			<<set $tempSlave.brand = 0>>
		<</if>>
	<</if>>
<</if>>
<<if ($tempSlave.PLimb == 0) && ($tempSlave.amp != 0)>>
	<<print "Slave has no Prostetic limb Interface, limbs reset to 1 (Amputated)">>
	<<set $tempSlave.amp = 1>>
<</if>>
<<if $tempSlave.fuckdoll < 0>>
	<<print "Fuckdoll Value to low reset to 0 (Not a Fuckdoll)">>

	<<set $tempSlave.fuckdoll = 0>>
<<elseif $tempSlave.fuckdoll > 100>>
	<<print "Fuckdoll Value to high reset to 100 (Total Fuckdoll)">>

	<<set $tempSlave.fuckdoll = 100>>
<</if>>
<<if $tempSlave.muscles < -100>>
	<<print "Muscle Value to low reset to -100 (Frail)">>

	<<set $tempSlave.muscles = 0>>
<<elseif $tempSlave.muscles > 100>>
	<<print "Muscle Value to high reset to 100 (Hugely Muscular)">>

	<<set $tempSlave.muscles = 100>>
<</if>>
<<if $tempSlave.weight < -100>>
	<<print "Weight Value to low reset to -100 (Emaciated)">>

	<<set $tempSlave.weight = -100>>
<<elseif $tempSlave.weight > 200 >>
	<<print "Weight Value to high reset to 200 (Extremely Obese)">>

	<<set $tempSlave.weight = 200>>
<</if>>
<<if $tempSlave.waist < -100>>
	<<print "Waist Value to low reset to -100 (Absurd)">>

	<<set $tempSlave.waist = -100>>
<<elseif $tempSlave.waist > 100>>
	<<print "Waist Value to high reset to 100 (Masculine)">>

	<<set $tempSlave.waist = 100>>
<</if>>
<<if $tempSlave.height < 1>>
	<<print "Height Value to low reset to 140 (Seriously its still a Human Being)">>

	<<set $tempSlave.height = 140>>
<</if>>
<<if $tempSlave.heightImplant < -1>>
	<<print "heightImplant Value to low reset to -1 (Artificially Shortened)">>

	<<set $tempSlave.heightImplant = -1>>
<<elseif $tempSlave.heightImplant > 1>>
	<<print "heightImplant Value to high reset to 1 (Artificially Lengthened)">>

<</if>>
<<if $tempSlave.bellyImplant < -1>>
	<<print "Belly Implant Value to low reset -1 (no Implant)">>

	<<set $tempSlave.bellyImplant = -1>>
<</if>>
<<if $tempSlave.bellySag < 0>>
	<<print "Bellysag Value to low reset 0">>

	<<set $tempSlave.bellySag = 0>>
<</if>>
<<if $tempSlave.boobs < 0>>
	<<print "Breasts Value to low reset to 200">>

	<<set $tempSlave.boobs = 200>>
<</if>>
<<if $tempSlave.boobsImplant < 0>>
	<<print "Breast Implant Value to low reset to 0">>

	<<set $tempSlave.boobsImplant = 0>>
<</if>>
<<if $tempSlave.butt < 0>>
	<<print "Butt Value to low reset to 0">>

	<<set $tempSlave.butt = 0>>
<</if>>
<<if (ndef $tempSlave.pubertyAgeXX) || ($tempSlave.pubertyAgeXX < 0)>>
	<<print "Puberty Age was not set or set to low reset to Arcology fertility age">>

	<<set $tempSlave.pubertyAgeXX = $fertilityAge>>
<</if>>
<<if (ndef $tempSlave.pubertyXX) && ($tempSlave.physicalAge >= $tempSlave.pubertyAgeXX)>>
	<<set $tempSlave.pubertyXX = 1>>
<<elseif (ndef $tempSlave.pubertyXX) && ($tempSlave.physicalAge < $tempSlave.pubertyAgeXX)>>
	<<set $tempSlave.pubertyXX = 0>>
<</if>>
<<if $tempSlave.dick < 0>>
	<<print "Slave Dick Value set to low reset to 0 (No Dick)" >>

	<<set $tempSlave.dick = 0>>
<</if>>
<<if $tempSlave.dick == 0>>
	<<set $tempSlave.dickTat = 0>>
<</if>>
<<if ($tempSlave.vagina == -1) >>
	<<set $tempSlave.labia = 0>>
	<<set $tempSlave.clit = 0>>
	<<set $tempSlave.cervixImplant = 0>>
	<<set $tempSlave.ovaries = 0>>
<</if>>
<<if ($tempSlave.cervixImplant == 1) && ($tempSlave.ovaries == 0)>>
	<<print "Slave has no Ovaries Cervix Implant reset to 0 (Not Implanted)" >>

	<<set $tempSlave.cervixImplant = 0>>
<</if>>
<<if ($tempSlave.cervixImplant == 1) && ($tempSlave.preg == -2)>>
	<<print "Slave is Sterile, Cervix Implant reset to 0 (Not Implanted)">>

	<<set $tempSlave.cervixImplant = 0>>
<</if>>
<<if ($tempSlave.clit > 0) && ($tempSlave.dick > 0 )>>
	<<print "No Giant Clit when Dick is present, reset Clit to 0 (Normal)" >>

	<<set $tempSlave.clit = 0>>
<</if>>
<<if ($tempSlave.ovaries == 0) && ($tempSlave.mpreg == 0) && ($tempSlave.preg >0)>>
	<<print "Slave has no Ovaries and no Analwomb, Pregnancy reset to 0">>

	<<set $tempSlave.preg = 0>>
	<<set $tempSlave.pregType = 0>>
	<<set $tempSlave.pregSource = 0>>
<</if>>
<<if ($tempSlave.pubertyXX == 0) && ($tempSlave.physicalAge >= $tempSlave.pubertyAgeXX)>>
	<<print "Slaves physical Age is equal or higher than female Puberty Age, Puberty set to 1 (Post Puberty)" >>

	<<set $tempSlave.pubertyXX = 1>>
<</if>>
<<if ($tempSlave.ovaries == 1) && ($tempSlave.mpreg == 1)>>
	<<print "Slave has a working Vagina, Analwomb got removed" >>

	<<set $tempSlave.mpreg = 0>>
<</if>>
<<if ($tempSlave.pubertyXX == 0) && ($tempSlave.preg > 0)>>
	<<print "Slave is not fertile (Pre-Puberty) and has no Anal Womb, pregnancy aborted !">>

	<<set $tempSlave.preg = 0>>
	<<set $tempSlave.pregType = 0>>
	<<set $tempSlave.pregSource = 0>>
<</if>>
<<if $tempSlave.balls < 0>>
	<<print "Slave Balls Value set to low reset to 0 (No Balls)">>

	<<set $tempSlave.balls = 0>>
<</if>>
<<if $tempSlave.foreskin < 0>>
	<<print "Slave Foreskin Value set to low reset to 0 (None)">>

	<<set $tempSlave.foreskin = 0>>
<</if>>
<<if $tempSlave.scrotum < 0>>
	<<print "Slave Scrotum Value set to low reset to 0 (No Scrotum)">>

	<<set $tempSlave.scrotum = 0>>
<</if>>
<<if (ndef $tempSlave.pubertyAgeXY) || ($tempSlave.pubertyAgeXY < 0)>>
	<<print "XY Puberty Age was not set or set to low reset to Arcology Puberty Age">>

	<<set $tempSlave.pubertyAgeXY = $potencyAge>>
<</if>>
<<if (ndef $tempSlave.pubertyXY) && ($tempSlave.physicalAge >= $tempSlave.pubertyAgeXY)>>
	<<set $tempSlave.pubertyXY = 1>>
<<elseif (ndef $tempSlave.pubertyXY) && ($tempSlave.physicalAge < $tempSlave.pubertyAgeXY)>>
	<<set $tempSlave.pubertyXY = 0>>
<</if>>
<<if ($tempSlave.physicalAge >= $tempSlave.pubertyAgeXY) && ($tempSlave.pubertyXY == 0)>>
	<<print "Slaves physical Age is equal or higher than male Puberty Age, Puberty set to 1 (Post Puberty)" >>

	<<set $tempSlave.pubertyXY = 1>>
<</if>>
<<if $tempSlave.oralSkill < 0>>
	<<print "Oral Skill Value set to low reset to 0">>

	<<set $tempSlave.oralSkill = 0>>
<<elseif $tempSlave.oralSkill > 100>>
	<<print "Oral Skill Value set to high reset to 100">>

	<<set $tempSlave.oralSkill = 100>>
<</if>>
<<if $tempSlave.vaginalSkill < 0>>
	<<print "Vaginal Skill Value to low reset to 0">>

	<<set $tempSlave.vaginalSkill = 0>>
<<elseif $tempSlave.vaginalSkill > 100>>
	<<print "Vaginal Skill Value to high reset to 100">>

	<<set $tempSlave.vaginalSkill = 100>>
<</if>>
<<if $tempSlave.analSkill < 0>>
	<<print "Anal Skill Value set to low reset to 0">>

	<<set $tempSlave.analSkill = 0>>
<<elseif $tempSlave.analSkill > 100>>
	<<print "Anal Skill Value set to high reset to 100">>

	<<set $tempSlave.analSkill = 100>>
<</if>>
<<if $tempSlave.whoreSkill < 0>>
	<<print "Whoring Skill Value set to low reset to 0">>

	<<set $tempSlave.whoreSkill = 0>>
<<elseif $tempSlave.whoreSkill > 100>>
	<<print "Whoring Skill Value set to high reset to 100">>

	<<set $tempSlave.whoreSkill = 100>>
<</if>>
<<if $tempSlave.entertainSkill < 0>>
	<<print "Entertainment Skill Value set to low reset to 0">>

	<<set $tempSlave.entertainSkill = 0>>
<<elseif $tempSlave.entertainSkill > 100>>
	<<print "Entertainment Skill Value set to high reset to 100">>

	<<set $tempSlave.entertainSkill = 100>>
<</if>>
<<if $tempSlave.intelligence < -3>>
	<<print "Slave Intelligence Value set to low reset to -3">>

	<<set $tempSlave.intelligence = -3>>
<<elseif $tempSlave.intelligence > 3>>
	<<pritn "Slave Intelligence Value set to high reset to 3">>

	<<set $tempSlave.intelligence = 3>>
<</if>>
<<if $tempSlave.fetishStrength < 0>>
	<<print "Fetish Strength set to low reset to 0">>

	<<set $tempSlave.fetishStrength = 0>>
<<elseif $tempSlave.fetishStrength > 100>>
	<<print "Fetish Strength set to high reset to 100">>

	<<set $tempSlave.fetishStrength = 100>>
<</if>>
<<if $tempSlave.energy < 0>>
	<<print "Sex Drive was set to low reset to 0">>

	<<set $tempSlave.energy = 0>>
<<elseif $tempSlave.energy > 100>>
	<<print "Sex Drive was set to high reset to 100">>

	<<set $tempSlave.energy =100>>
<</if>>
<<if $tempSlave.penetrativeCount < 0>>
	<<print "Penetrative sex Count was set to low reset to 0">>

	<<set $tempSlave.penetrativeCount = 0>>
<</if>>
<<if $tempSlave.oralCount < 0>>
	<<print "Oral sex Count set to low reset to 0">>

	<<set $tempSlave.oralCount = 0>>
<</if>>
<<if $tempSlave.vaginalCount < 0>>
	<<print "Vaginal sex Count set to reset to 0">>

	<<set $tempSlave.vaginalCount = 0>>
<</if>>
<<if $tempSlave.analCount < 0>>
	<<print "Anal sex Count set to low reset to 0">>

	<<set $tempSlave.analCount = 0>>
<</if>>
<<if $tempSlave.publicCount < 0>>
	<<print "Public sex Count set to low reset 0">>

	<<set $tempSlave.publicCount = 0>>
<</if>>
<<if $tempSlave.mammaryCount < 0>>
	<<print "Titjobs Count set to low reset to 0">>

	<<set $tempSlave.mammaryCount = 0>>
<</if>>
<<if $tempSlave.birthsTotal < 0>>
	<<print "Total birth Count set to low reset to 0">>

	<<set $tempSlave.birthsTotal = 0>>
<</if>>
<<if $tempSlave.pitKills < 0>>
	<<print "Pit Kills Count set to low reset to 0">>

	<<set $tempSlave.pitKills = 0>>
<</if>>
<<if $tempSlave.prestige < 0>>
	<<print "Prestige set to low reset to 0">>

	<<set $tempSlave.prestige = 0>>
<<elseif $tempSlave.prestige > 3>>
	<<print "Prestige set to high reset to 3">>

	<<set $tempSlave.prestige = 3>>
<</if>>
<<SetBellySize $tempSlave>>

You perform the dark rituals, pray to the dark gods and sold your soul for the power to change and mold slaves to your will.

This slave has been changed forever and you have lost a bit of your soul, YOU CHEATER!

<<set $activeSlave = clone($tempSlave)>>
<<unset $tempSlave>>
<<for $i = 0; $i < $slaves.length; $i++>>
	<<if $activeSlave.ID == $slaves[$i].ID>>
	<<set $slaves[$i] = clone($activeSlave)>>
	<<break>>
	<</if>>
<</for>>