mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-21 15:42:35 +00:00
32 lines
889 B
Plaintext
32 lines
889 B
Plaintext
/datum/random_map/noise/magma
|
|
descriptor = "magma"
|
|
smoothing_iterations = 1
|
|
|
|
/datum/random_map/noise/magma/replace_space
|
|
descriptor = "magma (replacement)"
|
|
target_turf_type = /turf/space
|
|
|
|
/datum/random_map/noise/magma/get_map_char(var/value)
|
|
var/val = min(9,max(0,round((value/cell_range)*10)))
|
|
if(isnull(val)) val = 0
|
|
switch(val)
|
|
if(0)
|
|
return "<font color='#000099'>~</font>"
|
|
if(1)
|
|
return "<font color='#0000BB'>~</font>"
|
|
if(2)
|
|
return "<font color='#0000DD'>~</font>"
|
|
if(3)
|
|
return "<font color='#66AA00'>[pick(list(".",","))]</font>"
|
|
if(4)
|
|
return "<font color='#77CC00'>[pick(list(".",","))]</font>"
|
|
|
|
/datum/random_map/noise/magma/get_appropriate_path(var/value)
|
|
var/val = min(9,max(0,round((value/cell_range)*10)))
|
|
if(isnull(val)) val = 0
|
|
switch(val)
|
|
if(0 to 4)
|
|
return /turf/simulated/lava
|
|
else
|
|
return /turf/unsimulated/floor/asteroid/basalt
|