PlaceHair = getClass("PlaceHair")

PlaceHair.minigameID = "PLACEHAIR"
PlaceHair.minigameIdx = 7

PlaceHair.levels = {}
PlaceHair.levels[1] =
{
	duration = 300000,
	placeRadius = 12,
	minExtraHairs = 2,
	maxExtraHairs = 10,
}
PlaceHair.levels[2] =
{
	duration = 300000,
	placeRadius = 12,
	minExtraHairs = 5,
	maxExtraHairs = 14,
}
PlaceHair.levels[3] =
{
	duration = 250000,
	placeRadius = 12,
	minExtraHairs = 8,
	maxExtraHairs = 18,
}
PlaceHair.levels[4] =
{
	duration = 200000,
	placeRadius = 12,
	minExtraHairs = 11,
	maxExtraHairs = 22,
}
PlaceHair.levels[5] =
{
	duration = 200000,
	placeRadius = 12,
	minExtraHairs = 14,
	maxExtraHairs = 26,
}

PlaceHair.layouts = {}
PlaceHair.layouts[1] =
{ class="PlaceHair", name="PlaceHair MiniGame",
	gameSprites =
	{
		{class="Sprite", name="HEAD", x=60, y=645, anchor="bottomleft"},
	},
}

function PlaceHair:chooseSpot(gender)
	local choices = self.hairSpots[gender]
	local desc = choices[math.Random(table.count(choices))]
	desc.num = tostring(table.count(desc.dots))
	return desc
end

PlaceHair.hairSpots = {
	male = {
		{
			dots = {
				{18,34},
				{32,44},
			},
		},
		{
			dots = {
				{40,21},
				{22,33},
				{47,41},
			},
		},
		{
			dots = {
				{39,30},
				{62,31},
				{36,58},
				{59,59},
			},
		},
		{
			dots = {
				{47,22},
				{61,38},
				{34,39},
				{23,57},
				{49,53},
			},
		},
	},
	female = {
		{
			dots = {
				{38,31},
				{61,32},
			},
		},
		{
			dots = {
				{50,40},
				{77,28},
				{70,42},
			},
		},
		{
			dots = {
				{71,46},
				{58,60},
				{99,47},
				{96,62},
			},
		},
		{
			dots = {
				{26,58},
				{36,67},
				{46,51},
				{56,60},
				{52,71},
			},
		},
	},
}

PlaceHair.hairDescs = {
	male = {
		blond = {
			img = "PLACEHAIR_HAIR_blond_male",
			anchor = {6,103},
		},
		brown = {
			img = "PLACEHAIR_HAIR_blond_male",
			anchor = {6,103},
		},
		black = {
			img = "PLACEHAIR_HAIR_black_male",
			anchor = {26,113},
		},
	},
	female = {
		blond = {
			img = "PLACEHAIR_HAIR_blond_female",
			anchor = {6,103},
		},
		brown = {
			img = "PLACEHAIR_HAIR_brown_female",
			anchor = {6,103},
		},
		black = {
			img = "PLACEHAIR_HAIR_brown_female",
			anchor = {6,103},
		},
	},
}
