diff --git a/constructors.lua b/constructors.lua index b6e5ca9..f0a10b2 100644 --- a/constructors.lua +++ b/constructors.lua @@ -7,7 +7,7 @@ function self.fish(x, y, type) local fish = { x = x, y = y, - size = 2, -- 0 for small, 1 for medium, 2 for big, 3 for king, 4 for carnivore + size = type, -- 0 for small, 1 for medium, 2 for big, 3 for king, 4 for carnivore eattimer = 0 + math.random() * 2, -- starts out hungry, with a 2s delay moneytimer = 10 + math.random() * 5, -- min 10s before it can make money dead = false, diff --git a/scenes/gameplay/update/fish.lua b/scenes/gameplay/update/fish.lua index 3aa7407..d00a0ac 100644 --- a/scenes/gameplay/update/fish.lua +++ b/scenes/gameplay/update/fish.lua @@ -183,7 +183,7 @@ return function(feesh, dt, food, headerbuttons, money) if n.size == 2 or n.size == 3 then n.star = true else - n.eattimer = -9e9 + n.eattimer = FISH_FOOD_DEAD playSound('explode') end else