Browse Source

[fixed] removed unnecessary loop from coats and purses

f95Lok 3 tuần trước cách đây
mục cha
commit
db47e715bb
1 tập tin đã thay đổi với 14 bổ sung26 xóa
  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'