Under the Twin Suns: the S'rand'marr Sector (#15295)

This commit is contained in:
Alberyk
2023-02-02 14:51:06 -03:00
committed by GitHub
parent a0fc71c1ee
commit ff229569ae
162 changed files with 41866 additions and 465 deletions
+8 -1
View File
@@ -48,6 +48,8 @@
var/habitability_class
var/list/mobs_to_tolerate = list()
var/generated_name = TRUE
var/ring_chance = 20 //the chance of this exoplanet spawning with a ring on its sprite
var/list/possible_random_ruins
@@ -69,12 +71,14 @@
maxy = max_y ? max_y : world.maxy
planetary_area = new planetary_area()
name = "[generate_planet_name()], \a [name]"
if(generated_name)
name = "[generate_planet_name()], \a [name]"
world.maxz++
forceMove(locate(1,1,world.maxz))
SEND_GLOBAL_SIGNAL(COMSIG_GLOB_NEW_Z, world.maxz)
pre_ruin_preparation()
if(LAZYLEN(possible_themes))
var/datum/exoplanet_theme/T = pick(possible_themes)
theme = new T
@@ -99,6 +103,9 @@
generate_planet_image()
START_PROCESSING(SSprocessing, src)
/obj/effect/overmap/visitable/sector/exoplanet/proc/pre_ruin_preparation()
return
//attempt at more consistent history generation for xenoarch finds.
/obj/effect/overmap/visitable/sector/exoplanet/proc/get_engravings()
if(!actors.len)
@@ -37,7 +37,7 @@
skybox_image.overlays += shadow
if (prob(20))
if (prob(ring_chance))
var/image/rings = image('icons/skybox/planet_rings.dmi')
rings.icon_state = pick("sparse", "dense")
rings.color = pick("#f0fcff", "#dcc4ad", "#d1dcad", "#adb8dc")
+11
View File
@@ -42,6 +42,9 @@
/datum/exoplanet_theme/mountains/breathable
cave_path = /datum/random_map/automata/cave_system/mountains/breathable
/datum/exoplanet_theme/mountains/adhomai
cave_path = /datum/random_map/automata/cave_system/mountains/adhomai
/datum/random_map/automata/cave_system/mountains
iterations = 2
descriptor = "space mountains"
@@ -60,6 +63,13 @@
floor_type = /turf/simulated/floor/exoplanet/mineral
use_area = FALSE
/datum/random_map/automata/cave_system/mountains/adhomai
wall_type = /turf/simulated/mineral/adhomai
mineral_sparse = /turf/simulated/mineral/random/adhomai
mineral_rich = /turf/simulated/mineral/random/high_chance/adhomai
floor_type = /turf/simulated/floor/exoplanet/mineral/adhomai
use_area = FALSE
/datum/random_map/automata/cave_system/mountains/New(var/seed, var/tx, var/ty, var/tz, var/tlx, var/tly, var/do_not_apply, var/do_not_announce, var/never_be_priority = 0, var/used_area, var/datum/exoplanet_theme/_theme)
if(_theme)
planet_theme = _theme
@@ -69,3 +79,4 @@
/datum/random_map/automata/cave_system/mountains/get_additional_spawns(value, turf/T)
planet_theme.on_turf_generation(T, use_area)