From 2c893a40a959eb36c2d78068c3b8c90f48c15186 Mon Sep 17 00:00:00 2001 From: Aylong <69762909+Aylong220@users.noreply.github.com> Date: Thu, 5 Oct 2023 19:14:40 +0300 Subject: [PATCH] Feat: Stutters and slurs speech (#314) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Что этот PR делает Вернул заикание и спутанную речь. ## Почему это хорошо для игры СЪешь ещё 'ити'х' мя'гк'их Фр'ан'цуЗсшкИх БУлуК, да Выпей Чаю Б-бл-лят-ть ## Изображения изменений ## Тестирование ![image](https://github.com/ss220club/Paradise-SS220/assets/69762909/79ce4ae1-74e1-4655-9bd5-f530f69d4101) ## Changelog :cl: tweak: СЪешь ещё 'ити'х' мя'гк'их Фр'ан'цуЗсшкИх БУлуК, да Выпей Чаю tweak: Б-бл-лят-ть /:cl: --- code/modules/mob/mob_misc_procs.dm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/code/modules/mob/mob_misc_procs.dm b/code/modules/mob/mob_misc_procs.dm index 66332de943f5..c589289d0781 100644 --- a/code/modules/mob/mob_misc_procs.dm +++ b/code/modules/mob/mob_misc_procs.dm @@ -266,10 +266,10 @@ while(counter>=1) newletter=copytext_char(phrase,(leng-counter)+1,(leng-counter)+2) // SS220 EDIT - ORIGINAL: copytext if(rand(1,3)==3) - if(lowertext(newletter)=="o") newletter="u" - if(lowertext(newletter)=="s") newletter="ch" - if(lowertext(newletter)=="a") newletter="ah" - if(lowertext(newletter)=="c") newletter="k" + if(lowertext(newletter)=="o") newletter="u"; if(lowertext(newletter)=="о") newletter="у"; if(lowertext(newletter)=="э") newletter="и" + if(lowertext(newletter)=="s") newletter="ch"; if(lowertext(newletter)=="с") newletter="сш"; if(lowertext(newletter)=="г") newletter="х" + if(lowertext(newletter)=="a") newletter="ah"; if(lowertext(newletter)=="а") newletter="ах" + if(lowertext(newletter)=="c") newletter="k"; if(lowertext(newletter)=="ц") newletter="сц" switch(rand(1,15)) if(1,3,5,8) newletter="[lowertext(newletter)]" if(2,4,6,15) newletter="[uppertext(newletter)]" @@ -288,7 +288,7 @@ p = 1 //1 is the start of any word while(p <= n) //while P, which starts at 1 is less or equal to N which is the length. var/n_letter = copytext_char(te, p, p + 1) //copies text from a certain distance. In this case, only one letter at a time. // SS220 EDIT - ORIGINAL: copytext - if(prob(80) && (lowertext(n_letter) in list("b","c","d","f","g","h","j","k","l","m","n","p","q","r","s","t","v","w","x","y","z"))) // SS220 EDIT - ORIGINAL: (ckey(n_letter) + if(prob(80) && (lowertext(n_letter) in list("b","c","d","f","g","h","j","k","l","m","n","p","q","r","s","t","v","w","x","y","z","б","в","г","д","ж","з","к","л","м","н","п","р","с","т","ф","х","ц","ч","ш","щ"))) // SS220 EDIT - ORIGINAL: (ckey(n_letter) + ADDED RU LETTERS if(prob(10)) n_letter = text("[n_letter]-[n_letter]-[n_letter]-[n_letter]") //replaces the current letter with this instead. else