Skip to content

Commit

Permalink
Lua Cave Mapgen: Allow alternate clear and village terrains
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Oct 24, 2018
1 parent df0bcc3 commit c28abf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/lua/cave_map_generator.lua
Expand Up @@ -29,9 +29,9 @@ function callbacks.generate_map(params)
end
local r = random(1000)
if r <= params.village_density then
map:set_tile(x, y, params.terrain_village)
map:set_tile(x, y, helper.rand(params.terrain_village))
else
map:set_tile(x, y, params.terrain_clear)
map:set_tile(x, y, helper.rand(params.terrain_clear))
end
end

Expand Down

0 comments on commit c28abf7

Please sign in to comment.