initial work for restricted plant growth. split out growth conditions for trees, and reworked torchspine to not use ABMs while I was at it.

This commit is contained in:
FaceDeer
2022-07-22 18:36:45 -06:00
parent f23d4115bd
commit 46765df3ef
38 changed files with 270 additions and 193 deletions

View File

@ -1,4 +1,4 @@
local S = df_farming.S
local S = minetest.get_translator(minetest.get_current_modname())
local wheat_grow_time = df_farming.config.plant_growth_time * df_farming.config.cave_wheat_delay_multiplier / 8

View File

@ -1,4 +1,4 @@
local S = df_farming.S
local S = minetest.get_translator(minetest.get_current_modname())
local register_cooking_recipes = function(def)
local prefix = def.prefix

View File

@ -1,4 +1,4 @@
local S = df_farming.S
local S = minetest.get_translator(minetest.get_current_modname())
local dimple_grow_time = df_farming.config.plant_growth_time * df_farming.config.dimple_cup_delay_multiplier / 4

View File

@ -4,7 +4,7 @@ if not minetest.get_modpath("doc") then
return
end
local S = df_farming.S
local S = minetest.get_translator(minetest.get_current_modname())
df_farming.doc.simple_meal_desc = S("A meal made from the admixture of two ingredients, it keeps well but are not a rich source of nutrients.")
df_farming.doc.simple_meal_usage = nil

View File

View File

@ -1,7 +1,6 @@
df_farming = {}
local modname = minetest.get_current_modname()
df_farming.S = minetest.get_translator(modname)
local modpath = minetest.get_modpath(modname)
--load companion lua files
@ -18,3 +17,4 @@ dofile(modpath.."/plump_helmet.lua")
dofile(modpath.."/quarry_bush.lua")
dofile(modpath.."/sweet_pod.lua")
dofile(modpath.."/cooking.lua")
dofile(modpath.."/growth_conditions.lua")

View File

@ -1,4 +1,4 @@
local S = df_farming.S
local S = minetest.get_translator(minetest.get_current_modname())
local pig_tail_grow_time = df_farming.config.plant_growth_time * df_farming.config.pig_tail_delay_multiplier / 8

View File

@ -1,4 +1,4 @@
local S = df_farming.S
local S = minetest.get_translator(minetest.get_current_modname())
-----------------------------------------------------------------------
-- Plants

View File

@ -1,4 +1,4 @@
local S = df_farming.S
local S = minetest.get_translator(minetest.get_current_modname())
local displace_x = 0.125
local displace_z = 0.125

View File

@ -1,4 +1,4 @@
local S = df_farming.S
local S = minetest.get_translator(minetest.get_current_modname())
local quarry_grow_time = df_farming.config.plant_growth_time * df_farming.config.quarry_bush_delay_multiplier / 5

View File

@ -1,4 +1,4 @@
local S = df_farming.S
local S = minetest.get_translator(minetest.get_current_modname())
local sweet_pod_grow_time = df_farming.config.plant_growth_time * df_farming.config.sweet_pod_delay_multiplier / 6