:: music_bedroompractice
<<set $here = 'music_bedroompractice'>>
<<set $ARGS = $location_var[$here]>>
<!-- !! TODO: Practice and Rehearsal - Rename the file too. F-->
<<if $location_var[$here][0] == 'guitar'>>
	<<set $time.minutes += 15>>
	<<setinit $ml_performance['performed_minutes'] += 15>>
	<<setinit $ml_performance['total_time_performed'] += 15>>
	<<set $pc.mood += 5>>
	<<image "pc/activities/music/guitarpractice_1.jpg">>
	<<if getvar("$ml_guitarlesson['lessoncount']") == 0 and getvar("$ml_guitar['chordbook']") == 1 and getvar("$instrmusic_lvl") <= 10>>
		<<run $pc.skillExperienceGain('playInstrument',rand(1,3))>>
		<<gs 'pain' 1 'fingers' 'ache'>>
		You open the book you got from Jimmy and start to practice the chords and basic techniques on the guitar.
		It goes slowly, your fingers get in the way and they start to hurt after a short time as the strings dig into them, but you soldier on until.
		The strings still either buzz, or don't ring but by the end you start to get a feel for how to do it better. 
	<<elseif getvar("$ml_guitarlesson['lessoncount']") == 0 and getvar("$ml_guitar['chordbook']") == 1 and getvar("$instrmusic_lvl") > 15 and $access == 'denied'>>
		You open the chordbook you got from Jimmy and start to practice, but you feel that you don't really improve that much.
		<<run $pc.skillExperienceGain('playInstrument',rand(1,2))>>
	<<elseif getvar("$ml_guitarlesson['lessoncount']") == 0 and getvar("$ml_guitar['chordbook']") == 1 and getvar("$instrmusic") > 15 and $access != 'denied'>>
		<<video "pc/activities/music/onlineguitarlesson.mp4">>
		You look at the book you got from Jimmy, then decide to turn to the internet for new lessons.
		<<run $pc.skillExperienceGain('playInstrument',rand(1,3))>>
	<<elseif getvar("$ml_guitarlesson['lessoncount']") > 0 and getvar("$instrmusic_lvl") >= 15 and $access != 'denied'>>
		<<run $pc.skillExperienceGain('playInstrument',rand(2,3))>>
		<<video "pc/activities/music/onlineguitarlesson.mp4">>
		You work through the practices from your guitarlesson then turn to the internet to learn some more new songs.
	<<else>>
		You pick up you guitar and the lessons from the guitar teacher and start to practice.
		<<run $pc.skillExperienceGain('playInstrument',rand(2,3))>>
	<</if>>
	<<actCLA 'Finish practice'>>
		<<gs 'music_actions' 'start'>>
	<</actCLA>>
<</if>>
<!-- !! TODO: Tie in with the vocal coach at the Industrial Region Community Centre-->
<<if $location_var[$here][0] == 'vocals'>>
<</if>>
<<if $location_var[$here][0] == 'rehearse'>>
	<<set $time.minutes += 30>>
	<<set $pc.mood += 5>>
	<<setinit $ml_performance['performed_minutes'] += 30>>
	<<setinit $ml_performance['total_time_performed'] += 30>>
	<<image "pc/activities/music/guitarpractice_1.jpg">>
	<<if getvar("$ml_performance['set_quality']") < 25>>
		<!-- !! TODO: Very, very beginning, many mistakes, frowny..-->
	<<elseif getvar("$ml_performance['set_quality']") < 50>>
		<!-- !! TODO: Getting better, the main bits are learned, most of the lyrics remembered-->
	<<elseif getvar("$ml_performance['set_quality']") < 75>>
		<!-- !! TODO: Not perfect,  could play it with some errors and mistakes-->
	<<elseif getvar("$ml_performance['set_quality']") < 95>>
		<!-- !! TODO: Almost perfect, some minor errors, occassionally  missed words in the lyrics-->
	<<else>>
		<!-- !! TODO: Done and dusted, learned it all.-->
	<</if>>
	<<if getvar("$ml_performance['set_quality']") < 85>>
		<<run $pc.skillExperienceGain('playInstrument',rand(1,3))>>
		<<run $pc.skillExperienceGain('singing',rand(1,3))>>
		<<if getvar("$perform_lvl") < 35>>
			<<run $pc.skillExperienceGain('perform',rand(1,3))>>

		<</if>>
	<</if>>
	<<setinit $ml_performance['set_quality'] += rand(1,($pc.skillLevel("playInstrument") + $pc.skillLevel("singing") + $pcs_perform)/10)>>
	<<setinit $ml_performance['set_lastpracticeday'] = $time.daystart>>
	<<actCLA 'Finish practice'>>
		<<gs 'music_actions' 'start'>>
	<</actCLA>>
<</if>>
