1
0
Эх сурвалжийг харах

[fixed] Bodysuits now show name of all three stores but only if you have one of their products

Kevin_Smarts 1 жил өмнө
parent
commit
4d0e246cbc

+ 28 - 3
locations/underwear_bodysuits.qsrc

@@ -47,25 +47,50 @@ if $ARGS[0] = 'view_bodysuit_list':
 		cloc = 1
 	end
 
-	'<center><img src="images/locations/city/citycenter/mall/Lusso.png"></center>'
+	!! Check for no bodysuits
+	j = 0
+
+	if ARRSIZE('lusso_bodysuits') > 0:
+		j += 1
+		'<center><img src="images/locations/city/citycenter/mall/Lusso.png"></center>'
+	end
 
 	i = 1
 	:looplussobodysuits 
 	if lusso_bodysuits_s[i] = metka_bodysuits and lusso_bodysuits[i] = 1:*p '<a href="exec:gt ''underwear_bodysuits'', ''view_bodysuit_item'', ''<<$ARGS[1]>>'', ''lusso'', <<i>>"><img src="images/pc/items/lusso/bodysuits/<<i>>.jpg" 	height="150" /></a>'
 	i += 1
 	if i <= ARRSIZE('lusso_bodysuits'):jump 'looplussobodysuits'
-	
+
+	if ARRSIZE('salacious_bodysuits') > 0:
+		j += 1
+		'<center><img src="images/locations/pushkin/exhibitshop/shop_name.png"></center>'
+	end
+
 	i = 1
 	:loopsalaciousbodysuits 
 	if salacious_bodysuits_s[i] = metka_bodysuits and salacious_bodysuit[i] = 1:*p '<a href="exec:gt ''underwear_bodysuits'', ''view_bodysuit_item'', ''<<$ARGS[1]>>'', ''salacious'', <<i>>"><img src="images/pc/items/salacious/bodysuits/<<i>>.jpg" 	height="150" /></a>'
 	i += 1
 	if i <= ARRSIZE('salacious_bodysuits'):jump 'loopsalaciousbodysuits'
-	
+
+	if ARRSIZE('scandalicious_bodysuits') > 0:
+		j += 1
+		'<center><img src="images/locations/city/citycenter/mall/scandalicious.png"></center>'
+	end
+
 	i = 1
 	:loopscandaliciousbodysuits 
 	if scandalicious_bodysuits_s[i] = metka_bodysuits and scandalicious_bodysuits[i] = 1:*p '<a href="exec:gt ''underwear_bodysuits'', ''view_bodysuit_item'', ''<<$ARGS[1]>>'', ''scandalicious'', <<i>>"><img src="images/pc/items/scandalicious/bodysuits/<<i>>.jpg" 	height="150" /></a>'
 	i += 1
 	if i <= ARRSIZE('scandalicious_bodysuits'):jump 'loopscandaliciousbodysuits'
+
+	if j > 0:
+		*nl
+		*nl
+		*nl
+		*nl
+		*nl
+		'<center><b><font color = red>You do not own any bodysuits</font></b></center>'
+	end
 end
 
 if $ARGS[0] = 'view_bodysuit_item':