From 21d3b25a14f31cc0c74776f11d76e3240855cef7 Mon Sep 17 00:00:00 2001 From: larentoun <31931237+larentoun@users.noreply.github.com> Date: Tue, 19 Nov 2024 23:06:16 +0300 Subject: [PATCH] Fixes mafia's vest and reveal abilities (#88018) ## About The Pull Request Psych's ability to reveal now has a single charge Vest's ability should now have two charges instead of deleting after use ## Why It's Good For The Game Bugfix good ## Changelog :cl: fix: Mafia: Psych's reveal ability now correctly has a single use fix: Mafia: Fugitive's vest ability now correctly should have two uses /:cl: --- code/modules/mafia/abilities/investigative/reveal.dm | 6 +++--- code/modules/mafia/roles/town/town_investigative.dm | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/code/modules/mafia/abilities/investigative/reveal.dm b/code/modules/mafia/abilities/investigative/reveal.dm index 5e38d3c9faf..24161017156 100644 --- a/code/modules/mafia/abilities/investigative/reveal.dm +++ b/code/modules/mafia/abilities/investigative/reveal.dm @@ -4,11 +4,11 @@ * During the night, revealing someone will announce their role when day comes. * This is one time use, we'll delete ourselves once done. */ -/datum/mafia_ability/reaveal_role +/datum/mafia_ability/reveal_role name = "Reveal" ability_action = "psychologically evaluate" -/datum/mafia_ability/reaveal_role/perform_action_target(datum/mafia_controller/game, datum/mafia_role/day_target) +/datum/mafia_ability/reveal_role/perform_action_target(datum/mafia_controller/game, datum/mafia_role/day_target) . = ..() if(!.) return FALSE @@ -17,7 +17,7 @@ target_role.reveal_role(game, verbose = TRUE) return TRUE -/datum/mafia_ability/vest/clean_action_refs(datum/mafia_controller/game) +/datum/mafia_ability/reveal_role/clean_action_refs(datum/mafia_controller/game) if(using_ability) host_role.role_unique_actions -= src qdel(src) diff --git a/code/modules/mafia/roles/town/town_investigative.dm b/code/modules/mafia/roles/town/town_investigative.dm index a09cff3acd2..76b81eab3bd 100644 --- a/code/modules/mafia/roles/town/town_investigative.dm +++ b/code/modules/mafia/roles/town/town_investigative.dm @@ -20,7 +20,7 @@ hud_icon = "hudpsychologist" revealed_icon = "psychologist" - role_unique_actions = list(/datum/mafia_ability/reaveal_role) + role_unique_actions = list(/datum/mafia_ability/reveal_role) /datum/mafia_role/chaplain name = "Chaplain"