This commit is contained in:
KorPhaeron
2016-03-18 23:16:50 -05:00
parent 6edcb974eb
commit db57267e03
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -241,8 +241,8 @@
name = "lava"
baseturf = /turf/simulated/floor/plating/lava/smooth
icon = 'icons/turf/floors/lava.dmi'
icon_state = "smooth"
smooth = SMOOTH_BORDER | SMOOTH_TRUE
icon_state = "unsmooth"
// smooth = SMOOTH_BORDER | SMOOTH_TRUE
canSmoothWith = list(/turf/simulated/wall, /turf/simulated/mineral, /turf/simulated/floor/plating/lava/smooth, /turf/simulated/floor/plating/lava/smooth/lava_land_surface
)
+3 -3
View File
@@ -4,7 +4,7 @@
#define RANDOM_LOWER_X 50
#define RANDOM_LOWER_Y 50
/proc/spawn_rivers(target_z = 5, nodes = 4, turf_type = /turf/simulated/floor/plating/lava/smooth/lava_land_surface)
/proc/spawn_rivers(target_z = 5, nodes = 4, turf_type = /turf/simulated/floor/plating/lava/smooth/lava_land_surface, whitelist_area = /area/lavaland/surface/outdoors)
var/list/river_nodes = list()
var/num_spawned = 0
while(num_spawned < nodes)
@@ -42,8 +42,8 @@
cur_dir = get_dir(cur_turf, target_turf)
cur_turf = get_step(cur_turf, cur_dir)
if(!cur_turf.density || istype(cur_turf, /turf/simulated/mineral)) //Rivers will flow around walls
var/area/new_area = get_area(cur_turf)
if(!istype(new_area, whitelist_area)) //Rivers will skip ruins
detouring = 0
cur_dir = get_dir(cur_turf, target_turf)
cur_turf = get_step(cur_turf, cur_dir)