浏览代码

[fixes] negative kosmetica in stwork

julzor 6 年之前
父节点
当前提交
147ab3c31b
共有 1 个文件被更改,包括 20 次插入16 次删除
  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