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,15 +23,15 @@ datablock fxDtsBrickData(LogicGate_GateOr7Vertical_Data){
logicInput = "";
logicUpdate =
"return function(gate) " @
" Gate.setportstate(gate, 8, ( " @
" Gate.getportstate(gate, 1) or " @
" Gate.getportstate(gate, 2) or " @
" Gate.getportstate(gate, 3) or " @
" Gate.getportstate(gate, 4) or " @
" Gate.getportstate(gate, 5) or " @
" Gate.getportstate(gate, 6) or " @
" Gate.getportstate(gate, 7) " @
" )) " @
" Gate.setportstate(gate, 8, (( " @
" (Gate.getportstate(gate, 1)~=0) or " @
" (Gate.getportstate(gate, 2)~=0) or " @
" (Gate.getportstate(gate, 3)~=0) or " @
" (Gate.getportstate(gate, 4)~=0) or " @
" (Gate.getportstate(gate, 5)~=0) or " @
" (Gate.getportstate(gate, 6)~=0) or " @
" (Gate.getportstate(gate, 7)~=0) " @
" )) and 1 or 0) " @
"end"
;
logicGlobal = "";