Rename setting: mob_spawn_multiplier → mobs_spawn_chance

This commit is contained in:
Wuzzy 2019-02-09 03:11:15 +01:00
parent 3ec7914962
commit d50ff26118
2 changed files with 3 additions and 3 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 mob_chance_multiplier = tonumber(minetest.settings:get("mob_chance_multiplier") or 1)
local mobs_spawn_chance = tonumber(minetest.settings:get("mobs_spawn_chance") or 1)
-- 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 * mob_chance_multiplier)),
chance = max(1, (chance * mobs_spawn_chance)),
catch_up = false,
action = spawn_abm_action,
})

View File

@ -62,7 +62,7 @@ mobs_spawn (Spawn mobs naturally) bool true
# Controls the overall amount of mobs that spawn. The higher the number,
# the less often mobs will spawn. This does not affect mob spawners.
mob_chance_multiplier (Mob spawn multiplier) float 1.0 0.0
mobs_spawn_chance (Mob spawn chance) float 1.0 0.0
# If enabled, only peaceful mobs will appear naturally. This does not
# affect mob spawners.