--LOOT TABLES
local mese_stuff =
{
	rolls = 1,
	rolls_max = 5,
	loots =
	{
		{
			weight = 95,
			loot = "mesecons:wire_00000000_off",
			repetitions = 5,
			repetitions_max = 30,
		},
		{
			weight = 5,
			loot = "eg_turing_machines:tape",
			repetitions = 1,
		},
		accumulated_weight = 100,
	}
}

local apple_stuff =
{
	rolls = 1,
	rolls_max = 4,
	loots =
	{
		{
			weight = 75,
			loot = "eg_apples:pineapple",
			repetitions = 1,
		},
		{
			weight = 15,
			loot = "eg_apples:spruceapple",
			repetitions = 1,
		},
		{
			weight = 7,
			loot = "eg_apples:coconutapple",
			repetitions = 1,
		},
		{
			weight = 3,
			loot = "eg_apples:appleapple",
			repetitions = 1,
		},
		accumulated_weight = 100,
	}
}

local junk =
{
	rolls = 1,
	rolls_max = 5,
	loots =
	{
		{
			weight = 1,
			loot = "eg_mapgen:stone",
			repetitions = 1,
			repetitions_max = 5,
		},
		{
			weight = 1,
			loot = "eg_mapgen:sand",
			repetitions = 1,
			repetitions_max = 5,
		},
		{
			weight = 1,
			loot = "eg_mapgen:grass",
			repetitions = 1,
			repetitions_max = 5,
		},
		{
			weight = 1,
			loot = "eg_mapgen:dirt",
			repetitions = 1,
			repetitions_max = 5,
		},
		{
			weight = 1,
			loot = "eg_pebbles:pebble",
			repetitions = 1,
			repetitions_max = 5,
		},
		accumulated_weight = 5,
	}
}

local dungeon =
{
	rolls = 3,
	rolls_max = 5,
	loots =
	{
		{
			weight = 17,
			loot = junk,
			repetitions = 1,
		},
		{
			weight = 10,
			loot = apple_stuff,
			repetitions = 1,
			repetitions_max = 2,
		},
		{
			weight = 5,
			loot = "light:light",
			repetitions = 1,
			repetitions_max = 5,
		},
		{
			weight = 2,
			loot = mese_stuff,
			repetitions = 1,
			repetitions_max = 3,
		},
		accumulated_weight = 34,
	}
}
--DUNGEONS
eg_storage_barrels.set_dungeon_loot_table(dungeon)
