some configuration modifications

This commit is contained in:
Joachim Stolberg 2019-09-15 23:30:04 +02:00
parent 222c8cd84c
commit 0a9b300136
5 changed files with 8 additions and 8 deletions

View File

@ -205,7 +205,7 @@ techage.register_entry_page("ta", "forceload",
S("Techage Forceload Block"), S("Techage Forceload Block"),
S("The Forceload Block keeps the corresponding area loaded and the machines operational ".. S("The Forceload Block keeps the corresponding area loaded and the machines operational "..
"as far as the player is logged in. If the player leaves the game, all areas will be unloaded.@n".. "as far as the player is logged in. If the player leaves the game, all areas will be unloaded.@n"..
"The maximum number of Forceload Blocks per player is configurable (default 16).@n".. "The maximum number of Forceload Blocks per player is configurable (default 20).@n"..
"The loaded area per block is a cube with 16 m side length (according to a Minetest area block). ".. "The loaded area per block is a cube with 16 m side length (according to a Minetest area block). "..
"Punching the block makes the area visible and invisible again."), "Punching the block makes the area visible and invisible again."),
"techage:forceload") "techage:forceload")

View File

@ -20,9 +20,9 @@ local S = techage.S
local CYCLE_TIME = 2 local CYCLE_TIME = 2
local PWR_PERF = 60 local PWR_PERF = 60
local GRVL_CAPA = 1333 local GRVL_CAPA = 700
local PWR_CAPA = { local PWR_CAPA = {
[3] = GRVL_CAPA * 3 * 3 * 3, -- ~0.5 days [3] = GRVL_CAPA * 3 * 3 * 3, -- 18900 Cyc = 630 min = 31.5 Tage bei einem ku, oder 31,5 * 24 kuh = 756 kuh = 12,6 h bei 60 ku
[4] = GRVL_CAPA * 5 * 5 * 5, -- ~2.5 days [4] = GRVL_CAPA * 5 * 5 * 5, -- ~2.5 days
[5] = GRVL_CAPA * 7 * 7 * 7, -- ~6 days [5] = GRVL_CAPA * 7 * 7 * 7, -- ~6 days
} }

View File

@ -93,10 +93,10 @@ local function check_volume(pos, in_dir, owner)
chat(owner, "one window maximum") chat(owner, "one window maximum")
return false return false
elseif node_tbl["default:obsidian_glass"] + node_tbl["basic_materials:concrete_block"] ~= Numbers.shell[radius] then elseif node_tbl["default:obsidian_glass"] + node_tbl["basic_materials:concrete_block"] ~= Numbers.shell[radius] then
chat(owner, "wrong numbers of shell nodes") chat(owner, "wrong number of shell nodes")
return false return false
elseif node_tbl["default:gravel"] + node_tbl["techage:glow_gravel"] ~= Numbers.filling[radius] then elseif node_tbl["default:gravel"] + node_tbl["techage:glow_gravel"] ~= Numbers.filling[radius] then
chat(owner, "wrong numbers of gravel nodes") chat(owner, "wrong number of gravel nodes")
return false return false
end end
else else

View File

@ -11,7 +11,7 @@ else
techage = { techage = {
NodeDef = {}, -- node registration info NodeDef = {}, -- node registration info
} }
techage.max_num_forceload_blocks = tonumber(minetest.setting_get("techage_max_num_forceload_blocks")) or 16 techage.max_num_forceload_blocks = tonumber(minetest.setting_get("techage_max_num_forceload_blocks")) or 24
techage.basalt_stone_enabled = minetest.setting_get("techage_basalt_stone_enabled") == "true" techage.basalt_stone_enabled = minetest.setting_get("techage_basalt_stone_enabled") == "true"
techage.ore_rarity = tonumber(minetest.setting_get("techage_ore_rarity")) or 1 techage.ore_rarity = tonumber(minetest.setting_get("techage_ore_rarity")) or 1
techage.modified_recipes_enabled = minetest.setting_get("techage_modified_recipes_enabled") == "true" techage.modified_recipes_enabled = minetest.setting_get("techage_modified_recipes_enabled") == "true"

View File

@ -1,5 +1,5 @@
# Maximim number of Forceload Blocks per player (default 12) # Maximim number of Forceload Blocks per player (default 20)
techage_max_num_forceload_blocks (Max. number of Forceload Blocks) int 12 techage_max_num_forceload_blocks (Max. number of Forceload Blocks) int 20
# Enable Basalt Stone (and disable ore generation via cobble generator) # Enable Basalt Stone (and disable ore generation via cobble generator)
techage_basalt_stone_enabled (Basalt Stone enabled) bool false techage_basalt_stone_enabled (Basalt Stone enabled) bool false