angelsmods.functions.add_resource(
  "make",
  {
    name = "angels-natural-gas",
    order = "c-b-b",
    sheet = 2,
    infinite = true,
    glow = false,
    var = 1,
    map_color = {r = 0.70, g = 0.90, b = 0.60},
    tint = {r = 0.70, g = 0.90, b = 0.60},
    mining_time = 1,
    type = "fluid",
    category = "basic-fluid",
    -- normal = 10000,
    -- maximum = 50000,
    output_name = "gas-natural-1",
    output_min = 20,
    output_max = 20,
    icon = "__angelspetrochem__/graphics/icons/gas.png",
    icon_size = 64,
    icon_mipmaps = 1,
    stage_counts = {0},
    autoplace = {
      starting_area = false,
      order = "c-b",
      -- resource_index = 28,
      base_density = 8,
      regular_rq_factor_multiplier = 1,
      starting_rq_factor_multiplier = 1,
      base_spots_per_km2 = 1.8,
      random_probability = 1 / 48,
      random_spot_size_minimum = 1,
      random_spot_size_maximum = 1,
      additional_richness = 10000,
      richness_post_multiplier = 0.03
    }
  }
)

-- data:extend(
-- {
-- {
-- type = "noise-layer",
-- name = "angels-natural-gas"
-- },
-- {
-- type = "autoplace-control",
-- name = "angels-natural-gas",
-- richness = true,
-- order = "b-e",
-- category = "resource"
-- },
-- {
-- type = "resource",
-- name = "angels-natural-gas",
-- icon = "__base__/graphics/icons/crude-oil.png",
-- icon_size = 32,
-- flags = {"placeable-neutral"},
-- category = "basic-fluid",
-- order="a-b-a",
-- infinite = true,
-- highlight = true,
-- minimum = 20000,
-- normal = 100000,
-- infinite_depletion_amount = 10,
-- resource_patch_search_radius = 12,
-- minable =
-- {
-- hardness = 1,
-- mining_time = 1,
-- results =
-- {
-- {
-- type = "fluid",
-- name = "gas-natural-1",
-- amount_min = 20,
-- amount_max = 20,
-- probability = 1
-- },
-- }
-- },
-- collision_box = {{ -1.4, -1.4}, {1.4, 1.4}},
-- selection_box = {{ -0.5, -0.5}, {0.5, 0.5}},
-- autoplace =
-- {
-- order = "b",
-- control = "angels-natural-gas",
-- sharpness = 0.99,
-- max_probability = 0.02,
-- richness_base = 240000,
-- richness_multiplier = 300000,
-- richness_multiplier_distance_bonus = 1500,
-- coverage = 0.001 / 3,
-- peaks =
-- {
-- {
-- noise_layer = "angels-natural-gas",
-- noise_octaves_difference = -0.5,
-- noise_persistence = 0.4,
-- }
-- }
-- },
-- stage_counts = {0},
-- stages =
-- {
-- sheet =
-- {
-- filename = "__angelspetrochem__/graphics/entity/patches/gas.png",
-- tint = {r = 0.70, g = 0.90, b = 0.60},
-- priority = "extra-high",
-- width = 64,
-- height = 64,
-- frame_count = 4,
-- variation_count = 1
-- }
-- },
-- map_color = {r = 0.70, g = 0.90, b = 0.60},
-- map_grid = false
-- }
-- })
