5de517dbe9
Mods can now nodecore.register_dungeongen(def) similar to how mapgen_shared works, except func is run for each (pos, node) in dungeons. This tries to catch all dungeons as soon as possible, but some nodes may experience arbitrary delays before they're processed. We hope this won't be a problem in practice because dungeons should usually generate on the periphery of view range and have plenty of time to process before they arrive at the player's current location. This API could be used in theory to customize the materials used in dungeons or add treasures.
17 lines
369 B
Lua
17 lines
369 B
Lua
-- LUALOCALS < ---------------------------------------------------------
|
|
local include, nodecore
|
|
= include, nodecore
|
|
-- LUALOCALS > ---------------------------------------------------------
|
|
|
|
nodecore.amcoremod()
|
|
|
|
include('api')
|
|
include('node')
|
|
include('dungeon')
|
|
include('biome')
|
|
include('strata')
|
|
include('ore')
|
|
include('abm')
|
|
include('ambiance')
|
|
include('hints')
|