mirror of
https://github.com/FaceDeer/dfcaverns.git
synced 2025-07-15 23:10:28 +02:00
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:
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
0
df_farming/growth_conditions.lua
Normal file
0
df_farming/growth_conditions.lua
Normal 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")
|
@ -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
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
local S = df_farming.S
|
||||
local S = minetest.get_translator(minetest.get_current_modname())
|
||||
|
||||
-----------------------------------------------------------------------
|
||||
-- Plants
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user