Browse Source

[fixes] negative kosmetica in stwork

julzor 5 years ago
parent
commit
147ab3c31b
1 changed files with 20 additions and 16 deletions
  1. 20 16
      locations/stwork.qsrc

+ 20 - 16
locations/stwork.qsrc

@@ -126,22 +126,26 @@ if $ARGS[0] = 'toilet':
 	'You enter a dirty and smelly staff bathroom that''s probably never been cleaned.'
 	'There is no mirror, only a grimy shower, toilet, and basin'
 	act 'Leave the bathroom':gt 'stwork', 'start'
-	act 'Have a shower and get ready for work':
-		cls
-		dynamic $showerdin
-		minut += 10
-		makupskl_exp += rand(1,3)
-		kosmetica -= 3
-		vidageday -= 1
-		pcs_makeup = 4
-		pcs_hairbsh = 1
-		'<h3>Staff Bathroom</h3>'
-		'<h5>Shower</h5>'
-		'<center><img <<$set_imgh>> src="images/locations/shared/brothel/brothelshower.jpg"></center>'
-		*nl
-		'After taking off all of your clothes, you gather up your towel, washcloth and soap, then head to the shower. You wash yourself thoroughly, brush your hair, and put on heavy you makeup for the customers.'
-		act 'Get out and dry off':gt $locM, $metkaM
-		dynamic $brit
+	if kosmetica >= 3:
+		act 'Have a shower and get ready for work':
+			cls
+			dynamic $showerdin
+			minut += 10
+			makupskl_exp += rand(1,3)
+			kosmetica -= 3
+			vidageday -= 1
+			pcs_makeup = 4
+			pcs_hairbsh = 1
+			'<h3>Staff Bathroom</h3>'
+			'<h5>Shower</h5>'
+			'<center><img <<$set_imgh>> src="images/locations/shared/brothel/brothelshower.jpg"></center>'
+			*nl
+			'After taking off all of your clothes, you gather up your towel, washcloth and soap, then head to the shower. You wash yourself thoroughly, brush your hair, and put on heavy you makeup for the customers.'
+			act 'Get out and dry off':gt $locM, $metkaM
+			dynamic $brit
+		end
+	else
+		'You don''t have enough make-up to get ready.'
 	end
 	act 'Have a shower':
 		cls