:: photography_work
<<set $here = 'photography_work'>>
<<set $ARGS = $location_var[$here]>>
<!-- !! 05-2023 - First Draft-->
<!-- !! Conversion from dynamic arrays to sub-functions to reduce save footprint-->
<!-- !! job offer init:-->
<<if $location_var[$here][0] == 'photojob_pay'>>
	<<if $pc.skillLevel("photo") > 125>>
		<<gs 'emp_functions' 'wage_evt' 4>>
	<<elseif $pc.skillLevel("photo") > 100>>
		<<gs 'emp_functions' 'wage_evt' 3>>
	<<elseif $pc.skillLevel("photo") > 75>>
		<<gs 'emp_functions' 'wage_evt' 2>>
	<<elseif $pc.skillLevel("photo") > 50>>
		<<gs 'emp_functions' 'wage_evt' 1>>
	<<else>>
		<<gs 'emp_functions' 'wage_evt' 5 100>>
	<</if>>
<</if>>
<!-- !! Photography jobs functions-->
<<if $location_var[$here][0] == 'job_init'>>
	<!-- !! Set up arrays if not initialised-->
	<<if $evt_job[1] == ''>>
		<<gs 'emp_functions' 'job_evt'>>

	<</if>>
	<!-- !! ensure it matches total jobs on offer-->
	<<set $evt_PhotoID = rand(1, 5)>>
	<<gs 'photography_work' 'job_' + $evt_PhotoID>>
	<!-- !! set Day of Week for job to appear on-->
	<<set $transient_evt_dow = 6>>
	<!-- !! Now set up the event date-->
	<<gs 'photography_work' 'photojob_pay'>>
	<!-- !! Set job duration of 2-4 hours-->
	<<set $transient_evt_duration = rand(2,4)>>
	<<gs 'emp_functions' 'gen_evt'>>
<</if>>
<!-- !! Event player:-->
<<if $location_var[$here][0] == "evt_stage" or !$location_var[$here][0]>>
	<!-- !! Track how many gigs completed-->
	<<setinit $photography['experience'] += 1>>
	<<set $finances.bank += $evt_wages[$act_idx]>>
	<!-- !! runs all events:-->
	<<gt 'photography_work' 'stage_' + $evt_event_sub[$act_idx]>>
<</if>>
<!-- !! These are the event stages to play the events, should be equal to the amount of jobs-->
<<if $location_var[$here][0] == 'stage_1'>>
	<<set $time.minutes += 20>>
	<<image 'images/characters/shared/headshots_generic/37.jpg'>>
	You head over to the industrial region where you quickly meet up with your contact at the Experience Center.
	<p>"Hi there; you must be $pc.name_first. The group is already on their way to the site, so I'll take you up there in my car. I'm sure you know everything you need to do, but feel free to ask if you have any questions."</p>
	You get in the car and drive for nearly half an hour until you reach the Experience Center. Once there, the representative parks the car and you get out and head inside.
	<<actCLA 'Go to the Experience Center'>>
		<<set $time.minutes += rand(120,150)>>
		<<run $pc.skillExperienceGain('photo',rand(6,10))>>
		<<gs 'shop_photography' 'photojob_pay'>>
		<<image 'images/pc/activities/photography/job/tank.jpg'>>
		<p>You arrive at the Experience Center and spend the next two hours taking as many pictures of the experience as you can. The group is clearly enjoying the event; They get to ride in military vehicles across rough terrain and fire weapons at the shooting range.</p>
		<p>Once the day is over, you remove your SD card and hand it to the representative, who shows the photos to the group. Once they've sorted out whether any of the customers want additional copies, your contact takes you back to the city's industrial region. When you check your account, you see that you have been paid evt_wages[$act_idx].</p>
		<!-- !! gs 'shop_photography', 'photojob_cleanup'-->
		<<actCLA 'Return'>>
			<<gt $loc $loc_arg>>
		<</actCLA>>
	<</actCLA>>
<</if>>
<<if $location_var[$here][0] == 'stage_2'>>
	<<set $time.minutes += rand(60,90)>>
	<<run $pc.skillExperienceGain('photo',rand(3,5))>>
	<<gs 'shop_photography' 'photojob_pay'>>
	<<image 'images/pc/activities/photography/job/model#.jpg' 1 3>>
	You go to the Petrovskaya Akvatoria Model Museum to take pictures of the various exhibits on behalf of an international newspaper.
	After a brief introduction to a member of staff to confirm your activities, you walk around the exhibit, taking a large number of photographs so that the article has a wealth to choose from.
	<p>Once you're finished, you return to the shop and hand the SD card to Branko, who gives you your fee of evt_wages[$act_idx]₽.</p>
	<!-- !! gs 'shop_photography', 'photojob_cleanup'-->
	<<actCLA 'Return'>>
		<<gt $loc $loc_arg>>
	<</actCLA>>
<</if>>
<<if $location_var[$here][0] == 'stage_3'>>
	<<set $time.minutes += rand(10,18)>>
	<<image 'images/characters/shared/headshots_generic/18.jpg'>>
	You head over to the residential district where you meet one of the family members of the betrothed.
	<p>"Hello, you must be the photographer! If you follow me, I'll take you to the happy couple to take the pictures of them."</p>
	<<actCLA 'Follow'>>
		<<set $time.minutes += rand(90,120)>>
		<<run $pc.skillExperienceGain('photo',rand(6,10))>>
		<<gs 'shop_photography' 'photojob_pay'>>
		<<image 'images/pc/activities/photography/job/wedding.jpg'>>
		You meet the bride and groom and help direct them into a number of framed situations for you to take some beautiful photos of them together.
		Once you have enough, you spend the rest of the day in the background taking a number of photos of the wedding. Once it's over, you meet back up with the relative who takes the SD card from you.
		<p>Leaving them to close up the venue, you walk out back into the residential district. When you check your account, you see that you have been paid evt_wages[$act_idx].</p>
		<!-- !! gs 'shop_photography', 'photojob_cleanup'-->
		<<actCLA 'Return'>>
			<<gt $loc $loc_arg>>
		<</actCLA>>
	<</actCLA>>
<</if>>
<<if $location_var[$here][0] == 'stage_4'>>
	<<set $time.minutes += rand(15,20)>>
	<<image 'images/characters/shared/headshots_generic/11.jpg'>>
	You head over to the industrial region and meet a representative of the Autodrome. You will be expected to take pictures of the event and deliver them to your contact.
	"Why hello there, you must be the person Branko sent. I'm sure you already know everything you have to do at the track, so I'll give you this press pass and take you to the Autodrome."
	You look at the pass they gave you before getting in their car to be taken to the track.
	<<actCLA 'Go to the Autodrome'>>
		<<set $time.minutes += rand(180,240)>>
		<<run $pc.skillExperienceGain('photo',rand(9,15))>>
		<<gs 'shop_photography' 'photojob_pay'>>
		<<image 'images/pc/activities/photography/job/motorsport.jpg'>>
		You're dropped off at the employee entrance and directed to the pit area as the teams get their vehicles prepared.
		<p>You start off by getting shots of the teams in the build-up to the race, showcasing the tension and focus as the countdown approaches zero.</p>
		When the race itself starts you roam the track, taking pictures of any event as it happens, getting high intensity shots of fast paced action, as well as the smooth professionalism of the leading drivers. It is a fantastic experience.
		With your job done, you find your contact again and hand them a full SD card for which they are gratified.
		<p>Your contact then takes you back to the city's industrial region. When you check your account, you see that you have been paid evt_wages[$act_idx].</p>
		<!-- !! gs 'shop_photography', 'photojob_cleanup'-->
		<<actCLA 'Return'>>
			<<gt $loc $loc_arg>>
		<</actCLA>>
	<</actCLA>>
<</if>>
<<if $location_var[$here][0] == 'stage_5'>>
	<<set $time.minutes += 60>>
	<<run $pc.skillExperienceGain('photo',rand(3,5))>>
	<<gs 'shop_photography' 'photojob_pay'>>
	<<image 'images/pc/activities/photography/job/court.jpg'>>
	"You need to go to the courthouse to take publicity photographs of the completed court session as they leave the building, then deliver them back to me to give you your commission."
	You head into the City Center and straight to the courthouse, which has already seen a number of people turn up.
	Once you've ingratiated yourself into the crowd, you position yourself to take some good shots of the plaintiff accompanied by their lawyers and representatives.
	With the verdict read, you quickly make your way outside to the front of the courthouse to take photos of him leaving.
	<p>Once you're finished, you return to the shop and hand the SD card to Branko, who gives you your fee of evt_wages[$act_idx]₽.</p>
	<!-- !! gs 'shop_photography', 'photojob_cleanup'-->
	<<actCLA 'Return'>>
		<<gt $loc $loc_arg>>
	<</actCLA>>
<</if>>
<!-- ! Array of photography jobs - additional events should be easy to wire up-->
<<if $location_var[$here][0] == 'job_1'>>
	<!-- !!Ensure the event is visible in journal:-->
	<<set $transient_evt_silent = 1>>
	<!-- !! Set the job type as per list-->
	<<set $transient_evt = 1>>
	<<set $transient_evt_sub = 1>>
	<<set $photojob_shortname = 'Tank'>>
	<<set $transient_desc = 'Tank and Bazooka Experience Day in Levingrad Oblast'>>
	<!-- !! Field for trigger location-->
	<<set $transient_loc = 'city_industrial'>>
	<<set $transient_arg = ''>>
	<!-- !! Journal loc description-->
	<<set $transient_journal = 'Travel to St Petersburg Industrial Area'>>
<</if>>
<<if $location_var[$here][0] == 'job_2'>>
	<<set $transient_evt_silent = 1>>
	<<set $transient_evt = 1>>
	<<set $transient_evt_sub = 2>>
	<<set $photojob_shortname = 'Model'>>
	<<set $transient_desc = 'Newspaper Commission at Petrovskaya Akvatoria'>>
	<<set $transient_loc = 'shop_photography'>>
	<<set $transient_arg = 'evt_stage'>>
	<<set $transient_journal = 'Meet Branko at the Photography Shop'>>
<</if>>
<<if $location_var[$here][0] == 'job_3'>>
	<<set $transient_evt_silent = 1>>
	<<set $transient_evt = 1>>
	<<set $transient_evt_sub = 3>>
	<<set $photojob_shortname = 'Wedding'>>
	<<set $transient_desc = 'Wedding at Yelagin Palace'>>
	<<set $transient_loc = 'city_residential'>>
	<<set $transient_arg = ''>>
	<<set $transient_journal = 'Travel to St Petersburg Residential Area'>>
<</if>>
<<if $location_var[$here][0] == 'job_4'>>
	<<set $transient_evt_silent = 1>>
	<<set $transient_evt = 1>>
	<<set $transient_evt_sub = 4>>
	<<set $photojob_shortname = 'Motorsport'>>
	<<set $transient_desc = 'Russian Touring Car Championship Event at St. Petersburg Autodrome'>>
	<<set $transient_loc = 'city_industrial'>>
	<<set $transient_arg = ''>>
	<<set $transient_journal = 'Travel to St Petersburg Industrial Area'>>
<</if>>
<<if $location_var[$here][0] == 'job_5'>>
	<<set $transient_evt_silent = 1>>
	<<set $transient_evt_ = 1>>
	<<set $transient_evt_sub = 5>>
	<<set $photojob_shortname = 'Court'>>
	<<set $transient_desc = 'Press Event at City Courthouse'>>
	<<set $transient_loc = 'shop_photography'>>
	<<set $transient_arg = 'start'>>
	<<set $transient_journal = 'Meet Branko at the Photography Shop'>>
<</if>>
