Lower spawn rate & chance

This commit is contained in:
AntumDeluge
2017-06-01 11:58:41 -07:00
committed by Jordan Irwin
parent f26ca5c2b9
commit 3f12094bdf
2 changed files with 5 additions and 6 deletions

View File

@@ -6,8 +6,8 @@ local time_hr = time_min * 60
local time_day = time_hr * 24
local spawn_cap = tonumber(minetest.settings:get("sneeker.spawn_cap")) or 25 -- Maximum number of spawns active at one time
local spawn_chance = tonumber(minetest.settings:get("sneeker.spawn_chance")) or 2 -- 50% chance of spawn
local spawn_interval = tonumber(minetest.settings:get("sneeker.spawn_interval")) or time_min * 2 -- Default interval is 2 minutes
local spawn_chance = tonumber(minetest.settings:get("sneeker.spawn_chance")) or 1000 -- 1/1000 chance of spawn
local spawn_interval = tonumber(minetest.settings:get("sneeker.spawn_interval")) or time_min * 4 -- Default interval is 4 minutes
local spawn_maxlight = tonumber(minetest.settings:get("sneeker.spawn_maxlight")) or 5 -- Maximum light of node for spawn
local spawn_chance_percent = tostring(math.floor(1 / spawn_chance * 100)) .. "%"