Mapping object to help set baseturfs (#19962)

* Mapping Helper

* Minor fix
This commit is contained in:
KorPhaeron
2016-08-26 09:01:12 +12:00
committed by oranges
parent 8fce122bd9
commit 459ab8d949
2 changed files with 15 additions and 0 deletions
@@ -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