Skip to content

Commit

Permalink
relay
Browse files Browse the repository at this point in the history
  • Loading branch information
realforest2001 committed Jul 24, 2023
1 parent 85d415a commit 3a528aa
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions code/modules/cm_preds/falcon.dm
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,27 @@
)
flags_equip_slot = SLOT_EAR
flags_item = ITEM_PREDATOR
flags_atom = FPRINT|USES_HEARING


/obj/item/falcon_drone/hear_talk(mob/living/sourcemob, message, verb, datum/language/language, italics)
var/mob/hologram/falcon/hologram = loc
if(!istype(hologram))
return FALSE
var/mob/living/carbon/human/user = hologram.owned_bracers.loc
if(!ishuman(user) || user == sourcemob)
return FALSE

to_chat(user, SPAN_YAUTJABOLD("Falcon Relay: [sourcemob.name] [verb], <span class='[language.color]'>\"[message]\"</span>"))
if(user && user.client && user.client.prefs && !user.client.prefs.lang_chat_disabled \
&& !user.ear_deaf && user.say_understands(sourcemob, language))
sourcemob.langchat_display_image(user)

return TRUE

/obj/item/falcon_drone/get_examine_location(mob/living/carbon/human/wearer, mob/examiner, slot, t_he = "They", t_his = "their", t_him = "them", t_has = "have", t_is = "are")
switch(slot)
if(WEAR_L_EAR)
return "on [t_his] shoulder"
if(WEAR_R_EAR)
if(WEAR_L_EAR, WEAR_R_EAR)
return "on [t_his] shoulder"
return ..()

Expand Down

0 comments on commit 3a528aa

Please sign in to comment.