1
0
Quellcode durchsuchen

[changed] You can now only do the skin care treatment at the salon once per week, and how much it improves the skin get progressively less.

bgkjdgbizgblzdgbr vor 1 Jahr
Ursprung
Commit
675ad17046
1 geänderte Dateien mit 20 neuen und 3 gelöschten Zeilen
  1. 20 3
      locations/salon.qsrc

+ 20 - 3
locations/salon.qsrc

@@ -155,7 +155,7 @@ if $ARGS[0] = 'services':
 	act 'See the eyelash specialist':gt'salon','eyelashes'
 	
 	gs 'salon', 'discount', 5000
-	if money >= salon_rate or karta + bankDebtLimit >= salon_rate:
+	if (money >= salon_rate or karta + bankDebtLimit >= salon_rate) and salon['skin_care_day'] < daystart - 7:
 		act 'Skin care <<salon_rate>> <b>₽</b>':
 			if masseuse['jobtype'] > 0:  
 				epayments['value'] = 2500
@@ -167,6 +167,10 @@ if $ARGS[0] = 'services':
 			$epayments['description'] = 'skin care pampering'
 			gs 'shortgs', 'payments'
 		end	
+	elseif salon['skin_care_day'] < daystart -7:
+		act 'Skin care (<font color="red"> <<salon_rate>> <b>₽</b> </font>)':
+			msg'You need to wait a week since you last skin care treatment for a new to have any effect.'
+		end	
 	else
 		act 'Skin care (<font color="red"> <<salon_rate>> <b>₽</b> </font>)':
 			msg'You don''t have enough money for this!'
@@ -1757,11 +1761,24 @@ if $ARGS[0] = 'skin_care':
 	cla & *clr
 	minut += 60
 	inhib_exp += rand(1,5)
-	pcs_skin += 20
+	salon['skin_care_day'] = daystart
+	if pcs_skin < 200:
+		pcs_skin += 50
+	elseif pcs_skin <= 400: 
+		pcs_skin += 25
+	elseif pcs_skin <= 600:
+		pcs_skin += 15
+	elseif pcs_skin <= 800:
+		pcs_skin += 10
+	elseif pcs_skin <=995: 
+		pcs_skin += 5
+	else
+		pcs_skin = 1000
+	end
 	gs 'AppearanceSystem', 'UpdateBaseAppearnce'
 	gs 'stat'
 	'<center><img <<$set_imgh>> src="images/locations/city/citycenter/mall/salon/facialmask.jpg"></center>'
-	'You get a beauty mask treatment, afterwards your face feels smooth and your skin tight.'
+	'You get a beauty mask treatment, afterwards your face feels smooth and your skin tight. You are told that you should wait a week before getting a new treatment.'
 	act 'Leave':gt 'salon', 'start'
 end