Optimized and refactored list2text, text2list, and replacetext.

Also fixed some grammar in the station blueprint code.

Conflicts:
	code/game/objects/items/blueprints.dm
	code/game/objects/items/devices/uplinks.dm
	code/modules/admin/verbs/debug.dm
	code/modules/clothing/masks/gasmask.dm
	code/modules/detectivework/scanner.dm
	code/modules/flufftext/TextFilters.dm
	code/modules/mob/living/carbon/human/say.dm
	code/modules/mob/living/silicon/ai/say.dm

Conflicts:
	code/modules/admin/verbs/debug.dm
	code/modules/detectivework/scanner.dm
This commit is contained in:
YotaXP
2014-01-08 07:14:16 -05:00
committed by ZomgPonies
parent a6b70bc8b4
commit b7efb1b7ed
22 changed files with 543 additions and 147 deletions
@@ -30,7 +30,7 @@
/*var/l = lentext(msg)
if(findtext(msg," ",l,l+1)==0)
msg+=" "*/
seperate = stringsplit(msg, " ")
seperate = text2list(msg, " ")
for(var/Xa = 1,Xa<seperate.len,Xa++)
var/next = Xa + 1
@@ -65,7 +65,7 @@
if(!word)
text = "[pick(heard_words)]"
else
text = pick(stringsplit(word, " "))
text = pick(text2list(word, " "))
if(lentext(text)==1)
text=uppertext(text)
else