====== BUILDING_FUNCTION_PRODUCE_TREE ====== **Category**: Asset\\ **Mod Dependency**: [[https://foundation.mod.io/foundation-ebf|Foundation EBF]] Parent class: [[api:building_function|BUILDING_FUNCTION]] ===== Properties ===== ---- ==== DefaultSpawners ==== * **Type**: ''integer'' * **Default value**: ''6'' * **The default number of spawners** ---- ==== SpawnerIncrease ==== * **Type**: ''integer'' * **Default value**: ''1'' * **The number of spawners each unique [[api:building_part|BUILDING_PART]] should add** ---- ==== SpawnerIncreaseNodeName ==== * **Type**: ''string'' * **Default value**: ''SpawnerIncrease'' * **The names of all objects belonging to [[api:building_part|BUILDING_PARTS]] increasing the number of spawners should start with this word** ---- ==== SpawnerNodeName ==== * **Type**: ''string'' * **Default value**: ''ResourceSpawner'' * **The names of all objects belonging to spawners should start with this word** ---- ==== SpawnerScaling ==== * **Type**: ''boolean'' * **Default value**: ''true'' ---- ==== SpawnerScalingSpeed ==== * **Type**: ''float'' * **Default value**: ''0.001'' ---- ==== DaysToSpawn ==== * **Type**: ''integer'' * **Default value**: ''21'' ---- ==== ResourceContainer ==== * **Type**: ''[[api:prefab|PREFAB]]'' * **Expected**: ''Asset ID'' * **Default value**: ''nil'' * **The provided prefab should have a [[api:comp_resource_container|COMP_RESOURCE_CONTAINER]] assigned to it** ---- ==== ResourceContainersPerSpawner ==== * **Type**: ''integer'' * **Default value**: ''5'' * **Recommended values 1-5 else the containers will overlap** ---- ==== ResourceContainerFallingSpeed ==== * **Type**: ''[[api:vec2f|vec2f]]'' * **Default value**: ''{ 0.4, 0.6 }'' * **Picked randomly between the two values** ----