mirror of
https://github.com/fulpstation/fulpstation.git
synced 2025-12-10 10:01:40 +00:00
* Add basic structure of z-level traits
* Restore space transitions and add z-level debug verb
* Restore proper ruin spawning and transit level creation
* Replace station_z_levels and related checks with traits
* Eliminate more uses of ZLEVEL_{STATION_PRIMARY,LAVALAND}
28 lines
734 B
Plaintext
28 lines
734 B
Plaintext
|
|
/datum/mapGenerator/lavaland
|
|
var/start_z
|
|
var/min_x = 0
|
|
var/min_y = 0
|
|
var/max_x = 0
|
|
var/max_y = 0
|
|
modules = list(/datum/mapGeneratorModule/river)
|
|
buildmode_name = "Pattern: Lava Rivers"
|
|
|
|
/datum/mapGenerator/lavaland/defineRegion(turf/Start, turf/End, replace = 0)
|
|
start_z = Start.z
|
|
min_x = min(Start.x,End.x)
|
|
min_y = min(Start.y,End.y)
|
|
max_x = max(Start.x,End.x)
|
|
max_y = max(Start.y,End.y)
|
|
..()
|
|
|
|
/datum/mapGeneratorModule/river
|
|
var/river_type = /turf/open/lava/smooth
|
|
var/river_nodes = 4
|
|
|
|
/datum/mapGeneratorModule/river/generate()
|
|
var/datum/mapGenerator/lavaland/L = mother
|
|
if(!istype(L))
|
|
return
|
|
spawn_rivers(L.start_z, river_nodes, river_type, min_x = L.min_x, min_y = L.min_y, max_x = L.max_x, max_y = L.max_y)
|