ソースを参照

[fixed] No sort options in Fashionista as spotted by Skylah

Kevin_Smarts 3 ヶ月 前
コミット
ea9fa314e7
1 ファイル変更40 行追加16 行削除
  1. 40 16
      locations/shop_fashionista.qsrc

+ 40 - 16
locations/shop_fashionista.qsrc

@@ -209,20 +209,32 @@ if $ARGS[0] = 'dressingoutfit2':
 end
 
 if $ARGS[0] = 'dressingbra':
-	$loc = 'shop_fashionista'
-	$loc_arg = 'dressingbra'
-	menu_off = 1
+	gs 'shortgs', 'setloc', 'shop_fashionista', 'dressingbra'
+	menu_off = 0
 	gs 'stat'
 
 	act 'Return': minut += 1 & gt 'shop_fashionista', 'changingroom'
 
+	gs 'bras', 'shop_filter_header'
 	gs 'bras', 'totals', 'fashionista_bras'
 
-	i = 1
-	:loopfashionista_bras2
-		if fashionista_bras[i] = 0: *p '<a href="exec: i = <<i>> & gt ''shop_fashionista'', ''dressingbras2''"><img src="images/pc/items/fashionista/bras/<<i>>.jpg"	 height="150" /></a> '
-		i += 1
-	if i <= total: jump 'loopfashionista_bras2'
+	!!To filter just this set
+	clo_i = 0
+	:loopbraquality_filter
+		i = 1
+		:loopfashionista_bras2
+			if fashionista_bras[i] = 0:
+				gs 'underwear_attributes', 'fashionista_bras', i
+				if (clothingfilter['quality'] = 0 and BraQuality = clo_i) or clothingfilter['number'] = 0:
+					*p '<a href="exec: i = <<i>> & gt ''shop_fashionista'', ''dressingbras2''"><img src="images/pc/items/fashionista/bras/<<i>>.jpg"	height="150" /></a> '
+				end
+			end
+			i += 1
+		if i <= total: jump 'loopfashionista_bras2'
+		clo_i += 1
+	if clothingfilter['quality'] = 0 and clo_i <= 6:
+		jump 'loopbraquality_filter'
+	end
 end
 
 if $ARGS[0] = 'dressingbras2':
@@ -235,20 +247,32 @@ if $ARGS[0] = 'dressingbras2':
 end
 
 if $ARGS[0] = 'dressingpanties':
-	$loc = 'shop_fashionista'
-	$loc_arg = 'dressingpanties'
-	menu_off = 1
+	gs 'shortgs', 'setloc', 'shop_fashionista', 'dressingpanties'
+	menu_off = 0
 	gs 'stat'
 
 	act 'Return': minut += 1 & gt 'shop_fashionista', 'changingroom'
 
+	gs 'panties', 'shop_filter_header'
 	gs 'panties', 'totals', 'fashionista_panties'
 
-	i = 1
-	:loopfashionista_panties2
-		if fashionista_panties[i] = 0: *p '<a href="exec: i = <<i>> & gt ''shop_fashionista'', ''dressingpanties2''"><img src="images/pc/items/fashionista/panties/<<i>>.jpg"	 height="150" /></a> '
-		i += 1
-	if i <= total: jump 'loopfashionista_panties2'
+	!!To filter just this set
+	clo_i = 0
+	:looppantyquality_filter
+		i = 1 + (Clothingstock / 4) mod 2
+		:loopfashionista_panties2
+			if fashionista_panties[i] = 0:
+				gs 'underwear_attributes', 'fashionista_panties', i
+				if (clothingfilter['quality'] = 0 and PanQuality = clo_i) or clothingfilter['number'] = 0:
+					*p '<a href="exec: i = <<i>> & gt ''shop_fashionista'', ''dressingpanties2''"><img src="images/pc/items/fashionista/panties/<<i>>.jpg"	height="150" /></a> '
+				end
+			end
+			i += 2
+		if i <= total: jump 'loopfashionista_panties2'
+		clo_i += 1
+	if clothingfilter['quality'] = 0 and clo_i <= 6:
+		jump 'looppantyquality_filter'
+	end
 end
 
 if $ARGS[0] = 'dressingpanties2':