Update 'Controller/CropController.lua'
This commit is contained in:
parent
984bcb2e9e
commit
d0679864cf
@ -34,6 +34,15 @@ function CropController:displayMatrix()
|
|||||||
for j = 1, length do
|
for j = 1, length do
|
||||||
term.setCursorPos(i,j)
|
term.setCursorPos(i,j)
|
||||||
if(self.matrix[i][j] >= 0) then
|
if(self.matrix[i][j] >= 0) then
|
||||||
|
if(self.matrix[i][j] >= 6) then
|
||||||
|
term.setTextColour(colours.orange)
|
||||||
|
elseif(self.matrix[i][j] >= 4) then
|
||||||
|
term.setTextColour(colours.yellow)
|
||||||
|
elseif(self.matrix[i][j] >= 2) then
|
||||||
|
term.setTextColour(colours.lime)
|
||||||
|
else
|
||||||
|
term.setTextColour(colours.green)
|
||||||
|
end
|
||||||
term.setTextColour(colours.white)
|
term.setTextColour(colours.white)
|
||||||
term.write(self.matrix[i][j])
|
term.write(self.matrix[i][j])
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user