This commit is contained in:
SandPoot
2024-07-06 01:11:49 -03:00
parent 587f92e900
commit 9c92081471
2 changed files with 9 additions and 0 deletions

View File

@@ -172,6 +172,15 @@
/obj/item/integrated_circuit/logic/binary/or/do_compare(var/datum/integrated_io/A, var/datum/integrated_io/B)
return A.data || B.data
/obj/item/integrated_circuit/logic/binary/xor
name = "xor gate"
desc = "This gate will output TRUE if only one of the inputs evaluate to true."
icon_state = "xor"
spawn_flags = IC_SPAWN_DEFAULT|IC_SPAWN_RESEARCH
/obj/item/integrated_circuit/logic/binary/xor/do_compare(datum/integrated_io/A, datum/integrated_io/B)
return (!!A.data + !!B.data) == 1
/obj/item/integrated_circuit/logic/binary/less_than
name = "less than gate"
desc = "This will output TRUE if the first input is less than the second input."

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB