Skip to content

Commit

Permalink
Merge branch 'master' into codewords
Browse files Browse the repository at this point in the history
  • Loading branch information
Blundir authored Feb 5, 2024
2 parents 35faa3a + 0b4361a commit 7d10bcb
Show file tree
Hide file tree
Showing 7 changed files with 63 additions and 2 deletions.
19 changes: 19 additions & 0 deletions code/__HELPERS/text.dm
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,13 @@
return
if(32)
continue
/* Dripstation edit start - russian cyrillic support
if(127 to INFINITY)
*/
if(127 to 1039)
return
if(1104 to INFINITY)
//Dripstation edit end
if(ascii_only)
return
else
Expand Down Expand Up @@ -152,7 +158,20 @@

number_of_alphanumeric++
last_char_group = LETTERS_DETECTED
//Dripstation edit start - russian cyrillic support
// А .. Я
if(1040 to 1071) //Uppercase Letters
number_of_alphanumeric++
last_char_group = LETTERS_DETECTED

// а .. я
if(1072 to 1103) //Lowercase Letters
if(last_char_group == NO_CHARS_DETECTED || last_char_group == SPACES_DETECTED || last_char_group == SYMBOLS_DETECTED) //start of a word
char = uppertext(char)

number_of_alphanumeric++
last_char_group = LETTERS_DETECTED
//Dripstation edit end
// 0 .. 9
if(48 to 57) //Numbers
if(last_char_group == NO_CHARS_DETECTED || !allow_numbers) //suppress at start of string
Expand Down
2 changes: 2 additions & 0 deletions code/controllers/subsystem/ticker.dm
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,7 @@ SUBSYSTEM_DEF(ticker)
to_chat(world, span_boldannounce("An admin has delayed the round end."))
return
//yogs start - yogs tickets
/* //Dripstation edit - removal of ticket delay
if(GLOB.ahelp_tickets && GLOB.ahelp_tickets.ticketAmount)
var/list/adm = get_admin_counts(R_BAN)
var/list/activemins = adm["present"]
Expand All @@ -713,6 +714,7 @@ SUBSYSTEM_DEF(ticker)
return
else
to_chat(world, span_boldannounce("Round ended, but there were still active tickets. Please submit a player complaint if you did not receive a response."))
*/
//yogs end - yogs tickets
to_chat(world, span_boldannounce("Rebooting World in [DisplayTimeText(delay)]. [reason]"))
webhook_send_roundstatus("endgame") //yogs - webhook support
Expand Down
4 changes: 4 additions & 0 deletions code/modules/client/client_procs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1009,6 +1009,7 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
movement_keys[key] = WEST
if("South")
movement_keys[key] = SOUTH
/* Dripstation edit - cyrillic support
if(SAY_CHANNEL)
winset(src, "default-[REF(key)]", "parent=default;name=[key];command=.say")
if(ME_CHANNEL)
Expand All @@ -1017,12 +1018,15 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
winset(src, "default-[REF(key)]", "parent=default;name=[key];command=ooc")
if(LOOC_CHANNEL)
winset(src, "default-[REF(key)]", "parent=default;name=[key];command=looc")
*/
if(ASAY_CHANNEL)
winset(src, "default-[REF(key)]", "parent=default;name=[key];command=asay")
/* Dripstation edit - cyrillic support
if(MSAY_CHANNEL)
winset(src, "default-[REF(key)]", "parent=default;name=[key];command=msay")
if(DONORSAY_CHANNEL)
winset(src, "default-[REF(key)]", "parent=default;name=[key];command=.donorsay")
*/
if(DEADSAY_CHANNEL)
winset(src, "default-[REF(key)]", "parent=default;name=[key];command=dsay")

Expand Down
1 change: 0 additions & 1 deletion config/pretty_filter.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,3 @@ One day while Andy was masturbating=BAN ME ADMINS!
XEzwgBD=BAN ME ADMINS!

\b(?:https?:\/\/)?(?:www|i)?\.?(?!yogstation\.net|github\.com)\w{4,128}\.\w{2}\.?\w{0,2}\b\S*=[Link Removed]
#[^ -ÿ]+=​ dripstation edit
2 changes: 1 addition & 1 deletion interface/skin.dmf
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ window "mapwindow"
text-color = none
is-default = true
saved-params = "zoom;letterbox;zoom-mode"
style = ".center { text-align: center; } .maptext { font-family: 'Small Fonts'; font-size: 7px; -dm-text-outline: 1px black; color: white; line-height: 1.1; } .command_headset { font-weight: bold;\tfont-size: 8px; } .small { font-size: 6px; } .big { font-size: 8px; } .reallybig { font-size: 8px; } .extremelybig { font-size: 8px; } .greentext { color: #00FF00; font-size: 7px; } .redtext { color: #FF0000; font-size: 7px; } .clown { color: #FF69Bf; font-size: 7px; font-weight: bold; } .his_grace { color: #15D512; } .hypnophrase { color: #0d0d0d; font-weight: bold; } .yell { font-weight: bold; } .italics { font-size: 6px; }"
style = ".center { text-align: center; } .maptext { font-family: 'MS Serif'; font-size: 7px; -dm-text-outline: 1px black; color: white; line-height: 1.1; } .command_headset { font-weight: bold;\tfont-size: 8px; } .small { font-size: 6px; } .big { font-size: 8px; } .reallybig { font-size: 8px; } .extremelybig { font-size: 8px; } .greentext { color: #00FF00; font-size: 7px; } .redtext { color: #FF0000; font-size: 7px; } .clown { color: #FF69Bf; font-size: 7px; font-weight: bold; } .his_grace { color: #15D512; } .hypnophrase { color: #0d0d0d; font-weight: bold; } .yell { font-weight: bold; } .italics { font-size: 6px; }"

window "infowindow"
elem "infowindow"
Expand Down
36 changes: 36 additions & 0 deletions modular_dripstation/code/datum/keybinding/communication.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/datum/keybinding/client/communication/say/down(client/user)
user.mob.say_wrapper()
return TRUE

/datum/keybinding/client/communication/emote/down(client/user)
user.mob.me_wrapper()
return TRUE

/datum/keybinding/client/communication/looc/down(client/user)
user.looc_wrapper()
return TRUE

/datum/keybinding/client/communication/ooc/down(client/user)
user.ooc_wrapper()
return TRUE

/datum/keybinding/client/communication/donor_say/down(client/user)
user.get_donator_say()
return TRUE

/datum/keybinding/client/communication/mentor_say/down(client/user)
user.mentor_wrapper()
return TRUE

/client/verb/looc_wrapper()
set hidden = TRUE
var/message = input("", "LOOC \"text\"") as null|text
looc(message)

/client/verb/mentor_wrapper()
set hidden = TRUE
set name = "msay"

var/message = input(src, null, "Mentor Chat \"text\"") as text|null
if (message)
cmd_mentor_say(message)
1 change: 1 addition & 0 deletions modular_dripstation/includes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include "code\datum\reagent\chemoverride.dm"
#include "code\datum\reagent\leadacetate.dm"
#include "code\datum\strong_pull.dm"
#include "code\datum\keybinding\communication.dm"
#include "code\game\effects\effects_foam.dm"
#include "code\game\mecha\cargo_hauler.dm"
#include "code\game\objects\items\bepis_items\boomerang.dm"
Expand Down

0 comments on commit 7d10bcb

Please sign in to comment.