From b57ba154add13271beaa7c40cc526a17a7a27e45 Mon Sep 17 00:00:00 2001 From: Mark van Alphen Date: Sat, 1 Jun 2019 07:03:43 +0200 Subject: [PATCH] Add ghostrole jobban option --- code/__DEFINES/role_preferences.dm | 1 + code/__DEFINES/rolebans.dm | 1 + code/modules/awaymissions/corpse.dm | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/code/__DEFINES/role_preferences.dm b/code/__DEFINES/role_preferences.dm index 65372fed1c8..34ad4d69e54 100644 --- a/code/__DEFINES/role_preferences.dm +++ b/code/__DEFINES/role_preferences.dm @@ -43,6 +43,7 @@ #define ROLE_DRONE "drone" #define ROLE_DEATHSQUAD "deathsquad" #define ROLE_EVENTMISC "eventmisc" +#define ROLE_GHOST "ghost role" //Missing assignment means it's not a gamemode specific role, IT'S NOT A BUG OR ERROR. //The gamemode specific ones are just so the gamemodes can query whether a player is old enough diff --git a/code/__DEFINES/rolebans.dm b/code/__DEFINES/rolebans.dm index b2eb79e26be..d6e54abf14a 100644 --- a/code/__DEFINES/rolebans.dm +++ b/code/__DEFINES/rolebans.dm @@ -25,6 +25,7 @@ var/global/list/other_roles = list( ROLE_SENTIENT, ROLE_NYMPH, ROLE_ERT, + ROLE_GHOST, "AntagHUD", "Records" ) diff --git a/code/modules/awaymissions/corpse.dm b/code/modules/awaymissions/corpse.dm index 37a29d8e79e..d217aacb253 100644 --- a/code/modules/awaymissions/corpse.dm +++ b/code/modules/awaymissions/corpse.dm @@ -28,7 +28,7 @@ var/datum/disease/disease = null //Do they start with a pre-spawned disease? var/mob_color //Change the mob's color var/assignedrole - var/banType = "lavaland" + var/banType = ROLE_GHOST var/ghost_usable = TRUE