diff --git a/code/modules/mob/mob_misc_procs.dm b/code/modules/mob/mob_misc_procs.dm index b66f2a66daf..5425a2f2dd8 100644 --- a/code/modules/mob/mob_misc_procs.dm +++ b/code/modules/mob/mob_misc_procs.dm @@ -281,25 +281,22 @@ /proc/stutter(n) var/te = html_decode(n) - var/t = ""//placed before the message. Not really sure what it's for. - n = length(n)//length of the entire word + var/t = "" //placed before the message. Not really sure what it's for. + n = length(n) //length of the entire word var/p = null - p = 1//1 is the start of any word - while(p <= n)//while P, which starts at 1 is less or equal to N which is the length. + p = 1 //1 is the start of any word + while(p <= n) //while P, which starts at 1 is less or equal to N which is the length. var/n_letter = copytext(te, p, p + 1)//copies text from a certain distance. In this case, only one letter at a time. if(prob(80) && (ckey(n_letter) in list("b","c","d","f","g","h","j","k","l","m","n","p","q","r","s","t","v","w","x","y","z"))) - if(prob(10)) - n_letter = text("[n_letter]-[n_letter]-[n_letter]-[n_letter]")//replaces the current letter with this instead. + if(prob(5)) + n_letter = text("[n_letter]-[n_letter]-[n_letter]") //replaces the current letter with this instead. else - if(prob(20)) - n_letter = text("[n_letter]-[n_letter]-[n_letter]") + if(prob(5)) + n_letter = null else - if(prob(5)) - n_letter = null - else - n_letter = text("[n_letter]-[n_letter]") - t = text("[t][n_letter]")//since the above is ran through for each letter, the text just adds up back to the original word. - p++//for each letter p is increased to find where the next letter will be. + n_letter = text("[n_letter]-[n_letter]") + t = text("[t][n_letter]") //since the above is ran through for each letter, the text just adds up back to the original word. + p++ //for each letter p is increased to find where the next letter will be. return sanitize(copytext(t,1,MAX_MESSAGE_LEN)) /proc/robostutter(n) //for robutts