mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 07:08:00 +01:00
A tweak for russian autohiss (#7930)
* A tweak for russian autohiss * Keeping code up to date * Updating tongue file * A new config * Update
This commit is contained in:
@@ -108,12 +108,15 @@
|
||||
message = lizard_ecks.Replace(message, "ecks$1")
|
||||
message = lizard_eckS.Replace(message, "ECKS$1")
|
||||
//SKYRAT EDIT START: Adding russian version to autohiss
|
||||
var/static/regex/lizard_hiss_ru = new("с+", "g")
|
||||
var/static/regex/lizard_hiSS_ru = new("С+", "g")
|
||||
message = lizard_hiss_ru.Replace(message, "ссс")
|
||||
message = lizard_hiSS_ru.Replace(message, "ССС")
|
||||
message = replacetext(message, "ж", "ш")
|
||||
message = replacetext(message, "Ж", "Ш")
|
||||
if(CONFIG_GET(flag/russian_text_formation))
|
||||
var/static/regex/lizard_hiss_ru = new("с+", "g")
|
||||
var/static/regex/lizard_hiSS_ru = new("С+", "g")
|
||||
message = replacetext(message, "з", "с")
|
||||
message = replacetext(message, "З", "С")
|
||||
message = replacetext(message, "ж", "ш")
|
||||
message = replacetext(message, "Ж", "Ш")
|
||||
message = lizard_hiss_ru.Replace(message, "ссс")
|
||||
message = lizard_hiSS_ru.Replace(message, "ССС")
|
||||
//SKYRAT EDIT END: Adding russian version to autohiss
|
||||
speech_args[SPEECH_MESSAGE] = message
|
||||
|
||||
@@ -231,12 +234,13 @@
|
||||
message = replacetext(message, "s", "z")
|
||||
message = replacetext(message, "S", "Z")
|
||||
//SKYRAT EDIT START: Adding russian version to autohiss
|
||||
var/static/regex/fly_buzz_ru = new("з+", "g")
|
||||
var/static/regex/fly_buZZ_ru = new("З+", "g")
|
||||
message = fly_buzz_ru.Replace(message, "ззз")
|
||||
message = fly_buZZ_ru.Replace(message, "ЗЗЗ")
|
||||
message = replacetext(message, "с", "з")
|
||||
message = replacetext(message, "С", "З")
|
||||
if(CONFIG_GET(flag/russian_text_formation))
|
||||
var/static/regex/fly_buzz_ru = new("з+", "g")
|
||||
var/static/regex/fly_buZZ_ru = new("З+", "g")
|
||||
message = fly_buzz_ru.Replace(message, "ззз")
|
||||
message = fly_buZZ_ru.Replace(message, "ЗЗЗ")
|
||||
message = replacetext(message, "с", "з")
|
||||
message = replacetext(message, "С", "З")
|
||||
//SKYRAT EDIT END: Adding russian version to autohiss
|
||||
speech_args[SPEECH_MESSAGE] = message
|
||||
|
||||
|
||||
@@ -62,3 +62,6 @@ ROCKPLANET_BUDGET 60
|
||||
|
||||
##Player controlled mob spawn text
|
||||
PC_MOB_TEXT As a player controlled mob you are expected to play the role to the best of your ability. This means if you're an animal, act like one. You shouldn't display much intelligence if any. This also means if you're engaging in combat you should refrain from mercing people fully. Play not to win but to create a challenge. You're there to replace AI, make others enjoy the situation as well. If your simple mob is not above simple or mute intelligence, using structures such as welding tanks/canisters/boxes to hinder your opponent is entirely forbidden. Do not do this.
|
||||
|
||||
## Toggles various checks for russian texts formation, as an example - autohiss. Useful only for russian servers
|
||||
#RUSSIAN_TEXT_FORMATION
|
||||
|
||||
+2
@@ -4,6 +4,8 @@
|
||||
/datum/config_entry/string/wikiurlskyrat
|
||||
config_entry_value = "https://skyrat13.tk/wiki/index.php"
|
||||
|
||||
/datum/config_entry/flag/russian_text_formation
|
||||
|
||||
//DISCORD GAME ALERT CONFIGS
|
||||
//Role id to ping
|
||||
/datum/config_entry/string/game_alert_role_id
|
||||
|
||||
Reference in New Issue
Block a user