# enderKik
!!CV extension: Rewrite of the winning announcement
if $ARGS[0] = 'win':
	!!KikWin = KikWin + 1
	pointKik = 0
	pointKikV = 0
	round = 0
	minround = 0
end

if health < 10:health = 10

cla
*clr


if profi = 1:
	profi = 0
	'<center><img src="images/community/kickboxing_speaker.jpg"></center>'
	'Time to the announcement ...'

	act 'Exit to the middle to announce the winner':
		if $ARGS[0] = 'win':
			cla
			*clr
			'<center><img src="images/community/kickboxing_win.jpg"></center>'
			'Congratulations! You win!'
			KikWinPro += 1
			rikudo += 5
		end

		if $ARGS[0] = 'winKO':
			cla
			*clr
			'<center><img src="images/community/kickboxing_win_ko.jpg"></center>'
			'Congratulations! You win!'
			'And it is a knockout!'

			KikWinPro += 1
			KikWinProKO += 1
			rikudo += 10
		end

		if $ARGS[0] = 'loss':
			cla
			*clr
			'<center><img src="images/community/kickboxing_loss.jpg"></center>'
			'You lose.'
			KikLossPro += 1
		end

		if $ARGS[0] = 'lossKO':
			cla
			*clr
			'<center><img src="images/community/kickboxing_loss_ko.jpg"></center>'
			'Suddendly the room starts getting darker and darker ...'
			KikLossPro += 1
			KikLossProKO += 1
		end

		if $ARGS[0] = 'draw':
			cla
			*clr
			'And it is a draw !'
			KikDrawPro += 1
		end

	! WD: Argument is 'dressing room'
	act 'Leave the ring':gt 'fit', 'dressing room'
	end



elseif amateur = 1:
	amateur = 0

	'<center><img src="images/community/kickboxing_speaker.jpg"></center>'
	'Time to the announcement ...'

	act 'Exit to the middle to announce the winner':
		if $ARGS[0] = 'win':
			cla
			*clr
			'<center><img src="images/community/kickboxing_speaker.jpg"></center>'
			'Time to the announcement ...'
			'<center><img src="images/community/kickboxing_win.jpg"></center>'
			'Congratulations! You win!'

			KikWinAm += 1
			amateur = 0
			amatReit += 1
			money += 500 + kikmoney
			rikudo += 5
			'You handed over a prize of 500 rubles.'
			gs 'razrKik'
		end

		if $ARGS[0] = 'winKO':
			cla
			*clr
			'<center><img src="images/community/kickboxing_speaker.jpg"></center>'
			'Time to the announcement ...'
			'<center><img src="images/community/kickboxing_win_ko.jpg"></center>'
			'Congratulations! You win!'
			'Great victory!'

			KikWinAm += 1
			KikWinAmKO += 1
			amatReit += 1
			amateur = 0
			money += 500
			rikudo += 10
			'You handed over a prize of 500 rubles.'
		end

		if $ARGS[0] = 'loss':
			cla
			*clr
			'<center><img src="images/community/kickboxing_speaker.jpg"></center>'
			'Time to the announcement ...'
			'<center><img src="images/community/kickboxing_loss.jpg"></center>'
			'You lose.'
			KikLossAm += 1
			if amatReit > 0:amatReit -= 1
		end

		if $ARGS[0] = 'lossKO':
			cla
			*clr
			'<center><img src="images/community/kickboxing_speaker.jpg"></center>'
			'Time to the announcement ...'
			'<center><img src="images/community/kickboxing_loss_ko.jpg"></center>'
			'Suddendly the room starts getting darker and darker ...'
			KikLossAm += 1
			KikLossAmKO += 1
			if amatReit > 0:amatReit -= 1
		end

		if $ARGS[0] = 'draw':
			cla
			*clr
			'<center><img src="images/community/kickboxing_speaker.jpg"></center>'
			'Time to the announcement ...'
			'And it is a draw !'
			KikDrawAm += 1
		end

		! WD: Argument is 'dressing room'
		act 'Leave the ring':gt 'fit', 'dressing room'
	end


elseif sparing = 1:
	sparing = 0

	if $ARGS[0] = 'win':
		'<center><img src="images/community/kickboxing_rival.jpg"></center>'
		'The section is over.'
		'Your rival came to you and said:'
		'- "Nice job on the ring."'
		'She turned around and left to the dressing room.'
	end

	if $ARGS[0] = 'winKO':
		'<center><img src="images/community/kickboxing_win_ko.jpg"></center>'
		'The section is over.'
		'You had to knock her off .... Did you??'
	end

	if $ARGS[0] = 'loss':
		'<center><img src="images/community/kickboxing_rival.jpg"></center>'
		'The section is over.'
		' Your rival came to you and said:'
		'- "Keep practicing."'
		'She turned around and left to the dressing room.'
	end

	if $ARGS[0] = 'lossKO':
		'<center><img src="images/community/kickboxing_loss_ko.jpg"></center>'
		'The section is over.'
		'Suddendly the room starts getting darker and darker ...'
	end

	if $ARGS[0] = 'draw':
		'<center><img src="images/community/kickboxing_rival.jpg"></center>'
		'The section is over.'
		' Your rival came to you and said:'
		'- "Looks like both of us need to keep practicing"'
		'She turned around and left to the dressing room.'
	end

	! WD: Argument is 'dressing room'
	act 'Leave the ring':gt 'fit', 'dressing room'

end


--- enderKik ---------------------------------
