Prechádzať zdrojové kódy

[fixed] brushing hair through bag does not take any time. Reported by Dibutello

anjuna krokus 1 mesiac pred
rodič
commit
68ad4e3a49
1 zmenil súbory, kde vykonal 6 pridanie a 4 odobranie
  1. 6 4
      locations/din_bad.qsrc

+ 6 - 4
locations/din_bad.qsrc

@@ -133,10 +133,12 @@ if $ARGS[0] = 'd_bag':
 	end
 	end
 !! Hair options
 !! Hair options
 	*nl
 	*nl
-	if (mc_inventory['travel_mirror'] =  1 or mc_inventory['comb'] =  1) and pcs_hairbsh = 0:
-		'There''s a hairbrush in your purse. <a href="exec:pcs_hairbsh = 1 & gs ''stat'' & gs ''din_bad'', ''d_bag''">Brush your hair</a>'
-	elseif (mc_inventory['travel_mirror'] =  1 or mc_inventory['comb'] =  1) and pcs_hairbsh = 1:
-		'There''s a hairbrush in your purse. Your hair doesn''t need brushing right now.'
+	if mc_inventory['travel_mirror'] =  1 or mc_inventory['comb'] =  1:
+		if pcs_hairbsh = 0:
+			'There''s a hairbrush in your purse. <a href="exec: minut += min(15, max(1, pcs_hairlng / 80)) & pcs_hairbsh = 1 & gs ''stat'' & gs ''din_bad'', ''d_bag''">Brush your hair</a>'
+		else
+			'There''s a hairbrush in your purse. Your hair doesn''t need brushing right now.'
+		end
 	end
 	end
 	if pcs_hairbsh > 0 and pcs_hairlng > 80 and hbraids = 0:
 	if pcs_hairbsh > 0 and pcs_hairlng > 80 and hbraids = 0:
 		*nl
 		*nl