From 459ab8d94999b92fc07b61692ef91ae3cb3a5b5d Mon Sep 17 00:00:00 2001 From: KorPhaeron Date: Thu, 25 Aug 2016 16:01:12 -0500 Subject: [PATCH] Mapping object to help set baseturfs (#19962) * Mapping Helper * Minor fix --- .../ruins/objects_and_mobs/ruin_mapping_aids.dm | 14 ++++++++++++++ tgstation.dme | 1 + 2 files changed, 15 insertions(+) create mode 100644 code/modules/ruins/objects_and_mobs/ruin_mapping_aids.dm 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"