From effbfc0e3e13cdccf7855754cbe4791a8a350921 Mon Sep 17 00:00:00 2001 From: dj-34 Date: Thu, 10 Oct 2024 14:03:15 +0500 Subject: [PATCH] Fix linter --- code/modules/mob/mob_misc_procs.dm | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/code/modules/mob/mob_misc_procs.dm b/code/modules/mob/mob_misc_procs.dm index 5784583c4c53c..f7f4b0f0be13f 100644 --- a/code/modules/mob/mob_misc_procs.dm +++ b/code/modules/mob/mob_misc_procs.dm @@ -275,7 +275,7 @@ lowerletter = lowertext(newletter) // Character conversion - if(rand(1, 3) == 3) + if(prob(33.33)) switch(lowerletter) if("o") newletter = "u" @@ -299,15 +299,14 @@ newletter = "сц" // Random case replacement and adding characters from the slurletters list - switch(rand(1, 15)) - if(1, 3, 5, 8) - newletter = lowerletter - if(2, 4, 6, 15) - newletter = uppertext(newletter) - if(7) + if(prob(60)) + if(prob(11.11)) newletter += pick(slurletters) else - pass() + if(prob(50)) + newletter = lowertext(newletter) + else + newletter = uppertext(newletter) // Additional phrases if(rand(1, 100) <= strength * 0.25)