Space Station 13 - Nebula13 - Modules - TypesVar Details - Proc Details

random

A randomly generating planetoid_data, used by random planet map_templates

Vars

atmosphere_gen_pressure_maxMaximum atmospheric pressure in the range to pick from for this planet template.
atmosphere_gen_pressure_minMinimum atmospheric pressure in the range to pick from for this planet template.
atmosphere_gen_temperature_maxMaximum possible base temperature range to pick from, in kelvins, when generating the atmosphere on this planet.
atmosphere_gen_temperature_minMinimum possible base temperature range to pick from, in kelvins, when generating the atmosphere on this planet.
atmospheric_gen_gases_maxMaximum amount of different atmospheric gases that may be generated for this planet, not counting the forced gases
atmospheric_gen_gases_minMinimum amount of different atmospheric gases that may be generated for this planet, not counting the forced gases
forced_atmosphere_gen_gasesA list of gas and their proportion to enforce on this planet when generating the atmosphere. If a level's get_mandatory_gases() returns gases, they will be added to this. If null is randomly generated.
possible_ring_colorPossible ring colors
possible_ring_type_namePossible ring sprites that can be used for a possible ring
possible_rock_colorsPossible colors for rock walls and rocks in general on this planet (Honestly, should be handled via materal system maybe?)
possible_surface_light_gen_colorsPossible list of colors to pick for the ambient lighting color. Null means a random color will be generated. This value may be overridden by individual /datum/level_data.
ring_gen_probabilityThe chance that this planetoid template creates a planetoid with a ring.
surface_light_gen_level_maxPlanet ambient lighting maximum possible value from 0 to 1. This value may be overridden in individual /datum/level_data.
surface_light_gen_level_minPlanet ambient lighting minimum possible value from 0 to 1. This value may be overridden in individual /datum/level_data.

Procs

generate_ambient_lightingCalculate the color and intensity of the ambient starlight that this planet receives.
generate_atmosphereCreates the atmosphere for the planet randomly or not.
generate_habitabilityPick an hability class for this planet. Should be done as early as possible during generation.
generate_planet_materialsGenerate the planet's minable resources, material for rocks and etc.
generate_surface_light_levelCalculate the ambient lighting intensity for the planet.
generate_surface_pressureGenerates a valid surface pressure for the planet's atmosphere matching it's habitability class
generate_surface_temperatureGenerates a valid surface temperature for the planet's atmosphere matching its habitability class
make_planet_nameIf the planet doesn't have a name defined, a name will be randomly generated for it. (Named this way because a global proc generate_planet_name already exists)
pick_atmospheric_gases_candidatesGo through all materials and pick those that we could pick from on this planet
pregeneratePre-generate the random planetoid's data before it has any actual level or overmap marker tied to it.
select_strataSelects the base strata for the whole planet. The levels have the final say however in what to do with that.

Var Details

atmosphere_gen_pressure_max

Maximum atmospheric pressure in the range to pick from for this planet template.

atmosphere_gen_pressure_min

Minimum atmospheric pressure in the range to pick from for this planet template.

atmosphere_gen_temperature_max

Maximum possible base temperature range to pick from, in kelvins, when generating the atmosphere on this planet.

atmosphere_gen_temperature_min

Minimum possible base temperature range to pick from, in kelvins, when generating the atmosphere on this planet.

atmospheric_gen_gases_max

Maximum amount of different atmospheric gases that may be generated for this planet, not counting the forced gases

atmospheric_gen_gases_min

Minimum amount of different atmospheric gases that may be generated for this planet, not counting the forced gases

forced_atmosphere_gen_gases

A list of gas and their proportion to enforce on this planet when generating the atmosphere. If a level's get_mandatory_gases() returns gases, they will be added to this. If null is randomly generated.

possible_ring_color

Possible ring colors

possible_ring_type_name

Possible ring sprites that can be used for a possible ring

possible_rock_colors

Possible colors for rock walls and rocks in general on this planet (Honestly, should be handled via materal system maybe?)

possible_surface_light_gen_colors

Possible list of colors to pick for the ambient lighting color. Null means a random color will be generated. This value may be overridden by individual /datum/level_data.

ring_gen_probability

The chance that this planetoid template creates a planetoid with a ring.

surface_light_gen_level_max

Planet ambient lighting maximum possible value from 0 to 1. This value may be overridden in individual /datum/level_data.

surface_light_gen_level_min

Planet ambient lighting minimum possible value from 0 to 1. This value may be overridden in individual /datum/level_data.

Proc Details

generate_ambient_lighting

Calculate the color and intensity of the ambient starlight that this planet receives.

generate_atmosphere

Creates the atmosphere for the planet randomly or not.

generate_habitability

Pick an hability class for this planet. Should be done as early as possible during generation.

generate_planet_materials

Generate the planet's minable resources, material for rocks and etc.

generate_surface_light_level

Calculate the ambient lighting intensity for the planet.

generate_surface_pressure

Generates a valid surface pressure for the planet's atmosphere matching it's habitability class

generate_surface_temperature

Generates a valid surface temperature for the planet's atmosphere matching its habitability class

make_planet_name

If the planet doesn't have a name defined, a name will be randomly generated for it. (Named this way because a global proc generate_planet_name already exists)

pick_atmospheric_gases_candidates

Go through all materials and pick those that we could pick from on this planet

pregenerate

Pre-generate the random planetoid's data before it has any actual level or overmap marker tied to it.

select_strata

Selects the base strata for the whole planet. The levels have the final say however in what to do with that.