From 8c24b085d2b8a2ee67189fb01cfae2a4ffaefda5 Mon Sep 17 00:00:00 2001 From: Volodymir Ohorodnytskyi <102746941+Legendaxe@users.noreply.github.com> Date: Sat, 21 Oct 2023 23:11:45 +0300 Subject: [PATCH] add: Italian moustache (#525) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Что этот PR делает Добавлянто итальяно уситто ## Почему это хорошо для игры Ноу комменто ## Изображения изменений ![image](https://github.com/ss220club/Paradise-SS220/assets/102746941/95cc0c2f-8024-43fd-af46-8265ae4b40c5) ## Тестирование Веритто на словито. ## Changelog :cl: add: Мамма-мия, девелоперито Дон-Джейо и Ащиа Лежендария портировали итальянно уситто /:cl: --------- Co-authored-by: dj-34 Co-authored-by: Furior <68264134+Furrior@users.noreply.github.com> --- .../code/signals_mob/signals_mob_living.dm | 4 + modular_ss220/clothing/_clothing.dme | 1 + modular_ss220/clothing/code/mask.dm | 55 ++++++++++++++ strings/italian_replacement.json | 74 +++++++++++++++++++ 4 files changed, 134 insertions(+) create mode 100644 modular_ss220/clothing/code/mask.dm create mode 100644 strings/italian_replacement.json diff --git a/modular_ss220/_signals220/code/signals_mob/signals_mob_living.dm b/modular_ss220/_signals220/code/signals_mob/signals_mob_living.dm index e531cf715cb2..d3dc947da91b 100644 --- a/modular_ss220/_signals220/code/signals_mob/signals_mob_living.dm +++ b/modular_ss220/_signals220/code/signals_mob/signals_mob_living.dm @@ -26,3 +26,7 @@ if(SEND_SIGNAL(src, COMSIG_LIVING_PROCESS_SPACEMOVE, movement_dir) & COMPONENT_BLOCK_SPACEMOVE) return FALSE . = ..() + +/mob/living/say(message, verb, sanitize, ignore_speech_problems, ignore_atmospherics, ignore_languages) + SEND_SIGNAL(src, COMSIG_MOB_SAY, args) + . = ..() diff --git a/modular_ss220/clothing/_clothing.dme b/modular_ss220/clothing/_clothing.dme index 8a95fc46b2e7..433e10db4734 100644 --- a/modular_ss220/clothing/_clothing.dme +++ b/modular_ss220/clothing/_clothing.dme @@ -4,6 +4,7 @@ #include "code/shoes.dm" #include "code/gloves.dm" #include "code/helmet.dm" +#include "code/mask.dm" #include "code/under.dm" #include "code/cloaks.dm" #include "code/garment_bag.dm" diff --git a/modular_ss220/clothing/code/mask.dm b/modular_ss220/clothing/code/mask.dm new file mode 100644 index 000000000000..13ad223ff531 --- /dev/null +++ b/modular_ss220/clothing/code/mask.dm @@ -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(@"(?