forked from Mirrorlandia_minetest/mod-sneeker
Change settings naming convention from 'sneeker_*' to 'sneeker.*'
This commit is contained in:
parent
517c7afd06
commit
43bfded8b2
@ -1,5 +1,5 @@
|
||||
-- Settings for sneeker mod
|
||||
|
||||
|
||||
sneeker.debug = minetest.settings:get_bool("sneeker_debug", false)
|
||||
sneeker.spawn_cap = tonumber(minetest.settings:get("sneeker_spawn_cap")) or 50
|
||||
sneeker.debug = minetest.settings:get_bool("sneeker.debug", false)
|
||||
sneeker.spawn_cap = tonumber(minetest.settings:get("sneeker.spawn_cap")) or 50
|
||||
|
@ -1,12 +1,12 @@
|
||||
# Logs debug output.
|
||||
sneeker_debug (Log debug output) bool false
|
||||
sneeker.debug (Log debug output) bool false
|
||||
|
||||
# Sets maximum number of spawns that can exist in world.
|
||||
sneeker_spawn_cap (Maximum spawns) int 50
|
||||
sneeker.spawn_cap (Maximum spawns) int 50
|
||||
|
||||
# Sets possibility for spawn.
|
||||
sneeker_spawn_chance (Spawn chance) int 18000
|
||||
sneeker.spawn_chance (Spawn chance) int 18000
|
||||
|
||||
# Sets frequency of spawn chance.
|
||||
# Default 1200 is equivalent to 20 minutes (60 * 40).
|
||||
sneeker_spawn_interval (Spawn interval) int 2400
|
||||
sneeker.spawn_interval (Spawn interval) int 2400
|
||||
|
@ -5,8 +5,8 @@ local time_min = 60
|
||||
local time_hr = time_min * 60
|
||||
local time_day = time_hr * 24
|
||||
|
||||
local spawn_chance = tonumber(minetest.settings:get("sneeker_spawn_chance")) or 18000
|
||||
local spawn_interval = tonumber(minetest.settings:get("sneeker_spawn_interval")) or time_min * 40 -- Default interval is 40 minutes
|
||||
local spawn_chance = tonumber(minetest.settings:get("sneeker.spawn_chance")) or 18000
|
||||
local spawn_interval = tonumber(minetest.settings:get("sneeker.spawn_interval")) or time_min * 40 -- Default interval is 40 minutes
|
||||
|
||||
if minetest.settings:get_bool("log_mods", false) then
|
||||
sneeker.log("Spawn chance: " .. tostring(spawn_chance) .. " (1/" .. tostring(spawn_chance) .. ")")
|
||||
|
Loading…
Reference in New Issue
Block a user