diff --git a/code/game/objects/structures/ghost_role_spawners.dm b/code/game/objects/structures/ghost_role_spawners.dm index 418884435c..8aa84f2210 100644 --- a/code/game/objects/structures/ghost_role_spawners.dm +++ b/code/game/objects/structures/ghost_role_spawners.dm @@ -619,6 +619,24 @@ skip_reentry_check = TRUE banType = "ghostcafe" +/datum/action/toggle_dead_chat_mob + icon_icon = 'icons/mob/mob.dmi' + button_icon_state = "ghost" + name = "Toggle deadchat" + desc = "Turn off or on your ability to hear ghosts." + +/datum/action/toggle_dead_chat_mob/Trigger() + if(!..()) + return 0 + var/mob/M = target + if(HAS_TRAIT(M,TRAIT_SIXTHSENSE)) + REMOVE_TRAIT(M,TRAIT_SIXTHSENSE,GHOSTROLE_TRAIT) + to_chat(M,"You're no longer hearing deadchat.") + else + ADD_TRAIT(M,TRAIT_SIXTHSENSE,GHOSTROLE_TRAIT) + to_chat(M,"You're once again longer hearing deadchat.") + + /obj/effect/mob_spawn/human/ghostcafe/special(mob/living/carbon/human/new_spawn) if(new_spawn.client) new_spawn.client.prefs.copy_to(new_spawn) @@ -634,6 +652,8 @@ to_chat(new_spawn,"You can turn yourself into a ghost and freely reenter your body with the ghost action.") var/datum/action/ghost/G = new(new_spawn) G.Grant(new_spawn) + var/datum/action/toggle_dead_chat_mob/D = new(new_spawn) + D.Grant(new_spawn) /datum/outfit/ghostcafe name = "ID, jumpsuit and shoes"