:: pav_library[public indoors]

<h2>Community center library</h2>
<<image "locations/pavlovsk/community/library/gdkbibl.jpg">>
<p>For such a small town, the library is surprisingly large - containing many interesting books on a wide variety of subjects.</p>
<!-- FAILED TO CONVERT
	'Between the bookshelves are some tables which can be used for studying. Some of them have <a href="exec: gs ''internet_mobile'', ''get_access'', ''free'', ''noporn'',''nocamshow'' & gs ''internet_mobile'', ''add_limitation'', ''general-text'', ''On this public computer all adult content sites are blocked'' & gt ''computer'',''start''">computers</a> for public use.'
-----
	<<set ERROR: FAILED TO CONVERT LITERAL: """'Between the bookshelves are some tables which can be used for studying. Some of them have <a href""" = ERROR: FAILED TO CONVERT LITERAL: """"exec: gs ''internet_mobile''""" , 'get_access' , 'free' , 'noporn' , 'nocamshow'>> <<gs 'internet_mobile' 'add_limitation' 'general-text' 'On this public computer all adult content sites are blocked'>> <<gt 'computer'">computers</a> for public use.'>>

-->

/*<<if $quest('school').homeworkLeft > 0>>
	You could do your homework with the help of one of the computers.
<</if>>
<<if setup.startingCharacterTagsIncludes('sg') and $time.isSchoolHoliday == 0 and $time.weekday < 6 and $nerdstudynight['day'] != $time.daystart and $time.hour > 14>>
	The nerds are sitting at a table studying together.
<</if>>
<<if setup.startingCharacterTagsIncludes('sg') and $time.isSchoolHoliday == 0 and $time.weekday > 5 and $time.hour >= 12 and $time.hour < 14>>
	<<if $nataliaQW['library_day_check'] != $time.daystart>>
		<<setinit $nataliaQW['library_day_check'] = $time.daystart>>
		<<if rand(0,3) == 0>>
			<<setinit $nataliaQW['library_day'] = $time.daystart>>

		<</if>>
	<</if>>
	<<if $nataliaQW['library_day'] == $time.daystart>>
		You see your classmate <<link "Natalia Pavlova">><<gt 'natalia_pavlova' 'library'>><</link>> .
	<</if>>
<</if>>*/
<<ConnectedLocation 'Leave' 'pav_commcenter' '' 'locations/pavlovsk/community/dk.jpg' 2>>
/*<<act 'Go to the toilets'>>
	<<gt 'gdktoilet' 'start'>>
<</act>>
<<if $nerd_game['game_day'] == $time.daystart and $time.hour == 19>>
	<<actCLA 'Wait for game night to start'>>
	<<set $time.minutes += 60 - $time.minutes>> <<gt 'pav_library'>>
<</actCLA>>

<</if>>
<<if $nerd_game['game_day'] == $time.daystart and $time.hour == 20>>
	<<act 'Join the <b>nerds</b>'>>
	<<gt 'nerd_game_night' 'game'>>
<</act>>

<</if>>*/
<<if $time.hour >= 8 and $time.hour < 18>>
	/*<<actCLA 'Read a book on science (1:00)'>>
		<<set $menu_off = 1>>
		<<if getvar("$blizoruk") == 500 or getvar("$pc.glassqw") == 1>>
			<<set $pc.glassqw = 1>> <<msg 'The text blurs across the page, it seems that your eyesight is actually pretty poor. Maybe you should head to the city and visit an ophthalmologist.'>> <<gt $curloc>>

		<</if>>
		<<if getvar("$pcs_nerd") > 0>>
			<<set $lastread = $totminut>> <<set $lastreadday = $time.daystart>> <<setn $pcs_nerd += 1>>

		<</if>>
		<<set $time.minutes += 60>>
		<<run $pc.skillExperienceGain('intelligence',rand(3,6) + (mentats_dose - rand(0,mentats_dose)))>>
		<<set $blizoruk += 1>>
		<<run $quest('school').func('groupRelInc','nerds',1)>>
		<<image "pc/items/accessories/books/science1.jpg">>
		You spend an hour reading, trying to make sense of all the clever propositions writen inside and to finally understand the subject it describes.
		<<act 'Put the book back'>>
			<<gt 'pav_library'>>
		<</act>>
	<</actCLA>>
	<<actCLA 'Read an adventure novel (1:00)'>>
		<<set $menu_off = 1>>
		<<if getvar("$blizoruk") == 500 or getvar("$pc.glassqw") == 1>>
			<<set $pc.glassqw = 1>> <<msg 'The text blurs across the page, it seems that your eyesight is actually pretty poor. Maybe you should head to the city and visit an ophthalmologist.'>> <<gt $curloc>>

		<</if>>
		<<if getvar("$pcs_nerd") > 0>>
			<<set $lastread = $totminut>> <<set $lastreadday = $time.daystart>> <<setn $pcs_nerd += 1>>

		<</if>>
		<<set $time.minutes += 60>>
		<<set $pc.mood = 100>>
		<<set $blizoruk += 1>>
		<<run $quest('school').func('groupRelInc','nerds',1)>>
		<<image "pc/items/accessories/books/fiction#.jpg" 1 2>>
		You spend an hour reading an adventure novel, immersing yourself in daring deeds and awesome twists.
		<<act 'Put the book back'>>
			<<gt 'pav_library'>>
		<</act>>
	<</actCLA>>
	<<actCLA 'Read a fantasy novel (1:00)'>>
		<<set $menu_off = 1>>
		<<if getvar("$blizoruk") == 500 or getvar("$pc.glassqw") == 1>>
			<<set $pc.glassqw = 1>> <<msg 'The text blurs across the page, it seems that your eyesight is actually pretty poor. Maybe you should head to the city and visit an ophthalmologist.'>> <<gt $curloc>>

		<</if>>
		<<if getvar("$pcs_nerd") > 0>>
			<<set $lastread = $totminut>> <<set $lastreadday = $time.daystart>> <<setn $pcs_nerd += 1>>

		<</if>>
		<<set $time.minutes += 60>>
		<<set $pc.mood = 100>>
		<<set $blizoruk += 1>>
		<<run $quest('school').func('groupRelInc','nerds',1)>>
		<<image "pc/items/accessories/books/fantasy#.jpg" 1 9>>
		You spend an hour reading a fantasy novel, rescuing damsels from dragons, digging for jewels with dwarves and performing word changing magic alongside elves and druids.
		<<act 'Put the book back'>>
			<<gt 'pav_library'>>
		<</act>>
	<</actCLA>>
	<<actCLA 'Read a science fiction novel (1:00)'>>
		<<set $menu_off = 1>>
		<<if getvar("$blizoruk") == 500 or getvar("$pc.glassqw") == 1>>
			<<set $pc.glassqw = 1>> <<msg 'The text blurs across the page, it seems that your eyesight is actually pretty poor. Maybe you should head to the city and visit an ophthalmologist.'>> <<gt $curloc>>

		<</if>>
		<<if getvar("$pcs_nerd") > 0>>
			<<set $lastread = $totminut>> <<set $lastreadday = $time.daystart>> <<setn $pcs_nerd += 1>>

		<</if>>
		<<set $time.minutes += 60>>
		<<set $pc.mood = 100>>
		<<set $blizoruk += 1>>
		<<run $quest('school').func('groupRelInc','nerds',1)>>
		<<image "pc/items/accessories/books/scifi#.jpg" 1 6>>
		<p>You spend an hour reading a science fiction novel - flying off into space, travelling though time, running from rogue AI's and creating monsters with your hunchbacked assistant.</p>
		<<act 'Put the book back'>>
			<<gt 'pav_library'>>
		<</act>>
	<</actCLA>>
	<<actCLA 'Read a romance novel (1:00)'>>
		<<set $menu_off = 1>>
		<<if getvar("$blizoruk") == 500 or getvar("$pc.glassqw") == 1>>
			<<set $pc.glassqw = 1>> <<msg 'The text blurs across the page, it seems that your eyesight is actually pretty poor. Maybe you should head to the city and visit an ophthalmologist.'>> <<gt $curloc>>

		<</if>>
		<<if getvar("$pcs_nerd") > 0>>
			<<set $lastread = $totminut>> <<set $lastreadday = $time.daystart>> <<setn $pcs_nerd += 1>>

		<</if>>
		<<set $time.minutes += 60>>
		<<set $pc.mood = 100>>
		<<set $blizoruk += 1>>
		<<set $pc.horny += 20>>
		<<image "pc/items/accessories/books/romance#.jpg" 1 20>>
		<p>You spend a very short hour reading a romance novel - choosing between a vampire or a werewolf, falling in love with an obscenely wealthy Grey... several of the scenes are very steamy and you find yourself getting quite aroused.</p>
		<<act 'Put the book back'>>
			<<gt 'pav_library'>>
		<</act>>
	<</actCLA>>
	<<actCLA 'Study for an hour'>>
		<<set $menu_off = 1>>
		<<if getvar("$blizoruk") == 500 or getvar("$pc.glassqw") == 1>>
			<<set $pc.glassqw = 1>> <<msg 'The text blurs across the page, it seems that your eyesight is actually pretty poor. Maybe you should head to the city and visit an ophthalmologist.'>> <<gt $curloc>>

		<</if>>
		<<if getvar("$pcs_nerd") > 0>>
			<<set $lastread = $totminut>> <<set $lastreadday = $time.daystart>> <<setn $pcs_nerd += 1>>

		<</if>>
		<<set $time.minutes += 60>>
		<<set $lern += rand(1,3)>>
		<<set $blizoruk += 1>>
		<<run $quest('school').func('groupRelInc','nerds',2)>>
		<<image "pc/items/accessories/books/learning#.jpg" 1 3>>
		You read several books that should help you with your school work, you feel that you learned something today.
		<<act 'Put the book back'>>
			<<gt 'pav_library'>>
		<</act>>
	<</actCLA>>
	<<actCLA 'Read from the collected works of Leo Tolstoy (1:00)'>>
		<<set $menu_off = 1>>
		<<if getvar("$blizoruk") == 500 or getvar("$pc.glassqw") == 1>>
			<<set $pc.glassqw = 1>> <<msg 'The text blurs across the page, it seems that your eyesight is actually pretty poor. Maybe you should head to the city and visit an ophthalmologist.'>> <<gt $curloc>>

		<</if>>
		<<if getvar("$pcs_nerd") > 0>>
			<<set $lastread = $totminut>> <<set $lastreadday = $time.daystart>> <<setn $pcs_nerd += 1>>

		<</if>>
		<<set $time.minutes += 60>>
		<<run $pc.skillExperienceGain('spirit',rand(3,6))>>
		<<set $blizoruk += 1>>
		<<run $quest('school').func('groupRelInc','nerds',2)>>
		<<image "pc/items/accessories/books/tolstoy.jpg">>
		<p>You read the book for an hour. Tolstoy is certainly a classic writer, no one denies this, but he used a shit-load of words.</p>
		<<act 'Put the book back'>>
			<<gt 'pav_library'>>
		<</act>>
	<</actCLA>>*/
	<<if $pc.isSchoolStudent>>
		<<if $quest('school').homeworkLeft > 0>>
			<<actCLA 'Do your homework (1:00)' undefined `{willpower:['choreSchool']}`>>
				<<image "locations/pavlovsk/community/library/homework.jpg">>
				<<set $time.minutes += 60>>
				<<set $pc.mood += 5 * $pc.trait('nerd_status')>>
				<<run $quest('school').func('homework','yes',1,0,)>>
				You sit down at one of the tables with a a computer and use it to help you do your homework.
				You spend an hour
				<<if $quest('school').homeworkLeft == 0>>
					completing
				<<else>>
					doing part of
				<</if>>
				your homework.
				<<act 'Get up form the table'>>
					<<gt 'pav_library'>>
				<</act>>
			<</actCLA>>
			You could use one of the computers to do your homework here.
		<<else>>
			If you had homework to do, you could use one of the computers here to do so.
		<</if>>
	<</if>>
	/*<<if setup.startingCharacterTagsIncludes('sg') and $time.isSchoolHoliday == 0 and $time.weekday < 6 and $nerdstudynight['day'] != $time.daystart and $time.hour > 14>>
		<<act 'Join the nerd`s study group'>>
			<<gt 'pav_library_nerdstudy' 'nerd_study_night'>>
		<</act>>
	<</if>>*/
<<else>>
	The library is closed.
<</if>>
