Skip to content

Commit

Permalink
adressal to tsar-salat
Browse files Browse the repository at this point in the history
  • Loading branch information
XeonMations committed Nov 16, 2024
1 parent b610eb7 commit fca45a7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions code/datums/emotes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
name = key

/datum/emote/proc/run_emote(mob/user, params, type_override, intentional = FALSE)
SHOULD_CALL_PARENT(TRUE)
if(!can_run_emote(user, TRUE, intentional))
return FALSE

Expand Down
9 changes: 5 additions & 4 deletions code/modules/mob/living/emote.dm
Original file line number Diff line number Diff line change
Expand Up @@ -526,11 +526,12 @@
to_chat(user, "You cannot send IC messages (muted).")
return FALSE
else if(!params)
var/custom_emote = stripped_input(usr, "Choose an emote to display.")
var/custom_emote = stripped_input(user, "Choose an emote to display.")
if(custom_emote && !check_invalid(user, custom_emote))
var/type = input("Is this a visible or hearable emote?") as null|anything in list("Visible", "Hearable", "Both")
var/list/emote_list = list("Audible", "Visible", "Both")
var/type = tgui_input_list(user, "Is this a visible or audible emote?", "Emote Type", emote_list)
switch(type)
if("Hearable")
if("Audible")
emote_type |= EMOTE_AUDIBLE
if("Visible")
emote_type |= EMOTE_VISIBLE
Expand All @@ -543,7 +544,7 @@
emote_type = type_override
. = ..()
message = null
emote_type = 0
emote_type = null

/datum/emote/living/custom/replace_pronoun(mob/user, message)
return message
Expand Down

0 comments on commit fca45a7

Please sign in to comment.