Merge pull request #38360 from ShizCalev/key-cleanup

Cleans up some logging
This commit is contained in:
oranges
2018-06-12 11:48:21 +12:00
committed by letterjay
parent ecd200a5bc
commit 1d0f775f56
48 changed files with 82 additions and 82 deletions

View File

@@ -43,7 +43,7 @@
team.add_member(bro) team.add_member(bro)
bro.special_role = "brother" bro.special_role = "brother"
bro.restricted_roles = restricted_jobs bro.restricted_roles = restricted_jobs
log_game("[bro.key] (ckey) has been selected as a Brother") log_game("[key_name(bro)] has been selected as a Brother")
pre_brother_teams += team pre_brother_teams += team
return ..() return ..()

View File

@@ -69,7 +69,7 @@ GLOBAL_VAR(changeling_team_objective_type) //If this is not null, we hand our th
GLOB.changeling_team_objective_type = pick(possible_team_objectives) GLOB.changeling_team_objective_type = pick(possible_team_objectives)
for(var/datum/mind/changeling in changelings) for(var/datum/mind/changeling in changelings)
log_game("[changeling.key] (ckey) has been selected as a changeling") log_game("[key_name(changeling)] has been selected as a changeling")
var/datum/antagonist/changeling/new_antag = new() var/datum/antagonist/changeling/new_antag = new()
new_antag.team_mode = TRUE new_antag.team_mode = TRUE
changeling.add_antag_datum(new_antag) changeling.add_antag_datum(new_antag)

View File

@@ -174,7 +174,7 @@ Credit where due:
/datum/game_mode/clockwork_cult/post_setup() /datum/game_mode/clockwork_cult/post_setup()
for(var/S in servants_to_serve) for(var/S in servants_to_serve)
var/datum/mind/servant = S var/datum/mind/servant = S
log_game("[servant.key] was made an initial servant of Ratvar") log_game("[key_name(servant)] was made an initial servant of Ratvar")
var/mob/living/L = servant.current var/mob/living/L = servant.current
var/turf/T = pick(GLOB.servant_spawns) var/turf/T = pick(GLOB.servant_spawns)
L.forceMove(T) L.forceMove(T)

View File

@@ -79,7 +79,7 @@
cultists_to_cult += cultist cultists_to_cult += cultist
cultist.special_role = ROLE_CULTIST cultist.special_role = ROLE_CULTIST
cultist.restricted_roles = restricted_jobs cultist.restricted_roles = restricted_jobs
log_game("[cultist.key] (ckey) has been selected as a cultist") log_game("[key_name(cultist)] has been selected as a cultist")
return (cultists_to_cult.len>=required_enemies) return (cultists_to_cult.len>=required_enemies)

View File

@@ -41,7 +41,7 @@
devil.special_role = traitor_name devil.special_role = traitor_name
devil.restricted_roles = restricted_jobs devil.restricted_roles = restricted_jobs
log_game("[devil.key] (ckey) has been selected as a [traitor_name]") log_game("[key_name(devil)] has been selected as a [traitor_name]")
antag_candidates.Remove(devil) antag_candidates.Remove(devil)
if(devils.len < required_enemies) if(devils.len < required_enemies)

View File

@@ -36,7 +36,7 @@
carriers += carrier carriers += carrier
carrier.special_role = "Monkey Leader" carrier.special_role = "Monkey Leader"
carrier.restricted_roles = restricted_jobs carrier.restricted_roles = restricted_jobs
log_game("[carrier.key] (ckey) has been selected as a Jungle Fever carrier") log_game("[key_name(carrier)] has been selected as a Jungle Fever carrier")
antag_candidates -= carrier antag_candidates -= carrier
if(!carriers.len) if(!carriers.len)

View File

@@ -30,7 +30,7 @@
pre_nukeops += new_op pre_nukeops += new_op
new_op.assigned_role = "Nuclear Operative" new_op.assigned_role = "Nuclear Operative"
new_op.special_role = "Nuclear Operative" new_op.special_role = "Nuclear Operative"
log_game("[new_op.key] (ckey) has been selected as a nuclear operative") log_game("[key_name(new_op)] has been selected as a nuclear operative")
return TRUE return TRUE
else else
return FALSE return FALSE

View File

@@ -96,7 +96,7 @@
revolution = new() revolution = new()
for(var/datum/mind/rev_mind in headrev_candidates) for(var/datum/mind/rev_mind in headrev_candidates)
log_game("[rev_mind.key] (ckey) has been selected as a head rev") log_game("[key_name(rev_mind)] has been selected as a head rev")
var/datum/antagonist/rev/head/new_head = new() var/datum/antagonist/rev/head/new_head = new()
new_head.give_flash = TRUE new_head.give_flash = TRUE
new_head.give_hud = TRUE new_head.give_hud = TRUE

View File

@@ -53,7 +53,7 @@
pre_traitors += traitor pre_traitors += traitor
traitor.special_role = traitor_name traitor.special_role = traitor_name
traitor.restricted_roles = restricted_jobs traitor.restricted_roles = restricted_jobs
log_game("[traitor.key] (ckey) has been selected as a [traitor_name]") log_game("[key_name(traitor)] has been selected as a [traitor_name]")
antag_candidates.Remove(traitor) antag_candidates.Remove(traitor)
return !traitors_required || pre_traitors.len > 0 return !traitors_required || pre_traitors.len > 0

View File

@@ -23,7 +23,7 @@
wizards += wizard wizards += wizard
wizard.assigned_role = ROLE_WIZARD wizard.assigned_role = ROLE_WIZARD
wizard.special_role = ROLE_WIZARD wizard.special_role = ROLE_WIZARD
log_game("[wizard.key] (ckey) has been selected as a Wizard") //TODO: Move these to base antag datum log_game("[key_name(wizard)] has been selected as a Wizard") //TODO: Move these to base antag datum
if(GLOB.wizardstart.len == 0) if(GLOB.wizardstart.len == 0)
to_chat(wizard.current, "<span class='boldannounce'>A starting location for you could not be found, please report this bug!</span>") to_chat(wizard.current, "<span class='boldannounce'>A starting location for you could not be found, please report this bug!</span>")
return 0 return 0

View File

@@ -148,7 +148,7 @@
id_goal_not_set = TRUE id_goal_not_set = TRUE
id.goal = default_goal id.goal = default_goal
say("[id]'s ID card goal defaulting to [id.goal] points.") say("[id]'s ID card goal defaulting to [id.goal] points.")
log_game("[user]([user.ckey] teleported [prisoner]([prisoner.ckey]) to the Labor Camp [COORD(beacon)] for [id_goal_not_set ? "default goal of ":""][id.goal] points.") log_game("[key_name(user)] teleported [key_name(prisoner)] to the Labor Camp [COORD(beacon)] for [id_goal_not_set ? "default goal of ":""][id.goal] points.")
teleporter.handle_prisoner(id, temporary_record) teleporter.handle_prisoner(id, temporary_record)
playsound(src, 'sound/weapons/emitter.ogg', 50, 1) playsound(src, 'sound/weapons/emitter.ogg', 50, 1)
prisoner.forceMove(get_turf(beacon)) prisoner.forceMove(get_turf(beacon))

View File

@@ -283,7 +283,7 @@
src.temp = "Are you sure you wish to delete all records?<br>\n\t<A href='?src=[REF(src)];temp=1;del_all2=1'>Yes</A><br>\n\t<A href='?src=[REF(src)];temp=1'>No</A><br>" src.temp = "Are you sure you wish to delete all records?<br>\n\t<A href='?src=[REF(src)];temp=1;del_all2=1'>Yes</A><br>\n\t<A href='?src=[REF(src)];temp=1'>No</A><br>"
else if(href_list["del_all2"]) else if(href_list["del_all2"])
investigate_log("[usr.name] ([usr.key]) has deleted all medical records.", INVESTIGATE_RECORDS) investigate_log("[key_name(usr)] has deleted all medical records.", INVESTIGATE_RECORDS)
GLOB.data_core.medical.Cut() GLOB.data_core.medical.Cut()
src.temp = "All records deleted." src.temp = "All records deleted."
@@ -449,7 +449,7 @@
src.temp = "Are you sure you wish to delete the record (Medical Portion Only)?<br>\n\t<A href='?src=[REF(src)];temp=1;del_r2=1'>Yes</A><br>\n\t<A href='?src=[REF(src)];temp=1'>No</A><br>" src.temp = "Are you sure you wish to delete the record (Medical Portion Only)?<br>\n\t<A href='?src=[REF(src)];temp=1;del_r2=1'>Yes</A><br>\n\t<A href='?src=[REF(src)];temp=1'>No</A><br>"
else if(href_list["del_r2"]) else if(href_list["del_r2"])
investigate_log("[usr.name] ([usr.key]) has deleted the medical records for [active1.fields["name"]].", INVESTIGATE_RECORDS) investigate_log("[key_name(usr)] has deleted the medical records for [active1.fields["name"]].", INVESTIGATE_RECORDS)
if(active2) if(active2)
qdel(active2) qdel(active2)
active2 = null active2 = null

View File

@@ -133,7 +133,7 @@
if((istype(S) && S.hack_software) || IsAdminGhost(usr)) if((istype(S) && S.hack_software) || IsAdminGhost(usr))
var/mob/living/silicon/robot/R = locate(href_list["magbot"]) in GLOB.silicon_mobs var/mob/living/silicon/robot/R = locate(href_list["magbot"]) in GLOB.silicon_mobs
if(istype(R) && !R.emagged && (R.connected_ai == usr || IsAdminGhost(usr)) && !R.scrambledcodes && can_control(usr, R)) if(istype(R) && !R.emagged && (R.connected_ai == usr || IsAdminGhost(usr)) && !R.scrambledcodes && can_control(usr, R))
log_game("[key_name(usr)] emagged [R.name] using robotic console!") log_game("[key_name(usr)] emagged [key_name(R)] using robotic console!")
message_admins("[ADMIN_LOOKUPFLW(usr)] emagged cyborg [key_name_admin(R)] using robotic console!") message_admins("[ADMIN_LOOKUPFLW(usr)] emagged cyborg [key_name_admin(R)] using robotic console!")
R.SetEmagged(1) R.SetEmagged(1)
@@ -141,7 +141,7 @@
if(isAI(usr) && is_servant_of_ratvar(usr)) if(isAI(usr) && is_servant_of_ratvar(usr))
var/mob/living/silicon/robot/R = locate(href_list["convert"]) in GLOB.silicon_mobs var/mob/living/silicon/robot/R = locate(href_list["convert"]) in GLOB.silicon_mobs
if(istype(R) && !is_servant_of_ratvar(R) && R.connected_ai == usr) if(istype(R) && !is_servant_of_ratvar(R) && R.connected_ai == usr)
log_game("[key_name(usr)] converted [R.name] using robotic console!") log_game("[key_name(usr)] converted [key_name(R)] using robotic console!")
message_admins("[ADMIN_LOOKUPFLW(usr)] converted cyborg [key_name_admin(R)] using robotic console!") message_admins("[ADMIN_LOOKUPFLW(usr)] converted cyborg [key_name_admin(R)] using robotic console!")
add_servant_of_ratvar(R) add_servant_of_ratvar(R)

View File

@@ -457,7 +457,7 @@ What a mess.*/
temp += "<a href='?src=[REF(src)];choice=Clear Screen'>No</a>" temp += "<a href='?src=[REF(src)];choice=Clear Screen'>No</a>"
if("Purge All Records") if("Purge All Records")
investigate_log("[usr.name] ([usr.key]) has purged all the security records.", INVESTIGATE_RECORDS) investigate_log("[key_name(usr)] has purged all the security records.", INVESTIGATE_RECORDS)
for(var/datum/data/record/R in GLOB.data_core.security) for(var/datum/data/record/R in GLOB.data_core.security)
qdel(R) qdel(R)
GLOB.data_core.security.Cut() GLOB.data_core.security.Cut()

View File

@@ -187,7 +187,7 @@
log_message("Honked from [src.name]. HONK!") log_message("Honked from [src.name]. HONK!")
var/turf/T = get_turf(src) var/turf/T = get_turf(src)
message_admins("[ADMIN_LOOKUPFLW(chassis.occupant)] used a Mecha Honker in [ADMIN_VERBOSEJMP(T)]") message_admins("[ADMIN_LOOKUPFLW(chassis.occupant)] used a Mecha Honker in [ADMIN_VERBOSEJMP(T)]")
log_game("[chassis.occupant.ckey]([chassis.occupant]) used a Mecha Honker in [AREACOORD(T)]") log_game("[key_name(chassis.occupant)] used a Mecha Honker in [AREACOORD(T)]")
return 1 return 1

View File

@@ -32,7 +32,7 @@
var/time = time2text(world.realtime,"hh:mm:ss") var/time = time2text(world.realtime,"hh:mm:ss")
var/turf/T = get_turf(src) var/turf/T = get_turf(src)
GLOB.lastsignalers.Add("[time] <B>:</B> [usr.key] used [src] @ location ([T.x],[T.y],[T.z]) <B>:</B> [format_frequency(frequency)]/[code]") GLOB.lastsignalers.Add("[time] <B>:</B> [usr.key] used [src] @ location [AREACOORD(T)] <B>:</B> [format_frequency(frequency)]/[code]")
var/datum/signal/signal = new(list("code" = code)) var/datum/signal/signal = new(list("code" = code))
radio_connection.post_signal(src, signal, filter = RADIO_SIGNALER) radio_connection.post_signal(src, signal, filter = RADIO_SIGNALER)

View File

@@ -140,7 +140,7 @@
START_PROCESSING(SSfastprocess, src) START_PROCESSING(SSfastprocess, src)
var/turf/T = get_turf(src) var/turf/T = get_turf(src)
message_admins("[user? "[ADMIN_LOOKUPFLW(user)] has primed [src]" : "A [src] has been primed"] (Timer:[delay],Explosive:[detonate_explosion],Range:[detonate_dev_range]/[detonate_heavy_range]/[detonate_light_range]/[detonate_fire_range]) for detonation at [ADMIN_VERBOSEJMP(T)]") message_admins("[user? "[ADMIN_LOOKUPFLW(user)] has primed [src]" : "A [src] has been primed"] (Timer:[delay],Explosive:[detonate_explosion],Range:[detonate_dev_range]/[detonate_heavy_range]/[detonate_light_range]/[detonate_fire_range]) for detonation at [ADMIN_VERBOSEJMP(T)]")
log_game("[user? "[user] has primed [src]" : "A [src] has been primed"] ([detonate_dev_range]/[detonate_heavy_range]/[detonate_light_range]/[detonate_fire_range]) for detonation at [AREACOORD(T)]") log_game("[user ? "[key_name(user)] has primed [src]" : "A [src] has been primed"] ([detonate_dev_range]/[detonate_heavy_range]/[detonate_light_range]/[detonate_fire_range]) for detonation at [AREACOORD(T)]")
active = TRUE active = TRUE
/obj/item/hot_potato/proc/deactivate() /obj/item/hot_potato/proc/deactivate()

View File

@@ -312,7 +312,7 @@
audible_message("<font color='red' size='7'>HUMAN HARM</font>") audible_message("<font color='red' size='7'>HUMAN HARM</font>")
playsound(get_turf(src), 'sound/ai/harmalarm.ogg', 70, 3) playsound(get_turf(src), 'sound/ai/harmalarm.ogg', 70, 3)
cooldown = world.time + 200 cooldown = world.time + 200
log_game("[user.ckey]([user]) used a Cyborg Harm Alarm in ([user.x],[user.y],[user.z])") log_game("[key_name(user)] used a Cyborg Harm Alarm in [AREACOORD(user)]")
if(iscyborg(user)) if(iscyborg(user))
var/mob/living/silicon/robot/R = user var/mob/living/silicon/robot/R = user
to_chat(R.connected_ai, "<br><span class='notice'>NOTICE - Peacekeeping 'HARM ALARM' used by: [user]</span><br>") to_chat(R.connected_ai, "<br><span class='notice'>NOTICE - Peacekeeping 'HARM ALARM' used by: [user]</span><br>")
@@ -335,7 +335,7 @@
C.Jitter(25) C.Jitter(25)
playsound(get_turf(src), 'sound/machines/warning-buzzer.ogg', 130, 3) playsound(get_turf(src), 'sound/machines/warning-buzzer.ogg', 130, 3)
cooldown = world.time + 600 cooldown = world.time + 600
log_game("[user.ckey]([user]) used an emagged Cyborg Harm Alarm in ([user.x],[user.y],[user.z])") log_game("[key_name(user)] used an emagged Cyborg Harm Alarm in [AREACOORD(user)]")
#define DISPENSE_LOLLIPOP_MODE 1 #define DISPENSE_LOLLIPOP_MODE 1
#define THROW_LOLLIPOP_MODE 2 #define THROW_LOLLIPOP_MODE 2

View File

@@ -170,7 +170,7 @@
return return
if(QDELETED(src) || uses <= 0) if(QDELETED(src) || uses <= 0)
return return
log_game("[user.ckey] golem-swapped into [src]") log_game("[key_name(user)] golem-swapped into [src]")
user.visible_message("<span class='notice'>A faint light leaves [user], moving to [src] and animating it!</span>","<span class='notice'>You leave your old body behind, and transfer into [src]!</span>") user.visible_message("<span class='notice'>A faint light leaves [user], moving to [src] and animating it!</span>","<span class='notice'>You leave your old body behind, and transfer into [src]!</span>")
show_flavour = FALSE show_flavour = FALSE
create(ckey = user.ckey,name = user.real_name) create(ckey = user.ckey,name = user.real_name)

View File

@@ -651,7 +651,7 @@
var/atom/A = new chosen(usr.loc) var/atom/A = new chosen(usr.loc)
A.flags_1 |= ADMIN_SPAWNED_1 A.flags_1 |= ADMIN_SPAWNED_1
log_admin("[key_name(usr)] spawned [chosen] at ([usr.x],[usr.y],[usr.z])") log_admin("[key_name(usr)] spawned [chosen] at [AREACOORD(usr)]")
SSblackbox.record_feedback("tally", "admin_verb", 1, "Spawn Atom") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! SSblackbox.record_feedback("tally", "admin_verb", 1, "Spawn Atom") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/datum/admins/proc/spawn_cargo(object as text) /datum/admins/proc/spawn_cargo(object as text)
@@ -669,7 +669,7 @@
S.admin_spawned = TRUE S.admin_spawned = TRUE
S.generate(get_turf(usr)) S.generate(get_turf(usr))
log_admin("[key_name(usr)] spawned cargo pack [chosen] at ([usr.x],[usr.y],[usr.z])") log_admin("[key_name(usr)] spawned cargo pack [chosen] at [AREACOORD(usr)]")
SSblackbox.record_feedback("tally", "admin_verb", 1, "Spawn Cargo") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! SSblackbox.record_feedback("tally", "admin_verb", 1, "Spawn Cargo") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
@@ -725,7 +725,7 @@
to_chat(usr, "<b>AI [key_name(S, usr)]'s laws:</b>") to_chat(usr, "<b>AI [key_name(S, usr)]'s laws:</b>")
else if(iscyborg(S)) else if(iscyborg(S))
var/mob/living/silicon/robot/R = S var/mob/living/silicon/robot/R = S
to_chat(usr, "<b>CYBORG [key_name(S, usr)] [R.connected_ai?"(Slaved to: [R.connected_ai])":"(Independent)"]: laws:</b>") to_chat(usr, "<b>CYBORG [key_name(S, usr)] [R.connected_ai?"(Slaved to: [key_name(R.connected_ai)])":"(Independent)"]: laws:</b>")
else if (ispAI(S)) else if (ispAI(S))
to_chat(usr, "<b>pAI [key_name(S, usr)]'s laws:</b>") to_chat(usr, "<b>pAI [key_name(S, usr)]'s laws:</b>")
else else

View File

@@ -598,8 +598,8 @@ GLOBAL_LIST_INIT(admin_verbs_hideable, list(
if(!message) if(!message)
return return
O.say(message) O.say(message)
log_admin("[key_name(usr)] made [O] at [O.x], [O.y], [O.z] say \"[message]\"") log_admin("[key_name(usr)] made [O] at [AREACOORD(O)] say \"[message]\"")
message_admins("<span class='adminnotice'>[key_name_admin(usr)] made [O] at [O.x], [O.y], [O.z]. say \"[message]\"</span>") message_admins("<span class='adminnotice'>[key_name_admin(usr)] made [O] at [AREACOORD(O)]. say \"[message]\"</span>")
SSblackbox.record_feedback("tally", "admin_verb", 1, "Object Say") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! SSblackbox.record_feedback("tally", "admin_verb", 1, "Object Say") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/client/proc/togglebuildmodeself() /client/proc/togglebuildmodeself()
set name = "Toggle Build Mode Self" set name = "Toggle Build Mode Self"
@@ -690,7 +690,7 @@ GLOBAL_LIST_INIT(admin_verbs_hideable, list(
if (tile) if (tile)
var/mob/living/carbon/human/hooman = new(tile) var/mob/living/carbon/human/hooman = new(tile)
hooman.equipOutfit(pick(subtypesof(/datum/outfit))) hooman.equipOutfit(pick(subtypesof(/datum/outfit)))
testing("Spawned test mob at [tile.x],[tile.y],[tile.z]") testing("Spawned test mob at [COORD(tile)]")
while (!area && --j > 0) while (!area && --j > 0)
/client/proc/toggle_AI_interact() /client/proc/toggle_AI_interact()

View File

@@ -278,10 +278,10 @@
T.PlaceOnTop(/turf/closed/wall) T.PlaceOnTop(/turf/closed/wall)
else if(iswallturf(object)) else if(iswallturf(object))
T.PlaceOnTop(/turf/closed/wall/r_wall) T.PlaceOnTop(/turf/closed/wall/r_wall)
log_admin("Build Mode: [key_name(user)] built [T] at ([T.x],[T.y],[T.z])") log_admin("Build Mode: [key_name(user)] built [T] at [AREACOORD(T)]")
return return
else if(right_click) else if(right_click)
log_admin("Build Mode: [key_name(user)] deleted [object] at ([object.x],[object.y],[object.z])") log_admin("Build Mode: [key_name(user)] deleted [object] at [AREACOORD(object)]")
if(isturf(object)) if(isturf(object))
var/turf/T = object var/turf/T = object
T.ScrapeAway() T.ScrapeAway()
@@ -289,7 +289,7 @@
qdel(object) qdel(object)
return return
else if(isturf(object) && alt_click && left_click) else if(isturf(object) && alt_click && left_click)
log_admin("Build Mode: [key_name(user)] built an airlock at ([object.x],[object.y],[object.z])") log_admin("Build Mode: [key_name(user)] built an airlock at [AREACOORD(object)]")
new/obj/machinery/door/airlock(get_turf(object)) new/obj/machinery/door/airlock(get_turf(object))
else if(isturf(object) && ctrl_click && left_click) else if(isturf(object) && ctrl_click && left_click)
var/obj/structure/window/reinforced/window var/obj/structure/window/reinforced/window
@@ -298,7 +298,7 @@
else else
window = new /obj/structure/window/reinforced(get_turf(object)) window = new /obj/structure/window/reinforced(get_turf(object))
window.setDir(build_dir) window.setDir(build_dir)
log_admin("Build Mode: [key_name(user)] built a window at ([object.x],[object.y],[object.z])") log_admin("Build Mode: [key_name(user)] built a window at [AREACOORD(object)]")
if(ADV_BUILDMODE) if(ADV_BUILDMODE)
if(left_click && alt_click) if(left_click && alt_click)
objholder = object.type objholder = object.type
@@ -306,15 +306,15 @@
else if(left_click) else if(left_click)
if(ispath(objholder, /turf)) if(ispath(objholder, /turf))
var/turf/T = get_turf(object) var/turf/T = get_turf(object)
log_admin("Build Mode: [key_name(user)] modified [T] ([T.x],[T.y],[T.z]) to [objholder]") log_admin("Build Mode: [key_name(user)] modified [T] in [AREACOORD(object)] to [objholder]")
T.PlaceOnTop(objholder) T.PlaceOnTop(objholder)
else else
var/obj/A = new objholder (get_turf(object)) var/obj/A = new objholder (get_turf(object))
A.setDir(build_dir) A.setDir(build_dir)
log_admin("Build Mode: [key_name(user)] modified [A]'s ([A.x],[A.y],[A.z]) dir to [build_dir]") log_admin("Build Mode: [key_name(user)] modified [A]'s [COORD(A)] dir to [build_dir]")
else if(right_click) else if(right_click)
if(isobj(object)) if(isobj(object))
log_admin("Build Mode: [key_name(user)] deleted [object] at ([object.x],[object.y],[object.z])") log_admin("Build Mode: [key_name(user)] deleted [object] at [AREACOORD(object)]")
qdel(object) qdel(object)
if(VAR_BUILDMODE) if(VAR_BUILDMODE)
@@ -343,7 +343,7 @@
if(right_click) if(right_click)
if(throw_atom) if(throw_atom)
throw_atom.throw_at(object, 10, 1,user) throw_atom.throw_at(object, 10, 1,user)
log_admin("Build Mode: [key_name(user)] threw [throw_atom] at [object] ([object.x],[object.y],[object.z])") log_admin("Build Mode: [key_name(user)] threw [throw_atom] at [object] in [AREACOORD(object)]")
if(AREA_BUILDMODE) if(AREA_BUILDMODE)
if(left_click) //rectangular if(left_click) //rectangular
if(!cornerA) if(!cornerA)

View File

@@ -75,7 +75,7 @@
for (var/device in f) for (var/device in f)
if (istype(device, /atom)) if (istype(device, /atom))
var/atom/A = device var/atom/A = device
output += "&nbsp;&nbsp;&nbsp;&nbsp;[device] ([A.x],[A.y],[A.z] in area [get_area(device)])<br>" output += "&nbsp;&nbsp;&nbsp;&nbsp;[device] ([AREACOORD(A)])<br>"
else else
output += "&nbsp;&nbsp;&nbsp;&nbsp;[device]<br>" output += "&nbsp;&nbsp;&nbsp;&nbsp;[device]<br>"

View File

@@ -9,8 +9,8 @@
var/turf/T = get_turf(O) var/turf/T = get_turf(O)
if(T) if(T)
log_admin("[key_name(usr)] has possessed [O] ([O.type]) at ([T.x], [T.y], [T.z])") log_admin("[key_name(usr)] has possessed [O] ([O.type]) at [AREACOORD(T)]")
message_admins("[key_name(usr)] has possessed [O] ([O.type]) at ([T.x], [T.y], [T.z])") message_admins("[key_name(usr)] has possessed [O] ([O.type]) at [AREACOORD(T)]")
else else
log_admin("[key_name(usr)] has possessed [O] ([O.type]) at an unknown location") log_admin("[key_name(usr)] has possessed [O] ([O.type]) at an unknown location")
message_admins("[key_name(usr)] has possessed [O] ([O.type]) at an unknown location") message_admins("[key_name(usr)] has possessed [O] ([O.type]) at an unknown location")

View File

@@ -28,11 +28,11 @@
if(!check_rights(R_ADMIN)) if(!check_rights(R_ADMIN))
return return
message_admins("[key_name_admin(src)] has started answering [key_name(M.key, 0, 0)]'s prayer.") message_admins("[key_name_admin(src)] has started answering [ADMIN_LOOKUPFLW(M)]'s prayer.")
var/msg = input("Message:", text("Subtle PM to [M.key]")) as text|null var/msg = input("Message:", text("Subtle PM to [M.key]")) as text|null
if (!msg) if (!msg)
message_admins("[key_name_admin(src)] decided not to answer [key_name(M.key, 0, 0)]'s prayer") message_admins("[key_name_admin(src)] decided not to answer [ADMIN_LOOKUPFLW(M)]'s prayer")
return return
if(usr) if(usr)
if (usr.client) if (usr.client)
@@ -820,7 +820,7 @@ Traitors and the like can also be revived with the previous role mostly intact.
N.set_safety() N.set_safety()
N.set_active() N.set_active()
log_admin("[key_name(usr)] [N.timing ? "activated" : "deactivated"] a nuke at ([N.x],[N.y],[N.z]).") log_admin("[key_name(usr)] [N.timing ? "activated" : "deactivated"] a nuke at [AREACOORD(N)].")
message_admins("[ADMIN_LOOKUPFLW(usr)] [N.timing ? "activated" : "deactivated"] a nuke at [ADMIN_VERBOSEJMP(N)].") message_admins("[ADMIN_LOOKUPFLW(usr)] [N.timing ? "activated" : "deactivated"] a nuke at [ADMIN_VERBOSEJMP(N)].")
SSblackbox.record_feedback("nested tally", "admin_toggle", 1, list("Toggle Nuke", "[N.timing]")) //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! SSblackbox.record_feedback("nested tally", "admin_toggle", 1, list("Toggle Nuke", "[N.timing]")) //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!

View File

@@ -66,5 +66,5 @@
basemob.ckey = mainsettings["ckey"]["value"] basemob.ckey = mainsettings["ckey"]["value"]
log_admin("[key_name(usr)] spawned a sentient object-mob [basemob] from [chosen_obj] at ([usr.x],[usr.y],[usr.z])") log_admin("[key_name(usr)] spawned a sentient object-mob [basemob] from [chosen_obj] at [AREACOORD(usr)]")
SSblackbox.record_feedback("tally", "admin_verb", 1, "Spawn object-mob") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! SSblackbox.record_feedback("tally", "admin_verb", 1, "Spawn object-mob") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!

View File

@@ -359,7 +359,7 @@
to_chat(L, "<span class='italics'>You hear a voice in your head saying: </span><span class='abductor'>[message]</span>") to_chat(L, "<span class='italics'>You hear a voice in your head saying: </span><span class='abductor'>[message]</span>")
to_chat(user, "<span class='notice'>You send the message to your target.</span>") to_chat(user, "<span class='notice'>You send the message to your target.</span>")
log_talk(user,"[key_name(user)] sent an abductor mind message to [L]/[L.ckey]: '[message]'", LOGSAY) log_talk(user,"[key_name(user)] sent an abductor mind message to [key_name(L)]: '[message]'", LOGSAY)
/obj/item/firing_pin/abductor /obj/item/firing_pin/abductor

View File

@@ -496,12 +496,12 @@ structure_check() searches for nearby cultist structures required for the invoca
if((istype(I, /obj/item/melee/cultblade/dagger) && iscultist(user))) if((istype(I, /obj/item/melee/cultblade/dagger) && iscultist(user)))
user.visible_message("<span class='warning'>[user.name] begins erasing [src]...</span>", "<span class='notice'>You begin erasing [src]...</span>") user.visible_message("<span class='warning'>[user.name] begins erasing [src]...</span>", "<span class='notice'>You begin erasing [src]...</span>")
if(do_after(user, 50, target = src)) //Prevents accidental erasures. if(do_after(user, 50, target = src)) //Prevents accidental erasures.
log_game("Summon Narsie rune erased by [user.mind.key] (ckey) with [I.name]") log_game("Summon Narsie rune erased by [key_name(user)] with [I.name]")
message_admins("[ADMIN_LOOKUPFLW(user)] erased a Narsie rune with [I.name]") message_admins("[ADMIN_LOOKUPFLW(user)] erased a Narsie rune with [I.name]")
..() ..()
else else
if(istype(I, /obj/item/nullrod)) //Begone foul magiks. You cannot hinder me. if(istype(I, /obj/item/nullrod)) //Begone foul magiks. You cannot hinder me.
log_game("Summon Narsie rune erased by [user.mind.key] (ckey) using a null rod") log_game("Summon Narsie rune erased by [key_name(user)] using a null rod")
message_admins("[ADMIN_LOOKUPFLW(user)] erased a Narsie rune with a null rod") message_admins("[ADMIN_LOOKUPFLW(user)] erased a Narsie rune with a null rod")
..() ..()

View File

@@ -279,7 +279,7 @@
if(BODY_ZONE_PRECISE_MOUTH) if(BODY_ZONE_PRECISE_MOUTH)
var/wgw = sanitize(input(user, "What would you like the victim to say", "Voodoo", null) as text) var/wgw = sanitize(input(user, "What would you like the victim to say", "Voodoo", null) as text)
target.say(wgw) target.say(wgw)
log_game("[user][user.key] made [target][target.key] say [wgw] with a voodoo doll.") log_game("[key_name(user)] made [key_name(target)] say [wgw] with a voodoo doll.")
if(BODY_ZONE_PRECISE_EYES) if(BODY_ZONE_PRECISE_EYES)
user.set_machine(src) user.set_machine(src)
user.reset_perspective(target) user.reset_perspective(target)

View File

@@ -40,7 +40,7 @@
var/ghost_role = alert("Become [mob_name]? (Warning, You can no longer be cloned!)",,"Yes","No") var/ghost_role = alert("Become [mob_name]? (Warning, You can no longer be cloned!)",,"Yes","No")
if(ghost_role == "No" || !loc) if(ghost_role == "No" || !loc)
return return
log_game("[user.ckey] became [mob_name]") log_game("[key_name(user)] became [mob_name]")
create(ckey = user.ckey) create(ckey = user.ckey)
/obj/effect/mob_spawn/Initialize(mapload) /obj/effect/mob_spawn/Initialize(mapload)

View File

@@ -23,9 +23,9 @@
var/datum/team/abductor_team/T = new var/datum/team/abductor_team/T = new
if(T.team_number > ABDUCTOR_MAX_TEAMS) if(T.team_number > ABDUCTOR_MAX_TEAMS)
return MAP_ERROR return MAP_ERROR
log_game("[scientist.mind.key] (ckey) has been selected as [T.name] abductor scientist.") log_game("[key_name(scientist)] has been selected as [T.name] abductor scientist.")
log_game("[agent.mind.key] (ckey) has been selected as [T.name] abductor agent.") log_game("[key_name(agent)] has been selected as [T.name] abductor agent.")
scientist.mind.add_antag_datum(/datum/antagonist/abductor/scientist, T) scientist.mind.add_antag_datum(/datum/antagonist/abductor/scientist, T)
agent.mind.add_antag_datum(/datum/antagonist/abductor/agent, T) agent.mind.add_antag_datum(/datum/antagonist/abductor/agent, T)

View File

@@ -741,7 +741,7 @@
else if(istype(O, /obj/item/seeds) && !istype(O, /obj/item/seeds/sample)) else if(istype(O, /obj/item/seeds) && !istype(O, /obj/item/seeds/sample))
if(!myseed) if(!myseed)
if(istype(O, /obj/item/seeds/kudzu)) if(istype(O, /obj/item/seeds/kudzu))
investigate_log("had Kudzu planted in it by [user.ckey]([user]) at ([x],[y],[z])","kudzu") investigate_log("had Kudzu planted in it by [key_name(user)] at [AREACOORD(src)]","kudzu")
if(!user.transferItemToLoc(O, src)) if(!user.transferItemToLoc(O, src))
return return
to_chat(user, "<span class='notice'>You plant [O].</span>") to_chat(user, "<span class='notice'>You plant [O].</span>")

View File

@@ -306,7 +306,7 @@
else if(istype(O, /obj/item/seeds) && !istype(O, /obj/item/seeds/sample)) else if(istype(O, /obj/item/seeds) && !istype(O, /obj/item/seeds/sample))
if(!TR.myseed) if(!TR.myseed)
if(istype(O, /obj/item/seeds/kudzu)) if(istype(O, /obj/item/seeds/kudzu))
investigate_log("had Kudzu planted in it by [acting_object] at ([x],[y],[z])","kudzu") investigate_log("had Kudzu planted in it by [acting_object] at [AREACOORD(src)]","kudzu")
acting_object.visible_message("<span class='notice'>[acting_object] plants [O].</span>") acting_object.visible_message("<span class='notice'>[acting_object] plants [O].</span>")
TR.dead = 0 TR.dead = 0
TR.myseed = O TR.myseed = O

View File

@@ -419,7 +419,7 @@ GLOBAL_LIST(cachedbooks) // List of our cached book datums
alert("Database error encountered uploading to Archive") alert("Database error encountered uploading to Archive")
return return
else else
log_game("[usr.name]/[usr.key] has uploaded the book titled [scanner.cache.name], [length(scanner.cache.dat)] signs") log_game("[key_name(usr)] has uploaded the book titled [scanner.cache.name], [length(scanner.cache.dat)] signs")
alert("Upload Complete. Uploaded title will be unavailable for printing for a short period") alert("Upload Complete. Uploaded title will be unavailable for printing for a short period")
if(href_list["newspost"]) if(href_list["newspost"])
if(!GLOB.news_network) if(!GLOB.news_network)

View File

@@ -34,7 +34,7 @@
H.robust_searching = 1 H.robust_searching = 1
H.friends += user H.friends += user
H.attack_same = 1 H.attack_same = 1
log_game("[user] has revived hostile mob [target] with a malfunctioning lazarus injector") log_game("[key_name(user)] has revived hostile mob [key_name(target)] with a malfunctioning lazarus injector")
else else
H.attack_same = 0 H.attack_same = 0
loaded = 0 loaded = 0

View File

@@ -1231,7 +1231,7 @@
INVOKE_ASYNC(src, .proc/prepare_icon_update) INVOKE_ASYNC(src, .proc/prepare_icon_update)
beacon.icon_state = "hierophant_tele_off" beacon.icon_state = "hierophant_tele_off"
return return
add_logs(user, beacon, "teleported self from ([source.x],[source.y],[source.z]) to") add_logs(user, beacon, "teleported self from [AREACOORD(source)] to")
new /obj/effect/temp_visual/hierophant/telegraph/teleport(T, user) new /obj/effect/temp_visual/hierophant/telegraph/teleport(T, user)
new /obj/effect/temp_visual/hierophant/telegraph/teleport(source, user) new /obj/effect/temp_visual/hierophant/telegraph/teleport(source, user)
for(var/t in RANGE_TURFS(1, T)) for(var/t in RANGE_TURFS(1, T))
@@ -1278,7 +1278,7 @@
return return
M.visible_message("<span class='hierophant_warning'>[M] fades in!</span>") M.visible_message("<span class='hierophant_warning'>[M] fades in!</span>")
if(user != M) if(user != M)
add_logs(user, M, "teleported", null, "from ([source.x],[source.y],[source.z])") add_logs(user, M, "teleported", null, "from [AREACOORD(source)]")
/obj/item/hierophant_club/proc/cardinal_blasts(turf/T, mob/living/user) //fire cardinal cross blasts with a delay /obj/item/hierophant_club/proc/cardinal_blasts(turf/T, mob/living/user) //fire cardinal cross blasts with a delay
if(!T) if(!T)

View File

@@ -97,7 +97,7 @@ Doesn't work on other aliens/AI.*/
return 0 return 0
var/msg = sanitize(input("Message:", "Alien Whisper") as text|null) var/msg = sanitize(input("Message:", "Alien Whisper") as text|null)
if(msg) if(msg)
log_talk(user,"AlienWhisper: [key_name(user)]->[M.key] : [msg]",LOGSAY) log_talk(user,"AlienWhisper: [key_name(user)]->[key_name(M)] : [msg]",LOGSAY)
to_chat(M, "<span class='noticealien'>You hear a strange, alien voice in your head...</span>[msg]") to_chat(M, "<span class='noticealien'>You hear a strange, alien voice in your head...</span>[msg]")
to_chat(user, "<span class='noticealien'>You said: \"[msg]\" to [M]</span>") to_chat(user, "<span class='noticealien'>You said: \"[msg]\" to [M]</span>")
for(var/ded in GLOB.dead_mob_list) for(var/ded in GLOB.dead_mob_list)

View File

@@ -682,7 +682,7 @@
var/msg = sanitize(input("Message:", "Telepathy") as text|null) var/msg = sanitize(input("Message:", "Telepathy") as text|null)
if(msg) if(msg)
log_talk(H,"SlimeTelepathy: [key_name(H)]->[M.key] : [msg]",LOGSAY) log_talk(H,"SlimeTelepathy: [key_name(H)]->[key_name(M)] : [msg]",LOGSAY)
to_chat(M, "<span class='notice'>You hear an alien voice in your head... </span><font color=#008CA2>[msg]</font>") to_chat(M, "<span class='notice'>You hear an alien voice in your head... </span><font color=#008CA2>[msg]</font>")
to_chat(H, "<span class='notice'>You telepathically said: \"[msg]\" to [M]</span>") to_chat(H, "<span class='notice'>You telepathically said: \"[msg]\" to [M]</span>")
for(var/dead in GLOB.dead_mob_list) for(var/dead in GLOB.dead_mob_list)

View File

@@ -401,22 +401,22 @@
to_chat(usr, "<span class='boldnotice'>You must be dead to use this!</span>") to_chat(usr, "<span class='boldnotice'>You must be dead to use this!</span>")
return return
log_game("[usr.name]/[usr.key] used abandon mob.") log_game("[key_name(usr)] used abandon mob.")
to_chat(usr, "<span class='boldnotice'>Please roleplay correctly!</span>") to_chat(usr, "<span class='boldnotice'>Please roleplay correctly!</span>")
if(!client) if(!client)
log_game("[usr.key] AM failed due to disconnect.") log_game("[key_name(usr)] AM failed due to disconnect.")
return return
client.screen.Cut() client.screen.Cut()
client.screen += client.void client.screen += client.void
if(!client) if(!client)
log_game("[usr.key] AM failed due to disconnect.") log_game("[key_name(usr)] AM failed due to disconnect.")
return return
var/mob/dead/new_player/M = new /mob/dead/new_player() var/mob/dead/new_player/M = new /mob/dead/new_player()
if(!client) if(!client)
log_game("[usr.key] AM failed due to disconnect.") log_game("[key_name(usr)] AM failed due to disconnect.")
qdel(M) qdel(M)
return return

View File

@@ -140,7 +140,7 @@ By design, d1 is the smallest direction and d2 is the highest
return return
user.visible_message("[user] cuts the cable.", "<span class='notice'>You cut the cable.</span>") user.visible_message("[user] cuts the cable.", "<span class='notice'>You cut the cable.</span>")
stored.add_fingerprint(user) stored.add_fingerprint(user)
investigate_log("was cut by [key_name(usr, usr.client)] in [AREACOORD(src)]", INVESTIGATE_WIRES) investigate_log("was cut by [key_name(usr)] in [AREACOORD(src)]", INVESTIGATE_WIRES)
deconstruct() deconstruct()
return return

View File

@@ -249,7 +249,7 @@ GLOBAL_LIST_EMPTY(gravity_generators) // We will keep track of this by adding ne
if(href_list["gentoggle"]) if(href_list["gentoggle"])
breaker = !breaker breaker = !breaker
investigate_log("was toggled [breaker ? "<font color='green'>ON</font>" : "<font color='red'>OFF</font>"] by [usr.key].", INVESTIGATE_GRAVITY) investigate_log("was toggled [breaker ? "<font color='green'>ON</font>" : "<font color='red'>OFF</font>"] by [key_name(usr)].", INVESTIGATE_GRAVITY)
set_power() set_power()
src.updateUsrDialog() src.updateUsrDialog()

View File

@@ -80,7 +80,7 @@
if(loaded_tank) if(loaded_tank)
fuel = loaded_tank.air_contents.gases[/datum/gas/plasma] fuel = loaded_tank.air_contents.gases[/datum/gas/plasma]
fuel = fuel ? fuel[MOLES] : 0 fuel = fuel ? fuel[MOLES] : 0
investigate_log("turned [active?"<font color='green'>on</font>":"<font color='red'>off</font>"] by [user.key]. [loaded_tank?"Fuel: [round(fuel/0.29)]%":"<font color='red'>It is empty</font>"].", INVESTIGATE_SINGULO) investigate_log("turned [active?"<font color='green'>on</font>":"<font color='red'>off</font>"] by [key_name(user)]. [loaded_tank?"Fuel: [round(fuel/0.29)]%":"<font color='red'>It is empty</font>"].", INVESTIGATE_SINGULO)
return return
else else
to_chat(user, "<span class='warning'>The controls are locked!</span>") to_chat(user, "<span class='warning'>The controls are locked!</span>")

View File

@@ -78,7 +78,7 @@ field_generator power level display
"<span class='notice'>You turn on [src].</span>", \ "<span class='notice'>You turn on [src].</span>", \
"<span class='italics'>You hear heavy droning.</span>") "<span class='italics'>You hear heavy droning.</span>")
turn_on() turn_on()
investigate_log("<font color='green'>activated</font> by [user.key].", INVESTIGATE_SINGULO) investigate_log("<font color='green'>activated</font> by [key_name(user)].", INVESTIGATE_SINGULO)
add_fingerprint(user) add_fingerprint(user)
else else

View File

@@ -348,12 +348,12 @@
switch(action) switch(action)
if("tryinput") if("tryinput")
input_attempt = !input_attempt input_attempt = !input_attempt
log_smes(usr.ckey) log_smes(usr)
update_icon() update_icon()
. = TRUE . = TRUE
if("tryoutput") if("tryoutput")
output_attempt = !output_attempt output_attempt = !output_attempt
log_smes(usr.ckey) log_smes(usr)
update_icon() update_icon()
. = TRUE . = TRUE
if("input") if("input")
@@ -377,7 +377,7 @@
. = TRUE . = TRUE
if(.) if(.)
input_level = CLAMP(target, 0, input_level_max) input_level = CLAMP(target, 0, input_level_max)
log_smes(usr.ckey) log_smes(usr)
if("output") if("output")
var/target = params["target"] var/target = params["target"]
var/adjust = text2num(params["adjust"]) var/adjust = text2num(params["adjust"])
@@ -399,10 +399,10 @@
. = TRUE . = TRUE
if(.) if(.)
output_level = CLAMP(target, 0, output_level_max) output_level = CLAMP(target, 0, output_level_max)
log_smes(usr.ckey) log_smes(usr)
/obj/machinery/power/smes/proc/log_smes(user = "") /obj/machinery/power/smes/proc/log_smes(mob/user)
investigate_log("input/output; [input_level>output_level?"<font color='green'>":"<font color='red'>"][input_level]/[output_level]</font> | Charge: [charge] | Output-mode: [output_attempt?"<font color='green'>on</font>":"<font color='red'>off</font>"] | Input-mode: [input_attempt?"<font color='green'>auto</font>":"<font color='red'>off</font>"] by [user]", INVESTIGATE_SINGULO) investigate_log("input/output; [input_level>output_level?"<font color='green'>":"<font color='red'>"][input_level]/[output_level]</font> | Charge: [charge] | Output-mode: [output_attempt?"<font color='green'>on</font>":"<font color='red'>off</font>"] | Input-mode: [input_attempt?"<font color='green'>auto</font>":"<font color='red'>off</font>"] by [user ? key_name(user) : "outside forces"]", INVESTIGATE_SINGULO)
/obj/machinery/power/smes/emp_act(severity) /obj/machinery/power/smes/emp_act(severity)
@@ -419,7 +419,7 @@
if (charge < 0) if (charge < 0)
charge = 0 charge = 0
update_icon() update_icon()
log_smes("an emp") log_smes()
/obj/machinery/power/smes/engineering /obj/machinery/power/smes/engineering
charge = 1.5e6 // Engineering starts with some charge for singulo charge = 1.5e6 // Engineering starts with some charge for singulo

View File

@@ -480,7 +480,7 @@ GLOBAL_DATUM(main_supermatter_engine, /obj/machinery/power/supermatter_crystal)
if(!istype(L)) if(!istype(L))
return FALSE return FALSE
if(!istype(Proj.firer, /obj/machinery/power/emitter)) if(!istype(Proj.firer, /obj/machinery/power/emitter))
investigate_log("has been hit by [Proj] fired by [Proj.firer]", INVESTIGATE_SUPERMATTER) investigate_log("has been hit by [Proj] fired by [key_name(Proj.firer)]", INVESTIGATE_SUPERMATTER)
if(Proj.flag != "bullet") if(Proj.flag != "bullet")
power += Proj.damage * config_bullet_energy power += Proj.damage * config_bullet_energy
if(!has_been_powered) if(!has_been_powered)
@@ -563,7 +563,7 @@ GLOBAL_DATUM(main_supermatter_engine, /obj/machinery/power/supermatter_crystal)
if(!cause) if(!cause)
cause = "contact" cause = "contact"
nom.visible_message(vis_msg, mob_msg, "<span class='italics'>You hear an unearthly noise as a wave of heat washes over you.</span>") nom.visible_message(vis_msg, mob_msg, "<span class='italics'>You hear an unearthly noise as a wave of heat washes over you.</span>")
investigate_log("has been attacked ([cause]) by [nom]", INVESTIGATE_SUPERMATTER) investigate_log("has been attacked ([cause]) by [key_name(nom)]", INVESTIGATE_SUPERMATTER)
playsound(get_turf(src), 'sound/effects/supermatter.ogg', 50, 1) playsound(get_turf(src), 'sound/effects/supermatter.ogg', 50, 1)
Consume(nom) Consume(nom)
@@ -582,7 +582,7 @@ GLOBAL_DATUM(main_supermatter_engine, /obj/machinery/power/supermatter_crystal)
user.visible_message("<span class='danger'>As [user] touches \the [src] with \a [W], silence fills the room...</span>",\ user.visible_message("<span class='danger'>As [user] touches \the [src] with \a [W], silence fills the room...</span>",\
"<span class='userdanger'>You touch \the [src] with \the [W], and everything suddenly goes silent.</span>\n<span class='notice'>\The [W] flashes into dust as you flinch away from \the [src].</span>",\ "<span class='userdanger'>You touch \the [src] with \the [W], and everything suddenly goes silent.</span>\n<span class='notice'>\The [W] flashes into dust as you flinch away from \the [src].</span>",\
"<span class='italics'>Everything suddenly goes silent.</span>") "<span class='italics'>Everything suddenly goes silent.</span>")
investigate_log("has been attacked ([W]) by [user]", INVESTIGATE_SUPERMATTER) investigate_log("has been attacked ([W]) by [key_name(user)]", INVESTIGATE_SUPERMATTER)
Consume(W) Consume(W)
playsound(get_turf(src), 'sound/effects/supermatter.ogg', 50, 1) playsound(get_turf(src), 'sound/effects/supermatter.ogg', 50, 1)
@@ -629,7 +629,7 @@ GLOBAL_DATUM(main_supermatter_engine, /obj/machinery/power/supermatter_crystal)
//Some poor sod got eaten, go ahead and irradiate people nearby. //Some poor sod got eaten, go ahead and irradiate people nearby.
radiation_pulse(src, 3000, 2, TRUE) radiation_pulse(src, 3000, 2, TRUE)
for(var/mob/living/L in range(10)) for(var/mob/living/L in range(10))
investigate_log("has irradiated [L] after consuming [AM].", INVESTIGATE_SUPERMATTER) investigate_log("has irradiated [key_name(L)] after consuming [AM].", INVESTIGATE_SUPERMATTER)
if(L in view()) if(L in view())
L.show_message("<span class='danger'>As \the [src] slowly stops resonating, you find your skin covered in new radiation burns.</span>", 1,\ L.show_message("<span class='danger'>As \the [src] slowly stops resonating, you find your skin covered in new radiation burns.</span>", 1,\
"<span class='danger'>The unearthly ringing subsides and you notice you have new radiation burns.</span>", 2) "<span class='danger'>The unearthly ringing subsides and you notice you have new radiation burns.</span>", 2)

View File

@@ -249,7 +249,7 @@
var/mob/living/target = locate(/mob/living) in oview(7,src) var/mob/living/target = locate(/mob/living) in oview(7,src)
if(target) if(target)
var/obj/item/throwing = loaded_item var/obj/item/throwing = loaded_item
investigate_log("Experimentor has thrown [loaded_item] at [target]", INVESTIGATE_EXPERIMENTOR) investigate_log("Experimentor has thrown [loaded_item] at [key_name(target)]", INVESTIGATE_EXPERIMENTOR)
ejectItem() ejectItem()
if(throwing) if(throwing)
throwing.throw_at(target, 10, 1) throwing.throw_at(target, 10, 1)
@@ -371,7 +371,7 @@
throwSmoke(loc) throwSmoke(loc)
for(var/mob/living/m in oview(1, src)) for(var/mob/living/m in oview(1, src))
m.apply_damage(5, BURN, pick(BODY_ZONE_HEAD,BODY_ZONE_CHEST,BODY_ZONE_PRECISE_GROIN)) m.apply_damage(5, BURN, pick(BODY_ZONE_HEAD,BODY_ZONE_CHEST,BODY_ZONE_PRECISE_GROIN))
investigate_log("Experimentor has dealt minor burn damage to [m]", INVESTIGATE_EXPERIMENTOR) investigate_log("Experimentor has dealt minor burn damage to [key_name(m)]", INVESTIGATE_EXPERIMENTOR)
ejectItem() ejectItem()
//////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////
if(exp == SCANTYPE_COLD) if(exp == SCANTYPE_COLD)

View File

@@ -177,7 +177,7 @@ GLOBAL_DATUM(necropolis_gate, /obj/structure/necropolis_gate/legion_gate)
log_game("Legion took damage while the necropolis gate was closed and released itself.") log_game("Legion took damage while the necropolis gate was closed and released itself.")
else else
message_admins("[user ? ADMIN_LOOKUPFLW(user):"Unknown"] has released Legion!") message_admins("[user ? ADMIN_LOOKUPFLW(user):"Unknown"] has released Legion!")
log_game("[user ? key_name(user):"Unknown"] released Legion.") log_game("[user ? key_name(user) : "Unknown"] released Legion.")
var/sound/legion_sound = sound('sound/creatures/legion_spawn.ogg') var/sound/legion_sound = sound('sound/creatures/legion_spawn.ogg')
for(var/mob/M in GLOB.player_list) for(var/mob/M in GLOB.player_list)

View File

@@ -434,7 +434,7 @@ IF YOU MODIFY THE PRODUCTS LIST OF A MACHINE, MAKE SURE TO UPDATE ITS RESUPPLY C
else if (!(R in product_records)) else if (!(R in product_records))
vend_ready = 1 vend_ready = 1
message_admins("Vending machine exploit attempted by [key_name(usr, usr.client)]!") message_admins("Vending machine exploit attempted by [ADMIN_LOOKUPFLW(usr)]!")
return return
if (R.amount <= 0) if (R.amount <= 0)