mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-30 00:21:11 +01:00
Wrist & headphone radios (#12225)
This commit is contained in:
@@ -152,6 +152,8 @@
|
||||
headsets["Left Ear"] = l_ear
|
||||
if(istype(r_ear, /obj/item/device/radio))
|
||||
headsets["Right Ear"] = r_ear
|
||||
if(istype(wrists, /obj/item/device/radio))
|
||||
headsets["Wrist"] = wrists
|
||||
|
||||
if(length(headsets))
|
||||
if(client && (client.prefs.primary_radio_slot in headsets))
|
||||
@@ -202,6 +204,19 @@
|
||||
used_radios += R
|
||||
if(R.talk_into(src,message,null,verb,speaking))
|
||||
successful_radio += R
|
||||
if("wrist")
|
||||
var/obj/item/device/radio/R
|
||||
var/has_radio = 0
|
||||
if(istype(wrists,/obj/item/device/radio))
|
||||
R = wrists
|
||||
has_radio = 1
|
||||
if(istype(r_hand, /obj/item/device/radio))
|
||||
R = wrists
|
||||
has_radio = 1
|
||||
if(has_radio)
|
||||
used_radios += R
|
||||
if(R.talk_into(src,message,null,verb,speaking))
|
||||
successful_radio += R
|
||||
if("whisper")
|
||||
whisper_say(message, speaking, alt_name)
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user