mirror of
https://github.com/FaceDeer/dfcaverns.git
synced 2024-12-25 02:10:37 +01:00
let seeds be planted on furrowed non-wet soil
This commit is contained in:
parent
fe203d0ca0
commit
c7efa95f42
@ -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 = {
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user