diff --git a/code/modules/mapfluff/ruins/spaceruin_code/hilbertshotel.dm b/code/modules/mapfluff/ruins/spaceruin_code/hilbertshotel.dm index 157cfbb9e16..7e6a1bf6d63 100644 --- a/code/modules/mapfluff/ruins/spaceruin_code/hilbertshotel.dm +++ b/code/modules/mapfluff/ruins/spaceruin_code/hilbertshotel.dm @@ -525,25 +525,25 @@ GLOBAL_VAR_INIT(hhMysteryRoomNumber, rand(1, 999999)) worn_icon_state = "analyzer" /obj/item/analyzer/hilbertsanalyzer/interact_with_atom(atom/interacting_with, mob/living/user, list/modifiers) - if(istype(interacting_with, /obj/item/hilbertshotel)) - if(!Adjacent(interacting_with)) - to_chat(user, span_warning("It's to far away to scan!")) - return ITEM_INTERACT_BLOCKING - var/obj/item/hilbertshotel/sphere = interacting_with - if(sphere.activeRooms.len) - to_chat(user, "Currently Occupied Rooms:") - for(var/roomnumber in sphere.activeRooms) - to_chat(user, roomnumber) - else - to_chat(user, "No currenty occupied rooms.") - if(sphere.storedRooms.len) - to_chat(user, "Vacated Rooms:") - for(var/roomnumber in sphere.storedRooms) - to_chat(user, roomnumber) - else - to_chat(user, "No vacated rooms.") - return ITEM_INTERACT_SUCCESS - return ..() + if(!istype(interacting_with, /obj/item/hilbertshotel)) + return ..() + if(!user.CanReach(interacting_with)) + to_chat(user, span_warning("It's to far away to scan!")) + return ITEM_INTERACT_BLOCKING + var/obj/item/hilbertshotel/sphere = interacting_with + if(sphere.activeRooms.len) + to_chat(user, "Currently Occupied Rooms:") + for(var/roomnumber in sphere.activeRooms) + to_chat(user, roomnumber) + else + to_chat(user, "No currenty occupied rooms.") + if(sphere.storedRooms.len) + to_chat(user, "Vacated Rooms:") + for(var/roomnumber in sphere.storedRooms) + to_chat(user, roomnumber) + else + to_chat(user, "No vacated rooms.") + return ITEM_INTERACT_SUCCESS /obj/effect/landmark/transport/transport_id/hilbert specific_transport_id = HILBERT_LINE_1