mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 07:38:05 +01:00
[MIRROR] Adds a trigger version of the variable setter circuit component [MDB IGNORE] (#11443)
* Adds a trigger version of the variable setter component (#64820) See title. Lets you use input and output signals to set variables instead of automatically setting them. Gives more control, additionally there may be cases where you don't want this, and the normal component still exists. They're two separate components so that the first one can be a lot more compact * Adds a trigger version of the variable setter circuit component Co-authored-by: Watermelon914 <37270891+Watermelon914@users.noreply.github.com>
This commit is contained in:
co-authored by
Watermelon914
parent
e3ef4c8103
commit
f8196cd6a8
@@ -12,6 +12,11 @@
|
||||
|
||||
circuit_size = 0
|
||||
|
||||
/obj/item/circuit_component/variable/setter/trigger
|
||||
display_name = "Trigger Variable Setter"
|
||||
desc = "A component that sets a variable globally on the circuit. This one requires input signals and also provides an output signal"
|
||||
circuit_flags = CIRCUIT_FLAG_INPUT_SIGNAL|CIRCUIT_FLAG_OUTPUT_SIGNAL
|
||||
|
||||
/obj/item/circuit_component/variable/setter/get_variable_list(obj/item/integrated_circuit/integrated_circuit)
|
||||
return integrated_circuit.modifiable_circuit_variables
|
||||
|
||||
|
||||
Reference in New Issue
Block a user