From 34697746f04cd24a3c7ad3b3213b2523b6015838 Mon Sep 17 00:00:00 2001
From: SuhEugene <32931701+SuhEugene@users.noreply.github.com>
Date: Sun, 10 Dec 2023 18:48:25 +0300
Subject: [PATCH 1/4] Fix donations data fetching from unexisting table
---
mods/don_loadout/code/donations/donations.dm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mods/don_loadout/code/donations/donations.dm b/mods/don_loadout/code/donations/donations.dm
index 9674f0a13718b..eeaac13415353 100644
--- a/mods/don_loadout/code/donations/donations.dm
+++ b/mods/don_loadout/code/donations/donations.dm
@@ -29,7 +29,7 @@
var/DBQuery/query = dbcon.NewQuery({"
SELECT CAST(SUM(amount) as UNSIGNED INTEGER)
- FROM budget
+ FROM `[sqlfdbkdbutil]`.`budget`
WHERE
ckey = '[player.ckey]' AND
is_valid = TRUE AND
From f38271f24979c294bd289a6184dfbc547acda9bd Mon Sep 17 00:00:00 2001
From: SuhEugene <32931701+SuhEugene@users.noreply.github.com>
Date: Sun, 10 Dec 2023 18:48:55 +0300
Subject: [PATCH 2/4] Implement donations OOC colors
---
code/datums/communication/ooc.dm | 8 ++++-
.../browserassets/css/browserOutput.css | 22 ++++++++++++++
.../browserassets/css/browserOutput_white.css | 22 ++++++++++++++
mods/don_loadout/README.md | 1 +
mods/don_loadout/_don_loadout.dme | 2 +-
mods/don_loadout/code/donations/donator.dm | 8 +++--
mods/don_loadout/code/donations/ooc_color.dm | 29 -------------------
.../don_loadout/code/donations/preferences.dm | 4 +++
8 files changed, 62 insertions(+), 34 deletions(-)
delete mode 100644 mods/don_loadout/code/donations/ooc_color.dm
create mode 100644 mods/don_loadout/code/donations/preferences.dm
diff --git a/code/datums/communication/ooc.dm b/code/datums/communication/ooc.dm
index 426b0ff12fac1..1d112c3d886cb 100644
--- a/code/datums/communication/ooc.dm
+++ b/code/datums/communication/ooc.dm
@@ -34,10 +34,16 @@
var/can_badmin = !is_stealthed && can_select_ooc_color(C) && (C.prefs.ooccolor != initial(C.prefs.ooccolor))
var/ooc_color = C.prefs.ooccolor
+ // [SIERRA-ADD] - DON_LOADOUT
+ var/ckey_prefix = C.donator_info.get_decorated_message(C, "[C.key]:")
+ // [/SIERRA-ADD]
for(var/client/target in GLOB.clients)
if(target.is_key_ignored(C.key)) // If we're ignored by this person, then do nothing.
continue
- var/sent_message = "[create_text_tag("ooc", "OOC:", target)] [C.key]: [SPAN_CLASS("message linkify", "[message]")]"
+ // [SIERRA-EDIT] - DON_LOADOUT
+ // var/sent_message = "[create_text_tag("ooc", "OOC:", target)] [C.key]: [SPAN_CLASS("message linkify", "[message]")]" // SIERRA-EDIT - ORIGINAL
+ var/sent_message = "[create_text_tag("ooc", "OOC:", target)] [ckey_prefix] [SPAN_CLASS("message linkify", "[message]")]"
+ // [/SIERRA-EDIT]
if(can_badmin)
receive_communication(C, target, SPAN_COLOR(ooc_color, SPAN_CLASS("ooc", sent_message)))
else
diff --git a/code/modules/goonchat/browserassets/css/browserOutput.css b/code/modules/goonchat/browserassets/css/browserOutput.css
index 89305692c5653..e325161e852fc 100644
--- a/code/modules/goonchat/browserassets/css/browserOutput.css
+++ b/code/modules/goonchat/browserassets/css/browserOutput.css
@@ -418,3 +418,25 @@ h1.alert, h2.alert {color: #a4bad6;}
.german {color: #4d5d53;}
.lirris {color: #023638;}
.alain {color: #6a1b9a;}
+
+/* DON_LOADOUT */
+.dt_1 {
+ font-weight: bold;
+ color: rgb(83, 107, 189);
+ text-shadow: 0 0 8px rgba(83, 107, 189, .6);
+}
+.dt_2 {
+ font-weight: bold;
+ color: rgb(91, 16, 212);
+ text-shadow: 0 0 8px rgba(91, 16, 212, .6);
+}
+.dt_3 {
+ font-weight: bold;
+ color: rgb(175, 48, 207);
+ text-shadow: 0 0 8px rgba(175, 48, 207, .6);
+}
+.dt_4 {
+ font-weight: bold;
+ color: rgb(229, 25, 219);
+ text-shadow: 0 0 8px rgba(229, 25, 219, .6);
+}
diff --git a/code/modules/goonchat/browserassets/css/browserOutput_white.css b/code/modules/goonchat/browserassets/css/browserOutput_white.css
index 22ae69907a513..14e4c5671f767 100644
--- a/code/modules/goonchat/browserassets/css/browserOutput_white.css
+++ b/code/modules/goonchat/browserassets/css/browserOutput_white.css
@@ -415,3 +415,25 @@ h1.alert, h2.alert {color: #000080;}
.german {color: #4d5d53;}
.lirris {color: #023638;}
.alain {color: #6a1b9a;}
+
+/* DON_LOADOUT */
+.dt_1 {
+ font-weight: bold;
+ color: rgb(83, 107, 189);
+ text-shadow: 0 0 8px rgba(83, 107, 189, .6);
+}
+.dt_2 {
+ font-weight: bold;
+ color: rgb(91, 16, 212);
+ text-shadow: 0 0 8px rgba(91, 16, 212, .6);
+}
+.dt_3 {
+ font-weight: bold;
+ color: rgb(175, 48, 207);
+ text-shadow: 0 0 8px rgba(175, 48, 207, .6);
+}
+.dt_4 {
+ font-weight: bold;
+ color: rgb(229, 25, 219);
+ text-shadow: 0 0 8px rgba(229, 25, 219, .6);
+}
diff --git a/mods/don_loadout/README.md b/mods/don_loadout/README.md
index 2e8e4963a8eec..5b08c30c646e3 100644
--- a/mods/don_loadout/README.md
+++ b/mods/don_loadout/README.md
@@ -30,6 +30,7 @@ ID мода: DON_LOADOUT
### Изменения *кор кода*
- `code/modules/client/preference_setup/general/05_preview.dm`: `/datum/preferences/proc/dress_preview_mob()`
+- `code/datums/communication/ooc.dm`: `/singleton/communication_channel/ooc/do_communicate()`