# parkdin

if suchunt = 1:
	!!Used to randomize hunting times and make hunting faster the higher the suc level
	scrand = rand(0,4)
	minut += 60 - (5 * (succublvl + scrand))
else
	minut += 60
end
gs 'stat'
gs 'parkivent'

parkrand = rand(1,20)
!!day
if hour > 7 and hour < 21:
	if parkrand < 10:
		if parkrand = 1:gt 'parkivent', '1'
		if parkrand = 2:gt 'parkivent', '2'
		if parkrand = 3:gt 'parkivent', '3'
		if parkrand = 4:gt 'parkivent', '4'
		if parkrand = 5:gt 'parkivent', '5'
		if parkrand = 6:gt 'parkivent', '6'
		if parkrand = 7:gt 'parkivent', '7'
		if parkrand = 8:gt 'parkivent', '8'
		if parkrand = 9:gt 'parkivent', '9'
	elseif parkrand = 19 and prcptn_lvl >= 50 and lactate > 0:
        gt 'parkivent', 'find_baby'
	else
		gt 'parkivent', 'empty'
	end
else
!!night
	!!Used to make a hunting easier the higher the suc level
	if suchunt = 1: parkrand -= (succublvl-1)
	if knowsfairy < 1 and MagikDostup ! 1:
		if rand (1, 4) <= pcs_magik:
			fairyrand = 19
		else
			fairyrand = 21
		end
	elseif MagikDostup ! 1:
		if (fairychat - fairyshoo) < 5 or ((fairychat - fairyshoo) < 10 and fairylooking = 1):
			fairyrand = 19 - (fairychat - fairyshoo)
		elseif fairylooking = 1:
			fairyrand = 10
		else
			fairyrand = 15
		end
	end

	if parkrand <= 5:
		gt 'parkivent', '1'
	elseif parkrand >= fairyrand and MagikDostup ! 1:
		gt 'MagEncounterFairy'
	else
		gt 'parkivent', 'empty'
	end
end

--- parkdin ---------------------------------

