:: enderKik
<<set $here = 'enderKik'>>
<<set $ARGS = $location_var[$here]>>
<<if $pc.pcs_health < 10>>
	<<set $pc.pcs_health = 10>>

<</if>>
killvar'damage'
<<if getvar("$profi") == 1>>
	<<set $profi = 0>>
	<<image "locations/city/citycenter/gym/kickboxing/kickboxing_speaker.jpg">>
	The referee calls you over. It's time for the announcement...
	<<actCLA 'Go to the middle for the announcement'>>
		<<if $location_var[$here][0] == 'win'>>
			 			<<image "locations/city/citycenter/gym/kickboxing/kickboxing_win.jpg">>
			<p>The referee raises your arm. Congratulations! You've won!</p>
			<<set $KikWinPro += 1>>
			<<set $rikudo += 5>>
		<</if>>
		<<if $location_var[$here][0] == 'winKO'>>
			 			<<image "locations/city/citycenter/gym/kickboxing/kickboxing_win_ko.jpg">>
			<p>The referee raises your arm. Congratulations! You've won by knockout!</p>
			<<set $KikWinPro += 1>>
			<<set $KikWinProKO += 1>>
			<<set $rikudo += 10>>
		<</if>>
		<<if $location_var[$here][0] == 'loss'>>
			 			<<image "locations/city/citycenter/gym/kickboxing/kickboxing_loss.jpg">>
			The referee raises your opponent''s arm. You've lost.
			<<set $KikLossPro += 1>>
		<</if>>
		<<if $location_var[$here][0] == 'lossKO'>>
			 			<<image "locations/city/citycenter/gym/kickboxing/kickboxing_loss_ko.jpg">>
			All of a sudden, the room starts getting darker and darker...
			<<set $KikLossPro += 1>>
			<<set $KikLossProKO += 1>>
		<</if>>
		<<if $location_var[$here][0] == 'draw'>>
			 			<p>The referee raises both of your arms. It's a draw!</p>
			<<set $KikDrawPro += 1>>
		<</if>>
		<!-- ! WD: Argument is 'dressing room'-->
		<<act 'Leave the ring'>>
			<<gt 'fit' 'dressing_room'>>
		<</act>>
	<</actCLA>>
<<elseif getvar("$kickbox['amateur']") == 1>>
	<<setinit $kickbox['amateur'] = 0>>
	<<image "locations/city/citycenter/gym/kickboxing/kickboxing_speaker.jpg">>
	The referee calls you over. It's time for the announcement...
	<<actCLA 'Goto the center of the ring for the announcement'>>
		<<if $location_var[$here][0] == 'win'>>
			 			<<image "locations/city/citycenter/gym/kickboxing/kickboxing_win.jpg">>
			<p>The referee raises your arm. Congratulations! You've won!</p>
			<<if getvar("$kickbox['opponent']") == 0>>
				<<fame 'city' 'kickboxing' `rand(4,6)`>>
			<<elseif getvar("$kickbox['opponent']") == 1>>
				<<fame 'city' 'kickboxing' `rand(5,9)`>>
			<<elseif getvar("$kickbox['opponent']") == 2>>
				<<fame 'city' 'kickboxing' `rand(6,9)`>>
			<<elseif getvar("$kickbox['opponent']") == 3>>
				<<fame 'city' 'kickboxing' `rand(6,10)`>>
			<<elseif getvar("$kickbox['opponent']") == 4>>
				<<fame 'city' 'kickboxing' `rand(7,10)`>>
			<<else>>
				<<fame 'city' 'kickboxing' `rand(7,13)`>>
			<</if>>
			<<setinit $kickbox['amateurWin'] += 1>>
			<<setinit $kickbox['amateur'] = 0>>
			<<setinit $kickbox['advancement'] += 1>>
			<<set $finances.cash += 500 + $kickbox['money']>>
			<<set $rikudo += 5>>
			<p>You are awarded a cash prize of 500 + kickbox['money'] <b>₽</b>.</p>
			<<gs 'razrKik'>>
		<</if>>
		<<if $location_var[$here][0] == 'winKO'>>
			 			<<image "locations/city/citycenter/gym/kickboxing/kickboxing_win_ko.jpg">>
			<p>The referee raises your arm. Congratulations! You've won by knockout!</p>
			<<fame 'city' 'kickboxing' `rand(4,6)`>>
			<<if getvar("$kickbox['opponent']") == 0>>
				<<fame 'city' 'kickboxing' `rand(4,6)`>>
			<<elseif getvar("$kickbox['opponent']") == 1>>
				<<fame 'city' 'kickboxing' `rand(5,9)`>>
			<<elseif getvar("$kickbox['opponent']") == 2>>
				<<fame 'city' 'kickboxing' `rand(6,9)`>>
			<<elseif getvar("$kickbox['opponent']") == 3>>
				<<fame 'city' 'kickboxing' `rand(6,10)`>>
			<<elseif getvar("$kickbox['opponent']") == 4>>
				<<fame 'city' 'kickboxing' `rand(7,10)`>>
			<<else>>
				<<fame 'city' 'kickboxing' `rand(7,13)`>>
			<</if>>
			<<setinit $kickbox['amateurWin'] += 1>>
			<<setinit $kickbox['amateurWinKO'] += 1>>
			<<setinit $kickbox['advancement'] += 1>>
			<<setinit $kickbox['amateur'] = 0>>
			<<set $finances.cash += 500 + $kickbox['money']>>
			<<set $rikudo += 10>>
			<p>You are awarded a cash prize of 500 + kickbox['money'] <b>₽</b>.</p>
			<<gs 'razrKik'>>
		<</if>>
		<<if $location_var[$here][0] == 'loss'>>
			 			<<image "locations/city/citycenter/gym/kickboxing/kickboxing_loss.jpg">>
			The referee raises your opponent''s arm. You've lost.
			<<setinit $kickbox['amateurLoss'] += 1>>
			<<if getvar("$kickbox['advancement']") > 0>>
				<<setinit $kickbox['advancement'] -= 1>>

			<</if>>
		<</if>>
		<<if $location_var[$here][0] == 'lossKO'>>
			 			<<image "locations/city/citycenter/gym/kickboxing/kickboxing_loss_ko.jpg">>
			All of a sudden, the room starts getting darker and darker...
			<<setinit $kickbox['amateurLoss'] += 1>>
			<<setinit $kickbox['amateurLossKO'] += 1>>
			<<if getvar("$kickbox['advancement']") > 0>>
				<<setinit $kickbox['advancement'] -= 1>>

			<</if>>
		<</if>>
		<<if $location_var[$here][0] == 'draw'>>
			 			<p>The referee raises both of your arms. It's a draw!</p>
			<<setinit $kickbox['amateurDraw'] += 1>>
		<</if>>
		<!-- ! WD: Argument is 'dressing_room'-->
		<<act 'Leave the ring'>>
			<<gt 'fit' 'dressing_room'>>
		<</act>>
	<</actCLA>>
<<elseif getvar("$sparing") == 1>>
	<<set $sparing = 0>>
	<<if $location_var[$here][0] == 'win'>>
		 		<<image "locations/city/citycenter/gym/kickboxing/kickboxing_rival.jpg">>
		The fight is over and your rival comes over to you and says "Nice hustle in the ring."
		You nod and she turns around and heads to the dressing room.
	<</if>>
	<<if $location_var[$here][0] == 'winKO'>>
		 		<<image "locations/city/citycenter/gym/kickboxing/kickboxing_win_ko.jpg">>
		The fight is over. You can hear some of the people quietly comment that you didn''t have to knock her out...
	<</if>>
	<<if $location_var[$here][0] == 'loss'>>
		 		<<image "locations/city/citycenter/gym/kickboxing/kickboxing_rival.jpg">>
		The fight is over and your rival comes over to you and smugly says "Keep practicing."
		You nod and she turns around and heads to the dressing room.
	<</if>>
	<<if $location_var[$here][0] == 'lossKO'>>
		 		<<image "locations/city/citycenter/gym/kickboxing/kickboxing_loss_ko.jpg">>
		Before you know it, you're laying on the floor and the room starts getting darker and darker...
	<</if>>
	<<if $location_var[$here][0] == 'draw'>>
		 		<<image "locations/city/citycenter/gym/kickboxing/kickboxing_rival.jpg">>
		The fight is over and your rival comes over to you and says "That was pretty close, good fight."
		You nod and she turns around and heads to the dressing room.
	<</if>>
	<!-- ! WD: Argument is 'dressing_room'-->
	<<act 'Leave the ring'>>
		<<gt 'fit' 'dressing_room'>>
	<</act>>
<</if>>
