diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2017-12-30 19:39:42 +0000 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2017-12-30 19:39:42 +0000 |
commit | 93ca01de003d132cb09c73740faf7e5df229f11a (patch) | |
tree | 9c990fa3eec9b32ad3e4a7de69b605a03574f33b /api.lua | |
parent | e5baaa5e130a0b74f75c9f191d8d4dbf82c551e8 (diff) |
changed 'mob_spawn_amend' to 'mob_chance_multiplier'
Diffstat (limited to 'api.lua')
-rw-r--r-- | api.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -61,7 +61,7 @@ local remove_far = minetest.settings:get_bool("remove_far_mobs") local difficulty = tonumber(minetest.settings:get("mob_difficulty")) or 1.0 local show_health = minetest.settings:get_bool("mob_show_health") ~= false local max_per_block = tonumber(minetest.settings:get("max_objects_per_block") or 99) -local mob_spawn_amend = tonumber(minetest.settings:get("mob_spawn_amend") or 1) +local mob_chance_multiplier = tonumber(minetest.settings:get("mob_chance_multiplier") or 1) -- Peaceful mode message so players will know there are no monsters if peaceful_only then @@ -2835,7 +2835,7 @@ function mobs:spawn_specific(name, nodes, neighbors, min_light, max_light, nodenames = nodes, neighbors = neighbors, interval = interval, - chance = (chance * mob_spawn_amend), + chance = min(1, (chance * mob_chance_multiplier)), catch_up = false, action = function(pos, node, active_object_count, active_object_count_wider) |