require "recipecode"

Recipe = Recipe or {}
Recipe.GetItemTypes = Recipe.GetItemTypes or {}
Recipe.OnCanPerform = Recipe.OnCanPerform or {}
Recipe.OnCreate = Recipe.OnCreate or {}
Recipe.OnGiveXP = Recipe.OnGiveXP or {}
Recipe.OnTest = Recipe.OnTest or {}

	--Craft OC
local MLPCanonCraft = {
    [0] = "PompsItems_MyLittlePony.FizzyPlushie",
	[1] = "PompsItems_MyLittlePony.HitchPlushie",
	[2] = "PompsItems_MyLittlePony.SproutPlushie",
	[3] = "PompsItems_MyLittlePony.ZippPlushie",
	[4] = "PompsItems_MyLittlePony.SunnyPlushie",
	[5] = "PompsItems_MyLittlePony.IzzyPlushie",
	[6] = "PompsItems_MyLittlePony.PippPetalsPlushie",
	[7] = "PompsItems_MyLittlePony.FluttershyPlushie",
	[8] = "PompsItems_MyLittlePony.RarityPlushie",
	[9] = "PompsItems_MyLittlePony.ApplejackPlushieHat",
	[10] = "PompsItems_MyLittlePony.ShiningArmorPlushie",
	[11] = "PompsItems_MyLittlePony.RainbowDashPlushie",
	[12] = "PompsItems_MyLittlePony.DerpyHoovesPlushie",
	[13] = "PompsItems_MyLittlePony.TwilightSparklePlushie",
	[14] = "PompsItems_MyLittlePony.PinkiePiePlushie",
	[15] = "PompsItems_MyLittlePony.CelestiaPlushie",
	[16] = "PompsItems_MyLittlePony.LunaPlushie",
	[17] = "PompsItems_MyLittlePony.CadancePlushie",
	[18] = "PompsItems_MyLittlePony.ChrysalisPlushie",
	[19] = "PompsItems_MyLittlePony.SpitfirePlushie",
	[20] = "PompsItems_MyLittlePony.OctaviaPlushie",
	[21] = "PompsItems_MyLittlePony.VinylScratchPlushie",
	[22] = "PompsItems_MyLittlePony.HoovesPlushie",
	[23] = "PompsItems_MyLittlePony.CheerileePlushie",
	[24] = "PompsItems_MyLittlePony.LyraPlushie",
	[25] = "PompsItems_MyLittlePony.BonbonPlushie",
	[26] = "PompsItems_MyLittlePony.BigMacPlushie",
	[27] = "PompsItems_MyLittlePony.SongbirdPlushie",
	[28] = "PompsItems_MyLittlePony.ZecoraPlushie",
	[29] = "PompsItems_MyLittlePony.TrixiePlushie",
	[30] = "PompsItems_MyLittlePony.SoarinPlushie",
	[31] = "PompsItems_MyLittlePony.GrannySmithPlushie",
	[32] = "PompsItems_MyLittlePony.BraeburnPlushieComplete",
	[33] = "PompsItems_MyLittlePony.CaramelApplePlushie",
	[34] = "PompsItems_MyLittlePony.NightmareMoonPlushie",
	[35] = "PompsItems_MyLittlePony.StarlightGlimmerPlushie",
	[36] = "PompsItems_MyLittlePony.SunsetShimmerPlushie",
	[37] = "PompsItems_MyLittlePony.ScootalooPlushie",
	[38] = "PompsItems_MyLittlePony.SweetiePlushie",
	[39] = "PompsItems_MyLittlePony.ApplebloomPlushie",
	[40] = "PompsItems_MyLittlePony.WoonaPlushie",
	[41] = "PompsItems_MyLittlePony.SpikePlushie",
	[42] = "PompsItems_MyLittlePony.CocoPommelPlushie",
	[43] = "PompsItems_MyLittlePony.NurseRedheartPlushie",
	[44] = "PompsItems_MyLittlePony.LotusBlossomPlushie",
	[45] = "PompsItems_MyLittlePony.AloePlushie",
	[46] = "PompsItems_MyLittlePony.MinuettePlushie",
	[47] = "PompsItems_MyLittlePony.LightningDustPlushie",
	[48] = "PompsItems_MyLittlePony.ThunderlanePlushie",
	[49] = "PompsItems_MyLittlePony.DoubleDiamondPlushie",
	[50] = "PompsItems_MyLittlePony.AutumnBlazePlushie",
	[51] = "PompsItems_MyLittlePony.MoondancerPlushie",
	[52] = "PompsItems_MyLittlePony.KingSombraPlushie",
	[53] = "PompsItems_MyLittlePony.PIDaybreakerPlushie",
	[54] = "PompsItems_MyLittlePony.PIKerfuffleCompletePlushie",
	[55] = "PompsItems_MyLittlePony.PITempestShadowPlushie",
	[56] = "PompsItems_MyLittlePony.PIRavenInkwellPlushie",
	[57] = "PompsItems_MyLittlePony.PISunburstPlushieComplete",
	[58] = "PompsItems_MyLittlePony.PIMaudPiePlushie",
	[59] = "PompsItems_MyLittlePony.PIG5MistyPlushie",
	[60] = "PompsItems_MyLittlePony.PIDaringDoPlushie",
	[61] = "PompsItems_MyLittlePony.PIBabsSeedPlushie",
	[62] = "PompsItems_MyLittlePony.PICheeseSandwichPlushie",
	[63] = "PompsItems_MyLittlePony.PICarrotTopPlushie",
	[64] = "PompsItems_MyLittlePony.PIRivetPlushie",
	[65] = "PompsItems_MyLittlePony.PICozyGlowPlushie",
	[66] = "PompsItems_MyLittlePony.PIRainbowshinePlushie",
	[67] = "PompsItems_MyLittlePony.PIOrangeBoxPlushie",
	[68] = "PompsItems_MyLittlePony.PIBerryPunchPlushie",
	[69] = "PompsItems_MyLittlePony.PIBottlecapPlushie",
	[70] = "PompsItems_MyLittlePony.FizzyPlushie",
	
}

function PIMLPCanonRandSelect_OnCreate(craftedRecipeData, character)
    local selectedItem = MLPCanonCraft[ZombRand(#MLPCanonCraft)]
    local inventory = character:getInventory()
    local item = inventory:AddItem(selectedItem)
    sendAddItemToContainer(inventory, item)
end