From 58d0049f31d5d060adbf68cdd4f63c7467608e1c Mon Sep 17 00:00:00 2001 From: kevinz000 <2003111+kevinz000@users.noreply.github.com> Date: Tue, 8 Oct 2019 00:30:00 -0700 Subject: [PATCH] Adds a markdown parse of all chems for use with github wiki to debug menu. --- code/__HELPERS/files.dm | 2 +- code/modules/admin/admin_verbs.dm | 1 + code/modules/reagents/chem_wiki_render.dm | 305 ++++++++++++++++++++++ tgstation.dme | 1 + 4 files changed, 308 insertions(+), 1 deletion(-) create mode 100644 code/modules/reagents/chem_wiki_render.dm diff --git a/code/__HELPERS/files.dm b/code/__HELPERS/files.dm index 052a056a..4160c197 100644 --- a/code/__HELPERS/files.dm +++ b/code/__HELPERS/files.dm @@ -3,7 +3,7 @@ for(var/file in args) src << browse_rsc(file) -/client/proc/browse_files(root="data/logs/", max_iterations=10, list/valid_extensions=list("txt","log","htm", "html")) +/client/proc/browse_files(root="data/logs/", max_iterations=10, list/valid_extensions=list("txt","log","htm", "html", "md")) var/path = root for(var/i=0, i
!\[[R.color]\](https://placehold.it/15/[copytext(R.color, 2, 8)]/000000?text=+)[R.name]
pH: [R.pH] | " + var/datum/reagent/R3 + if(CR) + outstring += " | " + else + outstring += "N/A | " + + + //Temp, Explosions and pH + if(CR) + outstring += "| " + else + outstring += " | " + + //Description, OD, Addict, Meta + outstring += "[R.description] | |\n" + return outstring + +//Generate the big list of reaction based reactions. +//|Name | Reagents | Reaction vars | Description | Chem properties +/proc/generate_chemreactwiki_line(datum/chemical_reaction/CR) + if(CR.results.len) //Handled prior + return + var/outstring = "|[CR.name] | | | fill in manually " + + outstring += "