make states numbers instead of booleans
This commit is contained in:
@@ -25,15 +25,15 @@ datablock fxDtsBrickData(LogicGate_Mux6_Data){
|
||||
"return function(gate) " @
|
||||
" if Gate.getportstate(gate, 71) then " @
|
||||
" local idx = 7 + " @
|
||||
" (bool_to_int[Gate.getportstate(gate, 1)] * 1) + " @
|
||||
" (bool_to_int[Gate.getportstate(gate, 2)] * 2) + " @
|
||||
" (bool_to_int[Gate.getportstate(gate, 3)] * 4) + " @
|
||||
" (bool_to_int[Gate.getportstate(gate, 4)] * 8) + " @
|
||||
" (bool_to_int[Gate.getportstate(gate, 5)] * 16) + " @
|
||||
" (bool_to_int[Gate.getportstate(gate, 6)] * 32) " @
|
||||
" (Gate.getportstate(gate, 1) * 1) + " @
|
||||
" (Gate.getportstate(gate, 2) * 2) + " @
|
||||
" (Gate.getportstate(gate, 3) * 4) + " @
|
||||
" (Gate.getportstate(gate, 4) * 8) + " @
|
||||
" (Gate.getportstate(gate, 5) * 16) + " @
|
||||
" (Gate.getportstate(gate, 6) * 32) " @
|
||||
" Gate.setportstate(gate, 72, Gate.getportstate(gate, idx)) " @
|
||||
" else " @
|
||||
" Gate.setportstate(gate, 72, false) " @
|
||||
" Gate.setportstate(gate, 72, 0) " @
|
||||
" end " @
|
||||
"end"
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user