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

autohiss cyrillic #136

Merged
merged 1 commit into from
Apr 19, 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
4 changes: 4 additions & 0 deletions modular_bandastation/autohiss/_autohiss.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/datum/modpack/autohiss
name = "Обновленный Autohiss"
desc = "Замена авто-шипения и подобного в речи"
author = "furior"
3 changes: 3 additions & 0 deletions modular_bandastation/autohiss/_autohiss.dme
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#include "_autohiss.dm"

#include "code/autohiss.dm"
41 changes: 41 additions & 0 deletions modular_bandastation/autohiss/code/autohiss.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// TODO: Prefs for autohiss?

/obj/item/organ/internal/tongue/rat/modify_speech(datum/source, list/speech_args)
. = ..()
var/message = lowertext(speech_args[SPEECH_MESSAGE])
if(message == "привет" || message == "привет.")
speech_args[SPEECH_MESSAGE] = "Сыррретствую вас!"
if(message == "привет?")
speech_args[SPEECH_MESSAGE] = "Мм... сыррретствую вас?"
Comment on lines +6 to +9
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if(message == "привет" || message == "привет.")
speech_args[SPEECH_MESSAGE] = "Сыррретствую вас!"
if(message == "привет?")
speech_args[SPEECH_MESSAGE] = "Мм... сыррретствую вас?"
if(message == "привет" || message == "привет.")
speech_args[SPEECH_MESSAGE] = "Сыррретствую вас!"
else if(message == "привет?")
speech_args[SPEECH_MESSAGE] = "Мм... сыррретствую вас?"


/obj/item/organ/internal/tongue/fly/modify_speech(datum/source, list/speech_args)
. = ..()
var/static/regex/fly_buzz = new("з+", "g")
var/static/regex/fly_buZZ = new("З+", "g")
var/message = speech_args[SPEECH_MESSAGE]
if(message[1] != "*")
message = fly_buzz.Replace(message, "ззз")
message = fly_buZZ.Replace(message, "ЗЗЗ")
message = replacetext(message, "с", "з")
message = replacetext(message, "С", "З")
speech_args[SPEECH_MESSAGE] = message

/obj/item/organ/internal/tongue/lizard/modify_speech(datum/source, list/speech_args)
. = ..()
var/static/regex/lizard_hiss = new("с+", "g")
var/static/regex/lizard_hiSS = new("С+", "g")
var/static/regex/lizard_che = new("ч+", "g")
var/static/regex/lizard_cHE = new("Ч+", "g")
var/message = speech_args[SPEECH_MESSAGE]
if(message[1] != "*")
message = lizard_hiss.Replace(message, "ссс")
message = lizard_hiSS.Replace(message, "ССС")
message = lizard_che.Replace(message, "щ")
message = lizard_cHE.Replace(message, "Щ")
speech_args[SPEECH_MESSAGE] = message

/* TODO: Do these someday later
/obj/item/organ/internal/tongue/zombie/modify_speech(datum/source, list/speech_args)

/obj/item/organ/internal/tongue/snail/modify_speech(datum/source, list/speech_args)
*/
1 change: 1 addition & 0 deletions modular_bandastation/modular_bandastation.dme
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include "_singletons/_singletons.dme"
#include "aesthetics/_aesthetics.dme"
#include "ai_laws/_ai_laws.dme"
#include "autohiss/_autohiss.dme"
#include "barsigns/_barsigns.dme"
#include "communication/_communication.dme"
//#include "crawl_speed/_crawl_speed.dme" // Fixing floored melee brawl, or first steps to remove RP speed
Expand Down
Loading