Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Dungeon loot: Reduce maximum processed rooms to 8
  • Loading branch information
paramat committed Jan 23, 2018
1 parent 41a4073 commit ee6d2f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mods/dungeon_loot/mapgen.lua
Expand Up @@ -131,8 +131,8 @@ minetest.register_on_generated(function(minp, maxp, blockseed)
local rand = PcgRandom(noise3d_integer(noise, poslist[1]))

local candidates = {}
-- process at most 16 rooms to keep runtime of this predictable
local num_process = math.min(#poslist, 16)
-- process at most 8 rooms to keep runtime of this predictable
local num_process = math.min(#poslist, 8)
for i = 1, num_process do
local room = find_walls(poslist[i])
-- skip small rooms and everything that doesn't at least have 3 walls
Expand Down

0 comments on commit ee6d2f2

Please sign in to comment.