let seeds be planted on furrowed non-wet soil

This commit is contained in:
FaceDeer 2023-02-04 21:07:25 -07:00
parent fe203d0ca0
commit c7efa95f42
2 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,7 @@ df_farming.growth_permitted = {}
local growable = {
[df_dependencies.node_name_dirt_wet] = 1,
[df_dependencies.node_name_dirt_furrowed] = 0.2,
[df_dependencies.node_name_dirt] = 0.2,
}
local sand = {

View File

@ -82,6 +82,7 @@ df_farming.plant_timer = function(pos, plantname, elapsed)
if not next_stage_time then return end
local growable_factor = df_farming.growth_factor(plantname, pos) or 1
if growable_factor == true then growable_factor = 1 end -- backwards compatibility in case other mods are overriding growth factor to "true/false"
next_stage_time = (next_stage_time + math.random(next_stage_time * -0.1, next_stage_time * 0.1)) / growable_factor