local sounds = require("__base__.prototypes.entity.sounds")
local stone_driving_sound =
{
    sound =
    {
        filename = "__base__/sound/driving/vehicle-surface-stone.ogg", volume = 0.8,
        advanced_volume_control = {fades = {fade_in = {curve_type = "cosine", from = {control = 0.5, volume_percentage = 0.0}, to = {1.5, 100.0 }}}}
      },
    fade_ticks = 6
}

data.extend{
  {
    type = "resource",
    name = "vesta_ground",
    icon = "__skewer_planet_vesta_assets__/graphics/icons/vesta_ground.png",
    flags = {"placeable-neutral"},
    category = "basic-fluid",
    subgroup = "mineable-fluids",
    order="d",
    infinite = false,
    highlight = true,
    minimum = 100000,
    normal = 300000,
    infinite_depletion_amount = 5,
    resource_patch_search_radius = 32,
    tree_removal_probability = 1,
    tree_removal_max_distance = 32 * 32,
    minable =
    {
      mining_time = 0.25,
      results =
      {
        {
          type = "fluid",
          name = "water",
          amount_min = 1,
          amount_max = 1,
          probability = 1
        }
      }
    },
    walking_sound = sounds.oil,
    collision_box = {{-1.4, -1.4}, {1.4, 1.4}},
    selection_box = {{-0.5, -0.5}, {0.5, 0.5}},
    stage_counts = {0},
    stages =
    {
      layers =
      {
        util.sprite_load("__skewer_planet_vesta_assets__/graphics/entity/ske_tritium/tritium_vent",
        {
          priority = "extra-high",
          frame_count = 4,
          scale = 0.5
        })
      }
    },
    draw_stateless_visualisation_under_building = false,
    stateless_visualisation =
    {
      {
        count = 1,
        render_layer = "smoke",
        animation = util.sprite_load("__space-age__/graphics/entity/lithium-brine/smoke-1",
        {
          priority = "extra-high",
          frame_count = 64,
          animation_speed = 0.35,
          tint = {r=0.75, g=0.75, b=0.75,a= 1},
          scale = 0.75,
          shift = {0,-0.23}
        })
      },
      {
        count = 1,
        render_layer = "smoke",
        animation = util.sprite_load("__space-age__/graphics/entity/lithium-brine/smoke-2",
        {
          priority = "extra-high",
          frame_count = 64,
          animation_speed = 0.35,
          tint = {r=1, g=0.1, b=1,a= 0.15},
          scale = 0.75,
          shift = {0,-0.23}
        })
      },
      {
        count = 1,
        render_layer = "smoke",
        animation = {
          filename = "__space-age__/graphics/entity/fluorine-vent/fluorine-vent-gas-outer.png",
          frame_count = 47,
          line_length = 16,
          width = 90,
          height = 188,
          animation_speed = 0.5,
          shift = util.by_pixel(-2, 24 -152),
          scale = 1.5,
          tint = util.multiply_color({r=0.25, g=1, b=0.62}, 0.2)
        }
      },
      {
        count = 1,
        render_layer = "smoke",
        animation = {
          filename = "__space-age__/graphics/entity/fluorine-vent/fluorine-vent-gas-inner.png",
          frame_count = 47,
          line_length = 16,
          width = 40,
          height = 84,
          animation_speed = 0.5,
          shift = util.by_pixel(0, 24 -78),
          scale = 1.5,
          tint = util.multiply_color({r=0.57, g=0.8, b=0.76}, 0.2)
        }
      }
    },
 --	map_color = {0.25, 0.95, 0.24},
	map_color = {0.51, 0.41, 0.74},
    map_grid = false,
  },
-- Originally represents Tritium spawn on Vesta. Now Methane gas for oil production
  {
    type = "resource",
    name = "tritium",
	icon = "__skewer_planet_vesta_assets__/graphics/icons/gas_methane.png",
--	icon = "__skewer_planet_vesta_assets__/graphics/icons/gas_tritium.png",
    flags = {"placeable-neutral"},
    category = "basic-fluid",
    subgroup = "mineable-fluids",
    order="d",
    infinite = false,
    highlight = true,
    minimum = 100000,
    normal = 300000,
    infinite_depletion_amount = 5,
    resource_patch_search_radius = 32,
    tree_removal_probability = 1,
    tree_removal_max_distance = 32 * 32,
    minable =
    {
      mining_time = 0.25,
      results =
      {
        {
          type = "fluid",
          name = "water",
          amount_min = 1,
          amount_max = 1,
          probability = 1
        }
      }
    },
    walking_sound = sounds.oil,
    collision_box = {{-1.4, -1.4}, {1.4, 1.4}},
    selection_box = {{-0.5, -0.5}, {0.5, 0.5}},
    stage_counts = {0},
    stages =
    {
      layers =
      {
        util.sprite_load("__skewer_planet_vesta_assets__/graphics/entity/ske_tritium/tritium_vent",
        {
          priority = "extra-high",
          frame_count = 4,
          scale = 0.5
        })
      }
    },
    draw_stateless_visualisation_under_building = false,
    stateless_visualisation =
    {
      {
        count = 1,
        render_layer = "smoke",
        animation = util.sprite_load("__space-age__/graphics/entity/lithium-brine/smoke-1",
        {
          priority = "extra-high",
          frame_count = 64,
          animation_speed = 0.35,
          tint = {r=0.75, g=0.75, b=0.75,a= 1},
          scale = 0.75,
          shift = {0,-0.23}
        })
      },
      {
        count = 1,
        render_layer = "smoke",
        animation = util.sprite_load("__space-age__/graphics/entity/lithium-brine/smoke-2",
        {
          priority = "extra-high",
          frame_count = 64,
          animation_speed = 0.35,
          tint = {r=1, g=0.1, b=1,a= 0.15},
          scale = 0.75,
          shift = {0,-0.23}
        })
      },
      {
        count = 1,
        render_layer = "smoke",
        animation = {
          filename = "__space-age__/graphics/entity/fluorine-vent/fluorine-vent-gas-outer.png",
          frame_count = 47,
          line_length = 16,
          width = 90,
          height = 188,
          animation_speed = 0.5,
          shift = util.by_pixel(-2, 24 -152),
          scale = 1.5,
          tint = util.multiply_color({r=0.25, g=1, b=0.62}, 0.2)
        }
      },
      {
        count = 1,
        render_layer = "smoke",
        animation = {
          filename = "__space-age__/graphics/entity/fluorine-vent/fluorine-vent-gas-inner.png",
          frame_count = 47,
          line_length = 16,
          width = 40,
          height = 84,
          animation_speed = 0.5,
          shift = util.by_pixel(0, 24 -78),
          scale = 1.5,
          tint = util.multiply_color({r=0.57, g=0.8, b=0.76}, 0.2)
        }
      }
    },
 --	map_color = {0.25, 0.95, 0.24},
 	map_color = {0.78, 0.78, 0.18},
    map_grid = false,
  },
  {
    type = "resource",
    name = "deuterium",
--	icon = "__skewer_planet_vesta_assets__/graphics/icons/gas_deuterium.png",
	icon = "__skewer_planet_vesta_assets__/graphics/icons/gas_hydrogen_sulfide.png",
    flags = {"placeable-neutral"},
    category = "basic-fluid",
    subgroup = "mineable-fluids",
    order="d",
    infinite = false,
    highlight = true,
    minimum = 100000,
    normal = 300000,
    infinite_depletion_amount = 5,
    resource_patch_search_radius = 32,
    tree_removal_probability = 1,
    tree_removal_max_distance = 32 * 32,
    minable =
    {
      mining_time = 0.25,
      results =
      {
        {
          type = "fluid",
          name = "water",
          amount_min = 1,
          amount_max = 1,
          probability = 1
        }
      }
    },
    walking_sound = sounds.oil,
    collision_box = {{-1.4, -1.4}, {1.4, 1.4}},
    selection_box = {{-0.5, -0.5}, {0.5, 0.5}},
    stage_counts = {0},
    stages =
    {
      layers =
      {
        util.sprite_load("__skewer_planet_vesta_assets__/graphics/entity/ske_tritium/tritium_vent",
        {
          priority = "extra-high",
          frame_count = 4,
          scale = 0.5
        })
      }
    },
    draw_stateless_visualisation_under_building = false,
    stateless_visualisation =
    {
      {
        count = 1,
        render_layer = "smoke",
        animation = util.sprite_load("__space-age__/graphics/entity/lithium-brine/smoke-1",
        {
          priority = "extra-high",
          frame_count = 64,
          animation_speed = 0.35,
          tint = {r=0.75, g=0.75, b=0.75,a= 1},
          scale = 0.75,
          shift = {0,-0.23}
        })
      },
      {
        count = 1,
        render_layer = "smoke",
        animation = util.sprite_load("__space-age__/graphics/entity/lithium-brine/smoke-2",
        {
          priority = "extra-high",
          frame_count = 64,
          animation_speed = 0.35,
          tint = {r=1, g=0.1, b=1,a= 0.15},
          scale = 0.75,
          shift = {0,-0.23}
        })
      },
      {
        count = 1,
        render_layer = "smoke",
        animation = {
          filename = "__space-age__/graphics/entity/fluorine-vent/fluorine-vent-gas-outer.png",
          frame_count = 47,
          line_length = 16,
          width = 90,
          height = 188,
          animation_speed = 0.5,
          shift = util.by_pixel(-2, 24 -152),
          scale = 1.5,
          tint = util.multiply_color({r=0.25, g=1, b=0.62}, 0.2)
        }
      },
      {
        count = 1,
        render_layer = "smoke",
        animation = {
          filename = "__space-age__/graphics/entity/fluorine-vent/fluorine-vent-gas-inner.png",
          frame_count = 47,
          line_length = 16,
          width = 40,
          height = 84,
          animation_speed = 0.5,
          shift = util.by_pixel(0, 24 -78),
          scale = 1.5,
          tint = util.multiply_color({r=0.57, g=0.8, b=0.76}, 0.2)
        }
      }
    },
    map_color = {0.25, 0.95, 0.24},
    map_grid = false,
  }
}