forked from Mirrorlandia_minetest/mod-sneeker
Change settings naming convention from 'sneeker_*' to 'sneeker.*'
This commit is contained in:
parent
b5c7aeb15d
commit
9d7c566fdb
@ -1,5 +1,5 @@
|
||||
-- Settings for sneeker mod
|
||||
|
||||
|
||||
sneeker.debug = minetest.setting_get('sneeker_debug') or false
|
||||
sneeker.spawn_cap = minetest.setting_get('sneeker_spawn_cap') or 50
|
||||
sneeker.debug = minetest.setting_get('sneeker.debug') or false
|
||||
sneeker.spawn_cap = minetest.setting_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 = minetest.setting_get('sneeker_spawn_chance') or 18000
|
||||
local spawn_interval = minetest.setting_get('sneeker_spawn_interval') or time_min * 40 -- Default interval is 40 minutes
|
||||
local spawn_chance = minetest.setting_get('sneeker.spawn_chance') or 18000
|
||||
local spawn_interval = minetest.setting_get('sneeker.spawn_interval') or time_min * 40 -- Default interval is 40 minutes
|
||||
|
||||
if minetest.setting_getbool('log_mods') then
|
||||
sneeker.log('Spawn chance: ' .. tostring(spawn_chance) .. ' (1/' .. tostring(spawn_chance) .. ')')
|
||||
|
Loading…
Reference in New Issue
Block a user