require "data/core/functions/prefix"
require "data/core/functions/colors"
require "data/core/functions/amounts"

local Data_Table = {
	{
		Name = "solar-energy",
		Icon = {{icon = "__base__/graphics/technology/solar-energy.png"}},
		Pre_Req_Above = 3,
		Tiers = 10,
		Count = 100,
		Military = false,
	},
	{
		Name = "steam-energy",
		Icon = {{icon = "__base__/graphics/technology/electric-energy-distribution.png"}, {icon = "__base__/graphics/technology/engine.png"}},
		Pre_Req_Above = 2,
		Tiers = 10,
		Count = 150,
		Military = false,
	},
	{
		Name = "nuclear-energy",
		Icon = {{icon = "__base__/graphics/technology/nuclear-power.png"}},
		Pre_Req_Above = 2,
		Tiers = 10,
		Count = 500,
		Military = false,
	},
}

for k,v in pairs(Data_Table) do
	for i = 1,v.Tiers do
		if i == 1 then
			if data.raw.technology[v.Name] or data.raw.technology[v.Name.."-1"] then
				-- do nothing
			else
				DyWorld_Tech_Add(v, i)
			end		
		elseif i >= 2 then
			if not data.raw.technology[v.Name.."-"..i] then
				DyWorld_Tech_Add(v, i)
			end	
		end
	end
end
