mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Extend Station Blueprints to consider outdoor mining areas as "space"
* Allows constructing new rooms out of the asteroid! Previously blueprint couldn't because it wasn't technically "/area/space" * Also moved the list of what area types count as space or protected to variables so its not a list embedded in the middle of a proc...
This commit is contained in:
@@ -19,6 +19,23 @@
|
|||||||
var/const/ROOM_ERR_SPACE = -1
|
var/const/ROOM_ERR_SPACE = -1
|
||||||
var/const/ROOM_ERR_TOOLARGE = -2
|
var/const/ROOM_ERR_TOOLARGE = -2
|
||||||
|
|
||||||
|
var/static/list/SPACE_AREA_TYPES = list(
|
||||||
|
/area/space,
|
||||||
|
/area/mine
|
||||||
|
)
|
||||||
|
var/static/list/SPECIAL_AREA_TYPES = list(
|
||||||
|
/area/shuttle,
|
||||||
|
/area/admin,
|
||||||
|
/area/arrival,
|
||||||
|
/area/centcom,
|
||||||
|
/area/asteroid,
|
||||||
|
/area/tdome,
|
||||||
|
/area/syndicate_station,
|
||||||
|
/area/wizard_station,
|
||||||
|
/area/prison
|
||||||
|
// /area/derelict //commented out, all hail derelict-rebuilders!
|
||||||
|
)
|
||||||
|
|
||||||
/obj/item/blueprints/attack_self(mob/M as mob)
|
/obj/item/blueprints/attack_self(mob/M as mob)
|
||||||
if (!istype(M,/mob/living/carbon/human))
|
if (!istype(M,/mob/living/carbon/human))
|
||||||
M << "This stack of blue paper means nothing to you." //monkeys cannot into projecting
|
M << "This stack of blue paper means nothing to you." //monkeys cannot into projecting
|
||||||
@@ -79,22 +96,11 @@ move an amendment</a> to the drawing.</p>
|
|||||||
return A
|
return A
|
||||||
|
|
||||||
/obj/item/blueprints/proc/get_area_type(var/area/A = get_area())
|
/obj/item/blueprints/proc/get_area_type(var/area/A = get_area())
|
||||||
if(istype(A, /area/space))
|
for(var/type in SPACE_AREA_TYPES)
|
||||||
return AREA_SPACE
|
if(istype(A, type))
|
||||||
var/list/SPECIALS = list(
|
return AREA_SPACE
|
||||||
/area/shuttle,
|
for (var/type in SPECIAL_AREA_TYPES)
|
||||||
/area/admin,
|
if(istype(A, type))
|
||||||
/area/arrival,
|
|
||||||
/area/centcom,
|
|
||||||
/area/asteroid,
|
|
||||||
/area/tdome,
|
|
||||||
/area/syndicate_station,
|
|
||||||
/area/wizard_station,
|
|
||||||
/area/prison
|
|
||||||
// /area/derelict //commented out, all hail derelict-rebuilders!
|
|
||||||
)
|
|
||||||
for (var/type in SPECIALS)
|
|
||||||
if ( istype(A,type) )
|
|
||||||
return AREA_SPECIAL
|
return AREA_SPECIAL
|
||||||
return AREA_STATION
|
return AREA_STATION
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user