Skip to content

Commit

Permalink
russian words or else (#5)
Browse files Browse the repository at this point in the history
* russian words or else

keybinds, codewords and slurs for russian-speaking server

* hotkey revert

* Update names.dm

---------

Co-authored-by: Blundir <[email protected]>
  • Loading branch information
MrCastmer and Blundir authored Feb 29, 2024
1 parent bca84b9 commit 55ef3f8
Show file tree
Hide file tree
Showing 10 changed files with 621 additions and 4 deletions.
2 changes: 2 additions & 0 deletions code/__DEFINES/{dripstation_defines}/codewords.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/// File location for codewords
#define CODEWORDS_FILE "rus/codewords.json"
17 changes: 14 additions & 3 deletions code/__HELPERS/names.dm
Original file line number Diff line number Diff line change
Expand Up @@ -200,13 +200,24 @@ GLOBAL_DATUM(syndicate_code_response_regex, /regex)
)

var/list/safety = list(1,2,3)//Tells the proc which options to remove later on.
/*
var/nouns = strings(ION_FILE, "ionabstract")
var/objects = strings(ION_FILE, "ionobjects")
var/adjectives = strings(ION_FILE, "ionadjectives")
var/threats = strings(ION_FILE, "ionthreats")
var/foods = strings(ION_FILE, "ionfood")
var/drinks = strings(ION_FILE, "iondrinks")
var/list/locations = GLOB.teleportlocs.len ? GLOB.teleportlocs : drinks //if null, defaults to drinks instead.
*/
var/nouns = strings(CODEWORDS_FILE, "abstract") //dripstation edit
var/objects = strings(CODEWORDS_FILE, "objects") //dripstation edit
var/adjectives = strings(CODEWORDS_FILE, "adjectives") //dripstation edit
var/threats = strings(CODEWORDS_FILE, "threats") //dripstation edit
var/crew = strings(CODEWORDS_FILE, "crew") //dripstation edit
var/drinks = strings(CODEWORDS_FILE, "drinks") //dripstation edit
var/numbers = strings(CODEWORDS_FILE, "numbers") //dripstation edit
var/verb = strings(CODEWORDS_FILE, "verb") //dripstation edit
//var/list/locations = GLOB.teleportlocs.len ? GLOB.teleportlocs : drinks //if null, defaults to drinks instead. dripstation edit

var/list/names = list()
for(var/datum/data/record/t in GLOB.data_core.general)//Picks from crew manifest.
Expand Down Expand Up @@ -236,16 +247,16 @@ GLOBAL_DATUM(syndicate_code_response_regex, /regex)
new_name += pick(GLOB.last_names)
. += new_name
if(2)
. += pick(get_all_jobs())//Returns a job.
. += lowertext(pick(crew)) //dripstation edit
safety -= 1
if(2)
switch(rand(1,3))//Food, drinks, or things. Only selectable once.
if(1)
. += lowertext(pick(drinks))
if(2)
. += lowertext(pick(foods))
. += lowertext(pick(verb)) //dripstation edit
if(3)
. += lowertext(pick(locations))
. += lowertext(pick(numbers)) //dripstation edit
safety -= 2
if(3)
switch(rand(1,4))//Abstract nouns, objects, adjectives, threats. Can be selected more than once.
Expand Down
2 changes: 1 addition & 1 deletion code/__HELPERS/text.dm
Original file line number Diff line number Diff line change
Expand Up @@ -881,4 +881,4 @@ GLOBAL_LIST_INIT(binary, list("0","1"))
/// Removes all non-alphanumerics from the text, keep in mind this can lead to id conflicts
/proc/sanitize_css_class_name(name)
var/static/regex/regex = new(@"[^a-zA-Z0-9]","g")
return replacetext(name, regex, "")
return replacetext(name, regex, "")
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/datum/status_effect/speech/slurring/drunk
text_modification_file = "rus/slurring_drunk_text.json"

/datum/status_effect/speech/slurring/cult
text_modification_file = "rus/slurring_cult_text.json"

/datum/status_effect/speech/slurring/heretic
text_modification_file = "rus/slurring_heretic_text.json"
1 change: 1 addition & 0 deletions modular_dripstation/includes.dm
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "code\datums\status_effects\debuffs\speech_debuffs.dm"
#include "code\modules\antagonists\_common\antag_spawner.dm"
#include "code\game\gamemodes\nuclear\nuclear.dm"
#include "code\modules\antagonists\nukeop\nukeop.dm"
Expand Down
Loading

0 comments on commit 55ef3f8

Please sign in to comment.