
ProgressStartLevel = 10
ProgressSwapLevel = 22

--ProgressStartLevel = 1
--ProgressSwapLevel = 3

ShopItems = {}
ShopItems.Gardener = 132  --садовник
ShopItems.Boy = 133
ShopItems.Fairy = 134
ShopItems.LeftShopBox = 130
ShopItems.RightShopBox = 131
ShopItems.StoreHouse = 10
ShopItems.Mill = 26 --Мельница
ShopItems.Oil = 50 --Подсолнечное масло
ShopItems.Packing = 62 --Фасовочный цех 
ShopItems.Juicer = 30 --Соковыжималка
ShopItems.Confectionery = 42 --Кондитерская 
ShopItems.Tomato = 34 --Кетчуп 
ShopItems.Bakery = 46 --Пекарня
ShopItems.Roaster = 38 --Жаровня 
ShopItems.Sandwich = 54 --Бутербродная 
ShopItems.FriedPotatoes = 66 --Картофель фри
ShopItems.Dough = 58 --Тесто 
ShopItems.Garden = 5
ShopItems.Shop = 17
ShopItems.WaterWell = 14
ShopItems.Rope = 1
ShopItems.Cage = 138

function makeUpgrade(id, upgrade)
	upgrade = upgrade or 0
	return {id = id, upgrade = upgrade}
end


--sceneryItem - просто чилсо, начиная с нуля. Отображает номер sourceRect в Map.lua/item_icons
MapSettings = {}

for i = 1, 50, 1
do
	MapSettings[i] = {}
end



NewCharacterRects = 
{
	stinky 		= {0, 709, 126, 854},
	general 	= {126, 709, 252, 854}, 
	girl 		= {252, 709, 378, 854},
	sleeper 	= {378, 709, 504, 854},
	bluefatman  = {504, 709, 630, 854},
	magic	 	= {630, 709, 756, 854},
	peasant		= {756, 709, 882, 854},
	prince 		= {0, 854, 126, 999},
	professor	= {126, 854, 252, 999},
	princess	= {252, 854, 378, 999},
	musician	= {378, 854, 504, 999},
	grandma		= {504, 854, 630, 999},
	fatboy		= {630, 854, 756, 999},
	richy		= {756, 854, 882, 999}
}

StuffRects = 
{
	{157, 184, 183, 210}, -- покупка 1 товара
	{183, 184, 209, 210}, -- покупка 2 товаров
	{209, 184, 235, 210}, -- покупка 3 товаров
	{235, 184, 261, 210}, -- покупка 4 товаров
	{261, 184, 287, 210}, -- покупка 5 товаров
}

WalkTypes = 
{
	{157, 114, 294, 149},--1 (лазит по всем)
	{294, 114, 431, 149},--2 (не лазит по канату)
	{157, 149, 294, 184},--3 (не лазит по канату и лестнице)
	{294, 149, 431, 184},--4 (лазит только через телепорт)
};

MapSettings[1] = 
{

}

MapSettings[2] = 
{
	newCharacter = 
	{
		iconRect = NewCharacterRects.peasant,
		maxStuffRect = StuffRects[2],
		walkTypeRect = WalkTypes[1],
		description = 'big_charhint_Peasant_txt',
	}
}

MapSettings[3] = 
{
	sceneryItem = 0, 	-- 2. Тропинка
	shopItems = 
	{
		makeUpgrade(ShopItems.Rope), 
	},

}	-- 3. -
MapSettings[4] = 
{
	sceneryItem = 1, 
	shopItems = 
	{
		makeUpgrade(ShopItems.Juicer), 
	}
	
}-- 4. Мост 1
MapSettings[5] = 
{
	
	shopItems = 
	{
		makeUpgrade(ShopItems.Garden,1), 
	},

}-- 5. -


MapSettings[6] = 
{
	sceneryItem = 2, 
	shopItems = 
	{
		makeUpgrade(ShopItems.Tomato), 
	},


}	-- 6. Тропинка 2 длинная


MapSettings[7] = 
{
	shopItems = 
	{
		makeUpgrade(ShopItems.Juicer,1), 
	},

}	-- 7. -
MapSettings[8] = 
{
	sceneryItem = 3,
	shopItems = 
	{
		makeUpgrade(ShopItems.Tomato,1), 
	},

	newCharacter = 
	{
		iconRect = NewCharacterRects.sleeper,
		maxStuffRect = StuffRects[1],
		walkTypeRect = WalkTypes[1],
		description = 'big_charhint_sliper_txt',
	}
}	-- 8. Куст около тропинки

MapSettings[9] =
{
	sceneryItem = 4, 
	shopItems = 
	{
		makeUpgrade(ShopItems.Rope,1), --Лестница (вер)
	},

}	-- 9. Грядка за кустом

MapSettings[10] = 
{
	shopItems = 
	{
		makeUpgrade(ShopItems.Garden,2), --Огород (картошка) 
	},
}

MapSettings[11] = 
{
	shopItems = 
	{
		makeUpgrade(ShopItems.Packing), --
	},
	sceneryItem = 5, 
}	-- 11. Пугало
MapSettings[12] = 
{
	shopItems = 
	{
		makeUpgrade(ShopItems.Juicer,2), --
	},
	newCharacter = 
	{
		iconRect = NewCharacterRects.general,
		maxStuffRect = StuffRects[1],
		walkTypeRect = WalkTypes[2],
		description = 'big_charhint_General_txt',
	}
}
MapSettings[13] = 
{
	shopItems = 
	{
		makeUpgrade(ShopItems.Tomato,2), --
	},
	sceneryItem = 6, 
}	-- 13. Поле с забором
MapSettings[14] = 
{
	shopItems = 
	{
		makeUpgrade(ShopItems.Rope,2), --Лестница (дер)
	},
}	-- 14. -
MapSettings[15] = 
{
	shopItems = 
	{
		makeUpgrade(ShopItems.Garden,3), --Огород (подсолнух) 
	},
}

MapSettings[16] = 
{
	shopItems = 
	{
		makeUpgrade(ShopItems.Oil), --
	},
	sceneryItem = 7, 
	newCharacter = 
	{
		iconRect = NewCharacterRects.fatboy,
		maxStuffRect = StuffRects[2],
		walkTypeRect = WalkTypes[2],
		description = 'big_charhint_FatManboy_txt',
	}
}	-- 16. Тропинка (позади пугала)

MapSettings[17] = 
{
	shopItems = 
	{
		makeUpgrade(ShopItems.FriedPotatoes), --
	},
	sceneryItem = 8
}	-- 17. Дом (с огородом)

MapSettings[18] = 
{
	shopItems = 
	{
		makeUpgrade(ShopItems.Packing,1), --
	},
	sceneryItem = 9, 
}	-- 18. Фиолет. Грядки

MapSettings[19] = 
{
	shopItems = 
	{
		makeUpgrade(ShopItems.Oil,1), --
	},
	sceneryItem = 10, 
}	-- 19. Колодец
MapSettings[20] = 
{
	shopItems = 
	{
		makeUpgrade(ShopItems.Packing,2), --
	},
	sceneryItem = 11, 
	
	newCharacter = 
	{
		iconRect = NewCharacterRects.prince,
		maxStuffRect = StuffRects[2],
		walkTypeRect = WalkTypes[2],
		description = 'big_charhint_Prince_txt',
	}
}	-- 20. Пшеничн. Поле
MapSettings[21] = 
{
	shopItems = 
	{
		makeUpgrade(ShopItems.Oil,2), --
	},
}	-- 21. -

MapSettings[22] = 
{
	shopItems = 
	{
		makeUpgrade(ShopItems.FriedPotatoes,1), --
	},
	sceneryItem = 12, 
}	-- 22. Мост 2

MapSettings[23] = 
{
	sceneryItem = 13, 
	newCharacter = 
	{
		iconRect = NewCharacterRects.musician,
		maxStuffRect = StuffRects[1],
		walkTypeRect = WalkTypes[2],
		description = 'big_charhint_Music_txt',
	}
}	-- 23. Пшеничн поле 2
MapSettings[24] = 
{
	shopItems = 
	{
		makeUpgrade(ShopItems.Rope,3), --телепорт
		makeUpgrade(ShopItems.FriedPotatoes,2), --
	},
	sceneryItem = 14,
}	-- 24. Дорога с развилкой

MapSettings[25] = 
{
	sceneryItem = 15,
}	-- 25. Дом с сеном

MapSettings[26] = 
{
	shopItems = 
	{
		makeUpgrade(ShopItems.Garden,4), --Огород (пшеница) 
	},
	sceneryItem = 16, --  Дорога с обрывом
}

MapSettings[27] = 
{
	newCharacter = 
	{
		iconRect = NewCharacterRects.girl,
		maxStuffRect = StuffRects[1],
		walkTypeRect = WalkTypes[2],
		description = 'big_charhint_Girl_txt',
	},
	
	sceneryItem = 17, -- Поле 3
}	

MapSettings[28] = 
{
	shopItems = 
	{
		makeUpgrade(ShopItems.Mill), --
	},

	sceneryItem = 18, --   Поле 4 (уголок)

}	

MapSettings[29] = 
{
	shopItems = 
	{
		makeUpgrade(ShopItems.Dough), --
	},

	sceneryItem = 19, --  Мельницы	
}	

MapSettings[30] = 
{

	newCharacter = 
	{
		iconRect = NewCharacterRects.professor,
		maxStuffRect = StuffRects[3],
		walkTypeRect = WalkTypes[1],
		description = 'big_charhint_Professor_txt',
	},

	sceneryItem = 20 -- 30. Деревья
}	

MapSettings[31] = 
{
	shopItems = 
	{
		makeUpgrade(ShopItems.Bakery), --
	},

	sceneryItem = 21, 	-- 31. Поле 1

}	

MapSettings[32] = 
{

sceneryItem = 22, -- 32. Поле 2

}

MapSettings[33] = 
{
	shopItems = 
	{
		makeUpgrade(ShopItems.Mill,1), --
	},

	sceneryItem = 23, -- 33. поле 3


}	
MapSettings[34] = 
{
	sceneryItem = 24, -- 34. Поле 4


	newCharacter = 
	{
		iconRect = NewCharacterRects.princess,
		maxStuffRect = StuffRects[3],
		walkTypeRect = WalkTypes[3],
		description = 'big_charhint_Princess_txt',
	},
}	

MapSettings[35] = 
{
	shopItems = 
	{
		makeUpgrade(ShopItems.Confectionery), --
	},

	sceneryItem = 25,-- 36. Мост к горам

}	

MapSettings[36] = { sceneryItem = 26,} -- 38. Домик у воды }	

MapSettings[37] =
{
	sceneryItem = 27, --  Вода верхняя

	shopItems = 
	{
		makeUpgrade(ShopItems.Mill,2), --
	},
}

MapSettings[38] = 
{
sceneryItem = 30,
}

MapSettings[39] = 
{

	sceneryItem = 31,
	newCharacter = 
	{
		iconRect = NewCharacterRects.bluefatman,
		maxStuffRect = StuffRects[3],
		walkTypeRect = WalkTypes[3],
		description = 'big_charhint_BigFatMan_txt',
	}
}	
MapSettings[40] = 
{
	shopItems = 
	{
		makeUpgrade(ShopItems.Dough,1), --
	},
	
	sceneryItem = 28, 
}	-- 40. Вода нижн
MapSettings[41] = 
{
	shopItems = 
	{
		makeUpgrade(ShopItems.Bakery,1), --
	},
	sceneryItem = 29, 
}	-- 41. Лестницы 1-2

MapSettings[42] = { sceneryItem = 32,  }	-- 42. Лестница 3
MapSettings[43] = 
{
	sceneryItem = 33,
	shopItems = 
	{
		makeUpgrade(ShopItems.Roaster), --
	},
	 
}	-- 43. Причал
MapSettings[44] = 
{
	sceneryItem = 34, 

	newCharacter = 
	{
		iconRect = NewCharacterRects.grandma,
		maxStuffRect = StuffRects[2],
		walkTypeRect = WalkTypes[4],
		description = 'big_charhint_Oldwoman_txt',
	}
}	-- 44. Лестница большая

MapSettings[45] = {sceneryItem = 35, -- 49. Мост в гору
}	-- 45. -
MapSettings[46] = {sceneryItem = 36, }	-- 46. Тропа в гору
MapSettings[47] = 
{
	shopItems = 
	{
		makeUpgrade(ShopItems.Confectionery,1), --
	},
	
		
}	-- 47. Домик на горе

MapSettings[48] = {sceneryItem = 37,}	-- 54. мост с горы 1
MapSettings[49] = 
{
	
	newCharacter = 
	{
		iconRect = NewCharacterRects.richy,
		maxStuffRect = StuffRects[4],
		walkTypeRect = WalkTypes[4],
		description = 'big_charhint_richwoman_txt',
	}
}	
MapSettings[50] = 
{
	shopItems = 
	{
		makeUpgrade(ShopItems.Dough,2), --
	},
}	-- 50. -
MapSettings[51] = {}	-- 51. -
MapSettings[52] = 
{
	shopItems = 
	{
		makeUpgrade(ShopItems.Sandwich), --
	},
	
}	-- 52. -
MapSettings[53] = {sceneryItem = 38,} -- Мост с горы второй }	-- 53. -
MapSettings[54] = {   }	
MapSettings[55] = 
{
	shopItems = 
	{
		makeUpgrade(ShopItems.Roaster,1), --
		makeUpgrade(ShopItems.Bakery,2), --
	},
	
		--[[ newCharacter = 
	{
		iconRect = NewCharacterRects.magic,
		maxStuffRect = StuffRects[4],
		walkTypeRect = WalkTypes[4],
		description = 'Это колдун',
	} ]]
}	-- 55. -
MapSettings[56] = 
{
	shopItems = 
	{
		makeUpgrade(ShopItems.Confectionery,2), --
	},
	
	sceneryItem = 39, --мост большой белый

}	-- 56. -
MapSettings[57] = {}	-- 57. Овечки (если будут)
MapSettings[58] = 
{
	shopItems = 
	{
		makeUpgrade(ShopItems.Sandwich,1), --
	},
	sceneryItem = 40, 
}	-- 58. -
MapSettings[59] = {}	-- 59. -
MapSettings[60] = 
{
	shopItems = 
	{
		makeUpgrade(ShopItems.Roaster,2), --
	},
	
}	-- 60. Мост к городу

MapSettings[61] = {sceneryItem = 41,}	-- 61. -
MapSettings[62] = 
{
	shopItems = 
	{
		makeUpgrade(ShopItems.Sandwich,2), --
	},
}	-- 62. -
MapSettings[63] = { }	-- 63. Тропа с моста
MapSettings[64] = {}	-- 64. -
MapSettings[65] = {}	-- 65. Тропа к городу
MapSettings[66] = {}	-- 66. Город
MapSettings[67] = {}	-- 67. -