Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions code/modules/language/_language.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading