local constructionutil = require "constructionutil" local transf = require "transf" local vec3 = require "vec3" function data() return { type = "ASSET_DEFAULT", description = { name = _("gezielte Bäume II"), description = _("kein Zufall mehr bei Bäumen") }, availability = { }, buildMode = "BRUSH", categories = { "tree" }, order = 27524, skipCollision = false, autoRemovable = true, params = { {key = "tree_no_random_2", name = _("Baum Variante"), values = { _("J"),_("K"),_("L"),_("M"),_("N"),_("O"),_("P"),_("Q"),_("R"),} }, }, updateFn = function(params) local result = { } result.models = { } if params.tree_no_random_2 == 0 then result.models[#result.models+1] = { id = "tree/douglasfir_rt_1.mdl", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 } } ; result.cost = 200; end if params.tree_no_random_2 == 1 then result.models[#result.models+1] = { id = "tree/douglasfir_rt_2.mdl", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 } } ; result.cost = 200; end if params.tree_no_random_2 == 2 then result.models[#result.models+1] = { id = "tree/douglasfir_rt_3.mdl", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 } } ; result.cost = 200; end if params.tree_no_random_2 == 3 then result.models[#result.models+1] = { id = "tree/easternredcedar_rt_1.mdl", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 } } ; result.cost = 200; end if params.tree_no_random_2 == 4 then result.models[#result.models+1] = { id = "tree/easternredcedar_rt_2.mdl", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 } } ; result.cost = 200; end if params.tree_no_random_2 == 5 then result.models[#result.models+1] = { id = "tree/easternwhitepine_rt_1.mdl", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 } } ; result.cost = 200; end if params.tree_no_random_2 == 6 then result.models[#result.models+1] = { id = "tree/easternwhitepine_rt_2.mdl", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 } } ; result.cost = 200; end if params.tree_no_random_2 == 7 then result.models[#result.models+1] = { id = "tree/easternwhitepine_rt_3.mdl", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 } } ; result.cost = 200; end if params.tree_no_random_2 == 8 then result.models[#result.models+1] = { id = "tree/europeanlinden_rt_1.mdl", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 } } ; result.cost = 200; end if params.tree_no_random_2 == 9 then result.models[#result.models+1] = { id = "tree/europeanlinden_rt_2.mdl", transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 } } ; result.cost = 200; end result.terrainAlignmentLists = { { type = "EQUAL", faces = { } } } return result end } end