forked from ParadiseSS13/Paradise
-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
<!-- Пишите **НИЖЕ** заголовков и **ВЫШЕ** комментариев, иначе что то может пойти не так. --> <!-- Вы можете прочитать Contributing.MD, если хотите узнать больше. --> ## Что этот PR делает Добавлянто итальяно уситто ## Почему это хорошо для игры Ноу комменто ## Изображения изменений ![image](https://github.com/ss220club/Paradise-SS220/assets/102746941/95cc0c2f-8024-43fd-af46-8265ae4b40c5) ## Тестирование Веритто на словито. ## Changelog :cl: add: Мамма-мия, девелоперито Дон-Джейо и Ащиа Лежендария портировали итальянно уситто /:cl: --------- Co-authored-by: dj-34 <[email protected]> Co-authored-by: Furior <[email protected]>
- Loading branch information
1 parent
f873ac9
commit 8c24b08
Showing
4 changed files
with
134 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/obj/item/clothing/mask | ||
var/modifies_speech = FALSE | ||
|
||
/obj/item/clothing/mask/proc/handle_speech(datum/source, list/speech_args) | ||
SIGNAL_HANDLER | ||
|
||
/obj/item/clothing/mask/equipped(mob/M, slot) | ||
. = ..() | ||
|
||
if ((slot & SLOT_HUD_WEAR_MASK) && modifies_speech) | ||
RegisterSignal(M, COMSIG_MOB_SAY, PROC_REF(handle_speech)) | ||
else | ||
UnregisterSignal(M, COMSIG_MOB_SAY) | ||
|
||
/obj/item/clothing/mask/dropped(mob/M) | ||
. = ..() | ||
UnregisterSignal(M, COMSIG_MOB_SAY) | ||
|
||
/obj/item/clothing/mask/fakemoustache/chef | ||
name = "абсолютно настоящие усы шефа" | ||
desc = "Осторожно: усы накладные." | ||
modifies_speech = TRUE | ||
|
||
/obj/item/clothing/mask/fakemoustache/chef/handle_speech(datum/source, list/speech_args) | ||
var/message = speech_args[SPEECH_MESSAGE] | ||
if(message[1] != "*") | ||
var/static/regex/words = new(@"(?<![a-zA-Zа-яёА-ЯЁ])[a-zA-Zа-яёА-ЯЁ]+?(?![a-zA-Zа-яёА-ЯЁ])", "g") | ||
message = replacetext(message, words, TYPE_PROC_REF(/obj/item/clothing/mask/fakemoustache/chef, words_replace)) | ||
|
||
if(prob(5)) | ||
message += pick(" Равиоли, равиоли, подскажи мне формуоли!"," Мамма-мия!"," Мамма-мия! Какая острая фрикаделька!", " Ла ла ла ла ла фуникули+ фуникуля+!", "Вордс Реплаке!") | ||
speech_args[SPEECH_MESSAGE] = trim(message) | ||
|
||
/obj/item/clothing/mask/fakemoustache/chef/proc/words_replace(word) | ||
var/static/list/italian_words | ||
if(!italian_words) | ||
italian_words = strings("italian_replacement.json", "italian") | ||
|
||
var/match = italian_words[lowertext(word)] | ||
if(!match) | ||
return word | ||
|
||
if(islist(match)) | ||
match = pick(match) | ||
|
||
if(word == uppertext(word)) | ||
return uppertext(match) | ||
|
||
if(word == capitalize(word)) | ||
return capitalize(match) | ||
|
||
return match | ||
|
||
/datum/outfit/job/chef | ||
mask = /obj/item/clothing/mask/fakemoustache/chef |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
{ | ||
|
||
"italian": { | ||
"ассистент": "головорез", | ||
"ассистентская": "притон головорезов", | ||
"ассистентской": "притоне головорезов", | ||
"ребенок": [ | ||
"ребячино", | ||
"маленькая сосисочка" | ||
], | ||
"плохой": "молто мале", | ||
"плохо": "молто мале", | ||
"пока": [ | ||
"чао", | ||
"арривидерчи" | ||
], | ||
"прощай": [ | ||
"чао", | ||
"арривидерчи" | ||
], | ||
"капитан": "капитано", | ||
"сыр": [ | ||
"пармезан", | ||
"горгондзол" | ||
], | ||
"повар": "кучинаре", | ||
"папа": "паппа", | ||
"отец": "паппа", | ||
"враги": "немичи", | ||
"враг": "немиго", | ||
"друзья": "амичи", | ||
"друг": "амиго", | ||
"дормы": [ | ||
"дормиторио", | ||
"притон" | ||
], | ||
"хорошо": "молто бене", | ||
"хороший": "молто бене", | ||
"хай": [ | ||
"чао", | ||
"бонжорно" | ||
], | ||
"привет": [ | ||
"чао", | ||
"бонжорно" | ||
], | ||
"здравствуйте": [ | ||
"чао", | ||
"бонжорно" | ||
], | ||
"здравствуй": [ | ||
"чао", | ||
"бонжорно" | ||
], | ||
"сделай": "сделай да", | ||
"мясо": [ | ||
"пепперони", | ||
"ветчина да" | ||
], | ||
"мама": "мамма", | ||
"оперативник": "грек", | ||
"оперативники": "греки", | ||
"сбшники": "полицаи", | ||
"сбшник": "полицай", | ||
"сб": "полиция", | ||
"спагетти": "СПАГЕТТ", | ||
"острый": "да острый", | ||
"остро": "да остро", | ||
"спасибо": "грасиас", | ||
"предатель": "мафиози", | ||
"трейтор": "мафиози", | ||
"тритор": "мафиози" | ||
} | ||
} |