Exoplanet Ore Patches (#16271)

* 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

* Ore Patches

* finishing touches hopefully

---------

Co-authored-by: John Wildkins <john.wildkins@gmail.com>
This commit is contained in:
Geeves
2023-06-22 22:29:48 +02:00
committed by GitHub
parent 2395a9c2ba
commit 2b70d859f0
7 changed files with 42 additions and 1 deletions

View File

@@ -60,6 +60,8 @@
/turf/simulated/floor/exoplanet/update_icon(var/update_neighbors)
if(has_edge_icon)
cut_overlays()
if(resource_indicator)
add_overlay(resource_indicator)
if(LAZYLEN(decals))
add_overlay(decals)
for(var/direction in cardinal)

View File

@@ -87,7 +87,7 @@
)
/// relatively speaking, the % (0-1) of turfs that will have resources generated in them
var/gnd_ore_coverage = 0.5
var/gnd_ore_coverage = 0.3
/// List of random seeds used for ore noise generation. Automatically generated on New() using wall_ore_levels.
var/list/ore_seeds
var/list/gnd_ore_seeds
@@ -258,6 +258,11 @@
gen_turf.resources[ORE_SAND] = rand(3, 5)
gen_turf.resources[ORE_COAL] = rand(3, 5)
if(ground_resources_roll)
var/image/resource_indicator = image('icons/obj/mining.dmi', null, "indicator_" + ground_resources_roll, gen_turf.layer, pick(cardinal))
resource_indicator.alpha = rand(30, 60)
gen_turf.resource_indicator = resource_indicator
if(!gen_turf.density)
gen_turf.add_overlay(resource_indicator)
for(var/OT in ground_ore_levels[ground_resources_roll])
var/rand_vals = ground_ore_levels[ground_resources_roll][OT]
gen_turf.resources[OT] = rand(rand_vals[1], rand_vals[2])