Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Убирает WORDS REPLACE у повара #143

Merged
merged 4 commits into from
Apr 20, 2024
Merged
Show file tree
Hide file tree
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
8 changes: 4 additions & 4 deletions modular_bandastation/translations/code/moustache.dm
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
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/italian, words_replace))
message = replacetext(message, words, GLOBAL_PROC_REF(italian_words_replace))

if(prob(3))
message += pick(" Равиоли, равиоли, подскажи мне формуоли!"," Мамма-мия!"," Мамма-мия! Какая острая фрикаделька!", " Ла ла ла ла ла фуникули+ фуникуля+!")
if(prob(5))
message += pick(" Равиоли, равиоли, подскажи мне формуоли!"," Мамма-мия!"," Мамма-мия! Какая острая фрикаделька!", " Ла ла ла ла ла фуникули+ фуникуля+!", " Вордс Реплаке!")
speech_args[SPEECH_MESSAGE] = trim(message)

/obj/item/clothing/mask/fakemoustache/italian/proc/words_replace(word)
/proc/italian_words_replace(word)
var/static/list/italian_words
if(!italian_words)
italian_words = strings("italian_replacement_ru.json", "italian")
larentoun marked this conversation as resolved.
Show resolved Hide resolved
Expand Down
78 changes: 78 additions & 0 deletions strings/italian_replacement_ru.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{

"italian": {
"ассистент": "головорез",
"ассистентская": "притон головорезов",
"ассистентской": "притоне головорезов",
"ребенок": [
"ребячино",
"маленькая сосисочка"
],
"плохой": "молто мале",
"плохо": "молто мале",
"пока": [
"чао",
"арривидерчи"
],
"прощай": [
"чао",
"арривидерчи"
],
"капитан": "капитано",
"сыр": [
"пармезан",
"горгондзол"
],
"повар": "кучинаре",
"папа": "паппа",
"отец": "паппа",
"враги": "немичи",
"враг": "немиго",
"друзья": "амичи",
"друг": "амиго",
"хорошо": "молто бене",
"хороший": "молто бене",
"хай": [
"чао",
"бонжорно"
],
"привет": [
"чао",
"бонжорно"
],
"здравствуйте": [
"чао",
"бонжорно"
],
"здравствуй": [
"чао",
"бонжорно"
],
"сделай": "сделай да",
"мясо": [
"пепперони",
"ветчина да"
],
"мама": "мамма",
"оперативник": "грек",
"оперативники": "греки",
"сбшники": "полицаи",
"сбшник": "полицай",
"сб": "полиция",
"спагетти": "СПАГЕТТ",
"острый": "да острый",
"остро": "да остро",
"спасибо": "грасиас",
"предатель": "мафиози",
"трейтор": "мафиози",
"тритор": "мафиози",
"кто же": "кто же",
Gaxeer marked this conversation as resolved.
Show resolved Hide resolved
"кто": "кто же",
"чей же": "чей же",
"чей": "чей же",
"почему так": "почему же так",
"почему": "почему же так"
}


}
Loading