Allows the icebox aux base to land on ice moon (#69501)

* Allows the icebox aux base to land on ice moon, with the exception of the top floor, because it would be rather lame to random drop right next to engineering.
This commit is contained in:
Profakos
2022-09-19 13:36:05 -04:00
committed by GitHub
parent 5e69ce4c39
commit 9015ccf5c3
+7 -1
View File
@@ -5,6 +5,7 @@
#define BAD_AREA 2
#define BAD_COORDS 3
#define BAD_TURF 4
#define BAD_LAYER 5
/area/shuttle/auxiliary_base
name = "Auxiliary Base"
@@ -224,7 +225,9 @@ MAPPING_DIRECTIONAL_HELPERS(/obj/machinery/computer/auxiliary_base, 32)
var/turf/place = colony_turfs[i]
if(!place)
return BAD_COORDS
if(!istype(place.loc, /area/lavaland/surface))
if(istype(place.loc, /area/icemoon/surface))
return BAD_LAYER
if(!istype(place.loc, /area/lavaland/surface) && !istype(place.loc, /area/icemoon/underground))
return BAD_AREA
if(disallowed_turf_types[place.type])
return BAD_TURF
@@ -295,6 +298,8 @@ MAPPING_DIRECTIONAL_HELPERS(/obj/machinery/computer/auxiliary_base, 32)
to_chat(user, span_warning("Location is too close to the edge of the station's scanning range. Move several paces away and try again."))
if(BAD_TURF)
to_chat(user, span_warning("The landing zone contains turfs unsuitable for a base. Make sure you've removed all walls and dangerous terrain from the landing zone."))
if(BAD_LAYER)
to_chat(user, span_warning("This area is not hazardous enough to justify an auxiliary base. Try again on a deeper layer."))
/obj/item/assault_pod/mining/unrestricted
name = "omni-locational landing field designator"
@@ -443,3 +448,4 @@ MAPPING_DIRECTIONAL_HELPERS(/obj/machinery/computer/auxiliary_base, 32)
#undef BAD_AREA
#undef BAD_COORDS
#undef BAD_TURF
#undef BAD_LAYER