forked from VoxeLibre/VoxeLibre
Rename setting: mob_spawn_multiplier → mobs_spawn_chance
This commit is contained in:
parent
3ec7914962
commit
d50ff26118
|
@ -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,
|
||||
})
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue