Exoplanet Overhaul: The Shape of Things to Come (#16216)

* the end of the beginning

* SPEED

* SPEED

* we real speed

* fix ore gen

* re-organize exoplanet stuff

* reorg and rename defines, fix ores

* Everything Else

* 1.2.0+a3 rust_g

* fix merge

* get rid of noise maps

* fix adhomai, delete random maps

* make adhomai poggers or something idk

* debug

* crystal planet, misc bugfixes

* fixes

* log

* change mineral gen to make adhomai work

* try this

* huh

* huhw

* rust_g 1.2.0+a4

* port adhomai changes to correct file

* fix for rock nomad

* bugfixes
This commit is contained in:
Wildkins
2023-04-25 13:48:54 +00:00
committed by GitHub
parent 1cdda204ab
commit 9f1bdd2847
92 changed files with 2361 additions and 1216 deletions
+7 -28
View File
@@ -15,7 +15,6 @@ var/list/mineral_can_smooth_with = list(
/turf/unsimulated/wall
)
/turf/simulated/mineral //wall piece
name = "rock"
icon = 'icons/turf/map_placeholders.dmi'
@@ -83,10 +82,6 @@ var/list/mineral_can_smooth_with = list(
canSmoothWith = mineral_can_smooth_with
pixel_x = -4
pixel_y = -4
queue_smooth(src)
if(!mapload)
queue_smooth_neighbors(src)
rock_health = rand(10,20)
@@ -96,11 +91,6 @@ var/list/mineral_can_smooth_with = list(
// Hard-coding this for performance reasons.
baseturf = A.base_turf || current_map.base_turf_by_z["[z]"] || /turf/space
if (current_map.use_overmap && istype(A, /area/exoplanet))
var/obj/effect/overmap/visitable/sector/exoplanet/E = map_sectors["[z]"]
if (istype(E) && istype(E.theme))
E.theme.on_turf_generation(src, E.planetary_area)
return INITIALIZE_HINT_NORMAL
/turf/simulated/mineral/examine(mob/user)
@@ -210,15 +200,6 @@ var/list/mineral_can_smooth_with = list(
canSmoothWith = asteroid_can_smooth_with
pixel_x = -4
pixel_y = -4
queue_smooth(src)
if(!mapload)
queue_smooth_neighbors(src)
if (current_map.use_overmap && istype(loc, /area/exoplanet))
var/obj/effect/overmap/visitable/sector/exoplanet/E = map_sectors["[z]"]
if (istype(E) && istype(E.theme))
E.theme.on_turf_generation(src, E.planetary_area)
return INITIALIZE_HINT_NORMAL
@@ -486,6 +467,13 @@ var/list/mineral_can_smooth_with = list(
var/obj/item/stack/material/uranium/R = new(src)
R.amount = rand(5, 25)
/turf/simulated/mineral/proc/change_mineral(mineral_name, force = FALSE)
if(mineral_name && (mineral_name in ore_data))
if(mineral && !force)
return FALSE
mineral = ore_data[mineral_name]
UpdateMineral()
/turf/simulated/mineral/random
name = "mineral deposit"
var/mineralSpawnChanceList = list(
@@ -669,19 +657,10 @@ var/list/asteroid_floor_smooth = list(
canSmoothWith = asteroid_floor_smooth
pixel_x = -4
pixel_y = -4
queue_smooth(src)
if(!mapload)
queue_smooth_neighbors(src)
if(light_range && light_power)
update_light()
if (current_map.use_overmap && istype(loc, /area/exoplanet))
var/obj/effect/overmap/visitable/sector/exoplanet/E = map_sectors["[z]"]
if (istype(E) && istype(E.theme))
E.theme.on_turf_generation(src, E.planetary_area)
return INITIALIZE_HINT_NORMAL
/turf/unsimulated/floor/asteroid/ex_act(severity)