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
This commit is contained in:
Watermelon914
2022-02-11 01:10:46 -08:00
committed by GitHub
parent 85df5a0c26
commit 754fe54bdb
3 changed files with 11 additions and 0 deletions
@@ -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