Fixes wrist radio issues (#12280)

This commit is contained in:
Casper3667
2021-07-31 17:39:03 -03:00
committed by GitHub
parent 47d1195aee
commit 8fa5c5d5a8
2 changed files with 11 additions and 0 deletions
@@ -17,6 +17,8 @@
var/ks2type = null
var/radio_sound = null
var/EarSound = TRUE
drop_sound = 'sound/items/drop/component.ogg'
pickup_sound = 'sound/items/pickup/component.ogg'
@@ -69,6 +71,8 @@
var/mob/living/carbon/human/H = src.loc
if(H.l_ear == src || H.r_ear == src)
return ..(freq, level)
if(!EarSound)
return ..(freq, level)
return -1
/obj/item/device/radio/headset/attack_hand(mob/user)
@@ -184,6 +188,7 @@
item_state = "wristset"
slot_flags = SLOT_WRISTS
canhear_range = 1
EarSound = FALSE
/*
* Civillian