diff --git a/_maps/splurt_maps/templates/hilbertshotel_templates/apartment_sauna.dmm b/_maps/splurt_maps/templates/hilbertshotel_templates/apartment_sauna.dmm index 6a80b5b493..a73eb875a7 100644 --- a/_maps/splurt_maps/templates/hilbertshotel_templates/apartment_sauna.dmm +++ b/_maps/splurt_maps/templates/hilbertshotel_templates/apartment_sauna.dmm @@ -841,7 +841,7 @@ Pn Pn wy Pn -OE +Kt fo OE "} diff --git a/code/modules/ruins/spaceruin_code/hilbertshotel.dm b/code/modules/ruins/spaceruin_code/hilbertshotel.dm index 56f8f3972f..23965bc509 100644 --- a/code/modules/ruins/spaceruin_code/hilbertshotel.dm +++ b/code/modules/ruins/spaceruin_code/hilbertshotel.dm @@ -145,6 +145,11 @@ GLOBAL_VAR_INIT(hhmysteryRoomNumber, 1337) parentSphere.activeRooms -= "[roomnumber]" qdel(reservation) +/area/hilbertshotel/proc/update_light_switches() //SPLURT ADDITION: This will update all light switches in the given area + for(var/obj/machinery/light_switch/LS in src) + LS.area = src // Update the area reference for each light switch + LS.update_appearance() // Update the appearance of the light switch + /obj/item/hilbertshotel/proc/tryActiveRoom(var/roomNumber, var/mob/user) if(activeRooms["[roomNumber]"]) var/datum/turf_reservation/roomReservation = activeRooms["[roomNumber]"] @@ -195,6 +200,7 @@ GLOBAL_VAR_INIT(hhmysteryRoomNumber, 1337) var/area/hilbertshotel/currentArea = get_area(locate(roomReservation.bottom_left_coords[1], roomReservation.bottom_left_coords[2], roomReservation.bottom_left_coords[3])) if(storageObj) currentArea.roomType = storageObj.roomType // Set the room type for the area + currentArea.update_light_switches() // Update all light switches in the area storedRooms -= "[roomNumber]" activeRooms["[roomNumber]"] = roomReservation