:: traits
<<set $here = 'traits'>>
<<set $ARGS = $location_var[$here]>>
<<if $location_var[$here][0] == 'menu'>>
	<<gs 'obj_din' 'chartabs'>>
	<center><h1>Traits</h1></center>
	<center><table cellspacing="0" cellpadding="20" valign="top"><tr>
	<td>
	<center><b>Bimbo</b></center>
	<<if getvar("$bimbolevel") == 0>>
		You do not have this trait.
		To gain this trait, you must wear bimbo make up, clothing and shoes on 10 consecutive days.
		You have <<bimbo>> out of 10 points towards level 1.
	<<elseif getvar("$bimbolevel") == 1>>
		You have this trait at level 1.
		To maintain this trait, you must wear bimbo make up, clothing and shoes at least once per day.
		Due to this trait, you gain a very small bonus to appearance and a very small penalty to intelligence.
		You have <<bimbo>> out of 20 points towards level 2.
		<<if getvar("$bimbowithdrawal") == 0>>
			You are not in withdrawal.
		<<else>>
			<p>You are in withdrawal and have 14 - bimbowithdrawal days before losing this trait.</p>
		<</if>>
	<<elseif getvar("$bimbolevel") == 2>>
		You have this trait at level 2.
		To maintain this trait, you must wear bimbo make up, clothing and shoes at least once per day.
		Due to this trait, you gain a small bonus to appearance and a small penalty to intelligence.
		You have <<bimbo>> out of 30 points towards level 3.
		<<if getvar("$bimbowithdrawal") == 0>>
			You are not in withdrawal.
		<<else>>
			<p>You are in withdrawal and have 14 - bimbowithdrawal days before losing this trait.</p>
		<</if>>
	<<else>>
		You have this trait at level 3.
		To maintain this trait, you must wear bimbo make up, clothing and shoes at least once per day.
		Due to this trait, you gain a moderate bonus to appearance and a moderate penalty to intelligence.
		<<if getvar("$bimbowithdrawal") == 0>>
			You are not in withdrawal.
		<<else>>
			<p>You are in withdrawal and have 14 - bimbowithdrawal days before losing this trait.</p>
		<</if>>
	<</if>>
	<center><b>Exhibitionist</b></center>
	<<if getvar("$Exhibitionist_lvl") == 0 and getvar("$exhib_cheat") == 0>>
		You do not have this trait.
		To gain this trait, you must have low enough inhibition and choose to expose your breasts in public.
		You have <<pcs_exhib>> out of 10 points towards level 1. This will slowly decrease each day unless you expose yourself.
	<<elseif getvar("$Exhibitionist_lvl") == 1>>
		You have this trait at level 1.
		To increase this trait, you must choose to expose your breasts and/or bare bottom in public.
		This trait grants you a small amount of excitement from exposing yourself.
		You have <<pcs_exhib>> out of 50 points towards level 2.
	<<elseif getvar("$Exhibitionist_lvl") == 2>>
		You have this trait at level 2.
		To increase this trait, you must choose to expose your breasts, bare bottom and/or pussy in public.
		This trait grants you a moderate amount of excitement from exposing yourself.
		<<if getvar("$pcs_exhib") < 100>>
			You have <<pcs_exhib>> out of 100 points towards level 3.
		<<elseif getvar("$pcs_exhib") >= 100 and getvar("$exhibitionQW") < 3>>
			You must trigger an event in the park to gain level 3.
		<<elseif getvar("$pcs_exhib") >= 100 and getvar("$exhibitionQW") > 2>>
			You will have to wait until the end of the day for the trait level to update.
		<</if>>
	<<else>>
		You have this trait at level 3.
		This is the highest level of this trait.
		This trait grants you a large amount of excitement from exposing yourself.
	<</if>>
	<<if $pc.trait('nerd_status') == 0>>
		<center><b>Likes learning</b></center>
		<p>You don't have this trait but have pcs_traits['nerd_points'] points. You need to earn 40 - pcs_traits['nerd_points'] more points to get level 1 of this trait.</p>
	<<elseif $pc.trait('nerd_status') == 1>>
		<center><b>Likes learning</b></center>
		<p>You have level 1 of this trait and pcs_traits['nerd_points'] points. You need to earn 60 - pcs_traits['nerd_points'] more points to get level 2 of this trait. If you fall below 20 points, you'll lose this trait.</p>
	<<elseif $pc.trait('nerd_status') == 2>>
		<center><b>Loves to learn</b></center>
		<p>You have level 2 of this trait and pcs_traits['nerd_points'] points. You need to earn 80 - pcs_traits['nerd_points'] more points to get level 3 of this trait. If you fall below 40 points, you'll fall back to level 1.</p>
	<<elseif $pc.trait('nerd_status') == 3>>
		<center><b>Teacher''s pet</b></center>
		<p>You have level 3 of this trait and pcs_traits['nerd_points'] points. If you fall below 60 points, you'll fall back to level 2.</p>
	<</if>>
	<p>Listening to more than 80% of lessons and doing your homework regularly earns you points for this trait, but you'll lose points if you listen to less than 60% of lessons or if you don't do your homework.</p>
	<center><b>Addictive Personality</b></center>
	<<if getvar("$addictive_trait_lvl") == 0 and getvar("$addictive_cheat") == 0>>
		You do not have this trait.
		To gain this trait, you have to use 2 different types of drugs several times. At the moment, you have <<addictive_exp>> out of 2 points towards level 1.
	<<elseif getvar("$addictive_trait_lvl") == 1>>
		You have this trait at level 1.
		You have some experience with taking drugs, and it becomes harder for you to refuse to take them.
		To increase this trait, you have to use 3 different types of drugs several times. At the moment, you have <<addictive_exp>> out of 3 points towards level 2.
	<<elseif getvar("$addictive_trait_lvl") == 2>>
		You have this trait at level 2.
		Taking drugs has become something normal, and that makes it even harder for you to refuse to take them.
		To increase this trait, you have to use 4 different types of drugs several times. At the moment, you have <<addictive_exp>> out of 4 points towards level 3.
	<<elseif getvar("$addictive_trait_lvl") == 3>>
		You have this trait at level 3.
		Taking drugs is a normal part of your life, which makes it difficult for you to refuse to take them.
		This is the highest level of this trait.
	<</if>>
	<center><b>Cumeater</b></center>
	<<if $pc.trait('cumeater') == 0 and getvar("$cumeater_cheat") == 0>>
		You do not have this trait.
		To gain this trait, you must swallow cum 10 times.
		<p>You have swallowed cum stat['swallow'] times.</p>
	<<elseif $pc.trait('cumeater') == 0 and getvar("$cumeater_cheat") == 1>>
		You do not have this trait.
	<<else>>
		You have this trait.
		It allows you to remove cum from certain locations and eat it
		This trait cannot be lost.
	<</if>>
	<<if $pc.trait('commando_exp') > 0 or $pc.trait('commando_lvl') > 0>>
		<center><b>Commando</b></center>

	<</if>>
	<<if $pc.trait('commando_lvl') == 0 and $pc.trait('commando_exp') > 0>>
		You need to gain more experience not wearing panties with clothing to gain this trait.
	<<elseif $pc.trait('commando_lvl') == 1>>
		You have this trait at level 1.
		You're starting to get used to not wearing panties. Skirts are quite comfortable without them, but you still find the friction of pants to be a bit irritating.
	<<elseif $pc.trait('commando_lvl') == 2>>
		You have this trait at level 2.
		You are perfectly comfortable wearing any kind of clothing without panties. Your pussy is no longer irritated when wearing pants without panties.
	<<elseif $pc.trait('commando_lvl') == 3>>
		You have this trait at level 3.
		<p>You are more comfortable without panties than with them. In fact, you <i>hate</i> wearing them! They're restrictive and annoying. You suffer mood penalties when wearing panties.</p>
	<</if>>
	<<if $pc.trait('alko_status') == -1>>
		<center><b>Lightweight</b></center>
		It doesn''t take much for you to get drunk. You don't have to drink as much to feel the effects of alcohol.
	<<elseif $pc.trait('alko_status') == 1>>
		<center><b>Heavyweight</b></center>
		You've built up a tolerance, making it harder for you to feel the effects of alcohol.
	<</if>>
	<!-- !!exp earned from anal sex but degrades over time. Level 3 can be lost but lvl1 and 2 cannot-->
	<center><b>Buttslut</b></center>
	<<if $pc.trait('buttslut_lvl') == 0>>
		You need to have more anal orgasms to gain this trait. To reach lvl 1 you need to have more than 10 anal orgasms.
		You currently have had <<orgasm_anal>> anal orgasms.
	<<elseif $pc.trait('buttslut_lvl') == 1>>
		You have this trait at level 1. To reach lvl 2 you need to gain more anal orgasm exp.
		<p>You currently have pcs_traits['buttslut_exp'] experience. Having more anal orgasms will increase this, otherwise it will degrade over time.</p>
		<<set 'You're starting to enjoy anal sex ' + iif(stat['think_virgin'] = 0, 'almost as much as regular sex.', 'more than before.')>>
	<<elseif $pc.trait('buttslut_lvl') == 2>>
		You have this trait at level 2. To reach lvl 3 you need to gain more anal orgasm exp.
		<p>You currently have pcs_traits['buttslut_exp'] experience. Having more anal orgasms will increase this, otherwise it will degrade over time.</p>
		<<set 'You're enjoy anal sex ' + iif(stat['think_virgin'] = 0, 'as much as regular sex.', 'a great deal.')>>
	<<elseif $pc.trait('buttslut_lvl') == 3>>
		You have this trait at level 3. This is the highest level.
		<p>You currently have pcs_traits['buttslut_exp'] experience. Having more anal orgasms will increase this, otherwise it will degrade over time.</p>
		<<if !$pc.thinksIsVirgin>>
			You now enjoy anal sex more than regular sex.
		<<else>>
			You find anal sex to be extremely gratifying.
		<</if>>
	<</if>>
	<<actCLA 'Exit the menu'>>
		<<gt $location>>
	<</actCLA>>
	</td></tr></table></center>
<</if>>
<<if $location_var[$here][0] == 'hourly'>>
	<<if $pc.sexStat('swallow') >= 10 and $pc.trait('cumeater') == 0 and getvar("$cumeater_cheat") == 0>>
		<<run $pc.traitSet('cumeater',1)>>
		<<msg 'You have gained the trait "Cumeater"'>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'creampie_fetish'>>
	<<run $pc.traitSet('creampie_fetish',1)>>
	<<msg 'You have gained the Creampie Fetish trait! Your desire for creampies are so strong that you can""t help but orgasm when a big load of spunk is poured into your pussy, whether you asked for it or not ;)'>>
<</if>>
<<if $location_var[$here][0] == 'fitness_freak'>>
	<<run $pc.traitSet('fitness_freak',1)>>
	<<msg '"You don""t know if it""s something you learned or something is just wrong with your brain. You love exercise. It feels good. *Really* good. Yeah. *That* kind of good. You get turned on when you exercise and the people around you can subconsciously sense it.'>>
	Exercise increases your arousal and for a short time after, you ignore the appearance penalties of sweat, adding them as a bonus to your appearance instead."
<</if>>
<<if $location_var[$here][0] == 'stiff_nipples'>>
	<<run $pc.traitSet('pokies',1)>>
	<<msg 'You have particularly stiff nipples. They""re always hard, even when you""re not aroused. So hard that they""ll give you pokies through a bra that other girls would get away with without one.'>>
<</if>>
<<if $location_var[$here][0] == 'wet_pussy'>>
	<<run $pc.traitSet('wet_pussy',1)>>
	<<msg 'You get wetter than other girls, especially when aroused.'>>
<</if>>
<<if $location_var[$here][0] == 'overnight'>>
	<!-- !!pcs_traits['alko_status']: light weight (-1), normal (0), heavy weight (+1)-->
	<!-- !!pcs_traits['alko_points']: between -100 and 100, tracks if sveta is a light or heavy wight-->
	<!-- !!pcs_traits['alko_day']: amount of alko sveta has drunk today-->
	<!-- !!Gains/Decay-->
	<<if $pc.trait('alko_day') > 0>>
		<<if $pc.trait('alko_day') > 9>>
			<<run $pc.traitInc('alko_points',9)>>
		<<else>>
			<<run $pc.traitInc('alko_points',$pc.trait('alko_day'))>>
		<</if>>
	<<elseif $pc.trait('alko_day') == 0>>
		<<run $pc.traitDec('alko_points',2)>>
	<</if>>
	<!-- !! The effect of homework on the nerd trait is handle along with the grade calculations in gschool.qsrc-->
	<<if $time.isSchoolHoliday == 0 and $time.weekday == 6>>
		<<if getvar("$pcs_traits['nerd_point_gain_start']") == 1>>
			<!-- !!This check has to be changed if the number of non-sport lessons ever changes (27 right now)-->
			<<if getvar("$pcs_traits['nerd_lessons']") > 20>>
				<<setinit $pcs_traits['nerd_points'] += $pcs_traits['nerd_lessons'] - 17>>
			<<elseif getvar("$pcs_traits['nerd_lessons']") < 14>>
				<<setinit $pcs_traits['nerd_points'] -= iif(pcs_traits['nerd_status'] > 0, 5, 10)>>
			<</if>>
		<<else>>
			<!-- !! This is here such that you don't get the point the first week, since it is only two days long.-->
			<<setinit $pcs_traits['nerd_point_gain_start'] = 1>>
		<</if>>
		<<run $pc.traitSet('nerd_lessons',0)>>
	<<elseif getvar("$university['semester_week']") > 0 and getvar("$university['student']") == 1 and $time.weekday == 5>>
		<!-- !!This is for being a university student, with only 9 weekly classes and no homework the gain is a little more aggressive from classes.-->
		<<if $pc.trait('nerd_lessons') > 7>>
			<<run $pc.traitInc('nerd_points',($pc.trait('nerd_lessons') - 7) * 5)>>
		<<elseif $pc.trait('nerd_lessons') < 4>>
			<<run $pc.traitDec('nerd_points',iif(pcs_traits['nerd_status'] > 0, 5, 10))>>
		<</if>>
		<<run $pc.traitSet('nerd_lessons',0)>>
	<</if>>
	<!-- !!Trait selection-->
	<<if $pc.trait('alko_points') > 50 and $pc.trait('alko_status') < 1>>
		<<run $pc.traitSet('alko_status',1)>>
		<<msg 'You have gained the trait ""Heavyweight"".'>>
	<<elseif $pc.trait('alko_points') < -50 and $pc.trait('alko_status') > -1>>
		<<run $pc.traitSet('alko_status',-1)>>
		<<msg 'You have gained the trait ""Lightweight"".'>>
	<<elseif $pc.trait('alko_status') == -1 and $pc.trait('alko_points') > 0>>
		<<run $pc.traitSet('alko_status',0)>>
		<<msg 'You have lost the trait ""Lightweight"".'>>
	<<elseif $pc.trait('alko_status') == 1 and $pc.trait('alko_points') < 0>>
		<<run $pc.traitSet('alko_status',0)>>
		<<msg 'You have lost the trait ""Heavyweight"".'>>
	<</if>>
	<<if $pc.trait('nerd_points') > 80 and $pc.trait('nerd_status') < 3>>
		<<run $pc.traitSet('nerd_status',3)>>
		<<msg 'You have gained the trait ""Teacher""s pet"".'>>
	<<elseif $pc.trait('nerd_points') > 60 and $pc.trait('nerd_status') < 2>>
		<<run $pc.traitSet('nerd_status',2)>>
		<<msg 'You have gained the trait ""Loves to learn"".'>>
	<<elseif $pc.trait('nerd_points') > 40 and $pc.trait('nerd_status') < 1>>
		<<run $pc.traitSet('nerd_status',1)>>
		<<msg 'You have gained the trait ""Likes learning"".'>>
	<<elseif $pc.trait('nerd_points') < 60 and $pc.trait('nerd_status') == 3>>
		<<run $pc.traitSet('nerd_status',2)>>
		<<msg 'You have lost the trait ""Teacher""s pet"".'>>
	<<elseif $pc.trait('nerd_points') < 40 and $pc.trait('nerd_status') == 2>>
		<<run $pc.traitSet('nerd_status',1)>>
		<<msg 'You have lost the trait ""Loves to learn"".'>>
	<<elseif $pc.trait('nerd_points') < 20 and $pc.trait('nerd_status') == 1>>
		<<run $pc.traitSet('nerd_status',0)>>
		<<msg 'You have lost the trait ""Likes learning"".'>>
	<</if>>
	<!-- !!Trait effects-->
	<<if $pc.trait('nerd_status') == 3>>
		<<run $quest('school').func('groupRelInc','cool',-1)>>
		<<run $quest('school').func('groupRelInc','nerds',rand(1,2))>>
		<<setinit $quest('school').groups['gopniks'].rel -= rand(1,2)>>
	<<elseif $pc.trait('nerd_status') == 2>>
		<<run $quest('school').func('groupRelInc','nerds',1)>>
		<<run $quest('school').func('groupRelInc','gopniks',-1)>>
	<<elseif $pc.trait('nerd_status') == 1>>
		<<run $quest('school').func('groupRelInc','nerds',rand(0,1))>>
	<</if>>
	<!-- !!Cleanup-->
	<<run $pc.traitSet('alko_day',0)>>
	<<if $pc.trait('alko_points') > 100>>
		<<run $pc.traitSet('alko_points',100)>>
	<<elseif $pc.trait('alko_points') < -100>>
		<<run $pc.traitSet('alko_points',-100)>>
	<</if>>
	<<if $pc.trait('nerd_points') > 100>>
		<<run $pc.traitSet('nerd_points',100)>>
	<<elseif $pc.trait('nerd_points') < -100>>
		<<run $pc.traitSet('nerd_points',-100)>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'addictive_personality'>>
	<!-- !!Addictive Personality Trait-->
	<<if getvar("$addictive_cheat") == 0>>
		<<set $addictive_exp = $smoke_exp + $joint_exp + $heroin_exp + $cocaine_exp + $alcohol_exp + $amphetamine_exp>>
		<<if getvar("$addictive_exp") == 2 and getvar("$addictive_trait_lvl") < 1>>
			<<set $addictive_trait_lvl = 1>>
			<<if getvar("$add_trait_msg_1") == 0>>
				<<set $add_trait_msg_1 = 1>> <<msg 'You have gained the trait ''Addictive Personality''.'>>

			<</if>>
		<<elseif getvar("$addictive_exp") == 3 and getvar("$addictive_trait_lvl") < 2>>
			<<set $addictive_trait_lvl = 2>>
			<<if getvar("$add_trait_msg_2") == 0>>
				<<set $add_trait_msg_2 = 1>> <<msg 'You have increased the level of your ''Addictive Personality'' trait to 2.'>>

			<</if>>
		<<elseif getvar("$addictive_exp") >= 4 or (getvar("$heroin_exp") == 1 and getvar("$cocaine_exp") == 1) and getvar("$addictive_trait_lvl") < 3>>
			<<set $addictive_trait_lvl = 3>>
			<<if getvar("$add_trait_msg_3") == 0>>
				<<set $add_trait_msg_3 = 1>> <<msg 'You have increased the level of your ''Addictive Personality'' trait to 3.'>>

			<</if>>
		<</if>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'dbl_exp_lvl'>>
	<!-- !!Everything is new again expiry exp doubling so attributes and skills can continue to gain at normal rate called from cikl-->
	<<set $x = 0>>
	<<warn 'JUMP MARKER ENCOUNTERED: :att2loop'>>
	<<set dynamic "$att_name[$x]_exp = $att_name[$x]_exp * 2">>
	<<set $x += 1>>
	<<if $x < arrsize ('$att_name')>>
		<<warn 'JUMP COMMAND ENCOUNTERED: jump att2loop'>>

	<</if>>
	<<set $x to null>>
	<<set $x = 0>>
	<<warn 'JUMP MARKER ENCOUNTERED: :skl2loop'>>
	<<set dynamic "$skl_name[$x]_exp = $skl_name[$x]_exp * 2">>
	<<set $x += 1>>
	<<if $x < arrsize ('$skl_name')>>
		<<warn 'JUMP COMMAND ENCOUNTERED: jump skl2loop'>>

	<</if>>
	<<set $x to null>>
<</if>>
