-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3429 from MistakeNot4892/spawning
Spawning tweaks.
- Loading branch information
Showing
34 changed files
with
259 additions
and
175 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/// Allows the spawn point to be used for observers spawning. | ||
#define SPAWN_FLAG_GHOSTS_CAN_SPAWN BITFLAG(0) | ||
/// Allows admin prison releases to use this spawn point. | ||
#define SPAWN_FLAG_PRISONERS_CAN_SPAWN BITFLAG(1) | ||
/// Allows general job latejoining to use this spawn point. | ||
#define SPAWN_FLAG_JOBS_CAN_SPAWN BITFLAG(2) | ||
/// Allows persistence decls (currently just bookcases) to use this spawn point. | ||
#define SPAWN_FLAG_PERSISTENCE_CAN_SPAWN BITFLAG(3) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,9 @@ | ||
var/global/list/latejoin_locations = list() | ||
var/global/list/latejoin_cryo_locations = list() | ||
var/global/list/latejoin_cyborg_locations = list() | ||
var/global/list/latejoin_gateway_locations = list() | ||
|
||
/obj/abstract/landmark/latejoin | ||
delete_me = TRUE | ||
var/spawn_decl = /decl/spawnpoint/arrivals | ||
|
||
/obj/abstract/landmark/latejoin/Initialize() | ||
add_loc() | ||
if(spawn_decl) | ||
var/decl/spawnpoint/spawn_instance = GET_DECL(spawn_decl) | ||
spawn_instance.add_spawn_turf(get_turf(src)) | ||
. = ..() | ||
|
||
/obj/abstract/landmark/latejoin/proc/add_loc() | ||
global.latejoin_locations |= get_turf(src) | ||
|
||
/obj/abstract/landmark/latejoin/gateway/add_loc() | ||
global.latejoin_gateway_locations |= get_turf(src) | ||
|
||
/obj/abstract/landmark/latejoin/cryo/add_loc() | ||
global.latejoin_cryo_locations |= get_turf(src) | ||
|
||
/obj/abstract/landmark/latejoin/cyborg/add_loc() | ||
global.latejoin_cyborg_locations |= get_turf(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
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.