Files
Aurora.3/code/modules/admin/create_turf.dm
Lohikar 2c1229a9b2 list2text() -> jointext() (#4342)
The DM jointext() function is more or less equivalent to list2text(), but is faster. Might as well.

Seems to make VV faster.
2018-03-03 00:36:44 +02:00

10 lines
433 B
Plaintext

/var/create_turf_html = null
/datum/admins/proc/create_turf(var/mob/user)
if (!create_turf_html)
var/turfjs = null
turfjs = jointext(typesof(/turf), ";")
create_turf_html = file2text('html/create_object.html')
create_turf_html = replacetext(create_turf_html, "null /* object types */", "\"[turfjs]\"")
user << browse(replacetext(create_turf_html, "/* ref src */", "\ref[src]"), "window=create_turf;size=425x475")