mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-05-19 13:20:47 +01:00
3735a31e05
* selection target * ugh * fix deadmin * larger * fix paper icons * those are inverted * don't miss that * fix all * point transfer * add nostrip flag to items * un.... teppi * . * end life proc after qdel * this could be null in very rare cases * this has a lot of sleeps, someday should be refactored and check for qdeleted * needs to be an object * qdel check this * use the rsc properly * wtf? * . * fix narrate * . * push * inform user, null it * . * can be null * fix maint lurkers * . * spans * . * fix that too * urg * fix distillery * don't wrap them * needs usr * Update cash_register.dm * quick hook cleanup * lots of fixes * . * clean that up for reasons
45 lines
1.6 KiB
Plaintext
45 lines
1.6 KiB
Plaintext
// This is basically filler at this point. Subsidence and all kinds of fun
|
|
// hazards will be included when it is done.
|
|
/datum/random_map/noise/volcanism
|
|
descriptor = "volcanism"
|
|
smoothing_iterations = 6
|
|
target_turf_type = /turf/simulated
|
|
|
|
// Get rid of those dumb little single-tile volcanic areas.
|
|
/datum/random_map/noise/volcanism/cleanup()
|
|
for(var/x = 1, x <= limit_x, x++)
|
|
for(var/y = 1, y <= limit_y, y++)
|
|
var/current_cell = get_map_cell(x,y)
|
|
if(map[current_cell] < 178)
|
|
continue
|
|
var/count
|
|
var/tmp_cell = get_map_cell(x+1,y+1)
|
|
if(tmp_cell && map[tmp_cell] >= 178) count++
|
|
tmp_cell = get_map_cell(x-1,y-1)
|
|
if(tmp_cell && map[tmp_cell] >= 178) count++
|
|
tmp_cell = get_map_cell(x+1,y-1)
|
|
if(tmp_cell && map[tmp_cell] >= 178) count++
|
|
tmp_cell = get_map_cell(x-1,y+1)
|
|
if(tmp_cell && map[tmp_cell] >= 178) count++
|
|
tmp_cell = get_map_cell(x-1,y)
|
|
if(tmp_cell && map[tmp_cell] >= 178) count++
|
|
tmp_cell = get_map_cell(x,y-1)
|
|
if(tmp_cell && map[tmp_cell] >= 178) count++
|
|
tmp_cell = get_map_cell(x+1,y)
|
|
if(tmp_cell && map[tmp_cell] >= 178) count++
|
|
tmp_cell = get_map_cell(x,y+1)
|
|
if(tmp_cell && map[tmp_cell] >= 178) count++
|
|
if(!count)
|
|
map[current_cell] = 177
|
|
|
|
/datum/random_map/noise/volcanism/get_appropriate_path(var/value)
|
|
return
|
|
|
|
/datum/random_map/noise/volcanism/get_additional_spawns(var/value, var/turf/T)
|
|
if(value>=178)
|
|
if(istype(T,/turf/simulated/floor/asteroid))
|
|
T.ChangeTurf(/turf/simulated/floor/airless/lava)
|
|
else if(ismineralturf(T))
|
|
var/turf/simulated/mineral/M = T
|
|
M.mined_turf = /turf/simulated/floor/airless/lava
|