Browse Source

additional payment fixed and changed a pay variable which was used in two location, could be a problem if somebody plays with the multiple jobs cheat

julzor 6 years ago
parent
commit
5413a17a1a
2 changed files with 7 additions and 7 deletions
  1. 4 4
      locations/cikl
  2. 3 3
      locations/salon

+ 4 - 4
locations/cikl

@@ -1021,14 +1021,14 @@ if day = 25:
 
 	if workKafe = 1 and paydayKafe = 0:
 		paydayKafe = 1
-		pay = smenaKafe * 1500
+		pay = smenaKafe * 600
 		karta += pay
 		smenaKafe = 0
 		'<b><font color="green">Your salary of <<pay>> <b>₽</b> has been paid into your bank account for your job as a waitress in a cafe.</font></b>'
 	end
 
 	if workhosp = 1 and nopaypoly = 0:
-		pay = smena * 1500
+		pay = smena * 1000
 		karta += pay
 		smena = 0
 		nopaypoly = 1
@@ -1036,9 +1036,9 @@ if day = 25:
 	end
 
 	if worksalon = 1 and nopaysalon = 0:
-		pay = smena * 1560
+		pay = smenaSalon * 1560
 		karta += pay
-		smena = 0
+		smenaSalon = 0
 		nopaysalon = 1
 		'<b><font color="green">Your salary of <<pay>> <b>₽</b> has been paid into your bank account for your work in a beauty salon.</font></b>'
 	end

+ 3 - 3
locations/salon

@@ -426,7 +426,7 @@ if $ARGS[0] = 'beginwork':
 	'<center><img <<$set_imgh>> src="images/locations/city/citycenter/mall/salon/salon.jpg"></center>'
 	'You go to your workstation and prepare it as you wait for your first customer.'
 	act 'Start work':
-		smena += 1
+		smenaSalon += 1
 		gt 'worksalon', 'start'
 	end
 	act 'Resign':gt 'salon', 'discharge'
@@ -437,9 +437,9 @@ if $ARGS[0] = 'discharge':
 	minut += 10
 	worksalon = 0
 	work = 0
-	pay = smena * 1560
+	pay = smenaSalon * 1560
 	money += pay
-	smena = 0
+	smenaSalon = 0
 	'You tell your boss you have had enough and that you quit. He looks at you a moment and then says. "Here is your paycheck <<pay>> <b>₽</b> and employment history. Goodbye."'
 	act 'Leave':gt 'salon', 'start'
 end