12 Commits

Author SHA1 Message Date
FaceDeer
7d0b7e3d4b cleanup with luacheck, remove old depends and description files 2023-09-29 20:15:23 -06:00
FaceDeer
c5f46e113e make legacy code not crash when default mod isn't present. Remove the old cave registration code, it's been years and this is easier than fixing it. 2022-08-04 11:45:24 -06:00
FaceDeer
40215b772e remove duplicated legacy code, add a get_cavern_value method, and store registered layers by name 2022-07-23 20:44:52 -06:00
FaceDeer
2ad5864a11 switch to native translator for legacy nodes 2020-02-17 22:31:58 -07:00
FaceDeer
6940ae1585 remove deprecated function calls 2020-01-30 17:32:21 -07:00
FaceDeer
bd5b1d22c8
"Overgenerate" caverns to open up border regions (#11)
Previously, only nodes strictly within the map block were being carved out as open space. This meant that multi-node decorations (such as giant mushrooms) would collide with walls and ceilings that would be carved out by adjacent block generation later, leaving them sliced off.

Now Subterrane carves out border regions too. Make note of the is_ground_content function, put all your decoration nodes into this to prevent them from being removed. Can't rely on just is_ground_function node properties for most situations, it's too simplistic.
2020-01-27 20:34:30 -07:00
FaceDeer
28d1aa3634 math.random can have trouble when given more than a 32 bit maxint range 2019-07-09 23:55:24 -06:00
FaceDeer
d10e0a6e5a
Major rewrite of the API to support more complex decoration methods. Old API still available in legacy.lua
This major rewrite grew out of a desire to be able to have stalactites placed according to a global noise function, which meant the whole decoration approach had to be changed to allow for data to be efficiently carried over between nodes. In the process I cleaned up a lot of old inefficient code, some of it written back when I was still learning LUA in general.

The legacy.lua file contains the old deprecated code so in theory any mods depending on subterrane should still function as they did before.
2018-12-29 12:56:30 -07:00
FaceDeer
3f5abecef7 fix legacy function redirection 2018-05-25 23:56:18 -06:00
FaceDeer
c3fd6f1bed differentiate legacy stalagmite function from newer one 2018-05-25 23:52:18 -06:00
FaceDeer
c2000ac612 enable legacy dripstone by default, at least for now. 2018-05-24 00:30:53 -06:00
FaceDeer
4aaeaabc5f adding the option to define the old dripstone nodes 2018-05-23 23:54:23 -06:00