mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 03:02:54 +00:00
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:
@@ -326,3 +326,28 @@ var/global/list/obj/item/device/communicator/all_communicators = list()
|
|||||||
..()
|
..()
|
||||||
client_huds |= global_hud.whitense
|
client_huds |= global_hud.whitense
|
||||||
client_huds |= global_hud.darkMask
|
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)
|
||||||
|
|
||||||
|
|||||||
@@ -9,10 +9,19 @@
|
|||||||
path = /obj/item/weapon/clipboard
|
path = /obj/item/weapon/clipboard
|
||||||
|
|
||||||
/datum/gear/utility/communicator
|
/datum/gear/utility/communicator
|
||||||
display_name = "personal communicator"
|
display_name = "communicator selection"
|
||||||
path = /obj/item/device/communicator
|
path = /obj/item/device/communicator
|
||||||
cost = 0
|
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
|
/datum/gear/utility/camera
|
||||||
display_name = "camera"
|
display_name = "camera"
|
||||||
path = /obj/item/device/camera
|
path = /obj/item/device/camera
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
author: battlefieldCommander
|
||||||
|
delete-after: True
|
||||||
|
changes:
|
||||||
|
- rscadd: "Adds a communicator watch, a variant of the communicator you can wear on your wrist."
|
||||||
|
- rscadd: "Replaces the communicator in the loadout with a communicator selection. Choose either the traditional communicator, or the new commwatch."
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 60 KiB After Width: | Height: | Size: 62 KiB |
Reference in New Issue
Block a user