:: panties[include]


<<switch $location_var[$here][0]>>
	<<case 'dispose'>>
		<<warn 'panties.dispose is deprecated. Use $wardrobe.disposeWorn("panties") instead'>>
		<<run $wardrobe.disposeWorn("panties")>>
	<<case 'remove'>>
		<<warn 'panties.remove is deprecated. Use $wardrobe.strip("panties") instead'>>
		<<run $wardrobe.strip("panties")>>
	<<default>>
		<<warn `'panties.'+$location_var[$here][0]+' is deprecated'`>>
<</switch>>
/*<<if $location_var[$here][0] == 'wear'>>
	<<if getvar("$underwear['lastworntype']") == 2>>
		<<gs 'underwear_bodysuits' 'wear'>>

	<</if>>
	<<if $location_var[$here][1] == ''>>
		<<if State.getVar('$'+$lastwornpantytype+'_pantiesS['+lastwornpantynumber+']') == 0 and $lastwornpantytype != ''>>
			<<gs 'panties' 'wear2' $lastwornpantytype $lastwornpantynumber>>
		<<else>>
			<<run $wardrobe.wear('none_panties_0')>>
		<</if>>
	<<else>>
		<<if State.getVar('$'+$ARGS[1]+'_pantiesS['+$ARGS[2]+']') == 0>>
			<<gs 'panties' 'wear2' $location_var[$here][1] $ARGS[2]>>
		<<else>>
			<<run $wardrobe.wear('none_panties_0')>>
		<</if>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'wear2'>>
	<!-- !! ARGS 0 - action-->
	<!-- !! ARGS 1 - panties type name-->
	<!-- !! ARGS 2 - panties index-->
	<!-- !! removing panties or bodysuit if worn-->
	<<if getvar("$underwear['type']") == 0>>
		<<run $wardrobe.strip('panties')>>
	<<else>>
		<<gs 'underwear_bodysuits' 'remove'>>
	<</if>>
	<<setinit $underwear['type'] = 0>>
	<<set $wardrobe.pantyworntype = $location_var[$here][1]>>
	<<set $wardrobe.pantywornnumber = $ARGS[2]>>
	<<gs 'underwear_attributes' $location_var[$here][1] $ARGS[2]>>
	<<run State.setVar($ARGS[1]+'_pantiesS['+$ARGS[2]+']',0)>>
	<<set $wardrobe.PPanMaterial = $PanMaterial>>
	<<set $wardrobe.PPantyFun = $PantyFun>>
	<<set $wardrobe.PPanQuality = $PanQuality>>
	<<set $wardrobe.PPanThinness = $PanThinness>>
	<<set $wardrobe.PPanCoverFront = $PanCoverFront>>
	<<set $wardrobe.PPanCoverBack = $PanCoverBack>>
	<<gs 'clothing' 'exposure_calc'>>
<</if>>
<<if $location_var[$here][0] == 'wear_last_worn'>>
	<!-- !!contingency-->
	<<if $lastwornpantytype == ''>>
		<<set $lastwornpantytype = 'none'>>

	<</if>>
	<<run $wardrobe.wear(['panties',$lastwornpantytype,$lastwornpantynumber])>>
<</if>>
*/
