Any closed turf blocks aux base placement (#35308)

* Any closed turf blocks aux base placement

* ignores rock walls and destroys them before landing

* Goes back to some more standard style
This commit is contained in:
Emmett Gaines
2018-03-13 13:38:51 -06:00
committed by duncathan salt
parent b591d9d3b5
commit b8385d824e
+11 -2
View File
@@ -144,9 +144,11 @@ interface with the mining shuttle at the landing site if a mobile beacon is also
return
if(!no_restrictions)
var/static/list/disallowed_turf_types = typecacheof(list(
/turf/closed,
/turf/open/lava,
/turf/closed/indestructible,
/turf/open/indestructible,
)) - typecacheof(list(
/turf/closed/mineral,
))
if(!is_mining_level(T.z))
@@ -231,7 +233,7 @@ interface with the mining shuttle at the landing site if a mobile beacon is also
if(BAD_COORDS)
to_chat(user, "<span class='warning'>Location is too close to the edge of the station's scanning range. Move several paces away and try again.</span>")
if(BAD_TURF)
to_chat(user, "<span class='warning'>The landing zone contains turfs unsuitable for a base.</span>")
to_chat(user, "<span class='warning'>The landing zone contains turfs unsuitable for a base. Make sure you've removed all walls and dangerous terrain from the landing zone.</span>")
/obj/item/device/assault_pod/mining/unrestricted
name = "omni-locational landing field designator"
@@ -248,6 +250,13 @@ interface with the mining shuttle at the landing site if a mobile beacon is also
width = 9
height = 9
/obj/docking_port/mobile/auxillary_base/takeoff(list/old_turfs, list/new_turfs, list/moved_atoms, rotation, movement_direction, old_dock, area/underlying_old_area)
for(var/i in new_turfs)
var/turf/place = i
if(istype(place, /turf/closed/mineral))
place.ScrapeAway()
return ..()
obj/docking_port/stationary/public_mining_dock
name = "public mining base dock"
id = "disabled" //The Aux Base has to leave before this can be used as a dock.