forked from ELYSIUM-SPACE/ELYSIUM
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hotel Rooms Fixes (ELYSIUM-SPACE#59)
* Added separate hotel airlocks. * Main hotel rooms fixes 1. Reworked how hotel rooms are being initialized and their components being linked in. 2. Hotel rooms airlocks were replaced with separate type, that is linked to rooms better.
- Loading branch information
1 parent
18a81a3
commit e51ac8b
Showing
9 changed files
with
63,545 additions
and
2,589 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
GLOBAL_LIST_EMPTY(hotel_room_airlocks) | ||
|
||
//hotel room airlock | ||
/obj/machinery/door/airlock/civilian/hotel | ||
name = "\improper Room Unset" | ||
desc = "A promising sight of comfort for a weary space traveler. It opens and closes." | ||
|
||
/obj/machinery/door/airlock/civilian/hotel/Initialize() | ||
. = ..() | ||
GLOB.hotel_room_airlocks += src | ||
|
||
/obj/machinery/door/airlock/civilian/hotel/Destroy() | ||
for(var/datum/hotel_room/HR in GLOB.hotel_rooms) | ||
if(HR.room_airlock == src) | ||
HR.room_airlock = null | ||
HR.room_test_n_update() | ||
|
||
GLOB.hotel_room_airlocks -= src | ||
. = ..() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.