Dynamic Overmap Encounters
![code/modules/overmap/objects/dynamic_datum.dm 7](git.png)
These overmap objects can be docked with and will create a dynamically generated area of many different types depending on the planet variable. When undocked with, it checks if there's anyone left on the planet, and if not, will move to another random location and wait to create a new encounter.
Vars | |
default_baseturf | The turf used as the backup baseturf for any reservations created by this datum. Should not be null. |
---|---|
force_encounter | The planet that will be forced to load |
gravity | The default gravity the virtual z will have |
loading | Whether or not the level is currently loading. |
mapgen | The mapgenerator itself. SHOULD NOT BE NULL if the datum ever creates an encounter |
mapzone | The active turf reservation, if there is one |
planet | What kind of planet the level is, if it's a planet at all. |
planet_name | Planet's flavor name, if it is a planet. |
preserve_level | If the level should be preserved. Useful for if you want to build a colony or something. |
probabilities | List of probabilities for each type of planet. |
reserve_docks | The docking port in the reserve |
ruin_turfs | list of ruins and their target turf, indexed by name |
ruin_type | Ruin types to generate |
template | The preset ruin template to load, if/when it is loaded. |
vlevel_height | The Y bounds of the virtual z level |
vlevel_width | The X bounds of the virtual z level |
weather_controller_type | The weather the virtual z will have. If null, the planet will have no weather. |
Procs | |
choose_level_type | Chooses a type of level for the dynamic level to use. |
load_level | Load a level for a ship that's visiting the level. |
Var Details
default_baseturf
![code/modules/overmap/objects/dynamic_datum.dm 36](git.png)
The turf used as the backup baseturf for any reservations created by this datum. Should not be null.
force_encounter
![code/modules/overmap/objects/dynamic_datum.dm 25](git.png)
The planet that will be forced to load
gravity
![code/modules/overmap/objects/dynamic_datum.dm 39](git.png)
The default gravity the virtual z will have
loading
![code/modules/overmap/objects/dynamic_datum.dm 31](git.png)
Whether or not the level is currently loading.
mapgen
![code/modules/overmap/objects/dynamic_datum.dm 34](git.png)
The mapgenerator itself. SHOULD NOT BE NULL if the datum ever creates an encounter
mapzone
![code/modules/overmap/objects/dynamic_datum.dm 11](git.png)
The active turf reservation, if there is one
planet
![code/modules/overmap/objects/dynamic_datum.dm 19](git.png)
What kind of planet the level is, if it's a planet at all.
planet_name
![code/modules/overmap/objects/dynamic_datum.dm 21](git.png)
Planet's flavor name, if it is a planet.
preserve_level
![code/modules/overmap/objects/dynamic_datum.dm 17](git.png)
If the level should be preserved. Useful for if you want to build a colony or something.
probabilities
![code/modules/overmap/objects/dynamic_datum.dm 23](git.png)
List of probabilities for each type of planet.
reserve_docks
![code/modules/overmap/objects/dynamic_datum.dm 15](git.png)
The docking port in the reserve
ruin_turfs
![code/modules/overmap/objects/dynamic_datum.dm 29](git.png)
list of ruins and their target turf, indexed by name
ruin_type
![code/modules/overmap/objects/dynamic_datum.dm 27](git.png)
Ruin types to generate
template
![code/modules/overmap/objects/dynamic_datum.dm 13](git.png)
The preset ruin template to load, if/when it is loaded.
vlevel_height
![code/modules/overmap/objects/dynamic_datum.dm 45](git.png)
The Y bounds of the virtual z level
vlevel_width
![code/modules/overmap/objects/dynamic_datum.dm 47](git.png)
The X bounds of the virtual z level
weather_controller_type
![code/modules/overmap/objects/dynamic_datum.dm 42](git.png)
The weather the virtual z will have. If null, the planet will have no weather.
Proc Details
choose_level_type
Chooses a type of level for the dynamic level to use.
load_level
Load a level for a ship that's visiting the level.
- visiting shuttle - The docking port of the shuttle visiting the level.