mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
[ADMIN] IAA button stuff (#19489)
* Update internal_affairs.dm * more informative for admins
This commit is contained in:
@@ -151,7 +151,7 @@
|
||||
continue
|
||||
potential_candidates += applicant
|
||||
if(!potential_candidates.len)
|
||||
message_admins("Failed to find new antag after original one left! Check the antag balance please.")
|
||||
message_admins("Tried to create a new traitor-like, but there were no eligible candidates!")
|
||||
return FALSE
|
||||
var/mob/living/carbon/human/picked = pick(potential_candidates)
|
||||
if(!picked || !picked.client)
|
||||
@@ -159,7 +159,7 @@
|
||||
var/datum/antagonist/traitor/new_antag = new antag_datum()
|
||||
picked.mind.add_antag_datum(new_antag)
|
||||
picked.mind.special_role = traitor_name
|
||||
return TRUE
|
||||
return picked
|
||||
|
||||
/datum/game_mode/traitor/proc/add_latejoin_traitor(datum/mind/character)
|
||||
var/datum/antagonist/traitor/new_antag = new antag_datum()
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
name = "Syndicate Internal Affairs Agent"
|
||||
special_role = "internal affairs agent" //Doesn't have it listed but employer should still be syndicate
|
||||
antagpanel_category = "IAA"
|
||||
job_rank = ROLE_INTERNAL_AFFAIRS
|
||||
var/marauder = FALSE
|
||||
var/last_man_standing = FALSE
|
||||
var/list/datum/mind/targets_stolen
|
||||
|
||||
@@ -122,8 +122,10 @@
|
||||
// Spawn new IAA
|
||||
if(istype(SSticker.mode, /datum/game_mode/traitor/internal_affairs))
|
||||
var/datum/game_mode/traitor/internal_affairs/iaa_mode = SSticker.mode
|
||||
if(iaa_mode.create_new_traitor())
|
||||
var/mob/living/new_tot = iaa_mode.create_new_traitor()
|
||||
if(new_tot)
|
||||
to_chat(user, span_warning("You feel like someone is watching you... Keep on your guard."))
|
||||
message_admins("[ADMIN_LOOKUPFLW(new_tot)] was made into a new IAA by \a [src].")
|
||||
qdel(src)
|
||||
else
|
||||
to_chat(user, span_notice("\The [src] doesn't seem to do anything."))
|
||||
|
||||
Reference in New Issue
Block a user