diff --git a/src/randomization.mjs b/src/randomization.mjs index 6d94f0a3..139cd43b 100644 --- a/src/randomization.mjs +++ b/src/randomization.mjs @@ -32,24 +32,26 @@ const insertText = (lis, str, newText) => { // changes with each time it is loaded. const randomListItem = lis => () => lis[Math.random() * lis.length | 0], -charset = ["­", "​", "­"], +charset = ["­", "​", "­", ""], +getRandomChar = randomListItem(charRandom), insertCharset = str => insertText( charset, str, - randomListItem(charRandom) + getRandomChar ), +getRandomSplash = randomListItem(splashRandom), hutaoInsert = str => insertText( "", str, - randomListItem(splashRandom) + getRandomSplash ), -cookingText = () => `${randomListItem(cookingInserts)()}`, +getCookingText = () => `${randomListItem(cookingInserts)()}`, insertCooking = str => insertText( "", str, - cookingText + getCookingText ), // This one isn't for obfuscation; it's just for dealing with cache issues.