Przeglądaj źródła

[fixed] buying snacks when not having the money to do so in stwork.

3xpurt 6 lat temu
rodzic
commit
480a880407
1 zmienionych plików z 4 dodań i 2 usunięć
  1. 4 2
      locations/stwork.qsrc

+ 4 - 2
locations/stwork.qsrc

@@ -25,7 +25,7 @@ if $ARGS[0] = 'start':
 	'There are several <a href="exec:gt ''mirror'', ''start''">mirrors</a> hanging on the wall, where you can <a href="exec:gt ''mirror'', ''brush''">brush</a> your hair, and a selection of <a href="exec:gt ''wardrobe'', ''start''">clothes</a> hanging on rails for the girls to dress in.'
 	'There are some stairs leading to the <a href="exec:gt ''stwork'', ''stripgirl''">stage</a> where you can head out to perform.'
 	'To the side there''s a <a href="exec:stripMir = 0 & gt ''stripclub'', ''start''">steel door</a> which overlooks the back yard and the staff uses as an entrance, to save them from meeting scummy customers. Standing by this entrance, there''s always <a href="exec:gt ''stwork'', ''guard''">security</a> keeping the talent safe.'
-	'Near the exit door is a vending machine selling <a href="exec:stripMir = 0 & gt ''food'', ''snack''">snacks</a>, and a <a href="exec:stripMir = 0 & gt ''beverage'', ''bev_wat''">water cooler</a>, which is heavily used by staff after coming off stage'
+	'Near the exit door is a vending machine selling '+iif(money >= 100,'<a href="exec:money -= 100 & gt ''food'', ''snack''">snacks</a>','snacks')+' and a <a href="exec:gt ''beverage'', ''bev_wat''">water cooler</a>, which is heavily used by staff after coming off stage'
 	'Behind a wooden door there''s the <a href="exec:gt ''stwork'', ''toilet''">staff toilet</a>.'
 	
 	if tatlech > 0:stripKoef = rand(1, 3)
@@ -70,7 +70,9 @@ if $ARGS[0] = 'start':
 	end
 	
 	act 'Have a cup of water (0:05)':gs 'beverage', 'bev_wat'
-	act 'Have a snack (0:05) (100 <b>₽</b>)': money -= 100 & gs 'food', 'snack'
+	if money >= 100:
+		act 'Have a snack (0:05) (100 <b>₽</b>)': money -= 100 & gs 'food', 'snack'
+	end
 	act 'Look in the mirror': gt 'mirror', 'start'
 	if pcs_hairbsh = 0: act 'Brush your hair': gt 'mirror', 'brush'
 	act 'Change your clothes':gt 'wardrobe', 'start'