mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-22 08:01:06 +00:00
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:
@@ -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)
|
||||
|
||||
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user