forked from jacobabrennan/CasualQuest-DM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path__dump_documentation.dm
40 lines (31 loc) · 1.09 KB
/
__dump_documentation.dm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifdef DEBUG
client
verb
dump_documentation()
set name = ".docudump"
set hidden = 1
var/list/paths = list()
for(var/combo in game.subscriber_archetypes)
// Get the classes attached to that combo
var/list/classes = game.subscriber_archetypes[combo]
if(!istype(classes, /list)) classes = list(classes)
// Add each type (only once) to the paths list
for(var/path in classes)
paths[path] = null
for(var/combo in game.hero_archetypes)
// Get the classes attached to that combo
var/list/classes = game.subscriber_archetypes[combo]
if(!istype(classes, /list)) classes = list(classes)
// Add each type (only once) to the paths list
for(var/path in classes)
paths[path] = null
var/text = ""
for(var/path in paths)
var/game/hero/H = new path(null)
text += "\n\n<!-------------- ([path]) ---------- -->\n\n"
text += H.to_html(FALSE)
text = "<html><title>Class Description</title>[hero_html_script]<body>[text]</body></html>"
if(fexists("docudump.html"))
fdel("docudump.html")
text2file(text, "docudump.html")
#endif