diff --git a/code/game/objects/items/blueprints.dm b/code/game/objects/items/blueprints.dm index 7631f563a6..40d2f968c5 100644 --- a/code/game/objects/items/blueprints.dm +++ b/code/game/objects/items/blueprints.dm @@ -4,16 +4,11 @@ icon = 'icons/obj/items.dmi' icon_state = "blueprints" attack_verb = list("attacked", "bapped", "hit") - var/const/AREA_ERRNONE = 0 - var/const/AREA_STATION = 1 - var/const/AREA_SPACE = 2 - var/const/AREA_SPECIAL = 3 - - var/const/BORDER_ERROR = 0 - var/const/BORDER_NONE = 1 - var/const/BORDER_BETWEEN = 2 - var/const/BORDER_2NDTILE = 3 - var/const/BORDER_SPACE = 4 + // Values for area types (Its a bitfield so we can mask allowed areas) + var/const/AREA_ERRNONE = 0x0 + var/const/AREA_STATION = 0x1 + var/const/AREA_SPACE = 0x2 + var/const/AREA_SPECIAL = 0x4 var/const/ROOM_ERR_LOLWAT = 0 var/const/ROOM_ERR_SPACE = -1 @@ -55,11 +50,13 @@ switch(href_list["action"]) if ("create_area") if (get_area_type()!=AREA_SPACE) + usr << "You can't make a new area here." interact() return create_area() if ("edit_area") if (get_area_type()!=AREA_STATION) + usr << "You can't rename this area." interact() return edit_area() @@ -70,24 +67,24 @@
According the blueprints, you are now in outer space. Hold your breath.
- -"} + text += "According the blueprints, you are now in outer space. Hold your breath.
" if (AREA_STATION) - text += {" -According the blueprints, you are now in \"[A.name]\".
-You may -move an amendment to the drawing.
-"} + text += "According the blueprints, you are now in \"[A.name]\".
" if (AREA_SPECIAL) - text += {" -This place isn't noted on the blueprint.
-"} + text += "This place isn't noted on the blueprint.
" else - return + text += "There is a coffee stain over this part of the blueprint.
" + return // Shouldn ever get here, just sanity check + + // Offer links for what user is allowed to do based on current area + if(curAreaType == AREA_SPACE) + text += "You can Mark this place as new area.
" + if(curAreaType == AREA_STATION) + text += "You can rename the area.
" + text += "