local sounds = require("__base__.prototypes.entity.sounds")
local space_age_sounds = require("__space-age__.prototypes.entity.sounds")
local item_sounds = require("__base__.prototypes.item_sounds")
local space_age_item_sounds = require("__space-age__.prototypes.item_sounds")
local item_tints = require("__base__.prototypes.item-tints")
local item_effects = require("__space-age__.prototypes.item-effects")
local meld = require("meld")
local simulations = require("__space-age__.prototypes.factoriopedia-simulations")

data:extend(
{
  {
    type = "item-subgroup",
    name = "vesta-items-artificial",
    group = "intermediate-products",
    order = "q[vesta-items]-a[artificial-parts]"
  },
  {
    type = "item-subgroup",
    name = "vesta-items-organic",
    group = "intermediate-products",
    order = "q[vesta-items]-b[organic-parts]"
  },
  {
    type = "item-subgroup",
    name = "vesta-gases",
    group = "intermediate-products",
    order = "q[vesta-gases]-a[gasses]"
  },
  {
    type = "item-subgroup",
    name = "vesta-fluids",
    group = "intermediate-products",
    order = "q[vesta-gases]-b[fluids]"
  },
  {
    type = "item-subgroup",
    name = "vesta-fluids-petro",
    group = "intermediate-products",
    order = "q[vesta-gases]-c[fluids-petro]"
  },
  {
    type = "item-subgroup",
    name = "vesta-supercooling",
    group = "intermediate-products",
    order = "q[vesta-gases]-d[supercooling]"
  },
-- Buildings
-- Combustion Furnace
  {
    type = "item",
    name = "vesta-combustion-furnace",
	icon = "__skewer_planet_vesta_assets__/graphics/icons/combustion_furnace.png",
    color_hint = { text = "1" },
    subgroup = "smelting-machine",
    order = "d[electric-furnace-combustion]",
    inventory_move_sound = item_sounds.electric_large_inventory_move,
    pick_sound = item_sounds.electric_large_inventory_pickup,
    drop_sound = item_sounds.electric_large_inventory_move,
    place_result = "vesta-combustion-furnace",
    stack_size = 50,
    weight = 20*kg,
    random_tint_color = item_tints.iron_rust
  },
-- Electrolyzer
  {
    type = "item",
    name = "vesta-electrolyzer",
	icon = "__skewer_planet_vesta_assets__/graphics/icons/electrolyzer.png",
    color_hint = { text = "1" },
    subgroup = "production-machine",
    order = "e[electrolyzer]",
    inventory_move_sound = item_sounds.electric_large_inventory_move,
    pick_sound = item_sounds.electric_large_inventory_pickup,
    drop_sound = item_sounds.electric_large_inventory_move,
    place_result = "vesta-electrolyzer",
    stack_size = 50,
    weight = 20*kg,
    random_tint_color = item_tints.iron_rust
  },
-- Vestan Heater
  {
    type = "item",
    name = "vesta-heater",
	icon = "__skewer_planet_vesta_assets__/graphics/icons/heater.png",
    color_hint = { text = "1" },
    subgroup = "environmental-protection",
    order = "d[heat-conductor]",
    inventory_move_sound = item_sounds.electric_large_inventory_move,
    pick_sound = item_sounds.electric_large_inventory_pickup,
    drop_sound = item_sounds.electric_large_inventory_move,
    place_result = "vesta-heater",
    stack_size = 50,
    weight = 20*kg,
    random_tint_color = item_tints.iron_rust
  },
-- Supermagnet
  {
    type = "item",
    name = "supermagnet",
    icon = "__skewer_planet_vesta_assets__/graphics/icons/supermagnet.png",
    subgroup = "production-machine",
    color_hint = { text = "1" },
    order = "k[ske-shattered-machines]",
    inventory_move_sound = item_sounds.mechanical_inventory_move,
    pick_sound = item_sounds.mechanical_inventory_pickup,
    drop_sound = item_sounds.mechanical_inventory_move,
    place_result = "supermagnet",
    stack_size = 20,
    weight = 40*kg,
    random_tint_color = item_tints.iron_rust
  },
-- Fusion Thruster
  {
    type = "item",
    name = "ske_fusion_thruster",
	icon = "__skewer_planet_vesta_assets__/graphics/icons/fusion-thruster.png",
    color_hint = { text = "1" },
    subgroup = "space-platform",
    order = "z[thruster]",
    inventory_move_sound = space_age_item_sounds.rocket_inventory_move,
    pick_sound = space_age_item_sounds.rocket_inventory_pickup,
    drop_sound = space_age_item_sounds.rocket_inventory_move,
    place_result = "ske_fusion_thruster",
    stack_size = 10,
    weight = 200*kg
  },
---=====================================
---Science Packs
---=====================================
  {
    type = "tool",
    name = "gas-manipulation-science-pack",
    localised_description = {"item-description.science-pack"},
    icon = "__skewer_planet_vesta_assets__/graphics/icons/gas-manipulation-science-pack.png",
    subgroup = "science-pack",
	order = "j-v[vesta]",
    color_hint = { text = "I" },
    inventory_move_sound = item_sounds.science_inventory_move,
    pick_sound = item_sounds.science_inventory_pickup,
    drop_sound = item_sounds.science_inventory_move,
    stack_size = 200,
    default_import_location = "vesta",
    weight = 1*kg,
    durability = 1,
    durability_description_key = "description.science-pack-remaining-amount-key",
    factoriopedia_durability_description_key = "description.factoriopedia-science-pack-remaining-amount-key",
    durability_description_value = "description.science-pack-remaining-amount-value",
    random_tint_color = item_tints.bluish_science
  },
-- =====================================
-- Other items
-- =====================================
--==========
-- Items
--==========
-- Calcized Iron Deposits
	{
		type = "item",
		name = "calcized-iron-plate",
		icon = "__skewer_planet_vesta_assets_2__/graphics/icons/calcized-iron-1.png",
		pictures =
		{
			{ size = 64, filename = "__skewer_planet_vesta_assets_2__/graphics/icons/calcized-iron-1.png", scale = 0.5 },
			{ size = 64, filename = "__skewer_planet_vesta_assets_2__/graphics/icons/calcized-iron-2.png", scale = 0.5 }
		},
		subgroup = "vesta-items-artificial",
		order = "a[vesta-artificial]-a[a-i-mineralization-1]",
		inventory_move_sound = item_sounds.resource_inventory_move,
		pick_sound = item_sounds.resource_inventory_pickup,
		drop_sound = item_sounds.resource_inventory_move,
		stack_size = 50,
		weight = 0.5 * kg
	},
-- Calcized Copper Deposits
	{
		type = "item",
		name = "calcized-copper-plate",
		icon = "__skewer_planet_vesta_assets_2__/graphics/icons/calcized-copper-1.png",
		pictures =
		{
			{ size = 64, filename = "__skewer_planet_vesta_assets_2__/graphics/icons/calcized-copper-1.png", scale = 0.5 },
			{ size = 64, filename = "__skewer_planet_vesta_assets_2__/graphics/icons/calcized-copper-2.png", scale = 0.5 }
		},
		subgroup = "vesta-items-artificial",
		order = "a[vesta-artificial]-a[a-c-mineralization-2]",
		inventory_move_sound = item_sounds.resource_inventory_move,
		pick_sound = item_sounds.resource_inventory_pickup,
		drop_sound = item_sounds.resource_inventory_move,
		stack_size = 50,
		weight = 0.5 * kg
	},
-- Nutrient Algae Clump
	{
		type = "item",
		name = "algea_nutrient_clump",
		icon = "__skewer_planet_vesta_assets__/graphics/icons/algea_nutrient_clump.png",
		subgroup = "agriculture-processes",
		order = "a[vesta-organics]-a[algea-clump-nutrient]",
		inventory_move_sound = space_age_item_sounds.agriculture_inventory_move,
		pick_sound = space_age_item_sounds.agriculture_inventory_pickup,
		drop_sound = space_age_item_sounds.agriculture_inventory_move,
		fuel_category = "nutrients",
		fuel_value = "2MJ",
		stack_size = 100,
		default_import_location = "vesta",
		weight = 0.5 * kg
	},
-- Charcoal
	{
		type = "item",
		name = "ske_charcoal",
		icon = "__skewer_planet_vesta_assets__/graphics/icons/charcoal.png",
		subgroup = "vesta-items-artificial",
		order = "a[vesta-organics]-a[charcoal]",
		inventory_move_sound = item_sounds.resource_inventory_move,
		pick_sound = item_sounds.resource_inventory_pickup,
		drop_sound = item_sounds.resource_inventory_move,
		fuel_category = "chemical",
		fuel_value = "7MJ",
		stack_size = 50,
		weight = 0.5 * kg
	},
-- Sand
	{
		type = "item",
		name = "sand",
		icon = "__skewer_planet_vesta_assets__/graphics/icons/sand_1.png",
		pictures =
		{
			{ size = 64, filename = "__skewer_planet_vesta_assets__/graphics/icons/sand_1.png", scale = 0.5 },
			{ size = 64, filename = "__skewer_planet_vesta_assets__/graphics/icons/sand_2.png", scale = 0.5 },
			{ size = 64, filename = "__skewer_planet_vesta_assets__/graphics/icons/sand_3.png", scale = 0.5 }
		},
		subgroup = "vesta-items-artificial",
		order = "a[vesta-artificial]-a[carbon-mineralization-2]",
		inventory_move_sound = item_sounds.resource_inventory_move,
		pick_sound = item_sounds.resource_inventory_pickup,
		drop_sound = item_sounds.resource_inventory_move,
		stack_size = 50,
		weight = 0.5 * kg
	},
-- Ceramic
	{
		type = "item",
		name = "ceramic",
		icon = "__skewer_planet_vesta_assets__/graphics/icons/ceramic.png",
		subgroup = "vesta-items-artificial",
		order = "a[vesta-artificial]-a[carbon-mineralization-3]",
		inventory_move_sound = item_sounds.resource_inventory_move,
		pick_sound = item_sounds.resource_inventory_pickup,
		drop_sound = item_sounds.resource_inventory_move,
		stack_size = 20,
		weight = 2 * kg
	},
-- Mesh
	{
		type = "item",
		name = "ske_mesh",
		icon = "__skewer_planet_vesta_assets__/graphics/icons/mesh.png",
		subgroup = "vesta-items-artificial",
		order = "a[vesta-artificial]-a[carbon-mineralization-3]",
		inventory_move_sound = item_sounds.resource_inventory_move,
		pick_sound = item_sounds.resource_inventory_pickup,
		drop_sound = item_sounds.resource_inventory_move,
		stack_size = 50,
		weight = 2 * kg
	},
-- Ammonia chilled plate
	{
		type = "item",
		name = "ske_ammonia_chilled_plate",
		icon = "__skewer_planet_vesta_assets_2__/graphics/icons/ammonia-chilled-plate.png",
		subgroup = "vesta-items-artificial",
		order = "a[vesta-necessities]-b[ammonia-plate]",
		inventory_move_sound = item_sounds.metal_small_inventory_move,
		pick_sound = item_sounds.metal_small_inventory_pickup,
		drop_sound = item_sounds.metal_small_inventory_move,
		stack_size = 100,
		weight = 2 * kg
	},
-- Iridium plate
	{
		type = "item",
		name = "iridium-plate",
		icon = "__skewer_planet_vesta_assets_2__/graphics/icons/iridium-plate.png",
		subgroup = "vesta-items-artificial",
		order = "a[vesta-necessities]-c[iridium-plate]",
		inventory_move_sound = item_sounds.metal_small_inventory_move,
		pick_sound = item_sounds.metal_small_inventory_pickup,
		drop_sound = item_sounds.metal_small_inventory_move,
		stack_size = 100,
		weight = 2 * kg
	},
-- Simple Filter
	{
		type = "item",
		name = "ske_water_filter",
		icon = "__skewer_planet_vesta_assets__/graphics/icons/filter.png",
		subgroup = "vesta-items-artificial",
		order = "a[vesta-necessities]-c[filter]",
		inventory_move_sound = item_sounds.resource_inventory_move,
		pick_sound = item_sounds.resource_inventory_pickup,
		drop_sound = item_sounds.resource_inventory_move,
		stack_size = 100,
		weight = 1 * kg
	},
-- Algea Filter
	{
		type = "item",
		name = "ske_algea_filter",
		icon = "__skewer_planet_vesta_assets__/graphics/icons/filter_algea.png",
		subgroup = "vesta-items-artificial",
		order = "a[vesta-necessities]-d[algea-filter]",
		inventory_move_sound = item_sounds.resource_inventory_move,
		pick_sound = item_sounds.resource_inventory_pickup,
		drop_sound = item_sounds.resource_inventory_move,
		fuel_category = "chemical",
		fuel_value = "1kJ",
		stack_size = 200,
		weight = 1 * kg
	},
-- Algea clump
	{
		type = "item",
		name = "ske_algea_clump",
		icon = "__skewer_planet_vesta_assets__/graphics/icons/algea_clump.png",
		subgroup = "vesta-items-organic",
		order = "a[vesta-organics]-b[algea-clump]",
		inventory_move_sound = space_age_item_sounds.agriculture_inventory_move,
		pick_sound = space_age_item_sounds.agriculture_inventory_pickup,
		drop_sound = space_age_item_sounds.agriculture_inventory_move,
		fuel_category = "chemical",
		fuel_value = "5MJ",
		stack_size = 50,
		weight = 1 * kg
	},
-- Algea clump rare
	{
		type = "item",
		name = "ske_algea_clump_rare",
		icon = "__skewer_planet_vesta_assets__/graphics/icons/algea_clump_rare.png",
		subgroup = "vesta-items-organic",
		order = "a[vesta-organics]-c[algea-clump-rare]",
		inventory_move_sound = space_age_item_sounds.agriculture_inventory_move,
		pick_sound = space_age_item_sounds.agriculture_inventory_pickup,
		drop_sound = space_age_item_sounds.agriculture_inventory_move,
		fuel_category = "chemical",
		fuel_value = "5MJ",
		stack_size = 50,
		weight = 1 * kg
	},
-- Algea clump iron
	{
		type = "item",
		name = "ske_algea_clump_iron",
		icon = "__skewer_planet_vesta_assets__/graphics/icons/algea_clump_iron.png",
		subgroup = "vesta-items-organic",
		order = "a[vesta-organics]-d[algea-clump-iron]",
		inventory_move_sound = space_age_item_sounds.agriculture_inventory_move,
		pick_sound = space_age_item_sounds.agriculture_inventory_pickup,
		drop_sound = space_age_item_sounds.agriculture_inventory_move,
		stack_size = 50,
		weight = 1 * kg
	},
-- Algea clump copper
	{
		type = "item",
		name = "ske_algea_clump_copper",
		icon = "__skewer_planet_vesta_assets__/graphics/icons/algea_clump_copper.png",
		subgroup = "vesta-items-organic",
		order = "a[vesta-organics]-d[algea-clump-iron]",
		inventory_move_sound = space_age_item_sounds.agriculture_inventory_move,
		pick_sound = space_age_item_sounds.agriculture_inventory_pickup,
		drop_sound = space_age_item_sounds.agriculture_inventory_move,
		stack_size = 50,
		weight = 1 * kg
	},
-- Algea clump stonite
	{
		type = "item",
		name = "ske_algea_clump_stonite",
		icon = "__skewer_planet_vesta_assets__/graphics/icons/algea_clump_stonite.png",
		subgroup = "vesta-items-organic",
		order = "a[vesta-organics]-c[algea-clump-stonite]",
		inventory_move_sound = space_age_item_sounds.agriculture_inventory_move,
		pick_sound = space_age_item_sounds.agriculture_inventory_pickup,
		drop_sound = space_age_item_sounds.agriculture_inventory_move,
		stack_size = 50,
		weight = 1 * kg
	},
-- Algea clump tritium
	{
		type = "item",
		name = "ske_algea_clump_tritium",
		icon = "__skewer_planet_vesta_assets__/graphics/icons/algea_clump_tritium.png",
		subgroup = "vesta-items-organic",
		order = "a[vesta-organics]-e[algea-clump-tritium]",
		inventory_move_sound = space_age_item_sounds.agriculture_inventory_move,
		pick_sound = space_age_item_sounds.agriculture_inventory_pickup,
		drop_sound = space_age_item_sounds.agriculture_inventory_move,
		stack_size = 50,
		weight = 1 * kg
	},
-- Algea clump agitated
	{
		type = "item",
		name = "ske_algea_clump_agitated",
		icon = "__skewer_planet_vesta_assets__/graphics/icons/algea_clump_highly_agitated.png",
		subgroup = "vesta-items-organic",
		order = "a[vesta-organics]-f[algea-clump-agitated]",
		inventory_move_sound = space_age_item_sounds.agriculture_inventory_move,
		pick_sound = space_age_item_sounds.agriculture_inventory_pickup,
		drop_sound = space_age_item_sounds.agriculture_inventory_move,
		stack_size = 50,
		weight = 1 * kg
	},
-- Algea clump holmium
	{
		type = "item",
		name = "ske_algea_clump_holmium",
		icon = "__skewer_planet_vesta_assets__/graphics/icons/algea_clump_holmium.png",
		subgroup = "vesta-items-organic",
		order = "a[vesta-organics]-g[algea-clump-holmium]",
		inventory_move_sound = space_age_item_sounds.agriculture_inventory_move,
		pick_sound = space_age_item_sounds.agriculture_inventory_pickup,
		drop_sound = space_age_item_sounds.agriculture_inventory_move,
		stack_size = 50,
		weight = 1 * kg
	},
-- Algea clump Iritite
	{
		type = "item",
		name = "ske_algea_clump_iritite",
		icon = "__skewer_planet_vesta_assets__/graphics/icons/algea_clump_iritite.png",
		subgroup = "vesta-items-organic",
		order = "a[vesta-organics]-h[algea-clump-iritite]",
		inventory_move_sound = space_age_item_sounds.agriculture_inventory_move,
		pick_sound = space_age_item_sounds.agriculture_inventory_pickup,
		drop_sound = space_age_item_sounds.agriculture_inventory_move,
		stack_size = 50,
		weight = 1 * kg
	},
-- Algea clump Iridium
	{
		type = "item",
		name = "ske_algea_clump_iridium",
		icon = "__skewer_planet_vesta_assets__/graphics/icons/algea_clump_iridium.png",
		subgroup = "vesta-items-organic",
		order = "a[vesta-organics]-i[algea-clump-iridium]",
		inventory_move_sound = space_age_item_sounds.agriculture_inventory_move,
		pick_sound = space_age_item_sounds.agriculture_inventory_pickup,
		drop_sound = space_age_item_sounds.agriculture_inventory_move,
		stack_size = 50,
		weight = 1 * kg
	},
-- Algea clump Petrite
	{
		type = "item",
		name = "ske_algea_clump_petrite",
		icon = "__skewer_planet_vesta_assets__/graphics/icons/algea_clump_petrite.png",
		subgroup = "vesta-items-organic",
		order = "a[vesta-organics]-i[algea-clump-petrite]",
		fuel_category = "chemical",
		fuel_value = "15MJ",
		inventory_move_sound = space_age_item_sounds.agriculture_inventory_move,
		pick_sound = space_age_item_sounds.agriculture_inventory_pickup,
		drop_sound = space_age_item_sounds.agriculture_inventory_move,
		stack_size = 50,
		weight = 1 * kg
	},
-- Empty DT Canister
	{
    type = "item",
    name = "ske_empty_dt_canister",
    icon = "__skewer_planet_vesta_assets__/graphics/icons/empty_dt_fuel_canister.png",
	subgroup = "vesta-items-artificial",
	order = "a[vesta-necessities]-e[dt-fuel-canister-empty]",
    inventory_move_sound = item_sounds.resource_inventory_move,
    pick_sound = item_sounds.resource_inventory_pickup,
    drop_sound = item_sounds.resource_inventory_move,
    stack_size = 20,
    default_import_location = "vesta",
		weight = 5 * kg
	},
-- DT Fuel
  {
    type = "item",
    name = "ske_dt_fuel_cell",
    icon = "__skewer_planet_vesta_assets__/graphics/icons/dt_fuel_canister.png",
	subgroup = "vesta-items-artificial",
	order = "a[vesta-necessities]-f[dt-fuel-canister]",
    inventory_move_sound = item_sounds.reactor_inventory_move,
    pick_sound = item_sounds.reactor_inventory_pickup,
    drop_sound = item_sounds.reactor_inventory_move,
    fuel_value = "75GJ",
    fuel_category = "fusion",
    stack_size = 50,
    default_import_location = "vesta",
    weight = 20*kg
  },
-- Fusion construction robot framework
	{
    type = "item",
    name = "ske_fusion_framework",
    icon = "__skewer_planet_vesta_assets__/graphics/icons/fusion_robot_framework.png",
	subgroup = "vesta-items-artificial",
	order = "a[vesta-necessities]-g[fusion-framework]",
    inventory_move_sound = item_sounds.resource_inventory_move,
    pick_sound = item_sounds.resource_inventory_pickup,
    drop_sound = item_sounds.resource_inventory_move,
    stack_size = 50,
    default_import_location = "vesta",
		weight = 10 * kg
	},
})


-- Krastorio 2 Spaced Out Rare Metals Algea
if mods["Krastorio2-spaced-out"]
then
data:extend({
-- Algea clump rare iritated
	{
		type = "item",
		name = "ske_algea_clump_rare_iritated",
		icon = "__skewer_planet_vesta_assets__/graphics/icons/algea_clump_rare_iritated.png",
		subgroup = "vesta-items-organic",
		order = "a[vesta-organics]-j[algea-clump-rare-metals-1]",
		inventory_move_sound = space_age_item_sounds.agriculture_inventory_move,
		pick_sound = space_age_item_sounds.agriculture_inventory_pickup,
		drop_sound = space_age_item_sounds.agriculture_inventory_move,
		fuel_category = "chemical",
		fuel_value = "1MJ",
		stack_size = 50,
		weight = 1 * kg
	},
-- Algea clump rare metals
	{
		type = "item",
		name = "ske_algea_clump_rare_metals",
		icon = "__skewer_planet_vesta_assets__/graphics/icons/algea_clump_rare_metals.png",
		subgroup = "vesta-items-organic",
		order = "a[vesta-organics]-j[algea-clump-rare-metals-2]",
		inventory_move_sound = space_age_item_sounds.agriculture_inventory_move,
		pick_sound = space_age_item_sounds.agriculture_inventory_pickup,
		drop_sound = space_age_item_sounds.agriculture_inventory_move,
		fuel_category = "chemical",
		fuel_value = "1MJ",
		stack_size = 50,
		weight = 1 * kg
	},
})
else
end