diff --git a/Controller/CropController.lua b/Controller/CropController.lua index f5c8d58..e70544e 100644 --- a/Controller/CropController.lua +++ b/Controller/CropController.lua @@ -34,6 +34,15 @@ function CropController:displayMatrix() for j = 1, length do term.setCursorPos(i,j) 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.write(self.matrix[i][j]) else