mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-25 16:45:42 +00:00
This PR removes fusion from reactions.dm and add the Hypertorus machine and its new and improved fusion reaction (results may vary). Fusion is one of the most costly reactions from the atmos system, is one of the most complex and yet most simple ones; this will move fusion inside a buildable machine and it will allow a degree of complexity that can't be done inside react()
43 lines
1.6 KiB
Plaintext
43 lines
1.6 KiB
Plaintext
/atom/proc/investigate_log(message, subject)
|
|
if(!message || !subject)
|
|
return
|
|
var/F = file("[GLOB.log_directory]/[subject].html")
|
|
WRITE_FILE(F, "[time_stamp()] [REF(src)] ([x],[y],[z]) || [src] [message]<br>")
|
|
|
|
/client/proc/investigate_show()
|
|
set name = "Investigate"
|
|
set category = "Admin.Game"
|
|
if(!holder)
|
|
return
|
|
|
|
var/list/investigates = list(INVESTIGATE_RESEARCH, INVESTIGATE_EXONET, INVESTIGATE_PORTAL, INVESTIGATE_SINGULO, INVESTIGATE_WIRES, INVESTIGATE_TELESCI, INVESTIGATE_GRAVITY, INVESTIGATE_RECORDS, INVESTIGATE_CARGO, INVESTIGATE_SUPERMATTER, INVESTIGATE_ATMOS, INVESTIGATE_EXPERIMENTOR, INVESTIGATE_BOTANY, INVESTIGATE_HALLUCINATIONS, INVESTIGATE_RADIATION, INVESTIGATE_NANITES, INVESTIGATE_PRESENTS, INVESTIGATE_HYPERTORUS)
|
|
|
|
var/list/logs_present = list("notes, memos, watchlist")
|
|
var/list/logs_missing = list("---")
|
|
|
|
for(var/subject in investigates)
|
|
var/temp_file = file("[GLOB.log_directory]/[subject].html")
|
|
if(fexists(temp_file))
|
|
logs_present += subject
|
|
else
|
|
logs_missing += "[subject] (empty)"
|
|
|
|
var/list/combined = sortList(logs_present) + sortList(logs_missing)
|
|
|
|
var/selected = input("Investigate what?", "Investigate") as null|anything in combined
|
|
|
|
if(!(selected in combined) || selected == "---")
|
|
return
|
|
|
|
selected = replacetext(selected, " (empty)", "")
|
|
|
|
if(selected == "notes, memos, watchlist" && check_rights(R_ADMIN))
|
|
browse_messages()
|
|
return
|
|
|
|
var/F = file("[GLOB.log_directory]/[selected].html")
|
|
if(!fexists(F))
|
|
to_chat(src, "<span class='danger'>No [selected] logfile was found.</span>", confidential = TRUE)
|
|
return
|
|
src << browse(F,"window=investigate[selected];size=800x300")
|