Wrist & headphone radios (#12225)

This commit is contained in:
Casper3667
2021-07-31 12:48:09 +02:00
committed by GitHub
parent dd37b014d4
commit d2c67e34e6
18 changed files with 419 additions and 62 deletions
@@ -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