mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
- Updated to new UI - Put professions into columns to reduce the length of the window Supply Ordering Console - Updated to new UI - Added "Main Menu" button to the top of all lists Security Records Console - Fixed colors (eyes should bleed less now) Voting Panel - Updated to new UI Newscaster Unit - Updated to new UI DNA Modifier Console - Overhauled UI to make it (slightly) more accessible Airlock Control Console - Fixed UI not updating automatically - Updated to new UI - Overhauled UI
348 lines
14 KiB
Plaintext
348 lines
14 KiB
Plaintext
//This file was auto-corrected by findeclaration.exe on 25.5.2012 20:42:31
|
|
|
|
/obj/structure/computerframe
|
|
density = 1
|
|
anchored = 0
|
|
name = "Computer-frame"
|
|
icon = 'icons/obj/stock_parts.dmi'
|
|
icon_state = "0"
|
|
var/state = 0
|
|
var/obj/item/weapon/circuitboard/circuit = null
|
|
// weight = 1.0E8
|
|
|
|
/obj/item/weapon/circuitboard
|
|
density = 0
|
|
anchored = 0
|
|
w_class = 2.0
|
|
name = "Circuit board"
|
|
icon = 'icons/obj/module.dmi'
|
|
icon_state = "id_mod"
|
|
item_state = "electronic"
|
|
origin_tech = "programming=2"
|
|
var/id = null
|
|
var/frequency = null
|
|
var/build_path = null
|
|
var/board_type = "computer"
|
|
var/list/req_components = null
|
|
var/powernet = null
|
|
var/list/records = null
|
|
var/frame_desc = null
|
|
|
|
|
|
/obj/item/weapon/circuitboard/message_monitor
|
|
name = "Circuit board (Message Monitor)"
|
|
build_path = "/obj/machinery/computer/message_monitor"
|
|
origin_tech = "programming=3"
|
|
/obj/item/weapon/circuitboard/security
|
|
name = "Circuit board (Security)"
|
|
build_path = "/obj/machinery/computer/security"
|
|
/obj/item/weapon/circuitboard/aicore
|
|
name = "Circuit board (AI core)"
|
|
origin_tech = "programming=4;biotech=2"
|
|
board_type = "other"
|
|
/obj/item/weapon/circuitboard/aiupload
|
|
name = "Circuit board (AI Upload)"
|
|
build_path = "/obj/machinery/computer/aiupload"
|
|
origin_tech = "programming=4"
|
|
/obj/item/weapon/circuitboard/borgupload
|
|
name = "Circuit board (Cyborg Upload)"
|
|
build_path = "/obj/machinery/computer/borgupload"
|
|
origin_tech = "programming=4"
|
|
/obj/item/weapon/circuitboard/med_data
|
|
name = "Circuit board (Medical Records Console)"
|
|
build_path = "/obj/machinery/computer/med_data"
|
|
/obj/item/weapon/circuitboard/pandemic
|
|
name = "Circuit board (PanD.E.M.I.C. 2200)"
|
|
build_path = "/obj/machinery/computer/pandemic"
|
|
origin_tech = "programming=2;biotech=2"
|
|
/obj/item/weapon/circuitboard/scan_consolenew
|
|
name = "Circuit board (DNA Machine)"
|
|
build_path = "/obj/machinery/computer/scan_consolenew"
|
|
origin_tech = "programming=2;biotech=2"
|
|
/obj/item/weapon/circuitboard/communications
|
|
name = "Circuit board (Communications)"
|
|
build_path = "/obj/machinery/computer/communications"
|
|
origin_tech = "programming=2;magnets=2"
|
|
/obj/item/weapon/circuitboard/card
|
|
name = "Circuit board (ID Console)"
|
|
build_path = "/obj/machinery/computer/card"
|
|
/obj/item/weapon/circuitboard/card/centcom
|
|
name = "Circuit board (Centcom ID Console)"
|
|
build_path = "/obj/machinery/computer/card/centcom"
|
|
//obj/item/weapon/circuitboard/shield
|
|
// name = "Circuit board (Shield Control)"
|
|
// build_path = "/obj/machinery/computer/stationshield"
|
|
/obj/item/weapon/circuitboard/teleporter
|
|
name = "Circuit board (Teleporter)"
|
|
build_path = "/obj/machinery/computer/teleporter"
|
|
origin_tech = "programming=2;bluespace=2"
|
|
/obj/item/weapon/circuitboard/secure_data
|
|
name = "Circuit board (Security Records Console)"
|
|
build_path = "/obj/machinery/computer/secure_data"
|
|
/obj/item/weapon/circuitboard/stationalert
|
|
name = "Circuit board (Station Alerts)"
|
|
build_path = "/obj/machinery/computer/station_alert"
|
|
/obj/item/weapon/circuitboard/atmospheresiphonswitch
|
|
name = "Circuit board (Atmosphere siphon control)"
|
|
build_path = "/obj/machinery/computer/atmosphere/siphonswitch"
|
|
/obj/item/weapon/circuitboard/air_management
|
|
name = "Circuit board (Atmospheric monitor)"
|
|
build_path = "/obj/machinery/computer/general_air_control"
|
|
/obj/item/weapon/circuitboard/injector_control
|
|
name = "Circuit board (Injector control)"
|
|
build_path = "/obj/machinery/computer/general_air_control/fuel_injection"
|
|
/obj/item/weapon/circuitboard/atmos_alert
|
|
name = "Circuit board (Atmospheric Alert)"
|
|
build_path = "/obj/machinery/computer/atmos_alert"
|
|
/obj/item/weapon/circuitboard/pod
|
|
name = "Circuit board (Massdriver control)"
|
|
build_path = "/obj/machinery/computer/pod"
|
|
/obj/item/weapon/circuitboard/robotics
|
|
name = "Circuit board (Robotics Control)"
|
|
build_path = "/obj/machinery/computer/robotics"
|
|
origin_tech = "programming=3"
|
|
/obj/item/weapon/circuitboard/cloning
|
|
name = "Circuit board (Cloning)"
|
|
build_path = "/obj/machinery/computer/cloning"
|
|
origin_tech = "programming=3;biotech=3"
|
|
/obj/item/weapon/circuitboard/arcade
|
|
name = "Circuit board (Arcade)"
|
|
build_path = "/obj/machinery/computer/arcade"
|
|
origin_tech = "programming=1"
|
|
/obj/item/weapon/circuitboard/turbine_control
|
|
name = "Circuit board (Turbine control)"
|
|
build_path = "/obj/machinery/computer/turbine_computer"
|
|
/obj/item/weapon/circuitboard/solar_control
|
|
name = "Circuit board (Solar Control)" //name fixed 250810
|
|
build_path = "/obj/machinery/power/solar_control"
|
|
origin_tech = "programming=2;powerstorage=2"
|
|
/obj/item/weapon/circuitboard/powermonitor
|
|
name = "Circuit board (Power Monitor)" //name fixed 250810
|
|
build_path = "/obj/machinery/power/monitor"
|
|
/obj/item/weapon/circuitboard/olddoor
|
|
name = "Circuit board (DoorMex)"
|
|
build_path = "/obj/machinery/computer/pod/old"
|
|
/obj/item/weapon/circuitboard/syndicatedoor
|
|
name = "Circuit board (ProComp Executive)"
|
|
build_path = "/obj/machinery/computer/pod/old/syndicate"
|
|
/obj/item/weapon/circuitboard/swfdoor
|
|
name = "Circuit board (Magix)"
|
|
build_path = "/obj/machinery/computer/pod/old/swf"
|
|
/obj/item/weapon/circuitboard/prisoner
|
|
name = "Circuit board (Prisoner Management Console)"
|
|
build_path = "/obj/machinery/computer/prisoner"
|
|
/obj/item/weapon/circuitboard/rdconsole
|
|
name = "Circuit Board (RD Console)"
|
|
build_path = "/obj/machinery/computer/rdconsole/core"
|
|
/obj/item/weapon/circuitboard/mecha_control
|
|
name = "Circuit Board (Exosuit Control Console)"
|
|
build_path = "/obj/machinery/computer/mecha"
|
|
/obj/item/weapon/circuitboard/rdservercontrol
|
|
name = "Circuit Board (R&D Server Control)"
|
|
build_path = "/obj/machinery/computer/rdservercontrol"
|
|
/obj/item/weapon/circuitboard/crew
|
|
name = "Circuit board (Crew Monitoring Console)"
|
|
build_path = "/obj/machinery/computer/crew"
|
|
origin_tech = "programming=3;biotech=2;magnets=2"
|
|
/obj/item/weapon/circuitboard/mech_bay_power_console
|
|
name = "Circuit board (Mech Bay Power Control Console)"
|
|
build_path = "/obj/machinery/computer/mech_bay_power_console"
|
|
origin_tech = "programming=2;powerstorage=3"
|
|
/obj/item/weapon/circuitboard/ordercomp
|
|
name = "Circuit board (Supply Ordering Console)"
|
|
build_path = "/obj/machinery/computer/ordercomp"
|
|
origin_tech = "programming=2"
|
|
/obj/item/weapon/circuitboard/supplycomp
|
|
name = "Circuit board (Supply shuttle console)"
|
|
build_path = "/obj/machinery/computer/supplycomp"
|
|
origin_tech = "programming=3"
|
|
var/contraband_enabled = 0
|
|
/obj/item/weapon/circuitboard/operating
|
|
name = "Circuit board (Operating Computer)"
|
|
build_path = "/obj/machinery/computer/operating"
|
|
origin_tech = "programming=2;biotech=2"
|
|
/obj/item/weapon/circuitboard/mining
|
|
name = "Circuit board (Outpost Status Display)"
|
|
build_path = "/obj/machinery/computer/security/mining"
|
|
origin_tech = "programming=2"
|
|
/obj/item/weapon/circuitboard/comm_monitor
|
|
name = "Circuit board (Telecommunications Monitor)"
|
|
build_path = "/obj/machinery/computer/telecomms/monitor"
|
|
origin_tech = "programming=3"
|
|
/obj/item/weapon/circuitboard/comm_server
|
|
name = "Circuit board (Telecommunications Server Monitor)"
|
|
build_path = "/obj/machinery/computer/telecomms/server"
|
|
origin_tech = "programming=3"
|
|
/obj/item/weapon/circuitboard/comm_traffic
|
|
name = "Circuitboard (Telecommunications Traffic Control)"
|
|
build_path = "/obj/machinery/computer/telecomms/traffic"
|
|
origin_tech = "programming=3"
|
|
|
|
/obj/item/weapon/circuitboard/curefab
|
|
name = "Circuit board (Cure fab)"
|
|
build_path = "/obj/machinery/computer/curer"
|
|
/obj/item/weapon/circuitboard/splicer
|
|
name = "Circuit board (Disease Splicer)"
|
|
build_path = "/obj/machinery/computer/diseasesplicer"
|
|
|
|
/obj/item/weapon/circuitboard/mining_shuttle
|
|
name = "Circuit board (Mining Shuttle)"
|
|
build_path = "/obj/machinery/computer/mining_shuttle"
|
|
origin_tech = "programming=2"
|
|
/obj/item/weapon/circuitboard/HolodeckControl // Not going to let people get this, but it's just here for future
|
|
name = "Circuit board (Holodeck Control)"
|
|
build_path = "/obj/machinery/computer/HolodeckControl"
|
|
origin_tech = "programming=4"
|
|
/obj/item/weapon/circuitboard/aifixer
|
|
name = "Circuit board (AI Integrity Restorer)"
|
|
build_path = "/obj/machinery/computer/aifixer"
|
|
origin_tech = "programming=3;biotech=2"
|
|
/obj/item/weapon/circuitboard/area_atmos
|
|
name = "Circuit board (Area Air Control)"
|
|
build_path = "/obj/machinery/computer/area_atmos"
|
|
origin_tech = "programming=2"
|
|
/obj/item/weapon/circuitboard/prison_shuttle
|
|
name = "Circuit board (Prison Shuttle)"
|
|
build_path = "/obj/machinery/computer/prison_shuttle"
|
|
origin_tech = "programming=2"
|
|
|
|
|
|
/obj/item/weapon/circuitboard/supplycomp/attackby(obj/item/I as obj, mob/user as mob)
|
|
if(istype(I,/obj/item/device/multitool))
|
|
var/catastasis = src.contraband_enabled
|
|
var/opposite_catastasis
|
|
if(catastasis)
|
|
opposite_catastasis = "STANDARD"
|
|
catastasis = "BROAD"
|
|
else
|
|
opposite_catastasis = "BROAD"
|
|
catastasis = "STANDARD"
|
|
|
|
switch( alert("Current receiver spectrum is set to: [catastasis]","Multitool-Circuitboard interface","Switch to [opposite_catastasis]","Cancel") )
|
|
//switch( alert("Current receiver spectrum is set to: " {(src.contraband_enabled) ? ("BROAD") : ("STANDARD")} , "Multitool-Circuitboard interface" , "Switch to " {(src.contraband_enabled) ? ("STANDARD") : ("BROAD")}, "Cancel") )
|
|
if("Switch to STANDARD","Switch to BROAD")
|
|
src.contraband_enabled = !src.contraband_enabled
|
|
|
|
if("Cancel")
|
|
return
|
|
else
|
|
user << "DERP! BUG! Report this (And what you were doing to cause it) to Agouri"
|
|
return
|
|
|
|
/obj/item/weapon/circuitboard/rdconsole/attackby(obj/item/I as obj, mob/user as mob)
|
|
if(istype(I,/obj/item/weapon/screwdriver))
|
|
if(src.build_path == "/obj/machinery/computer/rdconsole/core")
|
|
src.name = "Circuit Board (RD Console - Robotics)"
|
|
src.build_path = "/obj/machinery/computer/rdconsole/robotics"
|
|
user << "\blue Access protocols succesfully updated."
|
|
else
|
|
src.name = "Circuit Board (RD Console)"
|
|
src.build_path = "/obj/machinery/computer/rdconsole/core"
|
|
user << "\blue Defaulting access protocols."
|
|
return
|
|
|
|
/obj/structure/computerframe/attackby(obj/item/P as obj, mob/user as mob)
|
|
switch(state)
|
|
if(0)
|
|
if(istype(P, /obj/item/weapon/wrench))
|
|
playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1)
|
|
if(do_after(user, 20))
|
|
user << "\blue You wrench the frame into place."
|
|
src.anchored = 1
|
|
src.state = 1
|
|
if(istype(P, /obj/item/weapon/weldingtool))
|
|
var/obj/item/weapon/weldingtool/WT = P
|
|
if(!WT.remove_fuel(0, user))
|
|
user << "The welding tool must be on to complete this task."
|
|
return
|
|
playsound(src.loc, 'sound/items/Welder.ogg', 50, 1)
|
|
if(do_after(user, 20))
|
|
if(!src || !WT.isOn()) return
|
|
user << "\blue You deconstruct the frame."
|
|
new /obj/item/stack/sheet/metal( src.loc, 5 )
|
|
del(src)
|
|
if(1)
|
|
if(istype(P, /obj/item/weapon/wrench))
|
|
playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1)
|
|
if(do_after(user, 20))
|
|
user << "\blue You unfasten the frame."
|
|
src.anchored = 0
|
|
src.state = 0
|
|
if(istype(P, /obj/item/weapon/circuitboard) && !circuit)
|
|
var/obj/item/weapon/circuitboard/B = P
|
|
if(B.board_type == "computer")
|
|
playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1)
|
|
user << "\blue You place the circuit board inside the frame."
|
|
src.icon_state = "1"
|
|
src.circuit = P
|
|
user.drop_item()
|
|
P.loc = src
|
|
else
|
|
user << "\red This frame does not accept circuit boards of this type!"
|
|
if(istype(P, /obj/item/weapon/screwdriver) && circuit)
|
|
playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1)
|
|
user << "\blue You screw the circuit board into place."
|
|
src.state = 2
|
|
src.icon_state = "2"
|
|
if(istype(P, /obj/item/weapon/crowbar) && circuit)
|
|
playsound(src.loc, 'sound/items/Crowbar.ogg', 50, 1)
|
|
user << "\blue You remove the circuit board."
|
|
src.state = 1
|
|
src.icon_state = "0"
|
|
circuit.loc = src.loc
|
|
src.circuit = null
|
|
if(2)
|
|
if(istype(P, /obj/item/weapon/screwdriver) && circuit)
|
|
playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1)
|
|
user << "\blue You unfasten the circuit board."
|
|
src.state = 1
|
|
src.icon_state = "1"
|
|
if(istype(P, /obj/item/weapon/cable_coil))
|
|
if(P:amount >= 5)
|
|
playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1)
|
|
if(do_after(user, 20))
|
|
if(P)
|
|
P:amount -= 5
|
|
if(!P:amount) del(P)
|
|
user << "\blue You add cables to the frame."
|
|
src.state = 3
|
|
src.icon_state = "3"
|
|
if(3)
|
|
if(istype(P, /obj/item/weapon/wirecutters))
|
|
playsound(src.loc, 'sound/items/Wirecutter.ogg', 50, 1)
|
|
user << "\blue You remove the cables."
|
|
src.state = 2
|
|
src.icon_state = "2"
|
|
var/obj/item/weapon/cable_coil/A = new /obj/item/weapon/cable_coil( src.loc )
|
|
A.amount = 5
|
|
|
|
if(istype(P, /obj/item/stack/sheet/glass))
|
|
if(P:amount >= 2)
|
|
playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1)
|
|
if(do_after(user, 20))
|
|
if(P)
|
|
P:use(2)
|
|
user << "\blue You put in the glass panel."
|
|
src.state = 4
|
|
src.icon_state = "4"
|
|
if(4)
|
|
if(istype(P, /obj/item/weapon/crowbar))
|
|
playsound(src.loc, 'sound/items/Crowbar.ogg', 50, 1)
|
|
user << "\blue You remove the glass panel."
|
|
src.state = 3
|
|
src.icon_state = "3"
|
|
new /obj/item/stack/sheet/glass( src.loc, 2 )
|
|
if(istype(P, /obj/item/weapon/screwdriver))
|
|
playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1)
|
|
user << "\blue You connect the monitor."
|
|
var/B = new src.circuit.build_path ( src.loc )
|
|
if(circuit.powernet) B:powernet = circuit.powernet
|
|
if(circuit.id) B:id = circuit.id
|
|
if(circuit.records) B:records = circuit.records
|
|
if(circuit.frequency) B:frequency = circuit.frequency
|
|
if(istype(circuit,/obj/item/weapon/circuitboard/supplycomp))
|
|
var/obj/machinery/computer/supplycomp/SC = B
|
|
var/obj/item/weapon/circuitboard/supplycomp/C = circuit
|
|
SC.can_order_contraband = C.contraband_enabled
|
|
del(src)
|