:: city_church
<<set $here = 'city_church'>>
<<set $ARGS = $location_var[$here]>>
<!-- !2021/05/04-->
<<if $location_var[$here][0] == 'start'>>
	<<if getvar("$sound") == 0>>
		<<if $time.weekday == 7>>
			<<if $time.hour >= 8 and $time.hour <= 12>>
			<</if>>
			<<if $time.hour >= 13 and $time.hour <= 7>>
			<</if>>
		<<elseif $time.weekday == 6>>
			<<if $time.hour >= 19 and $time.hour <= 23>>
			<</if>>
			<<if $time.hour >= 13 and $time.hour <= 7>>
			<</if>>
		<<else>>
			<<if $time.hour >= 8 and $time.hour <= 23>>
			<</if>>
			<<if $time.hour >= 0 and $time.hour <= 7>>
			<</if>>
		<</if>>
	<</if>>
	<<set $loc = 'city_church'>>
	<<set $loc_arg = 'start'>>
	<<set $menu_loc = 'city_church'>>
	<<set $menu_arg = 'start'>>
	<<set $location_type = 'public_indoors'>>
	<<set $menu_off = 0>>
	
	<h2>Kazan Cathedral</h2>
	<<image "locations/city/residential/church/kazan.jpg">>
	Kazan Cathedral, also known as the Cathedral of Our Lady of Kazan. It's old and huge, it is well maintained by the worshipers of the parish.
	<p></p>
	You can attend confession every weekday between 07:00 and 09:00 or 16:00 and 18:00, and on the weekend between 16:00 and 18:00.
	Vigil is held on Saturdays at 19:00.
	The Divine Liturgy is on Sundays between 09:00 and 12:00.
	<<actCLA 'Return to the city'>>
		<<set $time.minutes += 5>> <<gt 'city_center'>>
	<</actCLA>>
	<<if $time.weekday == 6 and $time.hour >= 19 and $time.hour <= 22 and $churchday != $time.daystart>>
		<<act 'Attend vigil'>>
			<<gt 'city_church' 'vigil'>>
		<</act>>
	<<elseif $time.weekday == 7 and $time.hour >= 9 and $time.hour < 12 and $churchday != $time.daystart>>
		<<act 'Attend Divine Liturgy'>>
			<<gt 'city_church' 'liturgy'>>
		<</act>>
	<<else>>
		<<act 'Enter the church'>>
			<<gt 'city_church' 'Narthex'>>
		<</act>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'Sermon'>>
	<<set $time.minutes += 20>>
	<<set $church_moral += 1>>
	<<image "locations/pavlovsk/church/church#.jpg" 1 5>>
	The candles dim as the sermon begins. You listen intently to the priest as he preaches the word of god. You study his teachings, feeling enlightened, until you reach the end of the sermon.
	<<act 'Stand up'>>
		<<gt 'city_church' 'Narthex'>>
	<</act>>
<</if>>
<<if $location_var[$here][0] == 'vigil'>>
	<<set $menu_off = 1>>
	<<set $churchday = $time.daystart>>
	<<set $pc.mood += 10>>
	<<set $temprand = rand(0,5)>>
	<<if rand(0,1) == 1>>
		<<set $pc.horny += $temprand>>
	<<else>>
		<<set $pc.horny -= $temprand>>
	<</if>>
	<<set $time.minutes += 30>>
	
	<<set $church_moral += 1>>
	<<image "locations/pavlovsk/church/church#.jpg" 1 5>>
	You attend the vigil and reflect on the recent events in your life. The harmonies as the hymns and psalms are sung sweep aside some of the worries in your heart, although you know they will return once you leave this holy place, you still enjoy the rest. The sweet scent of incense tickles your nose.
	<<act 'Return to Narthex'>>
		<<gt 'city_church' 'Narthex'>>
	<</act>>
	<<actCLA 'Stay for the Rite of Mutual Forgiveness'>>
		<<set $church_moral += 1>>
		<<set $pc.mood += 10>>
		<<set $pc.horny -= 20>>
		<<set $time.minutes += 10>>
		<<gs 'city_church' 'reducecityrep' 10 -2>>
		<<image "locations/pavlovsk/church/church#.jpg" 9 10>>
		You decide to stay for the Rite of Mutual Forgiveness and feel much better afterwards.
		<<act 'Return to Narthex'>>
			<<gt 'city_church' 'Narthex'>>
		<</act>>
	<</actCLA>>
<</if>>
<<if $location_var[$here][0] == 'liturgy'>>
	<<set $churchday = $time.daystart>>
	<<set $menu_off = 1>>
	<<set $time.minutes += 60>>
	<<set $pc.mood += 20>>
	<<set $church_moral += 1>>
	
	<<image "locations/pavlovsk/church/church#.jpg" 1 8>>
	You join the congregation for the Divine Liturgy. You see mostly older people around, but there are some people around your age present as well. You participate in the singing, but that's about it. Your presence seems to go largely unnoticed and you have the chance to rest. You feel a lot better.
	<<run $pc.skillExperienceGain('singing',rand(0,3))>>
	<<act 'Leave the church'>>
		<<gt 'city_church' 'start'>>
	<</act>>
<</if>>
<<if $location_var[$here][0] == 'reducecityrep'>>
	<<set $citysextreshold = $larg(1)>>
	<<set $citysexreduction = $larg(2)>>
	<<if $pc.fame('city_sex') > $citysextreshold>>
		<<fame 'city' 'sex' $citysexreduction>>
	<<else>>
		<<run $pc.fameInc('city','sex',- $citysextreshold)>>
	<</if>>
	<<if $pc.fame('city_prostitute') > $citysextreshold>>
		<<fame 'city' 'prostitute' $citysexreduction>>
	<<else>>
		<<run $pc.fameInc('city','prostitute',- $citysextreshold)>>
	<</if>>
	<<set $citysextreshold to null>>
	<<set $citysexreduction to null>>
<</if>>
<<if $location_var[$here][0] == 'Narthex'>>
	<<set $menu_loc = 'city_church'>>
	<<set $menu_arg = 'Narthex'>>
	<<set $menu_off = 0>>
	
	<<image "locations/pavlovsk/church/enterchurch.jpg">>
	You enter the church and the scent of incense and beeswax fills your lungs. Your eyes are drawn past the Narthex into the Nave with its walls covered in lovingly painted icons while a thousand points of light dance in joy throughout God''s house from the magnificent chandelier that hangs from the ceiling.
	To your left is a counter where a deacon sells candles, icons and prayer books. He smiles and nods at you absently, acknowledging your presence without really seeing you.
	<<act 'Leave the church'>>
		<<gt 'city_church' 'start'>>
	<</act>>
	<!-- !!if ((week <= 5 and hour >= 7 and hour < 9) or (hour >= 16 and hour < 18)) and confessday ! daystart: act 'Go to confession': confessday = daystart & gt 'city_church2', 'confession'-->
	<<act 'Light a candle'>>
		<<gt 'city_church' 'candle'>>
	<</act>>
	<<act 'Pray'>>
		<<gt 'city_church' 'pray'>>
	<</act>>
	<!-- !!act 'Talk to the Priest': gt 'city_church' , 'talk_priest'-->
	<!-- !!the stuff commented out is things we can add in later, I didn''t feel like completely making a new priest NPC at this time.-->
<</if>>
<<if $location_var[$here][0] == 'candle'>>
	<<set $time.minutes += 10>>
	<<set $menu_off = 1>>
	<<set $church_moral += 1>>
	
	<<gs 'city_church' 'reducecityrep' 25 -1>>
	<<image "locations/pavlovsk/church/ch_candle.jpg">>
	<<if $finances.cash >= 10 and getvar("$owechurch") == 0>>
		<<set $finances.cash -= 10>>
		<p>You approach the deacon and hand over the 10 <b>₽</b> for a candle.</p>
	<<elseif $finances.cash >= 10 and $finances.cash < 20 and getvar("$owechurch") == 1>>
		<<set $owechurch = 0>>
		<<set $finances.cash -= 10>>
		<<set $pc.mood -= 10>>
		<p>You approach the deacon and hope that he doesn't recognize you since you couldn't pay for your last candle. You give him 10 <b>₽</b> and he hands you a candle. You hustle away from the counter while guilt gnaws at you.</p>
	<<elseif $finances.cash >= 20 and getvar("$owechurch") == 1>>
		<<set $owechurch = 0>>
		<<set $finances.cash -= 20>>
		<<set $pc.mood += 5>>
		<p>You approach the deacon. He is confused when you hand him 20 <b>₽</b> before smiling in understanding. You feel relieved that the debt is paid.</p>
	<<elseif $finances.cash < 10>>
		<<set $owechurch = 1>>
		You approach the deacon and indicate that you would like a candle, but when you look in your purse to pay, you realize that you have no money. The deacon sighs and hands you the candle anyway. You promise yourself to pay double next time.
	<</if>>
	<<if $time.hour > 6 and $time.hour < 20>>
		<<set $pc.mood += 10>>
		<<set $church_moral += 1>>
		You approach the iconostasis and light your candle. It gives you a nice feeling and you say a prayer while looking at the image of Christ the Savior.
	<<else>>
		<<set $pc.horny += 10>>
		<<set $pc.mood += 10>>
		You approach the iconostasis and light your candle in the dark church and start praying. The darkness, combined with the pleasant sight of fire, makes you feel warm inside.
	<</if>>
	<<act 'Return to Narthex'>>
		<<gt 'city_church' 'Narthex'>>
	<</act>>
<</if>>
<<if $location_var[$here][0] == 'pray'>>
	<<set $menu_off = 1>>
	<<set $time.minutes += 1>>
	
	<<image "locations/pavlovsk/church/ch_praying.jpg">>
	You approach the prayer bench and kneel down to pray.
	<<actCLA 'Pray'>>
		<<set $menu_off = 1>>
		<<set $time.minutes += 10>>
		<<if $pc.fame('city_sex') > 10>>
			<<fame 'city' 'sex' -1>>

		<</if>>
		<<if $pc.fame('city_prostitute') > 10>>
			<<fame 'city' 'prostitute' -1>>

		<</if>>
		<<image "locations/pavlovsk/church/ch_praying.jpg">>
		<<if $time.hour > 6 and $time.hour < 20 and getvar("$church_moral") < 30>>
			<<set $pc.horny -= 10>>
			<<set $pc.mood += 20>>
			<<set $church_moral += 1>>
			You decide to pray for a while. You're not overly religious, but the peace and quiet gives you the time to think.
		<<elseif $time.hour > 6 and $time.hour < 20 and getvar("$church_moral") >= 30 and getvar("$church_moral") < 60>>
			<<set $pc.horny -= 20>>
			<<set $pc.mood += 30>>
			<<set $church_moral += 1>>
			<<set $time.minutes += 15>>
			You decide to pray for a while. While you don't consider yourself to be deeply religious, you do feel a strong connection to God when you look at the icons around you. You allow yourself to look deeply into your soul as you contemplate the direction your life is going.
		<<elseif $time.hour > 6 and $time.hour < 20 and getvar("$church_moral") >= 60>>
			<<set $pc.horny -= 30>>
			<<set $pc.mood += 40>>
			<<set $church_moral += 1>>
			<<set $time.minutes += rand(30,60)>>
			You decide to pray. The beauty and glory of being in the body of God overwhelms you and you lose yourself in prayer. You're unsure how much time has passed when you finally become aware of your surroundings again, but it doesn''t matter as you are at peace with God and the world.
		<<elseif ($time.hour >= 20 or $time.hour <= 6) and getvar("$church_moral") < 30>>
			<<set $pc.horny -= 40>>
			<<set $pc.mood += 50>>
			<<set $church_moral += 1>>
			<<set $time.minutes += rand(30,60)>>
			The Nave is lit only with small candles, leaving your surroundings in darkness. You start to get a strange vibe, one you can't quite shake. You suddenly get the urge to pray very intensely and before you know it, an hour has passed and you feel reborn.
		<<elseif ($time.hour >= 20 or $time.hour <= 6) and getvar("$church_moral") >= 30 and getvar("$church_moral") < 60>>
			<<set $pc.horny = 0>>
			<<set $pc.mood += 50>>
			<<set $church_moral += 1>>
			<<set $time.minutes += rand(30,60)>>
			<<if $pc.nark > 1>>
				<<set $pc.nark = $pc.nark / 2>>

			<</if>>
			The Nave is lit only with small candles, leaving your surroundings in darkness, but you find it comforting. You get the urge to pray very intensely and before you know it, an hour has passed and you feel cleansed.
		<<else>>
			<<set $pc.horny = 0>>
			<<set $pc.mood = 100>>
			<<set $church_moral += 1>>
			<<set $time.minutes += 60>>
			<<if $pc.nark > 1>>
				<<set $pc.nark = (($pc.nark / 4) * 3)>>

			<</if>>
			The Nave is lit only with candles and small presence lights and the darkness feels very comforting, like being in the womb. You get the urge to pray very intensely and before you know it, more than an hour has passed and you feel reborn and cleansed.
		<</if>>
		<<act 'Return to Narthex'>>
			<<gt 'city_church' 'Narthex'>>
		<</act>>
	<</actCLA>>
	<<if getvar("$exhibitionist_lvl") > 0>>
		<<actCLA 'Be naughty'>>
			<<set $menu_off = 1>>
			<<fame 'city' 'sex' 2>>
			<<gs 'flash' 'butt' 'indoors' 2 1>>
			<<image "locations/pavlovsk/church/ch_prayingflash.jpg">>
			While you're praying, you get a devious idea. With a sly smile, you expose your ass, giving anyone that looks your way a naughty sight as you lower your head and pray in silence. You occasionally hear whispers behind you, causing you to smile.
			<<act 'Return to Narthex'>>
				<<gt 'city_church' 'Narthex'>>
			<</act>>
		<</actCLA>>
	<</if>>
<</if>>
