mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 05:00:55 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user