4 Commits

Author SHA1 Message Date
Celtic Minstrel
510dfd65df Lua Cave Mapgen: Support random chance of flipping the map
This has a similar effect to the flipx_chance and flipy_chance in the old
cave generator, except only one flip will be applied.
2016-10-27 14:20:21 -04:00
Celtic Minstrel
7c715130d4 Lua Cave Mapgen: Support [chamber]chance=
The older cave generator supported it, so the new one should too.
2016-10-27 14:20:20 -04:00
Celtic Minstrel
46e31cb462 Refactor Lua cave map generator
This accomplishes two main things:
- Creates a mapgen_helper.lua module containing functions useful for Lua map generators
- Paves the way for allowing the cave generator to produce scenarios and accept user configuration
2016-10-27 14:20:18 -04:00
gfgtdf
60d114b606 finish moving cavegen (cave_map_generator.cpp) to lua.
This map generator is used in HttT 17 and SoF 4. which needed to be updated aswell.

With this we finally have a lua generator that is used in mainline and that
can be used an an example by wml authors who want to write other map generators.

Unfortunateley there are still umc add ons in 1.12 that use
scenario_generation=cave so i didn't remove the cpp implementation yet.
2016-09-17 20:52:49 +02:00