forestry/forestry_bees/bee_genes.lua

31 lines
1.1 KiB
Lua

forestry_bees.bee_base_genes = {}
local function register_base_gene(bee_type, base_genes)
forestry_bees.bee_base_genes[bee_type] = base_genes
end
function forestry_bees.return_all_genes_double(bee_type)
local output = {type_gene = {bee_type, bee_type}}
for key,value in pairs(forestry_bees.bee_base_genes[bee_type]) do
output[key] = {value, value}
end
return output
end
function forestry_bees.return_all_genes(bee_type)
local output = {type_gene = bee_type}
for key,value in pairs(forestry_bees.bee_base_genes[bee_type]) do
output[key] = value
end
return output
end
function forestry_bees.return_genes(bee_type)
return forestry_bees.bee_base_genes[bee_type]
end
register_base_gene("forest",{fertility = 3, lifespan = 10})
register_base_gene("meadow",{fertility = 2, lifespan = 10})
register_base_gene("common",{fertility = 2, lifespan = 10})
register_base_gene("cultivated",{fertility = 2, lifespan = 10})
register_base_gene("noble",{fertility = 2, lifespan = 30})
register_base_gene("diligent",{fertility = 2, lifespan = 30})