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,18 +23,18 @@ datablock fxDtsBrickData(LogicGate_Buffer5BitUp_Data){
logicInput = "";
logicUpdate =
"return function(gate) " @
" if Gate.getportstate(gate, 11) then " @
" if Gate.getportstate(gate, 11)~=0 then " @
" Gate.setportstate(gate, 6, Gate.getportstate(gate, 1)) " @
" Gate.setportstate(gate, 7, Gate.getportstate(gate, 2)) " @
" Gate.setportstate(gate, 8, Gate.getportstate(gate, 3)) " @
" Gate.setportstate(gate, 9, Gate.getportstate(gate, 4)) " @
" Gate.setportstate(gate, 10, Gate.getportstate(gate, 5)) " @
" else " @
" Gate.setportstate(gate, 6, false) " @
" Gate.setportstate(gate, 7, false) " @
" Gate.setportstate(gate, 8, false) " @
" Gate.setportstate(gate, 9, false) " @
" Gate.setportstate(gate, 10, false) " @
" Gate.setportstate(gate, 6, 0) " @
" Gate.setportstate(gate, 7, 0) " @
" Gate.setportstate(gate, 8, 0) " @
" Gate.setportstate(gate, 9, 0) " @
" Gate.setportstate(gate, 10, 0) " @
" end " @
"end"
;