mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
33 lines
1.0 KiB
Plaintext
33 lines
1.0 KiB
Plaintext
//This file was auto-corrected by findeclaration.exe on 25.5.2012 20:42:31
|
|
|
|
// The communications computer
|
|
/obj/machinery/computer/communications
|
|
name = "command and communications console"
|
|
desc = "Used to command and control the station. Can relay long-range communications."
|
|
icon_keyboard = "tech_key"
|
|
icon_screen = "comm"
|
|
light_color = "#0099ff"
|
|
req_access = list(access_heads)
|
|
circuit = /obj/item/weapon/circuitboard/communications
|
|
|
|
var/datum/tgui_module/communications/communications
|
|
|
|
/obj/machinery/computer/communications/Initialize()
|
|
. = ..()
|
|
communications = new(src)
|
|
|
|
/obj/machinery/computer/communications/emag_act(var/remaining_charges, var/mob/user)
|
|
if(!emagged)
|
|
emagged = TRUE
|
|
communications.emagged = TRUE
|
|
to_chat(user, "You scramble the communication routing circuits!")
|
|
return TRUE
|
|
|
|
/obj/machinery/computer/communications/attack_ai(mob/user)
|
|
return attack_hand(user)
|
|
|
|
/obj/machinery/computer/communications/attack_hand(mob/user)
|
|
if(..())
|
|
return
|
|
communications.tgui_interact(user)
|