Set mob spawn chance to 2.5 and fix player respawn msg

This commit is contained in:
Wuzzy 2019-02-11 15:49:36 +01:00
parent 9e57828958
commit 5a7952bf92
3 changed files with 21 additions and 15 deletions

View file

@ -65,7 +65,7 @@ local remove_far = false
local difficulty = tonumber(minetest.settings:get("mob_difficulty")) or 1.0
local show_health = false
local max_per_block = tonumber(minetest.settings:get("max_objects_per_block") or 99)
local mobs_spawn_chance = tonumber(minetest.settings:get("mobs_spawn_chance") or 1)
local mobs_spawn_chance = tonumber(minetest.settings:get("mobs_spawn_chance") or 2.5)
-- Peaceful mode message so players will know there are no monsters
if peaceful_only then
@ -3335,7 +3335,7 @@ function mobs:spawn_specific(name, nodes, neighbors, min_light, max_light,
nodenames = nodes,
neighbors = neighbors,
interval = interval,
chance = max(1, (chance * mobs_spawn_chance)),
chance = floor(max(1, chance * mobs_spawn_chance)),
catch_up = false,
action = spawn_abm_action,
})