Whitelisting on jobs framework.

This commit is contained in:
quotefox
2021-07-22 14:41:29 +01:00
parent d63137a189
commit ea41b22c7e
11 changed files with 111 additions and 5 deletions
+3
View File
@@ -17,6 +17,8 @@ Clown
access = list(ACCESS_THEATRE)
minimal_access = list(ACCESS_THEATRE)
whitelist_type = "silly"
/datum/job/clown/after_spawn(mob/living/carbon/human/H, mob/M)
..()
H.apply_pref_name("clown", M.client)
@@ -81,6 +83,7 @@ Mime
access = list(ACCESS_THEATRE)
minimal_access = list(ACCESS_THEATRE)
whitelist_type = "silly"
/datum/job/mime/after_spawn(mob/living/carbon/human/H, mob/M)
..()
+3
View File
@@ -63,6 +63,9 @@
var/override_roundstart_spawn = null //Where the player spawns at roundstart if defined
//whitelisting
var/whitelist_type = ""
//Only override this proc
//H is usually a human unless an /equip override transformed it
/datum/job/proc/after_spawn(mob/living/H, mob/M, latejoin = FALSE)
-1
View File
@@ -55,7 +55,6 @@ GLOBAL_LIST_INIT(security_positions, list(
"Security Officer",
"Rookie"))
GLOBAL_LIST_INIT(nonhuman_positions, list(
"AI",
"Cyborg",