Adds communicator watch (take 2) (#4406)

* adds communicator watch

* adds commwatch to a loadout selection list

* adds changelog

just in case
This commit is contained in:
BillyBangles
2018-01-17 20:33:32 -05:00
committed by Anewbe
parent dc9243e784
commit c44af58716
4 changed files with 40 additions and 1 deletions

View File

@@ -326,3 +326,28 @@ var/global/list/obj/item/device/communicator/all_communicators = list()
..()
client_huds |= global_hud.whitense
client_huds |= global_hud.darkMask
//It's the 26th century. We should have smart watches by now.
/obj/item/device/communicator/watch
name = "communicator watch"
desc = "A personal device used to enable long range dialog between two people, utilizing existing telecommunications infrastructure to allow \
communications across different stations, planets, or even star systems. You can wear this one on your wrist!"
icon = 'icons/obj/device.dmi'
icon_state = "commwatch"
slot_flags = SLOT_GLOVES
/obj/item/device/communicator/watch/update_icon()
if(video_source)
icon_state = "commwatch-video"
return
if(voice_mobs.len || communicating.len)
icon_state = "commwatch-active"
return
if(alert_called)
icon_state = "commwatch-called"
return
icon_state = initial(icon_state)

View File

@@ -9,10 +9,19 @@
path = /obj/item/weapon/clipboard
/datum/gear/utility/communicator
display_name = "personal communicator"
display_name = "communicator selection"
path = /obj/item/device/communicator
cost = 0
display_name = "communicator watch"
/datum/gear/utility/communicator/New()
..()
var/list/communicators = list()
for(var/communicator in typesof(/obj/item/device/communicator) - list(/obj/item/device/communicator/integrated))
var/obj/item/device/communicator_type = communicator
communicators[initial(communicator_type.name)] = communicator_type
gear_tweaks += new/datum/gear_tweak/path(sortAssoc(communicators))
/datum/gear/utility/camera
display_name = "camera"
path = /obj/item/device/camera