summaryrefslogtreecommitdiff
path: root/src/mapgen/mg_biome.cpp
Commit message (Collapse)AuthorAge
* Fix thread safety of PcgRandom use in BiomeGensfan52020-05-05
|
* Fix remaining issues with mapgen scriptapisfan52020-05-05
|
* Give the Mapgen on each EmergeThread its own Biome/Ore/Deco/SchemManager copysfan52020-05-05
|
* Allow ObjDefManager instances to be clonedsfan52020-05-05
|
* Allow multiple cave liquids in a biome definition (#8481)Paramat2019-05-18
| | | | | | | | | | | | | This allows games to specify biome cave liquids and avoid the old hardcoded behaviour, but preserves the ability to have multiple cave liquids in one biome, such as lava and water. When multiple cave liquids are defined by the biome definition, make each entire cave use a randomly chosen liquid, instead of every small cave segment using a randomly chosen liquid. Plus an optimisation: Don't place nodes if cave liquid is defined as 'air'
* Biome API: Fix absent water decorations and dust, in deep water (#7470)Paramat2018-06-21
| | | | | | | | | | | | Previously, the biomemap was 'BIOME_NONE' for a mapchunk column if a stone surface was not found in it, causing water surface decorations and water surface dust to fail. Store the biome ID of the biome calculated at a water surface and add it to the biomemap if the biomemap is 'BIOME_NONE' for the mapchunk column. The biome calculated at a stone surface still has priority for the biomemap entry, as it should. Edit an incorrect comment.
* Mapgen flags: Add 'biomes' global mapgen flag (#7355)Paramat2018-06-08
| | | | | | | | | Previously the only way to disable biomes was to 'clear' the registered biomes in a mod, but this method causes large amounts of unnecessary processing: 1. Calculation of 4 2D noises. 2. Looping through all nodes of a mapchunk replacing nodes with identical nodes. The new flag disables those operations.
* Vertical biome blend: Tune PRNG seed for finer detail (#7329)Paramat2018-05-14
|
* Node resolver: Make error on fallback optional, disable for mapgen aliasesParamat2018-04-20
|
* Biome API / dungeons: Add biome-defined dungeon nodesParamat2018-04-07
| | | | | | | | | | Add new biome fields 'node_dungeon', 'node_dungeon_alt', 'node_dungeon_stair'. If 'node_dungeon' is not defined dungeons fall back to classic behaviour. Remove messy and imprecise dungeon material code from 'generateBiomes()'. Code deciding dungeon materials is now in 'generateDungeons()' and uses the biome at mapchunk centre for more precision. Remove hardcoded 'MG_STONE' types as long intended.
* Biome API / cavegen: Add definable cave liquid for a biome (#7192)Paramat2018-04-05
| | | | Add 'node_cave_liquid' as a new field in biome registration. If field is absent cave liquids fall back to classic behaviour.
* Biomes: Fix vertical biome blendparamat2018-03-16
|
* Biome API: Add 'get_biome_name(biome_id)' APIparamat2018-03-11
| | | | Change name of default biome to a more suitable lowercase 'default'.
* Biomes: Add 'min_pos'/'max_pos' xyz biome limitsparamat2018-03-09
| | | | 'y_min' and 'y_max' are still accepted for compatibility.
* Vertical biome blend: Tune blend patternsparamat2018-02-20
|
* Biomes: Add 'get heat', 'get humidity', 'get biome data' APIsparamat2018-01-16
| | | | | 'get biome data' returns biome id, heat and humidity. Clean up nearby lines in lua_api.txt.
* Mapgen folder: Update and improve copyright information of filesparamat2018-01-15
|
* Biomes: Add vertical biome blend (#6853)Paramat2018-01-05
| | | | Add 'vertical blend' parameter to biome registration that defines how many nodes above the biome's 'y max' limit the blend will extend.
* Move files to subdirectories (#6599)Vitaliy2017-11-08
* Move files around