make states numbers instead of booleans
This commit is contained in:
@@ -23,7 +23,7 @@ datablock fxDtsBrickData(LogicGate_Buffer8BitUp_Data){
|
||||
logicInput = "";
|
||||
logicUpdate =
|
||||
"return function(gate) " @
|
||||
" if Gate.getportstate(gate, 17) then " @
|
||||
" if Gate.getportstate(gate, 17)~=0 then " @
|
||||
" Gate.setportstate(gate, 9, Gate.getportstate(gate, 1)) " @
|
||||
" Gate.setportstate(gate, 10, Gate.getportstate(gate, 2)) " @
|
||||
" Gate.setportstate(gate, 11, Gate.getportstate(gate, 3)) " @
|
||||
@@ -33,14 +33,14 @@ datablock fxDtsBrickData(LogicGate_Buffer8BitUp_Data){
|
||||
" Gate.setportstate(gate, 15, Gate.getportstate(gate, 7)) " @
|
||||
" Gate.setportstate(gate, 16, Gate.getportstate(gate, 8)) " @
|
||||
" else " @
|
||||
" Gate.setportstate(gate, 9, false) " @
|
||||
" Gate.setportstate(gate, 10, false) " @
|
||||
" Gate.setportstate(gate, 11, false) " @
|
||||
" Gate.setportstate(gate, 12, false) " @
|
||||
" Gate.setportstate(gate, 13, false) " @
|
||||
" Gate.setportstate(gate, 14, false) " @
|
||||
" Gate.setportstate(gate, 15, false) " @
|
||||
" Gate.setportstate(gate, 16, false) " @
|
||||
" Gate.setportstate(gate, 9, 0) " @
|
||||
" Gate.setportstate(gate, 10, 0) " @
|
||||
" Gate.setportstate(gate, 11, 0) " @
|
||||
" Gate.setportstate(gate, 12, 0) " @
|
||||
" Gate.setportstate(gate, 13, 0) " @
|
||||
" Gate.setportstate(gate, 14, 0) " @
|
||||
" Gate.setportstate(gate, 15, 0) " @
|
||||
" Gate.setportstate(gate, 16, 0) " @
|
||||
" end " @
|
||||
"end"
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user