From 5b5652c5521dd7b154f16509cab417b00cb84890 Mon Sep 17 00:00:00 2001 From: Craig Robbins Date: Fri, 22 Aug 2014 17:04:34 +1000 Subject: [PATCH] Renamed config/settings var names --- ferns/fern.lua | 10 +++++----- ferns/gianttreefern.lua | 6 +++--- ferns/horsetail.lua | 8 ++++---- ferns/init.lua | 8 ++++---- ferns/settings.lua | 30 +++++++++++++++--------------- ferns/treefern.lua | 6 +++--- 6 files changed, 34 insertions(+), 34 deletions(-) diff --git a/ferns/fern.lua b/ferns/fern.lua index 7a090b2..e54f576 100644 --- a/ferns/fern.lua +++ b/ferns/fern.lua @@ -102,9 +102,9 @@ minetest.register_node("ferns:fern_01", { -- Spawning ----------------------------------------------------------------------------------------------- -assert(abstract_ferns.config.Lady_fern == true) +assert(abstract_ferns.config.enable_lady_fern == true) -if abstract_ferns.config.Ferns_near_Tree == true then +if abstract_ferns.config.lady_ferns_near_tree == true then plantslib:register_generate_plant({ -- near trees (woodlands) surface = { "default:dirt_with_grass", @@ -132,7 +132,7 @@ if abstract_ferns.config.Ferns_near_Tree == true then ) end -if abstract_ferns.config.Ferns_near_Rock == true then +if abstract_ferns.config.lady_ferns_near_rock == true then plantslib:register_generate_plant({ -- near stone (mountains) surface = { "default:dirt_with_grass", @@ -158,7 +158,7 @@ if abstract_ferns.config.Ferns_near_Rock == true then ) end -if abstract_ferns.config.Ferns_near_Ores == true then -- this one causes a huge fps drop +if abstract_ferns.config.lady_ferns_near_ores == true then -- this one causes a huge fps drop plantslib:register_generate_plant({ -- near ores (potential mining sites) surface = { "default:dirt_with_grass", @@ -195,7 +195,7 @@ if abstract_ferns.config.Ferns_near_Ores == true then -- this one causes a huge ) end -if abstract_ferns.config.Ferns_in_Groups == true then -- this one is meant as a replacement of Ferns_near_Ores +if abstract_ferns.config.lady_ferns_in_groups == true then -- this one is meant as a replacement of Ferns_near_Ores plantslib:register_generate_plant({ surface = { "default:dirt_with_grass", diff --git a/ferns/gianttreefern.lua b/ferns/gianttreefern.lua index 9674db2..773963f 100644 --- a/ferns/gianttreefern.lua +++ b/ferns/gianttreefern.lua @@ -275,10 +275,10 @@ minetest.register_abm({ -- GENERATE GIANT TREE FERN ----------------------------------------------------------------------------------------------- -assert(abstract_ferns.config.Giant_Tree_Fern == true) +assert(abstract_ferns.config.enable_giant_treefern == true) -- in jungles -if abstract_ferns.config.Giant_Tree_Ferns_in_Jungle == true then +if abstract_ferns.config.enable_giant_treeferns_in_jungle == true then plantslib:register_generate_plant({ surface = { "default:dirt_with_grass", @@ -303,7 +303,7 @@ if abstract_ferns.config.Giant_Tree_Ferns_in_Jungle == true then end -- for oases & tropical beaches -if abstract_ferns.config.Giant_Tree_Ferns_for_Oases == true then +if abstract_ferns.config.enable_giant_treeferns_in_oases == true then plantslib:register_generate_plant({ surface = { "default:sand"--, diff --git a/ferns/horsetail.lua b/ferns/horsetail.lua index 7b480b0..6c11057 100644 --- a/ferns/horsetail.lua +++ b/ferns/horsetail.lua @@ -94,7 +94,7 @@ minetest.register_node("ferns:horsetail_04", { -- the one in inventory ----------------------------------------------------------------------------------------------- -- Spawning ----------------------------------------------------------------------------------------------- -if abstract_ferns.config.Horsetails_Spawning == true then +if abstract_ferns.config.enable_horsetails_spawning == true then plantslib:spawn_on_surfaces({ spawn_delay = 1200, spawn_plants = { @@ -125,9 +125,9 @@ end -- Generating ----------------------------------------------------------------------------------------------- -assert(abstract_ferns.config.Horsetails == true) +assert(abstract_ferns.config.enable_horsetails == true) -if abstract_ferns.config.Horsetails_on_Grass == true then +if abstract_ferns.config.enable_horsetails_on_grass == true then plantslib:register_generate_plant({ surface = { "default:dirt_with_grass", @@ -158,7 +158,7 @@ if abstract_ferns.config.Horsetails_on_Grass == true then ) end -if abstract_ferns.config.Horsetails_on_Stony == true then +if abstract_ferns.config.enable_horsetails_on_stones == true then plantslib:register_generate_plant({ surface = { "default:gravel", -- roots go deep diff --git a/ferns/init.lua b/ferns/init.lua index 1614223..ae45d90 100644 --- a/ferns/init.lua +++ b/ferns/init.lua @@ -10,19 +10,19 @@ abstract_ferns = {} dofile(minetest.get_modpath("ferns").."/settings.lua") -if abstract_ferns.config.Lady_fern == true then +if abstract_ferns.config.enable_lady_fern == true then dofile(minetest.get_modpath("ferns").."/fern.lua") end -if abstract_ferns.config.Horsetails == true then +if abstract_ferns.config.enable_horsetails == true then dofile(minetest.get_modpath("ferns").."/horsetail.lua") end -if abstract_ferns.config.Tree_Fern == true then +if abstract_ferns.config.enable_treefern == true then dofile(minetest.get_modpath("ferns").."/treefern.lua") end -if abstract_ferns.config.Giant_Tree_Fern == true then +if abstract_ferns.config.enable_giant_treefern == true then dofile(minetest.get_modpath("ferns").."/gianttreefern.lua") end diff --git a/ferns/settings.lua b/ferns/settings.lua index ce9cbc7..8254fcf 100644 --- a/ferns/settings.lua +++ b/ferns/settings.lua @@ -16,28 +16,28 @@ abstract_ferns.config = {} -- Which plants should generate/spawn? -abstract_ferns.config.Lady_fern = true -abstract_ferns.config.Horsetails = true -abstract_ferns.config.Tree_Fern = true -abstract_ferns.config.Giant_Tree_Fern = true +abstract_ferns.config.enable_lady_fern = true +abstract_ferns.config.enable_horsetails = true +abstract_ferns.config.enable_treefern = true +abstract_ferns.config.enable_giant_treefern = true -- Where should they generate/spawn? (if they generate/spawn) -- -- Lady-Fern -abstract_ferns.config.Ferns_near_Tree = true -abstract_ferns.config.Ferns_near_Rock = true -abstract_ferns.config.Ferns_near_Ores = true -- if there's a bunch of ferns there's ores nearby, this one causes a huge fps drop -abstract_ferns.config.Ferns_in_Groups = false -- this one is meant as a replacement of Ferns_near_Ores: ferns tend to generate in groups, less fps drop, no hint for nearby ores +abstract_ferns.config.lady_ferns_near_tree = true +abstract_ferns.config.lady_ferns_near_rock = true +abstract_ferns.config.lady_ferns_near_ores = true -- if there's a bunch of ferns there's ores nearby, this one causes a huge fps drop +abstract_ferns.config.lady_ferns_in_groups = false -- this one is meant as a replacement of Ferns_near_Ores: ferns tend to generate in groups, less fps drop, no hint for nearby ores -- -- Horsetails -abstract_ferns.config.Horsetails_Spawning = false -- horsetails will grow in already explored areas, over time, near water or gravel -abstract_ferns.config.Horsetails_on_Grass = true -- on dirt with grass and swamp (sumpf mod) -abstract_ferns.config.Horsetails_on_Stony = true -- on gravel, mossy cobble and silex (stoneage mod) +abstract_ferns.config.enable_horsetails_spawning = false -- horsetails will grow in already explored areas, over time, near water or gravel +abstract_ferns.config.enable_horsetails_on_grass = true -- on dirt with grass and swamp (sumpf mod) +abstract_ferns.config.enable_horsetails_on_stones = true -- on gravel, mossy cobble and silex (stoneage mod) -- -- Tree_Fern -abstract_ferns.config.Tree_Ferns_in_Jungle = true -abstract_ferns.config.Tree_Ferns_for_Oases = true -- for oases and tropical beaches +abstract_ferns.config.enable_treeferns_in_jungle = true +abstract_ferns.config.enable_treeferns_in_oases = true -- for oases and tropical beaches -- -- Giant_Tree_Fern -abstract_ferns.config.Giant_Tree_Ferns_in_Jungle = true -abstract_ferns.config.Giant_Tree_Ferns_for_Oases = true -- for oases and tropical beaches +abstract_ferns.config.enable_giant_treeferns_in_jungle = true +abstract_ferns.config.enable_giant_treeferns_in_oases = true -- for oases and tropical beaches diff --git a/ferns/treefern.lua b/ferns/treefern.lua index 01e2d2c..62bcd0e 100644 --- a/ferns/treefern.lua +++ b/ferns/treefern.lua @@ -189,10 +189,10 @@ minetest.register_abm({ -- GENERATE TREE FERN ----------------------------------------------------------------------------------------------- -assert(abstract_ferns.config.Tree_Fern == true) +assert(abstract_ferns.config.enable_treefern == true) -- in jungles -if abstract_ferns.config.Tree_Ferns_in_Jungle == true then +if abstract_ferns.config.enable_treeferns_in_jungle == true then plantslib:register_generate_plant({ surface = { "default:dirt_with_grass", @@ -220,7 +220,7 @@ if abstract_ferns.config.Tree_Ferns_in_Jungle == true then end -- for oases & tropical beaches -if abstract_ferns.config.Tree_Ferns_for_Oases == true then +if abstract_ferns.config.enable_treeferns_in_oases == true then plantslib:register_generate_plant({ surface = { "default:sand"--,