[ADMIN] IAA button stuff (#19489)

* Update internal_affairs.dm

* more informative for admins
This commit is contained in:
ynot01
2023-07-02 23:47:49 -04:00
committed by GitHub
parent 7317a58383
commit e2f31d1fc2
3 changed files with 6 additions and 3 deletions

View File

@@ -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()

View File

@@ -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

View File

@@ -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."))