This has a similar effect to the flipx_chance and flipy_chance in the old cave generator, except only one flip will be applied.
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