Optimized and refactored list2text, text2list, and replacetext.

This commit is contained in:
eswordthecat
2014-11-01 23:14:41 -08:00
parent f7f1a82281
commit c97c6f0dba
21 changed files with 138 additions and 136 deletions

View File

@@ -2,7 +2,7 @@
/datum/admins/proc/create_mob(var/mob/user)
if (!create_mob_html)
var/mobjs = null
mobjs = dd_list2text(typesof(/mob), ";")
mobjs = list2text(typesof(/mob), ";")
create_mob_html = file2text('html/create_object.html')
create_mob_html = replacetext(create_mob_html, "null /* object types */", "\"[mobjs]\"")