mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
investigate log for AAC
This commit is contained in:
@@ -504,8 +504,10 @@ font-weight:bold;
|
||||
|
||||
if(href_list["out_set_pressure"])
|
||||
var/response=input(usr,"Set new pressure, in kPa. \[0-[50*ONE_ATMOSPHERE]\]") as num
|
||||
var/oldpressure = pressure_setting
|
||||
pressure_setting = text2num(response)
|
||||
pressure_setting = Clamp(pressure_setting, 0, 50*ONE_ATMOSPHERE)
|
||||
investigation_log(I_ATMOS,"'s output pressure set to [pressure_setting] from [oldpressure] by [key_name(usr)]")
|
||||
|
||||
if(!radio_connection)
|
||||
return 0
|
||||
@@ -666,6 +668,7 @@ font-weight:bold;
|
||||
|
||||
if(href_list["toggle_automation"])
|
||||
automation = !automation
|
||||
investigation_log(I_ATMOS,"was turned [automation ? "on" : "off"] by [key_name(usr)]")
|
||||
|
||||
if(href_list["toggle_injector"])
|
||||
device_info = null
|
||||
|
||||
@@ -20,7 +20,7 @@ var/global/list/investigations=list(
|
||||
"notes" = new /datum/log_controller("notes"),
|
||||
"ntsl" = new /datum/log_controller("ntsl"),
|
||||
"singulo" = new /datum/log_controller("singulo"),
|
||||
"atmos" = new /datum/log_controller("atmos"),
|
||||
"atmos" = null, //new /datum/log_controller("atmos",filename="data/logs/[date_string] atmos.htm", persist=TRUE),
|
||||
)
|
||||
|
||||
// Handles appending shit to log.
|
||||
|
||||
@@ -141,6 +141,7 @@
|
||||
on = !on
|
||||
updateUsrDialog()
|
||||
update_icon()
|
||||
investigation_log(I_ATMOS,"was turned [on ? "on" : "off"] by [key_name(usr)]")
|
||||
return 1
|
||||
|
||||
if(href_list["add"])
|
||||
@@ -163,6 +164,7 @@
|
||||
|
||||
if(href_list["reset"])
|
||||
if(href_list["reset"]=="*")
|
||||
investigation_log(I_ATMOS,"had all automations reset by [key_name(usr)]")
|
||||
for(var/datum/automation/A in automations)
|
||||
if(!A) continue
|
||||
A.OnReset()
|
||||
@@ -170,11 +172,13 @@
|
||||
var/datum/automation/A=locate(href_list["reset"])
|
||||
if(!A) return 1
|
||||
A.OnReset()
|
||||
investigation_log(I_ATMOS,"had the [A.name]/[A.desc] automation reset by [key_name(usr)]")
|
||||
updateUsrDialog()
|
||||
return 1
|
||||
|
||||
if(href_list["remove"])
|
||||
if(href_list["remove"]=="*")
|
||||
investigation_log(I_ATMOS,"had all automations removed by [key_name(usr)]")
|
||||
var/confirm=alert("Are you sure you want to remove ALL automations?","Automations","Yes","No")
|
||||
if(confirm == "No") return 0
|
||||
for(var/datum/automation/A in automations)
|
||||
@@ -186,14 +190,16 @@
|
||||
if(!A) return 1
|
||||
A.OnRemove()
|
||||
automations.Remove(A)
|
||||
investigation_log(I_ATMOS,"had the [A.name]/[A.desc] automation removed by [key_name(usr)]")
|
||||
updateUsrDialog()
|
||||
return 1
|
||||
|
||||
if(href_list["read"])
|
||||
var/code = input("Input exported AAC code.","Automations","") as message|null
|
||||
if(!code) return 0
|
||||
if(!code || !Adjacent(usr)) return 0
|
||||
ReadCode(code)
|
||||
updateUsrDialog()
|
||||
investigation_log(I_ATMOS,"had an automations list imported by [key_name(usr)]: [code]")
|
||||
return 1
|
||||
|
||||
if(href_list["dump"])
|
||||
@@ -207,7 +213,9 @@
|
||||
if(!registerid)//Something wasn't sane.
|
||||
return 1
|
||||
|
||||
var/oldreg = registers[registerid]
|
||||
registers[registerid] = input("Input register value:", "Register [registerid]", registers[registerid]) as num//Ask the user.
|
||||
investigation_log(I_ATMOS,"had the [registerid]\th registerID changed from [oldreg] to [registers[registerid]] by [key_name(usr)]")
|
||||
updateUsrDialog()
|
||||
return 1
|
||||
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
var/date_string = time2text(world.realtime, "YYYY/MM-Month/DD-Day")
|
||||
|
||||
investigations["hrefs"] = new /datum/log_controller("hrefs", filename="data/logs/[date_string] hrefs.htm", persist=TRUE)
|
||||
investigations["atmos"] = new /datum/log_controller("atmos", filename="data/logs/[date_string] atmos.htm", persist=TRUE)
|
||||
|
||||
diary = file("data/logs/[date_string].log")
|
||||
diaryofmeanpeople = file("data/logs/[date_string] Attack.log")
|
||||
|
||||
Reference in New Issue
Block a user