cave_generator 
Vars | |
| biome_population | Should we populate turfs through biome datums if we have such |
|---|---|
| biome_stamp_size | Stamp size for DBP noise, aka frequency |
| birth_limit | How much neighbours does a dead cell need to become alive |
| closed_turf_types | Expanded list of the types that spawns if the turf is closed |
| death_limit | How little neighbours does a alive cell need to die |
| feature_exclusion_radius | Radius around features within which we avoid spawning other features |
| feature_spawn_chance | Base chance of spawning features |
| feature_spawn_list | Expanded list of extra features that can spawn in the area. Reads from the weighted list |
| flora_spawn_chance | Base chance of spawning flora |
| flora_spawn_list | Expanded list of flora that can spawn in the area. Reads from the weighted list |
| generated_turfs_per_biome | An associative list of biome type to the list of turfs that were
generated of that biome specifically. Helps to improve the efficiency
of biome-related operations. Is populated through
generate_terrain_with_biomes(). |
| high_heat_threshold | Noise threshold above which a biome is considered high heat |
| high_humidity_threshold | Noise threshold above which a biome is considered high humidity |
| initial_closed_chance | Chance of cells starting closed |
| medium_heat_threshold | Noise threshold above which a biome is considered medium heat |
| medium_humidity_threshold | Noise threshold above which a biome is considered medium humidity |
| megafauna_exclusion_radius | Radius around megafauna within which we avoid spawning tendrils |
| megafauna_spawn_list | Expanded list of Megafauna that can spawn in the area. Reads from the weighted list |
| mob_exclusion_radius | Radius around mobs which we avoid spawning other mobs |
| mob_spawn_chance | Base chance of spawning a mob |
| mob_spawn_list | Expanded list of mobs that can spawn in the area. Reads from the weighted list |
| mob_spawn_no_mega_list | The mob spawn list but with no megafauna markers. autogenerated |
| open_turf_types | Expanded list of the types that spawns if the turf is open |
| perlin_zoom | Used to select "zoom" level into the perlin noise, higher numbers result in slower transitions |
| possible_biomes | 2D list of all biomes based on heat and humidity combos. Associative by
BIOME_X_HEAT and then by BIOME_X_HUMIDITY (i.e.
possible_biomes[BIOME_LOW_HEAT][BIOME_LOWMEDIUM_HUMIDITY]).
Check /datum/map_generator/cave_generator/jungle for an example
of how to set it up properly. |
| shared_seed | Should all generators on the same z level use the same seeds? |
| smoothing_iterations | Amount of smoothing iterations |
| string_gen | Unique ID for this spawner |
| weighted_closed_turf_types | Weighted list of the types that spawns if the turf is closed |
| weighted_feature_spawn_list | Weighted list of extra features that can spawn in the area, such as geysers. |
| weighted_flora_spawn_list | Weighted list of flora that can spawn in the area. |
| weighted_mob_spawn_list | Weighted list of mobs that can spawn in the area. |
| weighted_open_turf_types | Weighted list of the types that spawns if the turf is open |
Procs | |
| generate_terrain_with_biomes | This proc handles including biomes in the cave generation. This is slower than
generate_terrain(), so please use it only if you actually need biomes. |
| populate_terrain_with_biomes | This handles the population of terrain with biomes. Should only be called by
populate_terrain(), if you find yourself calling this, you're probably not
doing it right. |
Var Details
biome_population 
Should we populate turfs through biome datums if we have such
biome_stamp_size 
Stamp size for DBP noise, aka frequency
birth_limit 
How much neighbours does a dead cell need to become alive
closed_turf_types 
Expanded list of the types that spawns if the turf is closed
death_limit 
How little neighbours does a alive cell need to die
feature_exclusion_radius 
Radius around features within which we avoid spawning other features
feature_spawn_chance 
Base chance of spawning features
feature_spawn_list 
Expanded list of extra features that can spawn in the area. Reads from the weighted list
flora_spawn_chance 
Base chance of spawning flora
flora_spawn_list 
Expanded list of flora that can spawn in the area. Reads from the weighted list
generated_turfs_per_biome 
An associative list of biome type to the list of turfs that were
generated of that biome specifically. Helps to improve the efficiency
of biome-related operations. Is populated through
generate_terrain_with_biomes().
high_heat_threshold 
Noise threshold above which a biome is considered high heat
high_humidity_threshold 
Noise threshold above which a biome is considered high humidity
initial_closed_chance 
Chance of cells starting closed
medium_heat_threshold 
Noise threshold above which a biome is considered medium heat
medium_humidity_threshold 
Noise threshold above which a biome is considered medium humidity
megafauna_exclusion_radius 
Radius around megafauna within which we avoid spawning tendrils
megafauna_spawn_list 
Expanded list of Megafauna that can spawn in the area. Reads from the weighted list
mob_exclusion_radius 
Radius around mobs which we avoid spawning other mobs
mob_spawn_chance 
Base chance of spawning a mob
mob_spawn_list 
Expanded list of mobs that can spawn in the area. Reads from the weighted list
mob_spawn_no_mega_list 
The mob spawn list but with no megafauna markers. autogenerated
open_turf_types 
Expanded list of the types that spawns if the turf is open
perlin_zoom 
Used to select "zoom" level into the perlin noise, higher numbers result in slower transitions
possible_biomes 
2D list of all biomes based on heat and humidity combos. Associative by
BIOME_X_HEAT and then by BIOME_X_HUMIDITY (i.e.
possible_biomes[BIOME_LOW_HEAT][BIOME_LOWMEDIUM_HUMIDITY]).
Check /datum/map_generator/cave_generator/jungle for an example
of how to set it up properly.
shared_seed 
Should all generators on the same z level use the same seeds?
smoothing_iterations 
Amount of smoothing iterations
string_gen 
Unique ID for this spawner
weighted_closed_turf_types 
Weighted list of the types that spawns if the turf is closed
weighted_feature_spawn_list 
Weighted list of extra features that can spawn in the area, such as geysers.
weighted_flora_spawn_list 
Weighted list of flora that can spawn in the area.
weighted_mob_spawn_list 
Weighted list of mobs that can spawn in the area.
weighted_open_turf_types 
Weighted list of the types that spawns if the turf is open
Proc Details
generate_terrain_with_biomes
This proc handles including biomes in the cave generation. This is slower than
generate_terrain(), so please use it only if you actually need biomes.
This should only be called by generate_terrain(), if you have to call this,
you're probably doing something wrong.
populate_terrain_with_biomes
This handles the population of terrain with biomes. Should only be called by
populate_terrain(), if you find yourself calling this, you're probably not
doing it right.
This proc won't do anything if the area we're trying to generate in does not
have FLORA_ALLOWED or MOB_SPAWN_ALLOWED in its area_flags.