part 2: bloody tendency

This commit is contained in:
Kraseo
2020-03-01 17:37:18 +01:00
parent 38f7821dd6
commit d93ade7e03
8 changed files with 97 additions and 34 deletions
+2 -4
View File
@@ -801,10 +801,8 @@ GLOBAL_LIST_INIT(binary, list("0","1"))
/proc/readable_corrupted_text(text)
var/list/corruption_options = list("..", "£%", "~~\"", "!!", "*", "^", "$!", "-", "}", "?")
var/corrupted_text = ""
// Have every letter have a chance of creating corruption on either side
// Small chance of letters being removed in place of corruption - still overall readable
for(var/letter_index = 1; letter_index <= length(text); letter_index++)
var/letter = text[letter_index]
for(var/letter_index = 1; letter_index <= length(text); letter_index++) // Have every letter have a chance of creating corruption on either side
var/letter = text[letter_index] // Small chance of letters being removed in place of corruption - still overall readable
if(prob(15))
corrupted_text += pick(corruption_options)
if(prob(95))