Skip to content

Commit

Permalink
Lua Cave Mapgen: Allow a chamber's existence to depend on number of p…
Browse files Browse the repository at this point in the history
…layers
  • Loading branch information
CelticMinstrel committed Oct 31, 2016
1 parent aa71cca commit 3cb4126
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions data/lua/cave_map_generator.lua
Expand Up @@ -49,6 +49,10 @@ function callbacks.generate_map(params)
params.chance = 0
goto continue
end
if type(chamber.require_player) == "number" and chamber.require_player > params.nplayers then
params.chance = 0
goto continue
end
-- Ditto, set it to 100
params.chance = 100
local locs_set = LS.create()
Expand Down

0 comments on commit 3cb4126

Please sign in to comment.