make states numbers instead of booleans

This commit is contained in:
Redo0
2021-05-29 13:14:50 -05:00
parent b08c3cd0c4
commit 16c1a9f75f
309 changed files with 2819 additions and 2819 deletions

View File

@@ -23,9 +23,9 @@ datablock fxDtsBrickData(LogicGate_GateXnor2_Data){
logicInput = "";
logicUpdate =
"return function(gate) " @
" local v = true " @
" if Gate.getportstate(gate, 1) then v = not v end " @
" if Gate.getportstate(gate, 2) then v = not v end " @
" local v = 1 " @
" if Gate.getportstate(gate, 1)~=0 then v = 1 - v end " @
" if Gate.getportstate(gate, 2)~=0 then v = 1 - v end " @
" Gate.setportstate(gate, 3, v) " @
"end"
;