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

@@ -107,6 +107,10 @@
attached_satchel.insert_into_storage(ore)
else if(istype(get_turf(src), /turf/simulated/floor))
var/turf/simulated/floor/T = get_turf(src)
var/turf/below_turf = GetBelow(T)
if(below_turf && !istype(below_turf.loc, /area/mine) && !istype(below_turf.loc, /area/exoplanet) && !istype(below_turf.loc, /area/template_noop))
system_error("Potential station breach below.")
return
T.ex_act(2.0)
//Dig out the tasty ores.
@@ -116,6 +120,8 @@
while(length(resource_field) && !harvesting.resources)
harvesting.has_resources = FALSE
harvesting.resources = null
harvesting.cut_overlay(harvesting.resource_indicator)
QDEL_NULL(harvesting.resource_indicator)
resource_field -= harvesting
if(length(resource_field))
harvesting = pick(resource_field)
@@ -161,6 +167,8 @@
if(!found_resource)
harvesting.has_resources = FALSE
harvesting.resources = null
harvesting.cut_overlay(harvesting.resource_indicator)
QDEL_NULL(harvesting.resource_indicator)
resource_field -= harvesting
else
active = FALSE