Sfoglia il codice sorgente

[fixed] removed unnecessary loop from coats and purses

f95Lok 2 settimane fa
parent
commit
db47e715bb
1 ha cambiato i file con 14 aggiunte e 26 eliminazioni
  1. 14 26
      locations/shop_utils.qsrc

+ 14 - 26
locations/shop_utils.qsrc

@@ -315,20 +315,14 @@ if $ARGS[0] = 'display_coats':
 		exit
 	end
 
-	shop_display['clo_i'] = 0
-	:coats_filter_loop
-		shop_display['i'] = 1 + ARGS[5]
-		:coats_main_loop
-		if shop_display['i'] <= total:
-			if arrpos('shop_display_exception', shop_display['i']) < 0:
-				*p func('shop_utils', $ARGS[4], 'coats')
-			end
-			shop_display['i'] += ARGS[2]
-			jump 'coats_main_loop'
+	shop_display['i'] = 1 + ARGS[5]
+	:coats_main_loop
+	if shop_display['i'] <= total:
+		if arrpos('shop_display_exception', shop_display['i']) < 0:
+			*p func('shop_utils', $ARGS[4], 'coats')
 		end
-		shop_display['clo_i'] += 1
-	if clothingfilter['quality'] = 0 and shop_display['clo_i'] <= 6:
-		jump 'coats_filter_loop'
+		shop_display['i'] += ARGS[2]
+		jump 'coats_main_loop'
 	end
 
 	killvar 'shop_display'
@@ -353,20 +347,14 @@ if $ARGS[0] = 'display_purses':
 		exit
 	end
 
-	shop_display['clo_i'] = 0
-	:purses_filter_loop
-		shop_display['i'] = 1 + ARGS[5]
-		:purses_main_loop
-		if shop_display['i'] <= total:
-			if arrpos('shop_display_exception', shop_display['i']) < 0:
-				*p func('shop_utils', $ARGS[4], 'purses')
-			end
-			shop_display['i'] += ARGS[2]
-			jump 'purses_main_loop'
+	shop_display['i'] = 1 + ARGS[5]
+	:purses_main_loop
+	if shop_display['i'] <= total:
+		if arrpos('shop_display_exception', shop_display['i']) < 0:
+			*p func('shop_utils', $ARGS[4], 'purses')
 		end
-		shop_display['clo_i'] += 1
-	if clothingfilter['quality'] = 0 and shop_display['clo_i'] <= 6:
-		jump 'purses_filter_loop'
+		shop_display['i'] += ARGS[2]
+		jump 'purses_main_loop'
 	end
 
 	killvar 'shop_display'