Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 9e898f7

Browse files
committed
Merge remote-tracking branch 'upstream/master' into PortsPsionics
2 parents 65b03ad + e1bee0e commit 9e898f7

File tree

10 files changed

+52
-22
lines changed

10 files changed

+52
-22
lines changed

code/datums/elements/strippable.dm

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -502,19 +502,8 @@
502502
/datum/strip_menu/ui_host(mob/user)
503503
return owner
504504

505-
/datum/strip_menu/ui_status(mob/user, datum/ui_state/state)
506-
. = ..()
507-
508-
if (isliving(user))
509-
var/mob/living/living_user = user
510-
511-
if (
512-
. == UI_UPDATE \
513-
&& user.stat == CONSCIOUS \
514-
&& living_user.body_position == LYING_DOWN \
515-
&& user.Adjacent(owner)
516-
)
517-
return UI_INTERACTIVE
505+
/datum/strip_menu/ui_state(mob/user)
506+
return GLOB.strip_state
518507

519508
/// Creates an assoc list of keys to /datum/strippable_item
520509
/proc/create_strippable_list(types)

code/modules/admin/holder2.dm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ GLOBAL_PROTECT(href_token)
122122

123123
if (deadmined)
124124
activate()
125+
if(C.mentor_datum)
126+
C.mentor_position = C.mentor_datum.position
125127
owner = C
126128
ip_cache = C.address
127129
cid_cache = C.computer_id

code/modules/tgui/states/strip.dm

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
GLOBAL_DATUM_INIT(strip_state, /datum/ui_state/strip_state, new)
2+
3+
/// Carbons and cyborgs can strip mobs, other living can view but not strip
4+
/datum/ui_state/strip_state/can_use_topic(src_object, mob/user)
5+
if(iscarbon(user) || iscyborg(user))
6+
if(!user.Adjacent(src_object))
7+
return UI_DISABLED
8+
return UI_INTERACTIVE
9+
if(isliving(user))
10+
if(!user.Adjacent(src_object))
11+
return UI_DISABLED
12+
return UI_UPDATE
13+
return UI_CLOSE

html/changelog.html

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,15 @@
5757
-->
5858
<div class="commit sansserif">
5959

60+
<h2 class="date">31 December 2024</h2>
61+
<h3 class="author">Oblisk234 updated:</h3>
62+
<ul class="changes bgimages16">
63+
<li class="bugfix">Mentorwho will no longer remind you that mentorhelps are also sent to discord multiplied by the amount of mentors that are on the server.</li>
64+
<li class="bugfix">You can now see your messages to mentors on discord again.</li>
65+
<li class="bugfix">Mentor-maintainers/issue hunters' OOC tag will no longer evaporate into [] after readminning, deadminning, and rementoring.</li>
66+
<li class="bugfix">Discord mentor messages are now recorded in mhelp database and mentor tickets.</li>
67+
</ul>
68+
6069
<h2 class="date">30 December 2024</h2>
6170
<h3 class="author">SapphicOverload, UselessTheremin updated:</h3>
6271
<ul class="changes bgimages16">
@@ -728,12 +737,6 @@ <h3 class="author">tattax updated:</h3>
728737
<ul class="changes bgimages16">
729738
<li class="bugfix">fixed lizard prison jumpsuit sprite + offset</li>
730739
</ul>
731-
732-
<h2 class="date">01 October 2024</h2>
733-
<h3 class="author">ynot01 updated:</h3>
734-
<ul class="changes bgimages16">
735-
<li class="bugfix">Fixed changelog changes not word wrapping, which made the window horizontally cut off</li>
736-
</ul>
737740
</div>
738741

739742
<b>GoonStation 13 Development Team</b>

html/changelogs/.all_changelog.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45876,3 +45876,12 @@ DO NOT EDIT THIS FILE BY HAND! AUTOMATICALLY GENERATED BY ss13_genchangelog.py.
4587645876
2024-12-30:
4587745877
SapphicOverload, UselessTheremin:
4587845878
- rscadd: Adds a skills system
45879+
2024-12-31:
45880+
Oblisk234:
45881+
- bugfix: Mentorwho will no longer remind you that mentorhelps are also sent to
45882+
discord multiplied by the amount of mentors that are on the server.
45883+
- bugfix: You can now see your messages to mentors on discord again.
45884+
- bugfix: Mentor-maintainers/issue hunters' OOC tag will no longer evaporate into
45885+
[] after readminning, deadminning, and rementoring.
45886+
- bugfix: Discord mentor messages are now recorded in mhelp database and mentor
45887+
tickets.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
author: "ynot01"
2+
delete-after: true
3+
changes:
4+
- bugfix: "Fixed xenos & monkeys being unable to strip"

yogstation.dme

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3960,6 +3960,7 @@
39603960
#include "code\modules\tgui\states\physical.dm"
39613961
#include "code\modules\tgui\states\pilot.dm"
39623962
#include "code\modules\tgui\states\self.dm"
3963+
#include "code\modules\tgui\states\strip.dm"
39633964
#include "code\modules\tgui\states\zlevel.dm"
39643965
#include "code\modules\tgui_input\alert.dm"
39653966
#include "code\modules\tgui_input\checkboxes.dm"

yogstation/code/datums/world_topic.dm

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,16 @@ GLOBAL_VAR_INIT(mentornoot, FALSE)
8686
SEND_SOUND(C, sound('sound/misc/nootnoot.ogg'))
8787
else
8888
SEND_SOUND(C, sound('sound/items/bikehorn.ogg'))
89+
var/datum/DBQuery/add_mhelp_query = SSdbcore.NewQuery(
90+
"INSERT INTO `[format_table_name("mentor_interactions")]` (round_id, ckey, ckey_mentor, target_ckey, target_mentor, message) VALUES (:round, :send, :smentor, :receive, :rmentor, :msg);",
91+
list("round" = GLOB.round_id, "send" = from, "smentor" = TRUE, "receive" = C.ckey, "rmentor" = C.is_mentor(), "msg" = msg)
92+
)
93+
if(!add_mhelp_query.Execute())
94+
message_admins("Failed insert mhelp into mhelp DB. Check the SQL error logs for more details.")
95+
qdel(add_mhelp_query)
96+
if(C.ckey in SSYogs.mentortickets)
97+
var/datum/mentorticket/T = SSYogs.mentortickets[C.ckey]
98+
T.log += "<b>[from]:</b> [msg]"
8999
to_chat(C, "<font color='purple'>Mentor PM from-<b>[discord_mentor_link(from, from_id)]</b>: [msg]</font>", confidential = TRUE)
90100
var/show_char_recip = !C.is_mentor() && CONFIG_GET(flag/mentors_mobname_only)
91101
for(var/client/X in GLOB.mentors | GLOB.permissions.admins)

yogstation/code/modules/mentor/mentor_verbs.dm

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,8 @@ GLOBAL_PROTECT(mentor_verbs)
6464

6565
if(C.is_afk())
6666
msg += " (AFK)"
67-
else
68-
msg += span_info("Mentorhelps are also sent to Discord. If no mentors are available in game mentorhelp anyways and a mentor on Discord may see it and respond.")
6967
msg += "\n"
68+
msg += span_info("Mentorhelps are also sent to Discord. If no mentors are available in game mentorhelp anyways and a mentor on Discord may see it and respond.")
7069

7170
to_chat(src, msg, confidential=TRUE)
7271

yogstation/code/modules/mentor/mentorpm.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090

9191
var/datum/DBQuery/add_mhelp_query = SSdbcore.NewQuery(
9292
"INSERT INTO `[format_table_name("mentor_interactions")]` (round_id, ckey, ckey_mentor, target_ckey, target_mentor, message) VALUES (:round, :send, :smentor, :receive, :rmentor, :msg);",
93-
list("round" = GLOB.round_id, "send" = ckey, "smentor" = is_mentor(), "receive" = C.ckey, "rmentor" = C.is_mentor(), "msg" = msg)
93+
list("round" = GLOB.round_id, "send" = ckey, "smentor" = is_mentor(), "receive" = discord_id ? whom : C.ckey, "rmentor" = discord_id ? TRUE : C.is_mentor(), "msg" = msg)
9494
)
9595
if(!add_mhelp_query.Execute())
9696
message_admins("Failed insert mhelp into mhelp DB. Check the SQL error logs for more details.")

0 commit comments

Comments
 (0)