This commit is contained in:
Fluffy
2023-12-25 00:18:54 +00:00
committed by GitHub
parent fa61c14624
commit 07ec5470c0
4 changed files with 76 additions and 7 deletions
+13 -6
View File
@@ -18,13 +18,20 @@
var/list/attached_overlays = null
var/obj/item/device/assembly_holder/holder = null
var/cooldown = 0 //To prevent spam
var/wires = WIRE_RECEIVE_ASSEMBLY | WIRE_PULSE_ASSEMBLY
var/const/WIRE_RECEIVE_ASSEMBLY = 1 //Allows Pulsed(0) to call Activate()
var/const/WIRE_PULSE_ASSEMBLY = 2 //Allows Pulse(0) to act on the holder
var/const/WIRE_PULSE_SPECIAL = 4 //Allows Pulse(0) to act on the holders special assembly
var/const/WIRE_RADIO_RECEIVE = 8 //Allows Pulsed(1) to call Activate()
var/const/WIRE_RADIO_PULSE = 16 //Allows Pulse(1) to send a radio message
/**
* Wires that the assembly has installed
*
* Refer to `code\__defines\wires.dm` in the dedicated section for the supported wires, which _must_ be bitflags
*
* At the time of writing this, it supports:
* * WIRE_RECEIVE_ASSEMBLY
* * WIRE_PULSE_ASSEMBLY
* * WIRE_PULSE_SPECIAL
* * WIRE_RADIO_RECEIVE
* * WIRE_RADIO_PULSE
*/
var/wires = WIRE_RECEIVE_ASSEMBLY | WIRE_PULSE_ASSEMBLY
/obj/item/device/assembly/proc/holder_movement()
return
+1 -1
View File
@@ -8,7 +8,7 @@
matter = list(DEFAULT_WALL_MATERIAL = 500, MATERIAL_GLASS = 50)
secured = TRUE
wires = WIRE_RECEIVE
wires = WIRE_RECEIVE_ASSEMBLY
/obj/item/device/assembly/igniter/activate()
. = ..()