1
0
Переглянути джерело

[added] model['age'] variable for tracking model's age

hornguy6 3 роки тому
батько
коміт
4bad57feff
3 змінених файлів з 21 додано та 2 видалено
  1. 1 0
      locations/cikl.qsrc
  2. 9 2
      locations/foto.qsrc
  3. 11 0
      locations/saveupdater.qsrc

+ 1 - 0
locations/cikl.qsrc

@@ -101,6 +101,7 @@ end
 !!Birthday
 age = year - ((pcs_dob - (pcs_dob mod 10000)) / 10000)
 if ((month * 100) + day) <= pcs_dob mod 10000: age -= 1
+if birthday = day and birthmonth = month and model['age'] > 0:model['age'] += 1
 
 if workDolgDay > 0: workDolgDay -= 1
 if QWdogreiqTimer > 0: QWdogreiqTimer -= 1

+ 9 - 2
locations/foto.qsrc

@@ -341,7 +341,7 @@ if $ARGS[0] = 'studio':
 					*nl
 					'"Welcome to Aphrodite."'
 					model = 1
-					modelyear = year
+					model['start_year'] = year
 					act'Leave the studio':gt'city_center'
 					act'Head to the back':gt'foto','start'
 				end
@@ -417,6 +417,11 @@ end
 if $ARGS[0] = 'gave_passport':
 	*clr & cla
 	menu_off = 1
+	if age < 18:
+		model['age'] = 18
+	else
+		model['age'] = age
+	end
 	'<center><b><font color="maroon">Photographer</font></b></center>'
 	'<center><img <<$set_imgh>> src="images/locations/city/citycenter/photo/fotograph.jpg"></center>'
 	''
@@ -425,7 +430,7 @@ if $ARGS[0] = 'gave_passport':
 	*nl
 	'"Welcome to Aphrodite."'
 	model = 1
-	modelyear = year
+	model['start_year'] = year
 	act'Leave the studio':gt'city_center'
 	act'Head to the back':gt'foto','start'
 end
@@ -651,6 +656,7 @@ if $ARGS[0] = 'job_offer':
 		act'Show him your passport':
 			cla
 			*nl
+			model['age'] = age
 			'He takes it and studies it for a moment, looking back and forth between you and the document. "Okay, that confirms you''re <<age>> and we''ll put you into the database later."'
 			'"When you''re ready, speak to a photographer about work. We work on freelance basis. For our lower level models or new hires like you, we can really only afford to pay you for two shoots a week, but you can still come in any time if you want to get some practice to work on your modelling skills. Those photos will be ours to keep and use, but it will help you to build your portfolio. If your popularity increases, we might have some special work and extra jobs for you so it''s not just twice a week."'
 			'He hands you back your passport, smiling.'
@@ -662,6 +668,7 @@ if $ARGS[0] = 'job_offer':
 		act'Show him your fake passport':
 			cla
 			*nl
+			model['age'] = 18
 			'He takes it and studies it for a moment, looking back and forth between you and the document and types your info onto a computer.'
 			'"When you''re ready, speak to a photographer about work. We work on freelance basis. For our lower level models or new hires like you, we can really only afford to pay you for two shoots a week, but you can still come in any time if you want to get some practice to work on your modelling skills. Those photos will be ours to keep and use, but it will help you to build your portfolio. If your popularity increases, we might have some special work and extra jobs for you so it''s not just twice a week."'
 			'He hands you back your fake passport, smiling.'

+ 11 - 0
locations/saveupdater.qsrc

@@ -853,5 +853,16 @@ if arrsize('$metkaM') > 0 or arrsize('$metka') > 0:
 end
 !!---------------------------------------------------------------
 
+
+!!model age addition
+
+if model['age'] = 0:
+	if age >= 18:
+		model['age'] = age
+	else
+		model['age'] = 18
+	end
+end
+
 --- saveupdater ---------------------------------