Adds more QoL logs for admins (#20468)

* More logs

* why is this not ignored

* you never know if someone has busted DNA

* Update code/controllers/subsystem/jobs.dm

Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com>

---------

Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com>
This commit is contained in:
S34N
2023-03-13 22:24:22 +00:00
committed by GitHub
parent 010f8dd55b
commit 69bd5ad19b
11 changed files with 18 additions and 8 deletions
+2 -4
View File
@@ -502,12 +502,10 @@ SUBSYSTEM_DEF(jobs)
G.prescription = TRUE
G.name = "prescription [G.name]"
H.update_nearsighted_effects()
H.create_log(MISC_LOG, "Spawned as \an [H.dna?.species ? H.dna.species : "Undefined species"] named [H]. [joined_late ? "Joined during the round" : "Roundstart joined"] as job: [rank].")
return H
/datum/controller/subsystem/jobs/proc/LoadJobs(highpop = FALSE) //ran during round setup, reads info from jobs list
if(!GLOB.configuration.jobs.enable_job_amount_overrides)
return FALSE
+6
View File
@@ -834,6 +834,7 @@
special_role = SPECIAL_ROLE_REV
log_admin("[key_name(usr)] has rev'd [key_name(current)]")
message_admins("[key_name_admin(usr)] has rev'd [key_name_admin(current)]")
current.create_log(MISC_LOG, "[current] was made into a revolutionary by [key_name_admin(usr)]")
if("headrev")
if(src in SSticker.mode.revolutionaries)
@@ -860,6 +861,7 @@
special_role = SPECIAL_ROLE_HEAD_REV
log_admin("[key_name(usr)] has head-rev'd [key_name(current)]")
message_admins("[key_name_admin(usr)] has head-rev'd [key_name_admin(current)]")
current.create_log(MISC_LOG, "[current] was made into a head revolutionary by [key_name_admin(usr)]")
if("autoobjectives")
SSticker.mode.forge_revolutionary_objectives(src)
@@ -954,6 +956,7 @@
current.faction = list("wizard")
log_admin("[key_name(usr)] has wizarded [key_name(current)]")
message_admins("[key_name_admin(usr)] has wizarded [key_name_admin(current)]")
current.create_log(MISC_LOG, "[current] was made into a wizard by [key_name_admin(usr)]")
if("lair")
current.forceMove(pick(GLOB.wizardstart))
log_admin("[key_name(usr)] has moved [key_name(current)] to the wizard's lair")
@@ -1183,6 +1186,7 @@
SSticker.mode.update_eventmisc_icons_added(src)
message_admins("[key_name_admin(usr)] has eventantag'ed [current].")
log_admin("[key_name(usr)] has eventantag'ed [current].")
current.create_log(MISC_LOG, "[current] was made into an event antagonist by [key_name_admin(usr)]")
else if(href_list["traitor"])
switch(href_list["traitor"])
@@ -1423,6 +1427,7 @@
make_Abductor()
log_admin("[key_name(usr)] turned [current] into abductor.")
SSticker.mode.update_abductor_icons_added(src)
current.create_log(MISC_LOG, "[current] was made into an abductor by [key_name_admin(usr)]")
if("equip")
if(!ishuman(current))
to_chat(usr, "<span class='warning'>This only works on humans!</span>")
@@ -1731,6 +1736,7 @@
L = agent_landmarks[team]
H.forceMove(L.loc)
SEND_SOUND(H, sound('sound/ambience/antag/abductors.ogg'))
H.create_log(MISC_LOG, "[H] was made into an abductor")
/datum/mind/proc/AddSpell(obj/effect/proc_holder/spell/S)
spell_list += S
+1 -1
View File
@@ -108,7 +108,7 @@ GLOBAL_LIST_EMPTY(blob_nodes)
to_chat(blob.current, "<b>If you go outside of the station level, or in space, then you will die; make sure your location has lots of ground to cover.</b>")
to_chat(blob.current, "<span class='motd'>For more information, check the wiki page: ([GLOB.configuration.url.wiki_url]/index.php/Blob)</span>")
SEND_SOUND(blob.current, sound('sound/magic/mutate.ogg'))
return
blob.current.create_log(MISC_LOG, "[blob.current] was made into a blob")
/datum/game_mode/blob/proc/show_message(message)
for(var/datum/mind/blob in infected_crew)
@@ -160,6 +160,7 @@
to_chat(abductor.current, "<span class='notice'>With the help of your teammate, kidnap and experiment on station crew members!</span>")
to_chat(abductor.current, "<span class='notice'>Use your stealth technology and equipment to incapacitate humans for your scientist to retrieve.</span>")
to_chat(abductor.current, "<span class='motd'>For more information, check the wiki page: ([GLOB.configuration.url.wiki_url]/index.php/Abductor)</span>")
abductor.current.create_log(MISC_LOG, "[abductor.current] was made into an abductor agent")
abductor.announce_objectives()
@@ -174,6 +175,7 @@
to_chat(abductor.current, "<span class='notice'>With the help of your teammate, kidnap and experiment on station crew members!</span>")
to_chat(abductor.current, "<span class='notice'>Use your tool and ship consoles to support the agent and retrieve human specimens.</span>")
to_chat(abductor.current, "<span class='motd'>For more information, check the wiki page: ([GLOB.configuration.url.wiki_url]/index.php/Abductor)</span>")
abductor.current.create_log(MISC_LOG, "[abductor.current] was made into an abductor scientist")
abductor.announce_objectives()
+1 -1
View File
@@ -251,7 +251,7 @@
to_chat(syndicate.current, "<B>Objective #[obj_count]</B>: [objective.explanation_text]")
obj_count++
to_chat(syndicate.current, "<span class='motd'>For more information, check the wiki page: ([GLOB.configuration.url.wiki_url]/index.php/Nuclear_Agent)</span>")
return
syndicate.current.create_log(MISC_LOG, "[syndicate.current] was made into a nuclear operative")
/datum/game_mode/proc/random_radio_frequency()
@@ -106,6 +106,7 @@
rev_mind.special_role = SPECIAL_ROLE_HEAD_REV
obj_count++
to_chat(rev_mind.current, "<span class='motd'>For more information, check the wiki page: ([GLOB.configuration.url.wiki_url]/index.php/Revolution)</span>")
rev_mind.current.create_log(MISC_LOG, "[rev_mind.current] was made into a head revolutionary")
/////////////////////////////////////////////////////////////////////////////////
//This are equips the rev heads with their gear, and makes the clown not clumsy//
+1 -1
View File
@@ -26,7 +26,7 @@
for(var/datum/objective/objective in wizard.objectives)
to_chat(wizard.current, "<B>Objective #[obj_count]</B>: [objective.explanation_text]")
obj_count++
return
wizard.current.create_log(MISC_LOG, "[wizard.current] was made into a wizard")
/datum/game_mode/wizard/raginmages/check_finished()
var/wizards_alive = 0
+1 -1
View File
@@ -109,7 +109,7 @@
to_chat(wizard.current, "<B>Objective #[obj_count]</B>: [objective.explanation_text]")
obj_count++
to_chat(wizard.current, "<span class='motd'>For more information, check the wiki page: ([GLOB.configuration.url.wiki_url]/index.php/Wizard)</span>")
return
wizard.current.create_log(MISC_LOG, "[wizard.current] was made into a wizard")
/datum/game_mode/proc/equip_wizard(mob/living/carbon/human/wizard_mob)
if(!istype(wizard_mob))
@@ -285,6 +285,7 @@ GLOBAL_LIST_EMPTY(antagonists)
to_chat(owner.current, "<span class='motd'>For more information, check the wiki page: ([GLOB.configuration.url.wiki_url]/index.php/[wiki_page_name])</span>")
if(is_banned(owner.current) && replace_banned)
INVOKE_ASYNC(src, PROC_REF(replace_banned_player))
owner.current.create_log(MISC_LOG, "[owner.current] was made into \an [special_role]")
return TRUE
/**
+1
View File
@@ -47,3 +47,4 @@
to_chat(M, "<span class='warning'>Due to freak radiation, you have gained \
human level intelligence and the ability to speak and understand \
human language!</span>")
M.create_log(MISC_LOG, "[M] was made into a sentient animal")
+1
View File
@@ -64,6 +64,7 @@ GLOBAL_LIST_INIT(unused_trade_stations, list("sol"))
to_chat(M, "<span class='notice'>You are currently docked at [get_area(M)].</span>")
to_chat(M, "<span class='notice'>You are about to trade with [station_name()].</span>")
addtimer(CALLBACK(GLOBAL_PROC, GLOBAL_PROC_REF(show_objectives), M.mind), 25)
M.create_log(MISC_LOG, "[M] was made into a Sol Trader")
/datum/event/traders/proc/forge_trader_objectives()
var/list/objs = list()