mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-30 07:28:53 +01:00
* Laser Eyes * Update dna.dm * Mecha * Update positive_genes.dm * These * These 2 * yeh * Rest of these * Update turf.dm * Update food.dm * Some moar * mooove * Update vorestation.dme * Update burning.dm * firesuit * flags * HYPNOCOLOR * xd * no filter * dc * Update ore_bag.dm * Update misc.dm * Update misc.dm
44 lines
1.5 KiB
Plaintext
44 lines
1.5 KiB
Plaintext
#ifndef T_BOARD
|
|
#error T_BOARD macro is not defined but we need it!
|
|
#endif
|
|
|
|
/obj/item/circuitboard/supplycomp
|
|
name = T_BOARD("supply ordering console")
|
|
build_path = /obj/machinery/computer/supplycomp
|
|
origin_tech = list(TECH_DATA = 2)
|
|
var/contraband_enabled = 0
|
|
|
|
/obj/item/circuitboard/supplycomp/control
|
|
name = T_BOARD("supply ordering console")
|
|
build_path = /obj/machinery/computer/supplycomp/control
|
|
origin_tech = list(TECH_DATA = 3)
|
|
|
|
/obj/item/circuitboard/supplycomp/construct(var/obj/machinery/computer/supplycomp/SC)
|
|
if (..(SC))
|
|
SC.can_order_contraband = contraband_enabled
|
|
|
|
/obj/item/circuitboard/supplycomp/atom_deconstruct(disassembled = TRUE, var/obj/machinery/computer/supplycomp/SC)
|
|
if (..(SC))
|
|
contraband_enabled = SC.can_order_contraband
|
|
|
|
/obj/item/circuitboard/supplycomp/attackby(obj/item/I as obj, mob/user as mob)
|
|
if(istype(I,/obj/item/multitool))
|
|
var/catastasis = src.contraband_enabled
|
|
var/opposite_catastasis
|
|
if(catastasis)
|
|
opposite_catastasis = "STANDARD"
|
|
catastasis = "BROAD"
|
|
else
|
|
opposite_catastasis = "BROAD"
|
|
catastasis = "STANDARD"
|
|
|
|
switch(tgui_alert(user, "Current receiver spectrum is set to: [catastasis]","Multitool-Circuitboard interface",list("Switch to [opposite_catastasis]","Cancel")))
|
|
if("Switch to STANDARD","Switch to BROAD")
|
|
src.contraband_enabled = !src.contraband_enabled
|
|
|
|
if("Cancel", null)
|
|
return
|
|
else
|
|
to_chat(user, "DERP! BUG! Report this (And what you were doing to cause it) to Agouri")
|
|
return
|