-- Base Vesta gases

local function get_gas_color(original, pelagos_alternative)
  if mods["pelagos"] then
    return pelagos_alternative
  else
    return original
  end
end

local original_methane_base = {0.51, 0.41, 0.74}
local original_methane_flow = {0.51, 0.41, 0.74}
local original_carbon_dioxide_base = {0.53, 0.78, 0.13}
local original_carbon_dioxide_flow = {0.84, 0.91, 0.71}
local pelagos_methane_base = {0.74, 0.93, 0.82}
local pelagos_methane_flow = {0.74, 0.93, 0.82}
local pelagos_carbon_dioxide_base = {0.51, 0.41, 0.74}
local pelagos_carbon_dioxide_flow = {0.51, 0.41, 0.74}


if settings.startup["ske_vesta_gases"].value then
data:extend({
-- Gas Oxygen
		{
		type = "fluid",
		name = "vesta_oxygen",
		subgroup = "fluid",
		default_temperature = 25,
		gas_temperature = 25,
		base_color = {0, 0.8, 1},
		flow_color = {0, 1, 1},
		icon = "__skewer_planet_vesta_assets__/graphics/icons/gas_oxygen.png",
		order = "c[gas-fluid]-b[gas]-b[oxygen]",
--		hidden_in_factoriopedia = true,
		auto_barrel = false
		},
-- Gas Hydrogen
		{
		type = "fluid",
		name = "vesta_hydrogen",
		subgroup = "fluid",
		default_temperature = 25,
		gas_temperature = 25,
		base_color = {1, 0.1, 0},
		flow_color = {1, 0.5, 0},
		icon = "__skewer_planet_vesta_assets__/graphics/icons/gas_hydrogen.png",
		order = "c[gas-fluid]-b[gas]-b[oxygen]",
--		hidden_in_factoriopedia = true,
		auto_barrel = false
		},
-- Gas gas-nitrogen
		{
		type = "fluid",
		name = "vesta_nitrogen",
		subgroup = "fluid",
		default_temperature = 25,
		gas_temperature = 25,
		base_color = {0, 1, 0.55},
		flow_color = {0, 1, 0.79},
		icon = "__skewer_planet_vesta_assets__/graphics/icons/gas_nitrogen.png",
		order = "c[gas-fluid]-b[gas]-c[gas-nitrogen]",
--		hidden_in_factoriopedia = true,
		auto_barrel = false
		},
-- Gas Carbon
		{
		type = "fluid",
		name = "vesta_carbon",
		subgroup = "fluid",
		default_temperature = 25,
		gas_temperature = 25,
		base_color = {0.84, 0.55, 0.55},
		flow_color = {0.91, 0.79, 0.74},
		icon = "__skewer_planet_vesta_assets__/graphics/icons/gas_carbon.png",
		order = "c[gas-fluid]-b[gas]-d[carbon-1]",
--		hidden_in_factoriopedia = true,
		auto_barrel = false
		},
-- Gas Carbon Dioxide
		{
		type = "fluid",
		name = "vesta_carbon_dioxide",
		subgroup = "fluid",
		default_temperature = 25,
		gas_temperature = 25,
		base_color = {0.53, 0.78, 0.13},
		flow_color = {0.84, 0.91, 0.71},
		icon = "__skewer_planet_vesta_assets__/graphics/icons/gas_carbon_dioxide.png",
		order = "c[gas-fluid]-b[gas]-d[carbon-2-dioxide]",
--		hidden_in_factoriopedia = true,
		auto_barrel = false
		},
-- Gas Methane
		{
		type = "fluid",
		name = "vesta_methane",
		subgroup = "fluid",
		default_temperature = 25,
		gas_temperature = 25,
		base_color = {0.51, 0.41, 0.74},
		flow_color = {0.51, 0.41, 0.74},
		icon = "__skewer_planet_vesta_assets__/graphics/icons/gas_methane.png",
		order = "c[gas-fluid]-b[gas]-e[carbon-3]",
--		hidden_in_factoriopedia = true,
		auto_barrel = false
		},
-- Gas hydrogen sulfide
		{
		type = "fluid",
		name = "vesta_hydrogen_sulfide",
		subgroup = "fluid",
		default_temperature = 25,
		gas_temperature = 25,
		base_color = {0.78, 0.78, 0.18},
		flow_color = {0.78, 0.78, 0.18},
		icon = "__skewer_planet_vesta_assets__/graphics/icons/gas_hydrogen_sulfide.png",
		order = "c[gas-fluid]-b[gas]-f[carbon-3]",
--		hidden_in_factoriopedia = true,
		auto_barrel = false
		},
-- Gas Helium
		{
		type = "fluid",
		name = "vesta_helium",
		subgroup = "fluid",
		default_temperature = 25,
		gas_temperature = 25,
		base_color = {0.67, 0.15, 0.67},
		flow_color = {1, 0, 1},
		icon = "__skewer_planet_vesta_assets__/graphics/icons/gas_helium.png",
		order = "c[gas-fluid]-b[gas]-g[helium]",
--		hidden_in_factoriopedia = true,
		auto_barrel = false
		}
	})
else
-- Gases in their raw, compatible forms.
data:extend({
-- Gas Oxygen
		{
		type = "fluid",
		name = "oxygen",
		subgroup = "fluid",
		default_temperature = 25,
		gas_temperature = 25,
		base_color = {0, 0.8, 1},
		flow_color = {0, 1, 1},
		icon = "__skewer_planet_vesta_assets__/graphics/icons/gas_oxygen.png",
		order = "c[gas-fluid]-b[gas]-b[oxygen]",
		auto_barrel = true
		},
-- Gas Hydrogen
		{
		type = "fluid",
		name = "hydrogen",
		subgroup = "fluid",
		default_temperature = 25,
		gas_temperature = 25,
		base_color = {1, 0.1, 0},
		flow_color = {1, 0.5, 0},
		icon = "__skewer_planet_vesta_assets__/graphics/icons/gas_hydrogen.png",
		order = "c[gas-fluid]-b[gas]-b[oxygen]",
		auto_barrel = true
		},
-- Gas gas-nitrogen
		{
		type = "fluid",
		name = "nitrogen",
		subgroup = "fluid",
		default_temperature = 25,
		gas_temperature = 25,
		base_color = {0, 1, 0.55},
		flow_color = {0, 1, 0.79},
		icon = "__skewer_planet_vesta_assets__/graphics/icons/gas_nitrogen.png",
		order = "c[gas-fluid]-b[gas]-c[gas-nitrogen]",
		auto_barrel = true
		},
-- Gas Carbon
		{
		type = "fluid",
		name = "carbon-gas",
		subgroup = "fluid",
		default_temperature = 25,
		gas_temperature = 25,
		base_color = {0.84, 0.55, 0.55},
		flow_color = {0.91, 0.79, 0.74},
		icon = "__skewer_planet_vesta_assets__/graphics/icons/gas_carbon.png",
		order = "c[gas-fluid]-b[gas]-d[carbon-1]",
		auto_barrel = true
		},
-- Gas Carbon Dioxide
		{
		type = "fluid",
		name = "carbon-dioxide",
		subgroup = "fluid",
		default_temperature = 25,
		gas_temperature = 25,
		max_temperature = 1000,
		base_color = {0.53, 0.78, 0.13},
		flow_color = {0.84, 0.91, 0.71},
		icon = "__skewer_planet_vesta_assets__/graphics/icons/gas_carbon_dioxide.png",
		order = "c[gas-fluid]-b[gas]-d[carbon-2-dioxide]",
		auto_barrel = true
		},
-- Gas Methane
		{
		type = "fluid",
		name = "methane",
		subgroup = "fluid",
		default_temperature = 25,
		gas_temperature = 25,
		base_color = {0.51, 0.41, 0.74},
		flow_color = {0.51, 0.41, 0.74},
		icon = "__skewer_planet_vesta_assets__/graphics/icons/gas_methane.png",
		order = "c[gas-fluid]-b[gas]-e[carbon-3]",
		auto_barrel = true
		},
-- Gas hydrogen sulfide
		{
		type = "fluid",
		name = "hydrogen-sulfide",
		subgroup = "fluid",
		default_temperature = 25,
		gas_temperature = 25,
		base_color = {0.78, 0.78, 0.18},
		flow_color = {0.78, 0.78, 0.18},
		icon = "__skewer_planet_vesta_assets__/graphics/icons/gas_hydrogen_sulfide.png",
		order = "c[gas-fluid]-b[gas]-f[carbon-3]",
		auto_barrel = true
		},
-- Gas Helium
		{
		type = "fluid",
		name = "helium",
		subgroup = "fluid",
		default_temperature = 25,
		gas_temperature = 25,
		base_color = {0.67, 0.15, 0.67},
		flow_color = {1, 0, 1},
		icon = "__skewer_planet_vesta_assets__/graphics/icons/gas_helium.png",
		order = "c[gas-fluid]-b[gas]-g[helium]",
		auto_barrel = true
		}
	})
end
-- No config for these, they're always here.
data:extend({
-- Gas Neon
		{
		type = "fluid",
		name = "neon",
		subgroup = "fluid",
		default_temperature = 25,
		gas_temperature = 25,
		base_color = {0.68, 0.2, 0.3},
		flow_color = {0.98, 0.56, 0.63},
		icon = "__skewer_planet_vesta_assets__/graphics/icons/gas_neon.png",
		order = "c[gas-fluid]-b[gas]-h[neon]",
		hidden_in_factoriopedia = true,
		auto_barrel = false
		},
-- Gas Argon
		{
		type = "fluid",
		name = "argon",
		subgroup = "fluid",
		default_temperature = 25,
		gas_temperature = 25,
		base_color = {0.78, 0.5, 0.7},
		flow_color = {0.99, 0.8, 1},
		icon = "__skewer_planet_vesta_assets__/graphics/icons/gas_argon.png",
		order = "c[gas-fluid]-b[gas]-i[argon]",
		hidden_in_factoriopedia = true,
		auto_barrel = false
		},
-- Gas Krypton
		{
		type = "fluid",
		name = "krypton",
		subgroup = "fluid",
		default_temperature = 25,
		gas_temperature = 25,
		base_color = {0.5, 0.58, 0.58},
		flow_color = {0.99, 0.83, 0.83},
		icon = "__skewer_planet_vesta_assets__/graphics/icons/gas_krypton.png",
		order = "c[gas-fluid]-b[gas]-j[krypton]",
		hidden_in_factoriopedia = true,
		auto_barrel = false
		},
-- Gas Xenon
		{
		type = "fluid",
		name = "xenon",
		subgroup = "fluid",
		default_temperature = 25,
		gas_temperature = 25,
		base_color = {0.46, 0.92, 0.6},
		flow_color = {0.8, 0.96, 0.85},
		icon = "__skewer_planet_vesta_assets__/graphics/icons/gas_xenon.png",
		order = "c[gas-fluid]-b[gas]-k[xenon]",
		hidden_in_factoriopedia = true,
		auto_barrel = false
		},
-- Gas Tritium
		{
		type = "fluid",
		name = "tritium",
		subgroup = "fluid",
		default_temperature = 25,
		gas_temperature = 20,
		base_color = {0.6, 0.95, 0.95},
		flow_color = {0.6, 0.95, 0.95},
		icon = "__skewer_planet_vesta_assets__/graphics/icons/gas_tritium.png",
		order = "c[gas-fluid]-b[gas]-l[tritium]",
		auto_barrel = true
		},
-- Gas Deuterium
		{
		type = "fluid",
		name = "deuterium",
		subgroup = "fluid",
		default_temperature = 25,
		gas_temperature = 20,
		base_color = {0.94, 0.27, 0.54},
		flow_color = {0.94, 0.27, 0.54},
		icon = "__skewer_planet_vesta_assets__/graphics/icons/gas_deuterium.png",
		order = "c[gas-fluid]-b[gas]-m[deuterium]",
		auto_barrel = true
		},
--=================
-- Liquids and Fluids
--=================
-- Supermagnetic
		{
		type = "fluid",
		name = "ske_supermagnetic",
		subgroup = "fluid",
		default_temperature = 1000,
		gas_temperature = 10000,
		base_color = {0.19, 0.4, 0.24},
		flow_color = {0.31, 0.68, 0.74},
		icon = "__skewer_planet_vesta_assets__/graphics/icons/fluid_super_magnetic.png",
		order = "c[gas-fluid]-b[gas]-y[liquidnitrogen]",
		},
-- Algea Water
		{
		type = "fluid",
		name = "ske_algea_water",
		subgroup = "fluid",
		default_temperature = 20,
		gas_temperature = 212,
		base_color = {0.43, 0.65, 0.19},
		flow_color = {0.62, 0.88, 0.54},
		icon = "__skewer_planet_vesta_assets__/graphics/icons/fluid_algea_water.png",
		order = "c[gas-fluid]-a[fluid]-a[algea-water]",
		},
-- DT-Fuel
		{
		type = "fluid",
		name = "ske_dt_fuel",
		subgroup = "fluid",
		default_temperature = 50,
		base_color = {0.2, 0, 0.46},
		flow_color = {1, 0, 0},
		icon = "__skewer_planet_vesta_assets__/graphics/icons/dt_fuel.png",
		order = "c[gas-fluid]-a[fluid]-n[dt_fuel]"
		},
-- Fluorofuel
		{
		type = "fluid",
		name = "fluorofuel",
		subgroup = "fluid",
		order = "c[vesta-gases]-c[supercooling-4]",
		fuel_value = "1000kJ",
		default_temperature = 25,
		gas_temperature = 1000,
		base_color = {0.07, 0.5, 0.46},
		flow_color = {0.34, 0.93, 0.85},
		icon = "__skewer_planet_vesta__/graphics/icons/fluoroketonefuel.png",
		auto_barrel = false
		},
-- Plasmafuel
		{
		type = "fluid",
		name = "plasmafuel",
		subgroup = "fluid",
		order = "c[vesta-gases]-c[supercooling-5]",
		fuel_value = "1000kJ",
		default_temperature = 25,
		gas_temperature = 1000,
		base_color = {0.85, 0.16, 0.77},
		flow_color = {1, 0.4, 0.48},
		icon = "__skewer_planet_vesta__/graphics/icons/plasmafuel.png",
		auto_barrel = false
		},
	})