From 0009a81265aca2c2bf437dc3196201bfd7265261 Mon Sep 17 00:00:00 2001 From: _0Steven Date: Sun, 19 Oct 2025 01:29:40 +0200 Subject: [PATCH] more intuitive partial language --- code/modules/language/_language.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/language/_language.dm b/code/modules/language/_language.dm index 9ff5554daa15d9..3dc13ff3004fc3 100644 --- a/code/modules/language/_language.dm +++ b/code/modules/language/_language.dm @@ -263,8 +263,8 @@ if(translate_prob > 0) // the probability of managing to understand a word is based on how common it is (+10%, -15%) // 1000 words in the list, so words outside the list are just treated as "the 1250th most common word" - var/commonness = GLOB.most_common_words[LOWER_TEXT(base_word)] || 1250 - translate_prob += max((10 * (1 - (min(commonness, 1250) / 500))), 0) // DOPPLER EDIT ADDITION - wrapped in max() + var/commonness = GLOB.most_common_words[LOWER_TEXT(base_word)] || 2000 // DOPPLER EDIT CHANGE - More intuitive partial language - original: var/commonness = GLOB.most_common_words[LOWER_TEXT(base_word)] || 1250 + translate_prob += (100 * (1 - (min(commonness, 2000) / 2000))) // DOPPLER EDIT CHANGE - More intuitive partial language - original: translate_prob += (10 * (1 - (min(commonness, 1250) / 500))) if(prob(translate_prob)) scrambled_words += word translated_index += FALSE