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

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

anjuna krokus пре 1 месец
родитељ
комит
68ad4e3a49
1 измењених фајлова са 6 додато и 4 уклоњено
  1. 6 4
      locations/din_bad.qsrc

+ 6 - 4
locations/din_bad.qsrc

@@ -133,10 +133,12 @@ if $ARGS[0] = 'd_bag':
 	end
 !! Hair options
 	*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
 	if pcs_hairbsh > 0 and pcs_hairlng > 80 and hbraids = 0:
 		*nl