mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-12 07:33:34 +01:00
Makes being jobbanned more clear to player who somehow still get made into an antag (#27046)
* Makes being jobbanned more clear to player who somehow still get made into an antag * Apply suggestions from code review Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com> * Update code/modules/antagonists/_common/antag_datum.dm Co-authored-by: Sheep <46016730+Scribble-Sheep@users.noreply.github.com> Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com> * Update code/game/gamemodes/game_mode.dm Co-authored-by: Sheep <46016730+Scribble-Sheep@users.noreply.github.com> Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com> --------- Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com> Co-authored-by: Sheep <46016730+Scribble-Sheep@users.noreply.github.com>
This commit is contained in:
@@ -355,6 +355,8 @@ GLOBAL_LIST_EMPTY(antagonists)
|
||||
/datum/antagonist/proc/replace_banned_player()
|
||||
var/list/mob/dead/observer/candidates = SSghost_spawns.poll_candidates("Do you want to play as a [name]?", job_rank, TRUE, 10 SECONDS)
|
||||
if(!length(candidates))
|
||||
message_admins("[owner] ([owner.key]) has been converted into [name] with an active antagonist jobban for said role since no ghost has volunteered to take [owner.p_their()] place.")
|
||||
to_chat(owner.current, "<span class='biggerdanger'>You have been converted into [name] with an active jobban. Your body was offered up but there were no ghosts to take over. You will be allowed to continue as [name], but any further violations of the rules on your part are likely to result in a permanent ban.</span>")
|
||||
return FALSE
|
||||
var/mob/dead/observer/C = pick(candidates)
|
||||
to_chat(owner.current, "Your mob has been taken over by a ghost! Appeal your job ban if you want to avoid this in the future!")
|
||||
|
||||
@@ -69,8 +69,7 @@
|
||||
|
||||
var/greet_text = "<b>You have been Enthralled by [user.real_name]. Follow [user.p_their()] every command.</b>"
|
||||
H.mind.add_antag_datum(new /datum/antagonist/mindslave/thrall(user.mind, greet_text))
|
||||
if(jobban_isbanned(H, ROLE_VAMPIRE))
|
||||
SSticker.mode.replace_jobbanned_player(H, SPECIAL_ROLE_VAMPIRE_THRALL)
|
||||
|
||||
H.Stun(4 SECONDS)
|
||||
user.create_log(CONVERSION_LOG, "vampire enthralled", H)
|
||||
H.create_log(CONVERSION_LOG, "was vampire enthralled", user)
|
||||
|
||||
Reference in New Issue
Block a user