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 31, 2016
1 parent 3c8f76f commit aa71cca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/lua/cave_map_generator.lua
Expand Up @@ -30,9 +30,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 aa71cca

Please sign in to comment.