From 450465a01bdc5e90c8ac2fadb0559d412bfeb2c3 Mon Sep 17 00:00:00 2001 From: 00Fjongl <65314359+00Fjongl@users.noreply.github.com> Date: Sun, 7 Jul 2024 02:20:32 -0500 Subject: [PATCH] Minor code changes --- src/randomization.mjs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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.