Преглед изворни кода

[fixed] Re-dying hair was available when it was your natural colour which made no sense

Kevin_Smarts пре 2 година
родитељ
комит
f563b4044a
1 измењених фајлова са 8 додато и 6 уклоњено
  1. 8 6
      locations/barbershop.qsrc

+ 8 - 6
locations/barbershop.qsrc

@@ -89,12 +89,14 @@ if $ARGS[0] = 'start':
 
 	*nl
 
-	if dyefade > 0 and dyefade < 7:
-		'<a href=' + iif(money >= 375, '"exec:gt ''barbershop'', ''touchup''"', '') + '>Touch up hair color - 375 <b>₽</b></a>'
-		*nl
-	elseif dyefade = 0:
-		'<a href=' + iif(money >= 750, '"exec:gt ''barbershop'', ''touchup2''"', '') + '>Re-dye your existing hair color - 750 <b>₽</b></a>'
-		*nl
+	if nathcol ! pcs_haircol:
+		if dyefade > 0 and dyefade < 7:
+			'<a href=' + iif(money >= 375, '"exec:gt ''barbershop'', ''touchup''"', '') + '>Touch up hair color - 375 <b>₽</b></a>'
+			*nl
+		elseif dyefade = 0:
+			'<a href=' + iif(money >= 750, '"exec:gt ''barbershop'', ''touchup2''"', '') + '>Re-dye your existing hair color - 750 <b>₽</b></a>'
+			*nl
+		end
 	end
 	
 	*nl