Merge pull request #2283 from YotaXP/list2text-refactor

Optimized and refactored list2text, text2list, and replacetext.
This commit is contained in:
Giacom
2014-01-11 10:11:13 -08:00
17 changed files with 146 additions and 142 deletions
+2 -2
View File
@@ -57,7 +57,7 @@ proc/NewStutter(phrase,stunned)
split_phrase[index] = word
return sanitize(dd_list2text(split_phrase," "))
return sanitize(list2text(split_phrase," "))
proc/Stagger(mob/M,d) //Technically not a filter, but it relates to drunkenness.
step(M, pick(d,turn(d,90),turn(d,-90)))
@@ -79,6 +79,6 @@ proc/Ellipsis(original_msg, chance = 50, keep_words)
continue
new_words += w
new_msg = dd_list2text(new_words," ")
new_msg = list2text(new_words," ")
return new_msg