Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yautja Falcon Relay #3981

Merged
merged 1 commit into from
Jul 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading