Skip to content

Commit

Permalink
object narrate is now atom narrate
Browse files Browse the repository at this point in the history
  • Loading branch information
morrowwolf committed Nov 5, 2023
1 parent 57d8942 commit 63a9fbc
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion code/datums/langchat/langchat.dm
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
if(langchat_client_enabled(M) && !M.ear_deaf && (skip_language_check || M.say_understands(src, language)))
M.client.images += langchat_image

if(isturf(loc))
if(isturf(src) || isturf(loc))
langchat_image.loc = src
else
langchat_image.loc = recursive_holder_check(src)
Expand Down
6 changes: 3 additions & 3 deletions code/modules/admin/admin_verbs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var/list/admin_verbs_default = list(
/client/proc/cmd_admin_change_their_name,
/client/proc/cmd_admin_changekey,
/client/proc/cmd_admin_subtle_message,
/client/proc/cmd_admin_object_narrate,
/client/proc/cmd_admin_atom_narrate,
/client/proc/cmd_admin_xeno_report, //Allows creation of IC reports by the Queen Mother
/client/proc/cmd_admin_create_bioscan,
/client/proc/cmd_admin_create_AI_report, //Allows creation of IC reports by the ships AI utilizing Almayer General channel. Relies on ARES being intact and tcomms being powered.
Expand Down Expand Up @@ -115,7 +115,7 @@ var/list/admin_verbs_minor_event = list(
/datum/admins/proc/force_predator_round, //Force spawns a predator round.
/client/proc/adjust_predator_round,
/client/proc/cmd_admin_world_narrate, /*sends text to all players with no padding*/
/client/proc/cmd_admin_object_narrate,
/client/proc/cmd_admin_atom_narrate,
/client/proc/cmd_admin_create_centcom_report, //Messages from USCM command/other factions.
/client/proc/cmd_admin_create_predator_report, //Predator ship AI report
/client/proc/toggle_ob_spawn,
Expand Down Expand Up @@ -279,7 +279,7 @@ var/list/admin_verbs_hideable = list(
/client/proc/cmd_admin_change_their_name,
/client/proc/cmd_admin_changekey,
/client/proc/cmd_admin_subtle_message,
/client/proc/cmd_admin_object_narrate,
/client/proc/cmd_admin_atom_narrate,
/client/proc/cmd_admin_pm_context,
/client/proc/cmd_admin_rejuvenate,
/client/proc/cmd_admin_check_contents,
Expand Down
27 changes: 14 additions & 13 deletions code/modules/admin/verbs/mob_verbs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -203,22 +203,22 @@
else
return

/client/proc/cmd_admin_object_narrate(obj/selected)
set name = "Object Narrate"
/client/proc/cmd_admin_atom_narrate(atom/selected)
set name = "Atom Narrate"
set category = null

if(!check_rights(R_MOD))
return

var/type = tgui_input_list(usr,
"What type of narration?",
"Narration",
list(NARRATION_METHOD_SAY, NARRATION_METHOD_ME, NARRATION_METHOD_DIRECT))
if(!type) return
var/message = input(usr,
"What should it say?",
"Narrating as [selected.name]")
if(!message) return
var/type = tgui_input_list(mob,"What type of narration?", "Narration", list(NARRATION_METHOD_SAY, NARRATION_METHOD_ME, NARRATION_METHOD_DIRECT))

if(!type)
return

var/message = tgui_input_text(mob, "What should it say?", "Narrating as [selected]")

if(!message)
return

var/list/heard = get_mobs_in_view(world_view_size, selected)

Expand All @@ -231,8 +231,9 @@
selected.visible_message("<b>[selected]</b> [message]")
if(NARRATION_METHOD_DIRECT)
selected.visible_message("[message]")
log_admin("[key_name(src)] sent an Object Narrate with message [message].")
message_admins("[key_name(src)] sent an Object Narrate with message [message].")

log_admin("[key_name(src)] sent an Atom Narrate with message [message].")
message_admins("[key_name(src)] sent an Atom Narrate with message [message].")

/client/proc/cmd_admin_direct_narrate(mob/M)
set name = "Narrate"
Expand Down

0 comments on commit 63a9fbc

Please sign in to comment.