mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-28 23:51:17 +01:00
Adds a new admin verb (#3521)
Adds a verb that allows admins to replace people using the ghost trap. It is in the secrets menu. If the person they are replacing has a special role (IE. merc) it will only asks ghosts who have that pref enabled. Otherwise, it asks anyone.
This commit is contained in:
@@ -278,3 +278,138 @@ datum/ghosttrap/pai/transfer_personality(var/mob/candidate, var/mob/living/silic
|
||||
|
||||
/datum/ghosttrap/skeleton/welcome_candidate(var/mob/target)
|
||||
return 0
|
||||
|
||||
//Gamemodes
|
||||
|
||||
/datum/ghosttrap/merc
|
||||
object = "Mercenary"
|
||||
pref_check = MODE_MERCENARY
|
||||
ghost_trap_message = "They are occupying a mercenary."
|
||||
ghost_trap_role = "Mercenary"
|
||||
ban_checks = list(MODE_MERCENARY)
|
||||
can_set_own_name = FALSE
|
||||
list_as_special_role = FALSE
|
||||
|
||||
/datum/ghosttrap/merc/welcome_candidate(var/mob/target)
|
||||
return 0
|
||||
|
||||
/datum/ghosttrap/raider
|
||||
object = "Raider"
|
||||
pref_check = MODE_RAIDER
|
||||
ghost_trap_message = "They are occupying a raider."
|
||||
ghost_trap_role = "Raider"
|
||||
ban_checks = list(MODE_RAIDER)
|
||||
can_set_own_name = FALSE
|
||||
list_as_special_role = FALSE
|
||||
|
||||
/datum/ghosttrap/raider/welcome_candidate(var/mob/target)
|
||||
return 0
|
||||
|
||||
/datum/ghosttrap/ninja
|
||||
object = "Ninja"
|
||||
pref_check = MODE_NINJA
|
||||
ghost_trap_message = "They are occupying a ninja."
|
||||
ghost_trap_role = "Ninja"
|
||||
ban_checks = list(MODE_NINJA)
|
||||
can_set_own_name = FALSE
|
||||
list_as_special_role = FALSE
|
||||
|
||||
/datum/ghosttrap/ninja/welcome_candidate(var/mob/target)
|
||||
return 0
|
||||
|
||||
/datum/ghosttrap/wizard
|
||||
object = "Wizard"
|
||||
pref_check = MODE_WIZARD
|
||||
ghost_trap_message = "They are occupying a wizard."
|
||||
ghost_trap_role = "Wizard"
|
||||
ban_checks = list(MODE_WIZARD)
|
||||
can_set_own_name = FALSE
|
||||
list_as_special_role = FALSE
|
||||
|
||||
/datum/ghosttrap/wizard/welcome_candidate(var/mob/target)
|
||||
return 0
|
||||
|
||||
/datum/ghosttrap/malf
|
||||
object = "AI Malfunction"
|
||||
pref_check = MODE_MALFUNCTION
|
||||
ghost_trap_message = "They are occupying a malfunctioning AI."
|
||||
ghost_trap_role = "Malfuntioning AI"
|
||||
ban_checks = list(MODE_MALFUNCTION)
|
||||
can_set_own_name = FALSE
|
||||
list_as_special_role = FALSE
|
||||
|
||||
/datum/ghosttrap/malf/welcome_candidate(var/mob/target)
|
||||
return 0
|
||||
|
||||
/datum/ghosttrap/ert
|
||||
object = "Emergency Responder"
|
||||
pref_check = MODE_ERT
|
||||
ghost_trap_message = "They are occupying an ERT member."
|
||||
ghost_trap_role = "ERT member"
|
||||
ban_checks = list(MODE_ERT)
|
||||
can_set_own_name = FALSE
|
||||
list_as_special_role = FALSE
|
||||
|
||||
/datum/ghosttrap/ert/welcome_candidate(var/mob/target)
|
||||
return 0
|
||||
|
||||
/datum/ghosttrap/changeling
|
||||
object = "Changeling"
|
||||
pref_check = MODE_CHANGELING
|
||||
ghost_trap_message = "They are occupying a changeling."
|
||||
ghost_trap_role = "Changeling"
|
||||
ban_checks = list(MODE_CHANGELING)
|
||||
can_set_own_name = FALSE
|
||||
list_as_special_role = FALSE
|
||||
|
||||
/datum/ghosttrap/changeling/welcome_candidate(var/mob/target)
|
||||
return 0
|
||||
|
||||
/datum/ghosttrap/cultist
|
||||
object = "Cult"
|
||||
pref_check = MODE_CULTIST
|
||||
ghost_trap_message = "They are occupying a cultist."
|
||||
ghost_trap_role = "Cultist"
|
||||
ban_checks = list(MODE_CULTIST)
|
||||
can_set_own_name = FALSE
|
||||
list_as_special_role = FALSE
|
||||
|
||||
/datum/ghosttrap/cultist/welcome_candidate(var/mob/target)
|
||||
return 0
|
||||
|
||||
/datum/ghosttrap/traitor
|
||||
object = "Traitor"
|
||||
pref_check = MODE_TRAITOR
|
||||
ghost_trap_message = "They are occupying a traitor."
|
||||
ghost_trap_role = "Traitor"
|
||||
ban_checks = list(MODE_TRAITOR)
|
||||
can_set_own_name = FALSE
|
||||
list_as_special_role = FALSE
|
||||
|
||||
/datum/ghosttrap/traitor/welcome_candidate(var/mob/target)
|
||||
target << "<span class ='notice'> Check your notes for your PDA code!</span>"
|
||||
return 1
|
||||
|
||||
/datum/ghosttrap/vampire
|
||||
object = "Vampire"
|
||||
pref_check = MODE_VAMPIRE
|
||||
ghost_trap_message = "They are occupying a vampire."
|
||||
ghost_trap_role = "vampire"
|
||||
ban_checks = list(MODE_VAMPIRE)
|
||||
can_set_own_name = FALSE
|
||||
list_as_special_role = FALSE
|
||||
|
||||
/datum/ghosttrap/vampire/welcome_candidate(var/mob/target)
|
||||
return 0
|
||||
|
||||
/datum/ghosttrap/special
|
||||
object = "Special"
|
||||
pref_check = null
|
||||
ghost_trap_message = "They are occupying a person."
|
||||
ghost_trap_role = "person"
|
||||
ban_checks = list()
|
||||
can_set_own_name = FALSE
|
||||
list_as_special_role = FALSE
|
||||
|
||||
/datum/ghosttrap/special/welcome_candidate(var/mob/target)
|
||||
return 0
|
||||
Reference in New Issue
Block a user