[MIRROR] Adds logging for experisci completion [MDB IGNORE] (#14737)

* Adds logging for experisci completion (#68147)

Adds logging for experisci completion

* Adds logging for experisci completion

Co-authored-by: vincentiusvin <54709710+vincentiusvin@users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-07-04 23:51:02 -07:00
committed by GitHub
co-authored by vincentiusvin
parent 2b4772a07e
commit 32e95d68ac
3 changed files with 8 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
/// Puts the text into the research html file, not log. See [INVESTIGATE_RESEARCH] for [/atom/proc/investigate_log]
/proc/log_research(text)
if(!text)
return
var/html_file = file("[GLOB.log_directory]/[INVESTIGATE_RESEARCH].html")
WRITE_FILE(html_file, "[time_stamp()] [text]<br>")
@@ -298,6 +298,7 @@
/datum/techweb/proc/complete_experiment(datum/experiment/completed_experiment)
available_experiments -= completed_experiment
completed_experiments[completed_experiment.type] = completed_experiment
log_research("[completed_experiment.name] ([completed_experiment.type]) has been completed on techweb id [id]")
/datum/techweb/proc/printout_points()
return techweb_point_display_generic(research_points)
+1
View File
@@ -420,6 +420,7 @@
#include "code\__HELPERS\logging\mob.dm"
#include "code\__HELPERS\logging\paper.dm"
#include "code\__HELPERS\logging\pda.dm"
#include "code\__HELPERS\logging\research.dm"
#include "code\__HELPERS\logging\shuttle.dm"
#include "code\__HELPERS\logging\talk.dm"
#include "code\__HELPERS\logging\tool.dm"