# shop_materinstvo

if $shoplocation = 'items': gt 'shop_materinstvo', 'items'

if $ARGS[0] = 'start':
	killvar 'clothingfilter'
	*clr & cla
	$loc = 'shop_materinstvo'
	$loc_arg = 'start'
	$location_type = 'public_indoors'
	$menu_loc = 'shop_materinstvo'
	$menu_arg = 'start'
	killvar '$shoplocation'
	menu_off = 0
	gs 'stat'
	gs 'themes', 'indoors'
	gs 'shop_materinstvo' , 'config'
	'<center><b><font color="maroon">Mommy Style</font></b></center>'
	'<center><img src="images/locations/city/citycenter/mall/mommy/shop.jpg"></center>'
	*nl
	'This is a shop dedicated to all things pregnancy related.  Here you can buy Pregnancy Clothing or items to aid the process of getting through the day.'
	act 'Leave the Shop':gt 'torgcentr'
	act 'View clothes': minut += 3 & gt 'shop_materinstvo', 'clothes'
!!	act 'View items': minut += 3 & gt 'shop_materinstvo', 'items'
end

if $ARGS[0] = 'items':
	$shoplocation = 'items'
	*clr & cla
	$loc = 'shop_materinstvo'
	$loc_arg = 'items'
	$loc_s = 'shop_materinstvo'
	$args_s = 'items'
	$menu_loc = 'shop_materinstvo'
	$menu_arg = 'items'
	menu_off = 0
	gs 'stat'
	$backimage = 'images/locations/city/citycenter/mall/mommy/shop1.jpg'

!! This section is commented out until we can add function
!! Items here are not doing anything
	gs 'item_cart', 'shoppping_aisle', 'mothershop' 
	gs 'stat'
	gs 'themes', 'indoors'

	act 'Return':gt 'shop_materinstvo', 'start'
end

if $ARGS[0] = 'clothes':
	$loc_arg = 'clothes'
	$loc = 'shop_materinstvo'
	$menu_loc = 'shop_materinstvo'
	$menu_arg = 'clothes'
	menu_off = 0
	*clr & cla
	gs'stat'
	'<center><b><font color="maroon">Viewing Mommy Style clothing</font></b></center>'
	*nl

	gs 'clothing_QV', 'shop_filter_header'

	act 'Return': minut += 1 & gt 'shop_materinstvo', 'start'

	!!To filter just this set
	clo_i = 0
	:loopmaterinstvo_filter

		i = 1

		:loopmaterinstvo
			if materinstvo_dress[i] = 0:
				gs 'clothing_attributes', 'materinstvo_dress', i
				gs 'clothing_QV', 'shop_filter'

				!!sort by filter
				if (clothingfilter['quality'] = 0 and CloQuality = clo_i) or (clothingfilter['inhibition'] = 0 and CloInhibit = clo_i) or clothingfilter['number'] = 0:
					if clothingfilter['inc'] = 1 and clothingfilter['only'] = 1: *p '<a href="exec: i = <<i>> & gt ''shop_materinstvo'', ''materinstvo_dress''"><img src="images/pc/items/mommy/<<i>>.jpg" 	height="250" /></a>'
				end
			end
			i += 1
		if i <= 10:jump 'loopmaterinstvo'

	clo_i += 1
	if clothingfilter['quality'] = 0 and clo_i <= 7:
		jump 'loopmaterinstvo_filter'
	elseif clothingfilter['inhibition'] = 0 and clo_i <= 50:
		jump 'loopmaterinstvo_filter'
	end
end

if $ARGS[0] = 'materinstvo_dress': gt 'clothing', 'view_clothing_item', 'materinstvo_dress',i, 2000, 'shop'

--- shop_materinstvo ---------------------------------

