diff --git a/code/modules/ruins/objects_and_mobs/ruin_mapping_aids.dm b/code/modules/ruins/objects_and_mobs/ruin_mapping_aids.dm new file mode 100644 index 00000000000..3b22ea77372 --- /dev/null +++ b/code/modules/ruins/objects_and_mobs/ruin_mapping_aids.dm @@ -0,0 +1,14 @@ +//These landmarks can be placed in rooms/ruins to set the baseturfs of every turf in the area. Easier than having potentially unlimited subtypes of every turf or having to manually edit the turfs in the map editor + +/obj/effect/baseturf_helper + name = "lava baseturf editor" + icon = 'icons/obj/weapons.dmi' + icon_state = "syndballoon" + var/baseturf = /turf/open/floor/plating/lava/smooth/lava_land_surface + +/obj/effect/baseturf_helper/initialize() + ..() + var/area/thearea = get_area(src) + for(var/turf/T in get_area_turfs(thearea, z)) + if(T.baseturf != T.type) //Don't break indestructible walls and the like + T.baseturf = baseturf \ No newline at end of file diff --git a/tgstation.dme b/tgstation.dme index ef990ed4ab6..1eaa3a59110 100644 --- a/tgstation.dme +++ b/tgstation.dme @@ -1760,6 +1760,7 @@ #include "code\modules\ruins\ruin_areas.dm" #include "code\modules\ruins\objects_and_mobs\ash_walker_den.dm" #include "code\modules\ruins\objects_and_mobs\necropolis_gate.dm" +#include "code\modules\ruins\objects_and_mobs\ruin_mapping_aids.dm" #include "code\modules\ruins\objects_and_mobs\sin_ruins.dm" #include "code\modules\security_levels\keycard_authentication.dm" #include "code\modules\security_levels\security_levels.dm"