Skip to content

Commit

Permalink
fixes malkavians not getting an objective when another vamp breaks th…
Browse files Browse the repository at this point in the history
…e masquerade (#3512)
  • Loading branch information
Absolucy authored Sep 26, 2024
1 parent 49a2013 commit 4ff5525
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
broke_masquerade = TRUE
antag_hud_name = "masquerade_broken"
add_team_hud(owner.current)
SEND_GLOBAL_SIGNAL(COMSIG_BLOODSUCKER_BROKE_MASQUERADE)
SEND_GLOBAL_SIGNAL(COMSIG_BLOODSUCKER_BROKE_MASQUERADE, src)

///This is admin-only of reverting a broken masquerade, sadly it doesn't remove the Malkavian objectives yet.
/datum/antagonist/bloodsucker/proc/fix_masquerade(mob/admin)
Expand Down
4 changes: 3 additions & 1 deletion monkestation/code/modules/bloodsuckers/clans/malkavian.dm
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@
INVOKE_ASYNC(stone, TYPE_PROC_REF(/obj/item/soulstone/bloodsucker, capture_soul), bloodsuckerdatum.owner.current, forced = TRUE, bloodsuckerdatum = bloodsuckerdatum)
return DONT_DUST

/datum/bloodsucker_clan/malkavian/proc/on_bloodsucker_broke_masquerade(datum/antagonist/bloodsucker/masquerade_breaker)
/datum/bloodsucker_clan/malkavian/proc/on_bloodsucker_broke_masquerade(datum/source, datum/antagonist/bloodsucker/masquerade_breaker)
SIGNAL_HANDLER
if(masquerade_breaker == bloodsuckerdatum)
return
to_chat(bloodsuckerdatum.owner.current, span_userdanger("[masquerade_breaker.owner.current] has broken the Masquerade! Ensure [masquerade_breaker.owner.current.p_they()] [masquerade_breaker.owner.current.p_are()] eliminated at all costs!"))
var/datum/objective/assassinate/masquerade_objective = new()
masquerade_objective.target = masquerade_breaker.owner.current
Expand Down

0 comments on commit 4ff5525

Please sign in to comment.