:: bras
<<set $here = 'bras'>>
<<set $ARGS = $location_var[$here]>>
<!-- !!This is separate bras file and that means underwear['type'] = 0-->
<!-- !!2021/04/15-->
<!-- !!gs 'bras', 'dispose'-->
<!-- !!gs 'bras', 'remove'-->
<!-- !!gs 'bras', 'wear'-->
<<if $location_var[$here][0] == 'view_bra_list'>>
	<!-- !! ARGS 0 - view_bra_list-->
	<!-- !! ARGS 1 - action type (draw, store, unwanted)-->
	<<if $pursepantytype != '' or $pursebratype != ''>>
		<center><b>You put the '+iif($pursepantytype ! '','panties','')+iif($pursepantytype ! '' and $pursebratype ! '',' and ','')+iif($pursebratype ! '','bra','')+' from your purse back in the wardrobe.</b></center><br>
	<</if>>
	<<if $location_var[$here][1] != 'bathroom'>>
		<<act 'Return'>>
			<<gt 'wardrobe' 'main'>>
		<</act>>
	<<else>>
		<<actCLA 'Return'>>
			<<gt $location>>
		<</actCLA>>
	<</if>>
	<<if $location_var[$here][1] == 'wardrobe'>>
		<<set $metka_bras = 0>>
	<</if>>
	<<if $location_var[$here][1] == 'store'>>
		<<set $metka_bras = 1>>
	<</if>>
	<<if $location_var[$here][1] == 'unwanted'>>
		<<set $metka_bras = 2>>
	<</if>>
	<<gs 'bras' 'filter_header'>>
	<center><table border=1><TH><<link "Draw">><<gt 'bras' 'view_bra_list' 'wardrobe'>><</link>></TH><TH><<link "Storage">><<gt 'bras' 'view_bra_list' 'store'>><</link>></TH><TH><<link "Unwanted">><<gt 'bras' 'view_bra_list' 'unwanted'>><</link>></TH></table></center>
	<<if $wardrobe.isWearingBra>>
		<<actCLA 'Remove bra'>>
	<<run $wardrobe.strip('bra')>> <<gt 'bras' 'view_bra_list' $location_var[$here][1]>>
<</actCLA>>

	<</if>>
	<<if $location_var[$here][1] == 'store'>>
		<<set $cloc = 1>>
	<</if>>
	<<if ARRSIZE('gm_bras') > 0 and getvar("$clothingfilter['quality']") == 1>>
		<<image 'locations/city/citycenter/mall/gm.png'>>

	<</if>>
	<!-- !!To filter just this set-->
	<<set $clo_i = 0>>
	<<warn 'JUMP MARKER ENCOUNTERED: :loopbraquality_filter'>>
	<<set $i = 1>>
	<<warn 'JUMP MARKER ENCOUNTERED: :loopgmbras'>>
	<<if $gm_brasS[$i] == $metka_bras and getvar("$gm_bras["+$i+"]") == 1>>
		<<gs 'underwear_attributes' 'gm_bras' $i>>
		<<gs 'bras' 'bra_filter'>>
		<!-- !!sort by filter-->
		<<if (getvar("$clothingfilter['quality']") == 0 and $BraQuality == $clo_i) or getvar("$clothingfilter['number']") == 0>>
			<<if getvar("$clothingfilter['inc']") == 1 and getvar("$clothingfilter['only']") == 1>>
				*p '<<link '<img src="images/pc/items/gm/bras/<<i>>.jpg" 	height="150" />'>><<gt  'bras'  'view_bra_item'  '<<$ARGS[1]>>'  'gm'  <<i>>>><</link>>'
			<</if>>
		<</if>>
	<</if>>
	<<set $i += 1>>
	<<if $i <= ARRSIZE('gm_bras')>>
		<<warn 'JUMP COMMAND ENCOUNTERED: jump loopgmbras'>>

	<</if>>
	<<if ARRSIZE('lusso_bras') > 0 and getvar("$clothingfilter['quality']") == 1>>
		<<image 'locations/city/citycenter/mall/Lusso.png'>>

	<</if>>
	<<set $i = 1>>
	<<warn 'JUMP MARKER ENCOUNTERED: :looplussobras'>>
	<<if $lusso_brasS[$i] == $metka_bras and getvar("$lusso_bras["+$i+"]") == 1>>
		<<gs 'underwear_attributes' 'lusso_bras' $i>>
		<<gs 'bras' 'bra_filter'>>
		<!-- !!sort by filter-->
		<<if (getvar("$clothingfilter['quality']") == 0 and $BraQuality == $clo_i) or getvar("$clothingfilter['number']") == 0>>
			<<if getvar("$clothingfilter['inc']") == 1 and getvar("$clothingfilter['only']") == 1>>
				*p '<<link '<img src="images/pc/items/lusso/bras/<<i>>.jpg" 	height="150" />'>><<gt  'bras'  'view_bra_item'  '<<$ARGS[1]>>'  'lusso'  <<i>>>><</link>>'
			<</if>>
		<</if>>
	<</if>>
	<<set $i += 1>>
	<<if $i <= ARRSIZE('lusso_bras')>>
		<<warn 'JUMP COMMAND ENCOUNTERED: jump looplussobras'>>

	<</if>>
	<<if ARRSIZE('salacious_bras') > 0 and getvar("$clothingfilter['quality']") == 1>>
		<<image 'locations/pushkin/exhibitshop/shop_name.png'>>

	<</if>>
	<<set $i = 1>>
	<<warn 'JUMP MARKER ENCOUNTERED: :loopsalaciousbras'>>
	<<if $salacious_brasS[$i] == $metka_bras and getvar("$salacious_bras["+$i+"]") == 1>>
		<<gs 'underwear_attributes' 'salacious_bras' $i>>
		<<gs 'bras' 'bra_filter'>>
		<!-- !!sort by filter-->
		<<if (getvar("$clothingfilter['quality']") == 0 and $BraQuality == $clo_i) or getvar("$clothingfilter['number']") == 0>>
			<<if getvar("$clothingfilter['inc']") == 1 and getvar("$clothingfilter['only']") == 1>>
				*p '<<link '<img src="images/pc/items/salacious/bras/<<i>>.jpg" 	height="150" />'>><<gt  'bras'  'view_bra_item'  '<<$ARGS[1]>>'  'salacious'  <<i>>>><</link>>'
			<</if>>
		<</if>>
	<</if>>
	<<set $i += 1>>
	<<if $i <= ARRSIZE('salacious_bras')>>
		<<warn 'JUMP COMMAND ENCOUNTERED: jump loopsalaciousbras'>>

	<</if>>
	<<if ARRSIZE('fashionista_bras') > 0 and getvar("$clothingfilter['quality']") == 1>>
		<<image 'locations/city/citycenter/mall/fashionista.png'>>

	<</if>>
	<<set $i = 1>>
	<<warn 'JUMP MARKER ENCOUNTERED: :loopfashionistabras'>>
	<<if $fashionista_brasS[$i] == $metka_bras and getvar("$fashionista_bras["+$i+"]") == 1>>
		<<gs 'underwear_attributes' 'fashionista_bras' $i>>
		<<gs 'bras' 'bra_filter'>>
		<!-- !!sort by filter-->
		<<if (getvar("$clothingfilter['quality']") == 0 and $BraQuality == $clo_i) or getvar("$clothingfilter['number']") == 0>>
			<<if getvar("$clothingfilter['inc']") == 1 and getvar("$clothingfilter['only']") == 1>>
				*p '<<link '<img src="images/pc/items/fashionista/bras/<<i>>.jpg" 	height="150" />'>><<gt  'bras'  'view_bra_item'  '<<$ARGS[1]>>'  'fashionista'  <<i>>>><</link>>'
			<</if>>
		<</if>>
	<</if>>
	<<set $i += 1>>
	<<if $i <= ARRSIZE('fashionista_bras')>>
		<<warn 'JUMP COMMAND ENCOUNTERED: jump loopfashionistabras'>>

	<</if>>
	<<if ARRSIZE('cats_bras') > 0 and getvar("$clothingfilter['quality']") == 1>>
		<<image 'locations/city/citycenter/mall/pussycat.png'>>

	<</if>>
	<!-- !!To filter just this set-->
	<<set $i = 1>>
	<<warn 'JUMP MARKER ENCOUNTERED: :loopcatsbras'>>
	<<if $cats_brasS[$i] == $metka_bras and getvar("$cats_bras["+$i+"]") == 1>>
		<<gs 'underwear_attributes' 'cats_bras' $i>>
		<<gs 'bras' 'bra_filter'>>
		<!-- !!sort by filter-->
		<<if (getvar("$clothingfilter['quality']") == 0 and $BraQuality == $clo_i) or getvar("$clothingfilter['number']") == 0>>
			<<if getvar("$clothingfilter['inc']") == 1 and getvar("$clothingfilter['only']") == 1>>
				*p '<<link '<img src="images/pc/items/cats/bras/<<i>>.jpg" 	height="150" />'>><<gt  'bras'  'view_bra_item'  '<<$ARGS[1]>>'  'cats'  <<i>>>><</link>>'
			<</if>>
		<</if>>
	<</if>>
	<<set $i += 1>>
	<<if $i <= ARRSIZE('cats_bras')>>
		<<warn 'JUMP COMMAND ENCOUNTERED: jump loopcatsbras'>>

	<</if>>
	<<if ARRSIZE('eroto_bras') > 0 and getvar("$clothingfilter['quality']") == 1>>
		<<image 'locations/city/redlight/erotomaniac/shop_name.png'>>

	<</if>>
	<<set $i = 1>>
	<<warn 'JUMP MARKER ENCOUNTERED: :looperotobras'>>
	<<if $eroto_brasS[$i] == $metka_bras and getvar("$eroto_bras["+$i+"]") == 1>>
		<<gs 'underwear_attributes' 'eroto_bras' $i>>
		<<gs 'bras' 'bra_filter'>>
		<!-- !!sort by filter-->
		<<if (getvar("$clothingfilter['quality']") == 0 and $BraQuality == $clo_i) or getvar("$clothingfilter['number']") == 0>>
			<<if getvar("$clothingfilter['inc']") == 1 and getvar("$clothingfilter['only']") == 1>>
				*p '<<link '<img src="images/pc/items/eroto/bras/<<i>>.jpg" 	height="150" />'>><<gt  'bras'  'view_bra_item'  '<<$ARGS[1]>>'  'eroto'  <<i>>>><</link>>'
			<</if>>
		<</if>>
	<</if>>
	<<set $i += 1>>
	<<if $i <= ARRSIZE('eroto_bras')>>
		<<warn 'JUMP COMMAND ENCOUNTERED: jump looperotobras'>>

	<</if>>
	<<if ARRSIZE('danilovich_bras') > 0 and getvar("$clothingfilter['quality']") == 1>>
		<<image 'locations/city/citycenter/mall/sports.png'>>

	<</if>>
	<<set $i = 1>>
	<<warn 'JUMP MARKER ENCOUNTERED: :loopdanilovichbras'>>
	<<if $danilovich_brasS[$i] == $metka_bras and getvar("$danilovich_bras["+$i+"]") == 1>>
		<<gs 'underwear_attributes' 'danilovich_bras' $i>>
		<<gs 'bras' 'bra_filter'>>
		<!-- !!sort by filter-->
		<<if (getvar("$clothingfilter['quality']") == 0 and $BraQuality == $clo_i) or getvar("$clothingfilter['number']") == 0>>
			<<if getvar("$clothingfilter['inc']") == 1 and getvar("$clothingfilter['only']") == 1>>
				*p '<<link '<img src="images/pc/items/danilovich/bras/<<i>>.jpg" 	height="150" />'>><<gt  'bras'  'view_bra_item'  '<<$ARGS[1]>>'  'danilovich'  <<i>>>><</link>>'
			<</if>>
		<</if>>
	<</if>>
	<<set $i += 1>>
	<<if $i <= ARRSIZE('danilovich_bras')>>
		<<warn 'JUMP COMMAND ENCOUNTERED: jump loopdanilovichbras'>>

	<</if>>
	<<set $clo_i += 1>>
	<<if getvar("$clothingfilter['quality']") == 0 and getvar("$clo_i") <= 7>>
		<<warn 'JUMP COMMAND ENCOUNTERED: jump loopbraquality_filter'>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'view_bra_item'>>
	<!-- !! ARGS 0 - view_bra_item-->
	<!-- !! ARGS 1 = action type (wardrobe, bathroom, shop)-->
	<!-- !! ARGS 2 - bra type-->
	<!-- !! ARGS 3 - bra index-->
	<!-- !! ARGS 4 - price for shop-->

	<<gs 'underwear_attributes' `$location_var[$here][2] + '_bras'` $ARGS[3]>>
	<!-- !!	$result = setup.func('$short_description', $ARGS[2], CloStyle2)-->
	<!-- !!	$result += '<<ARGS[3]>>'-->
	<!-- !!	'<<$result>>'-->
	<<gs 'underwear_descriptions' 'bras'>>
	<<if getvar("$underwear['pair']") > 0>>
		<p>This bra forms a set with panty $underwear['pair'].</p>

	<</if>>
	<<if $location_var[$here][1] == 'shop'>>
		<<if State.getVar('$'+$ARGS[2]+'_bras['+$ARGS[3]+']') == 1>>
			You already own this item.
			<<actCLA 'Leave'>>
				<<gt $location>>
			<</actCLA>>
		<<else>>
			<<set $price = $ARGS[4]>>
			<p>Price: ARGS[4] <b>₽</b></p>
			<<actCLA 'Leave'>>
				<<gt $location>>
			<</actCLA>>
			<<if $finances.cash >= $price>>
				<<actCLA 'Buy (cash)'>>
					<<set $finances.cash -= $price>>
					<!-- FAILED TO CONVERT
						dynamic $ARGS[2] + '_bras[<<ARGS[3]>>] = 1'
					-----
						<<set dynamic $ARGS[2] + '_bras[$ERROR: FAILED TO CONVERT LITERAL: """<<ARGS[3]>>"""] = 1'>>

					-->
					<<warn "CONVERSION ERROR 2bd848de5424be6d92bd908f2260d6a2">>
					<!-- FAILED TO CONVERT
						dynamic $ARGS[2] + '_brasS[<<ARGS[3]>>] = 0'
					-----
						<<set dynamic $ARGS[2] + '_brasS[$ERROR: FAILED TO CONVERT LITERAL: """<<ARGS[3]>>"""] = 0'>>

					-->
					<<warn "CONVERSION ERROR 9212af967fbc12948f9251f937e750bd">>
					<<gt $location>>
				<</actCLA>>
			<<else>>
				You do not have enough cash to buy this bra.
			<</if>>
			<<if $finances.bankAvailable >= $price>>
				<<actCLA 'Buy (card)'>>
					<<set $finances.bank -= $price>>
					<!-- FAILED TO CONVERT
						dynamic $ARGS[2] + '_bras[<<ARGS[3]>>] = 1'
					-----
						<<set dynamic $ARGS[2] + '_bras[$ERROR: FAILED TO CONVERT LITERAL: """<<ARGS[3]>>"""] = 1'>>

					-->
					<<warn "CONVERSION ERROR 2bd848de5424be6d92bd908f2260d6a2">>
					<!-- FAILED TO CONVERT
						dynamic $ARGS[2] + '_brasS[<<ARGS[3]>>] = 0'
					-----
						<<set dynamic $ARGS[2] + '_brasS[$ERROR: FAILED TO CONVERT LITERAL: """<<ARGS[3]>>"""] = 0'>>

					-->
					<<warn "CONVERSION ERROR 9212af967fbc12948f9251f937e750bd">>
					<<gt $location>>
				<</actCLA>>
			<<else>>
				You do not have enough money in your bank to buy this bra.
			<</if>>
			<<if getvar("$underwear['pair']") > 0>>
				<<if State.getVar('$'+$ARGS[2]+'_panties['+getvar("$underwear['pair']")+']') == 1>>
					You own the matching panties buying this bra will complete the set.
				<<else>>
					You do not own the matching panties, you can buy this bra and them as a set.
					<<set $price_set = $ARGS[4] * 18 / 10>>
					<p>Price for set: price_set <b>₽</b></p>
					<<if $finances.cash >= $price_set>>
						<<actCLA 'Buy set (cash)'>>
							<<set $finances.cash -= $price_set>>
							<!-- FAILED TO CONVERT
								dynamic $ARGS[2] + '_bras[<<ARGS[3]>>] = 1'
							-----
								<<set dynamic $ARGS[2] + '_bras[$ERROR: FAILED TO CONVERT LITERAL: """<<ARGS[3]>>"""] = 1'>>

							-->
							<<warn "CONVERSION ERROR 2bd848de5424be6d92bd908f2260d6a2">>
							<!-- FAILED TO CONVERT
								dynamic $ARGS[2] + '_brasS[<<ARGS[3]>>] = 0'
							-----
								<<set dynamic $ARGS[2] + '_brasS[$ERROR: FAILED TO CONVERT LITERAL: """<<ARGS[3]>>"""] = 0'>>

							-->
							<<warn "CONVERSION ERROR 9212af967fbc12948f9251f937e750bd">>
							<!-- FAILED TO CONVERT
								dynamic $ARGS[2] + '_panties[<<underwear[''pair'']>>] = 1'
							-----
								<<set dynamic $ARGS[2] + '_panties[$ERROR: FAILED TO CONVERT LITERAL: """<<underwear['pair']>>"""] = 1'>>

							-->
							<<warn "CONVERSION ERROR a8c9cf447d4cadfce3ec2fdd64f332ff">>
							<!-- FAILED TO CONVERT
								dynamic $ARGS[2] + '_pantiesS[<<underwear[''pair'']>>] = 0'
							-----
								<<set dynamic $ARGS[2] + '_pantiesS[$ERROR: FAILED TO CONVERT LITERAL: """<<underwear['pair']>>"""] = 0'>>

							-->
							<<warn "CONVERSION ERROR 21e12e25b6b592f097ae54c32ce4ad62">>
							<<gt $location>>
						<</actCLA>>
					<<else>>
						You do not have enough cash to buy this set.
					<</if>>
					<<if $finances.bankAvailable >= $price_set>>
						<<actCLA 'Buy set (card)'>>
							<<set $finances.bank -= $price_set>>
							<!-- FAILED TO CONVERT
								dynamic $ARGS[2] + '_bras[<<ARGS[3]>>] = 1'
							-----
								<<set dynamic $ARGS[2] + '_bras[$ERROR: FAILED TO CONVERT LITERAL: """<<ARGS[3]>>"""] = 1'>>

							-->
							<<warn "CONVERSION ERROR 2bd848de5424be6d92bd908f2260d6a2">>
							<!-- FAILED TO CONVERT
								dynamic $ARGS[2] + '_brasS[<<ARGS[3]>>] = 0'
							-----
								<<set dynamic $ARGS[2] + '_brasS[$ERROR: FAILED TO CONVERT LITERAL: """<<ARGS[3]>>"""] = 0'>>

							-->
							<<warn "CONVERSION ERROR 9212af967fbc12948f9251f937e750bd">>
							<!-- FAILED TO CONVERT
								dynamic $ARGS[2] + '_panties[<<underwear[''pair'']>>] = 1'
							-----
								<<set dynamic $ARGS[2] + '_panties[$ERROR: FAILED TO CONVERT LITERAL: """<<underwear['pair']>>"""] = 1'>>

							-->
							<<warn "CONVERSION ERROR a8c9cf447d4cadfce3ec2fdd64f332ff">>
							<!-- FAILED TO CONVERT
								dynamic $ARGS[2] + '_pantiesS[<<underwear[''pair'']>>] = 0'
							-----
								<<set dynamic $ARGS[2] + '_pantiesS[$ERROR: FAILED TO CONVERT LITERAL: """<<underwear['pair']>>"""] = 0'>>

							-->
							<<warn "CONVERSION ERROR 21e12e25b6b592f097ae54c32ce4ad62">>
							<<gt $location>>
						<</actCLA>>
					<<else>>
						You do not have enough money in your bank to buy this set.
					<</if>>
				<</if>>
			<</if>>
		<</if>>
	<<else>>
		<<actCLA 'Return'>>
			<<gt 'bras' 'view_bra_list' $location_var[$here][1]>>
		<</actCLA>>
		<<if $location_var[$here][1] == 'store'>>
			This bra is in storage.
			<<gs 'bras' 'storage_options'>>
		<<elseif $location_var[$here][1] == 'unwanted'>>
			This bra is unwanted.
			<<gs 'bras' 'storage_options'>>
		<<else>>
			<<if $wardrobe.braworntype == $location_var[$here][2] and $wardrobe.brawornnumber == $ARGS[3]>>
				You are wearing this bra.
			<<else>>
				<<if getvar("$metka_bras") == 0>>
					<<actCLA 'Wear'>>
						<<if getvar("$CloBra") == 1>>
							<<msg 'You cannot wear a bra with this top'>>
						<<else>>
							<<if getvar("$hypnoBra") > 0>>
								 								You pick up the bra and think about trying them on... but you don't really like wearing bras.
								<<gs 'willpower' 'misc' 'resist' 'easy'>>
								<<set $will_cost += $quest('therapist').hypnoTime>>
								<<if $will_cost <= $pc.pcs_willpwr>>
									<<actCLA 'Put them on anyways (will_cost Willpower)'>>
										<<gs 'willpower' 'pay' 'resist'>>
										<<run $wardrobe.wear(['bra',$location_var[$here][2],$ARGS[3]])>>
										<<if $location_var[$here][1] == 'wardrobe'>>
											<<gt 'wardrobe' 'main'>>
										<<else>>
											<<gt $location>>
										<</if>>
									<</actCLA>>
								<<else>>
									<<actCLA `'Put them on anyways ('+$will_cost+')'`>><font color=red><br/>You don`t have enough willpower to use this action.</font><</actCLA>>
								<</if>>
								<<act 'Back'>>
									<<gt 'wardrobe' 'main'>>
								<</act>>
							<<else>>
								<<run $wardrobe.wear(['bra',$location_var[$here][2],$ARGS[3]])>>
								<<if $location_var[$here][1] == 'wardrobe'>>
									<<gt 'wardrobe' 'main'>>
								<<else>>
									<<gt $location>>
								<</if>>
							<</if>>
						<</if>>
					<</actCLA>>
					<<if getvar("$underwear['pair']") > 0>>
						<<if State.getVar('$'+$ARGS[2]+'_panties['+getvar("$underwear['pair']")+']') == 1>>
							You own these panties and can wear this set.
							<<actCLA 'Wear set'>>
								<<if $wardrobe.PCloBra == 1>>
									<<msg 'You cannot wear a bra with this top'>>
								<<elseif $wardrobe.PCloPanties == 1>>
									<<msg 'You cannot wear a panties with this outfit'>>
								<<else>>
									<<if getvar("$hypnoBra") > 0 and getvar("$hypnoPanty") > 0>>
										 										You pick up the bra and panties and think about trying them on... but you don't really like wearing underwear.
										<<gs 'willpower' 'misc' 'resist'>>
										<<set $will_cost += $quest('therapist').hypnoTime>>
										<<if $will_cost <= $pc.pcs_willpwr>>
											<<actCLA 'Wear it anyway anyways (will_cost Willpower)'>>
												<<gs 'willpower' 'pay' 'resist'>>
												<<run $wardrobe.wear(['panties',$location_var[$here][2],$underwear['pair']])>>
												<<run $wardrobe.wear(['bra',$location_var[$here][2],$ARGS[3]])>>
												<<if $location_var[$here][1] == 'wardrobe'>>
													<<gt 'wardrobe' 'main'>>
												<<else>>
													<<gt $location>>
												<</if>>
											<</actCLA>>
										<<else>>
											<<actCLA `'Wear it anyway anyways ('+$will_cost+')'`>><font color=red><br/>You don`t have enough willpower to use this action.</font><</actCLA>>
										<</if>>
										<<act 'Back'>>
											<<gt 'wardrobe' 'main'>>
										<</act>>
									<<elseif getvar("$hypnoBra") > 0>>
										 										You pick up the bra and think about trying them on... but you don't really like wearing bras.
										<<gs 'willpower' 'misc' 'resist' 'easy'>>
										<<set $will_cost += $quest('therapist').hypnoTime>>
										<<if $will_cost <= $pc.pcs_willpwr>>
											<<actCLA 'Put them on anyways (will_cost Willpower)'>>
												<<gs 'willpower' 'pay' 'resist'>>
												<<run $wardrobe.wear(['panties',$location_var[$here][2],$underwear['pair']])>>
												<<run $wardrobe.wear(['bra',$location_var[$here][2],$ARGS[3]])>>
												<<if $location_var[$here][1] == 'wardrobe'>>
													<<gt 'wardrobe' 'main'>>
												<<else>>
													<<gt $location>>
												<</if>>
											<</actCLA>>
										<<else>>
											<<actCLA `'Put them on anyways ('+$will_cost+')'`>><font color=red><br/>You don`t have enough willpower to use this action.</font><</actCLA>>
										<</if>>
										<<act 'Back'>>
											<<gt 'wardrobe' 'main'>>
										<</act>>
									<<elseif getvar("$hypnoPanty") > 0>>
										 										You pick up the panties and think about trying them on... but you don't really like wearing panties.
										<<gs 'willpower' 'misc' 'resist' 'easy'>>
										<<set $will_cost += $quest('therapist').hypnoTime>>
										<<if $will_cost <= $pc.pcs_willpwr>>
											<<actCLA 'Put them on anyways (will_cost Willpower)'>>
												<<gs 'willpower' 'pay' 'resist'>>
												<<run $wardrobe.wear(['panties',$location_var[$here][2],$underwear['pair']])>>
												<<run $wardrobe.wear(['bra',$location_var[$here][2],$ARGS[3]])>>
												<<if $location_var[$here][1] == 'wardrobe'>>
													<<gt 'wardrobe' 'main'>>
												<<else>>
													<<gt $location>>
												<</if>>
											<</actCLA>>
										<<else>>
											<<actCLA `'Put them on anyways ('+$will_cost+')'`>><font color=red><br/>You don`t have enough willpower to use this action.</font><</actCLA>>
										<</if>>
										<<act 'Back'>>
											<<gt 'wardrobe' 'main'>>
										<</act>>
									<<else>>
										<<run $wardrobe.wear(['panties',$location_var[$here][2],$underwear['pair']])>>
										<<run $wardrobe.wear(['bra',$location_var[$here][2],$ARGS[3]])>>
										<<if $location_var[$here][1] == 'wardrobe'>>
											<<gt 'wardrobe' 'main'>>
										<<else>>
											<<gt $location>>
										<</if>>
									<</if>>
								<</if>>
							<</actCLA>>
						<<else>>
							You do not own the matching panties to make this set.
						<</if>>
					<</if>>
				<</if>>
			<</if>>
			<<gs 'bras' 'storage_options'>>
		<</if>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'storage_options'>>
	<<if $location_var[$here][1] != 'store'>>
		<<actCLA 'Move to storage'>>
			<<gt 'bras' 'dest1' $location_var[$here][1] $location_var[$here][2] $ARGS[3]>>
		<</actCLA>>
	<</if>>
	<<if $location_var[$here][1] != 'unwanted'>>
		<<actCLA 'Move to unwanted'>>
			<<gt 'bras' 'dest2' $location_var[$here][1] $location_var[$here][2] $ARGS[3]>>
		<</actCLA>>
	<</if>>
	<<if $location_var[$here][1] != 'wardrobe'>>
		<<actCLA 'Move to wardrobe'>>
			<<gt 'bras' 'dest0' $location_var[$here][1] $location_var[$here][2] $ARGS[3]>>
		<</actCLA>>
	<</if>>
	<<actCLA '<font color="red">Throw this bra away</font>'>>
		<<run State.setVar($ARGS[2]+'_bras['+$ARGS[3]+']',0)>>
		<<gt 'wardrobe' 'main'>>
	<</actCLA>>
<</if>>
<<if $location_var[$here][0] == 'dest0'>>
	 	<<run State.setVar($ARGS[2]+'_brasS['+$ARGS[3]+']',0)>>
	<<gt 'bras' 'view_bra_item' $location_var[$here][1] $location_var[$here][2] $ARGS[3]>>
<</if>>
<<if $location_var[$here][0] == 'dest1'>>
	 	<<run State.setVar($ARGS[2]+'_brasS['+$ARGS[3]+']',1)>>
	<<gt 'bras' 'view_bra_item' $location_var[$here][1] $location_var[$here][2] $ARGS[3]>>
<</if>>
<<if $location_var[$here][0] == 'dest2'>>
	 	<<run State.setVar($ARGS[2]+'_brasS['+$ARGS[3]+']',2)>>
	<<gt 'bras' 'view_bra_item' $location_var[$here][1] $location_var[$here][2] $ARGS[3]>>
<</if>>
<<if $location_var[$here][0] == 'sum'>>
	<<setinit $t[0] = 'lusso'>>
	<<set $t[1] = 'cats'>>
	<<set $t[2] = 'salacious'>>
	<<set $t[3] = 'fashionista'>>
	<<set $t[4] = 'gm'>>
	<<set $t[5] = 'eroto'>>
	<<set $t[6] = 'danilovich'>>
	<<set $result = 0>>
	<<set $i = 0>>
	<<warn 'JUMP MARKER ENCOUNTERED: :loopsumbras_i'>>
	<<set $temp = $t[$i]>>
	<<set $j = 1>>
	<<warn 'JUMP MARKER ENCOUNTERED: :loopsumbras_j'>>
	<!-- FAILED TO CONVERT
		$temp1 = '<<$temp>>_bras[<<j>>]'
	-----
		<<set $temp1 = '$temp_bras[ERROR: FAILED TO CONVERT LITERAL: """<<j>>"""]'>>

	-->
	<<warn "CONVERSION ERROR f3a584c020f0902644a7de60990cc3f8">>
	<!-- FAILED TO CONVERT
		$temp2 = '<<$temp>>_brasS[<<j>>]'
	-----
		<<set $temp2 = '$temp_brasS[ERROR: FAILED TO CONVERT LITERAL: """<<j>>"""]'>>

	-->
	<<warn "CONVERSION ERROR 7a7a22f3c2ea15b8d79a76f83cb61b97">>
	<!-- FAILED TO CONVERT
		dynamic 'if <<$temp1>> = 1 and <<$temp2>> = 0: result +=1'
	-----
		<<set if '+$temp1+' = ERROR: FAILED TO CONVERT LITERAL: """1 and $temp2 = 0: result""" + ERROR: FAILED TO CONVERT LITERAL: """=1""">>

	-->
	<<warn "CONVERSION ERROR 8266d55ce498bb657ceaaa6cc8d25c17">>
	<<set $j += 1>>
	<<if $j <= -999>>
		<<warn 'JUMP COMMAND ENCOUNTERED: jump loopsumbras_j'>>

	<</if>>
	<<set $i += 1>>
	<<if $i <= arrsize('$t')>>
		<<warn 'JUMP COMMAND ENCOUNTERED: jump loopsumbras_i'>>

	<</if>>
	<<if $location_var[$here][1] == 'dresser'>>
		<<if $wardrobe.isWearingBra and getvar("$result") > 0>>
	<<setn $result -= 1>>

<</if>>

	<</if>>
	killvar('t')
	killvar('temp')
	killvar('temp1')
	killvar('temp2')
<</if>>
<<if $location_var[$here][0] == 'dispose'>>
	<<if getvar("$underwear['type']") == 2>>
		<<gs 'underwear_bodysuits' 'dispose'>>

	<</if>>
	<!-- FAILED TO CONVERT
		dynamic $wardrobe.braworntype + '_bras[<<brawornnumber>>] = 0'
	-----
		<<set dynamic $wardrobe.braworntype + '_bras[$ERROR: FAILED TO CONVERT LITERAL: """<<brawornnumber>>"""] = 0'>>

	-->
	<<warn "CONVERSION ERROR bc86b83f06a7cf3e3982486b5d7b398b">>
	<<set $lastwornbratype = 'none'>>
	<<set $lastwornbranumber = 0>>
	<<run $wardrobe.wear('none_bra_0')>>
	<<set $wardrobe.PBraMaterial = 0>>
	<<set $wardrobe.PBraType = 0>>
	<<set $wardrobe.PBraFun = 0>>
	<<set $wardrobe.PBraQuality = 0>>
	<<set $wardrobe.PBraThinness = 0>>
	<<set $wardrobe.PBraCover = 4>>
	<<gs 'clothing' 'exposure_calc'>>
<</if>>
<<if $location_var[$here][0] == 'remove'>>
	<<warn 'bras.remove is deprecated. Use $wardrobe.strip("panties") instead'>>

<</if>>
<<if $location_var[$here][0] == 'wear'>>
	<<warn "Usage of bras.wear is deprecated">>
<</if>>
<<if $location_var[$here][0] == 'wear2'>>
	<<warn "Usage of bras.wear2 is deprecated">>
<</if>>
<<if $location_var[$here][0] == 'wear_last_worn'>>
	<!-- !!contingency-->
	<<if $lastwornbratype == ''>>
		<<set $lastwornbratype = 'none'>>

	<</if>>
	<<run $wardrobe.wear(['bra',$lastwornbratype,$lastwornbranumber])>>
<</if>>
<<if $location_var[$here][0] == 'filter_header'>>
	<!-- !!Exclude filters-->
	<<set $Headerstring = '<TD>'>>
	<<if getvar("$clothingfilter['sport']") == 0>>
		<!-- FAILED TO CONVERT
			$Headerstring += '<a href="exec:clothingfilter[''sport''] = 1 & clothingfilter[''sport_only''] = 0 & gt ''bras'', ''view_bra_list'', $ward_list_store"><img src="images/system/icons/clothing/sport.png"></a></TD>'
		-----
			<<set $Headerstring += ERROR: FAILED TO CONVERT LITERAL: """'<a href="exec:clothingfilter['sport'] = 1""">> <<setinit $clothingfilter['sport_only'] = 0>> <<set gt ''bras'' , 'view_bra_list' , ERROR: FAILED TO CONVERT LITERAL: """$ward_list_store"><img src""" = "images / $system / $icons / $clothing / ERROR: FAILED TO CONVERT LITERAL: """sport.png"><""" / ERROR: FAILED TO CONVERT LITERAL: """a><""" / ERROR: FAILED TO CONVERT LITERAL: """TD>'""">>

		-->
		<<warn "CONVERSION ERROR 71017b3ae86321837a8d5c2c48d2579a">>
	<<else>>
		<!-- FAILED TO CONVERT
			$Headerstring += '<a href="exec:clothingfilter[''sport''] = 0 & gt ''bras'', ''view_bra_list'',  $ward_list_store"><img src="images/system/icons/clothing/sport_off.png"></a></TD>'
		-----
			<<set $Headerstring += ERROR: FAILED TO CONVERT LITERAL: """'<a href="exec:clothingfilter['sport'] = 0""">> <<set gt ''bras'' , 'view_bra_list' , ERROR: FAILED TO CONVERT LITERAL: """$ward_list_store"><img src""" = "images / $system / $icons / $clothing / ERROR: FAILED TO CONVERT LITERAL: """sport_off.png"><""" / ERROR: FAILED TO CONVERT LITERAL: """a><""" / ERROR: FAILED TO CONVERT LITERAL: """TD>'""">>

		-->
		<<warn "CONVERSION ERROR de3b3cbf53fd356f0189c220caf991b5">>
	<</if>>
	<!-- !!sort by filters-->
	<<set $Headerstring += '<TD>'>>
	<<if getvar("$clothingfilter['number']") == 0>>
		<<setinit $clothingfilter['quality'] = 1>> <<set $clothingfilter['inhibition'] = 1>>
		<<set $Headerstring += '<<image 'images/system/icons/clothing/number.png'>></TD>'>>
	<<else>>
		<!-- FAILED TO CONVERT
			$Headerstring += '<a href="exec:clothingfilter[''number''] = 0 & clothingfilter[''quality''] = 1 & clothingfilter[''inhibition''] = 1 & gt ''bras'', ''view_bra_list'',  $ward_list_store"><img src="images/system/icons/clothing/number_off.png"></a></TD>'
		-----
			<<set $Headerstring += ERROR: FAILED TO CONVERT LITERAL: """'<a href="exec:clothingfilter['number'] = 0""">> <<setinit $clothingfilter['quality'] = 1>> <<set $clothingfilter['inhibition'] = 1>> <<set gt ''bras'' , 'view_bra_list' , ERROR: FAILED TO CONVERT LITERAL: """$ward_list_store"><img src""" = "images / $system / $icons / $clothing / ERROR: FAILED TO CONVERT LITERAL: """number_off.png"><""" / ERROR: FAILED TO CONVERT LITERAL: """a><""" / ERROR: FAILED TO CONVERT LITERAL: """TD>'""">>

		-->
		<<warn "CONVERSION ERROR b9501bbd434a4b988aac40163829afd3">>
	<</if>>
	<<set $Headerstring += '<TD>'>>
	<<if getvar("$clothingfilter['quality']") == 0>>
		<<set $Headerstring += '<<image 'images/system/icons/clothing/quality.png'>></TD>'>>
	<<else>>
		<!-- FAILED TO CONVERT
			$Headerstring += '<a href="exec:clothingfilter[''quality''] = 0 & clothingfilter[''number''] = 1 & clothingfilter[''inhibition''] = 1 & gt ''bras'', ''view_bra_list'',  $ward_list_store"><img src="images/system/icons/clothing/quality_off.png"></a></TD>'
		-----
			<<set $Headerstring += ERROR: FAILED TO CONVERT LITERAL: """'<a href="exec:clothingfilter['quality'] = 0""">> <<setinit $clothingfilter['number'] = 1>> <<set $clothingfilter['inhibition'] = 1>> <<set gt ''bras'' , 'view_bra_list' , ERROR: FAILED TO CONVERT LITERAL: """$ward_list_store"><img src""" = "images / $system / $icons / $clothing / ERROR: FAILED TO CONVERT LITERAL: """quality_off.png"><""" / ERROR: FAILED TO CONVERT LITERAL: """a><""" / ERROR: FAILED TO CONVERT LITERAL: """TD>'""">>

		-->
		<<warn "CONVERSION ERROR 5580e974cd348b5f260611c335599c7f">>
	<</if>>
	<!-- !! Show only filers-->
	<<setinit $Headerstring[1] = '<TD>'>>
	<<if getvar("$clothingfilter['sport_only']") == 0>>
		<!-- FAILED TO CONVERT
			$Headerstring[1] += '<a href="exec:clothingfilter[''sport_only''] = 1 & clothingfilter[''sport''] = 0 & gt ''bras'', ''view_bra_list'',  $ward_list_store"><img src="images/system/icons/clothing/sport_off.png"></a></TD>'
		-----
			<<setinit $Headerstring[1] += ERROR: FAILED TO CONVERT LITERAL: """'<a href="exec:clothingfilter['sport_only'] = 1""">> <<set $clothingfilter['sport'] = 0>> <<set gt ''bras'' , 'view_bra_list' , ERROR: FAILED TO CONVERT LITERAL: """$ward_list_store"><img src""" = "images / $system / $icons / $clothing / ERROR: FAILED TO CONVERT LITERAL: """sport_off.png"><""" / ERROR: FAILED TO CONVERT LITERAL: """a><""" / ERROR: FAILED TO CONVERT LITERAL: """TD>'""">>

		-->
		<<warn "CONVERSION ERROR 3f27b9b2f5d5dc68fc556a6866391109">>
	<<else>>
		<!-- FAILED TO CONVERT
			$Headerstring[1] += '<a href="exec:clothingfilter[''sport_only''] = 0 & gt ''bras'', ''view_bra_list'',  $ward_list_store"><img src="images/system/icons/clothing/sport.png"></a></TD>'
		-----
			<<setinit $Headerstring[1] += ERROR: FAILED TO CONVERT LITERAL: """'<a href="exec:clothingfilter['sport_only'] = 0""">> <<set gt ''bras'' , 'view_bra_list' , ERROR: FAILED TO CONVERT LITERAL: """$ward_list_store"><img src""" = "images / $system / $icons / $clothing / ERROR: FAILED TO CONVERT LITERAL: """sport.png"><""" / ERROR: FAILED TO CONVERT LITERAL: """a><""" / ERROR: FAILED TO CONVERT LITERAL: """TD>'""">>

		-->
		<<warn "CONVERSION ERROR 2fd946489187cf627116172fc9d5e30c">>
	<</if>>
	<<setinit $Headerstring[2] = '<TH>Include</TH><TH>Sort by</TH><TH></TH>'>>
	<<setinit $Headerstring[3] = '<TH>Only show</TH>'>>
	<center><table><<$Headerstring[2]>>
	<TR><border=1><<$Headerstring>>
	<TR><border=0><<$Headerstring[3]>>
	<TR><border=1><<$Headerstring[1]>></table></center>
<</if>>
<<if $location_var[$here][0] == 'bra_filter'>>
	<!-- !!Exclude filters-->
	<<setinit $clothingfilter['inc'] = 1>>
	<!-- !!filters, if inc set to 0 they will not display-->
	<<if getvar("$clothingfilter['sport']") == 1 and getvar("$BraFun") == 2>>
		<<setinit $clothingfilter['inc'] = 0>>
	<</if>>
	<!-- !!only filters-->
	<<setinit $clothingfilter['only'] = 0>>
	<!-- !!filters, if only set to 1 they will only display those set-->
	<<if getvar("$clothingfilter['sport_only']") == 1 and getvar("$BraFun") == 2>>
		<<setinit $clothingfilter['only'] = 1>>
	<</if>>
	<<if $clothingfilter['only'] == $clothingfilter['sport_only']>>
		<<setinit $clothingfilter['only'] = 1>>
	<<else>>
		<<setinit $clothingfilter['only'] = 0>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'shop_filter_header'>>
	<!-- !! sort by filters-->
	<<set $Headerstring = '<TD>'>>
	<<if getvar("$clothingfilter['number']") == 0>>
		<<setinit $clothingfilter['quality'] = 1>>
		<<set $Headerstring += '<<image 'images/system/icons/clothing/number.png'>></TD>'>>
	<<else>>
		<!-- FAILED TO CONVERT
			$Headerstring += '<a href="exec:clothingfilter[''number''] = 0 & clothingfilter[''quality''] = 1 & clothingfilter[''inhibition''] = 1 & gt $loc, $loc_arg"><img src="images/system/icons/clothing/number_off.png"></a></TD>'
		-----
			<<set $Headerstring += ERROR: FAILED TO CONVERT LITERAL: """'<a href="exec:clothingfilter['number'] = 0""">> <<setinit $clothingfilter['quality'] = 1>> <<set $clothingfilter['inhibition'] = 1>> <<set gt $loc , ERROR: FAILED TO CONVERT LITERAL: """$loc_arg"><img src""" = "images / $system / $icons / $clothing / ERROR: FAILED TO CONVERT LITERAL: """number_off.png"><""" / ERROR: FAILED TO CONVERT LITERAL: """a><""" / ERROR: FAILED TO CONVERT LITERAL: """TD>'""">>

		-->
		<<warn "CONVERSION ERROR 8f9dde9d3d200949a32d3ae004823097">>
	<</if>>
	<<set $Headerstring += '<TD>'>>
	<<if getvar("$clothingfilter['quality']") == 0>>
		<<set $Headerstring += '<<image 'images/system/icons/clothing/quality.png'>></TD>'>>
	<<else>>
		<!-- FAILED TO CONVERT
			$Headerstring += '<a href="exec:clothingfilter[''quality''] = 0 & clothingfilter[''number''] = 1 & clothingfilter[''inhibition''] = 1 & gt $loc, $loc_arg"><img src="images/system/icons/clothing/quality_off.png"></a></TD>'
		-----
			<<set $Headerstring += ERROR: FAILED TO CONVERT LITERAL: """'<a href="exec:clothingfilter['quality'] = 0""">> <<setinit $clothingfilter['number'] = 1>> <<set $clothingfilter['inhibition'] = 1>> <<set gt $loc , ERROR: FAILED TO CONVERT LITERAL: """$loc_arg"><img src""" = "images / $system / $icons / $clothing / ERROR: FAILED TO CONVERT LITERAL: """quality_off.png"><""" / ERROR: FAILED TO CONVERT LITERAL: """a><""" / ERROR: FAILED TO CONVERT LITERAL: """TD>'""">>

		-->
		<<warn "CONVERSION ERROR 11e954eefe2bfe07b53ef01a1940d84c">>
	<</if>>
	<<setinit $Headerstring[2] = '<TH>Sort by</TH>'>>
	<center><table><<$Headerstring[2]>>
	<TR><border=1><<$Headerstring>></table></center>
<</if>>
<<if $location_var[$here][0] == 'shop_filter'>>
<</if>>
