|
|
@@ -16,6 +16,7 @@ function love.load()
|
|
|
Lume = require("lume")
|
|
|
loadGame()
|
|
|
require("ui")
|
|
|
+ require("progress")
|
|
|
require("data")
|
|
|
|
|
|
local stoneShow = Stones
|
|
|
@@ -47,9 +48,8 @@ function love.draw()
|
|
|
|
|
|
-- DRAW CRAFTERS
|
|
|
-- ===========================
|
|
|
- for i=1, #crafter do
|
|
|
- local crft = crafter[i]
|
|
|
-
|
|
|
+ for i,crft in ipairs(crafter) do
|
|
|
+
|
|
|
if crft.active then
|
|
|
love.graphics.setColor(colorOrange)
|
|
|
love.graphics.rectangle(
|
|
|
@@ -104,9 +104,9 @@ end
|
|
|
|
|
|
function love.mousereleased(x, y, button)
|
|
|
if button == 1 then
|
|
|
- for i=1, #crafter do
|
|
|
- if checkRect(crafter[i].ui) then
|
|
|
- upgradeCrafter(crafter[i])
|
|
|
+ for i,crft in ipairs(crafter) do
|
|
|
+ if checkRect(crft.ui) then
|
|
|
+ upgradeCrafter(crft)
|
|
|
end
|
|
|
end
|
|
|
end
|