From 18d9d681b89619d162fe373d093050326247d430 Mon Sep 17 00:00:00 2001 From: jill Date: Mon, 25 Jan 2021 21:45:06 +0300 Subject: [PATCH] fixes --- scenes/gameplay/main.lua | 2 +- scenes/gameplay/update/fish.lua | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/scenes/gameplay/main.lua b/scenes/gameplay/main.lua index 7a50b4b..b769018 100644 --- a/scenes/gameplay/main.lua +++ b/scenes/gameplay/main.lua @@ -82,7 +82,7 @@ local headerbuttons = { sprite = 'starpotion', tooltip = 'buy star potion', openanim = 1, - open = true, + open = false, closed = false, func = function() starpotionequipped = true diff --git a/scenes/gameplay/update/fish.lua b/scenes/gameplay/update/fish.lua index d00a0ac..83645a9 100644 --- a/scenes/gameplay/update/fish.lua +++ b/scenes/gameplay/update/fish.lua @@ -212,6 +212,10 @@ return function(feesh, dt, food, headerbuttons, money) headerbuttons[4].open = true headerbuttons[4].openanim = 0 end + if not headerbuttons[5].open and not headerbuttons[5].closed then + headerbuttons[5].open = true + headerbuttons[5].openanim = 0 + end end if n.lifetime > FISH_AGE_KING and n.size == 2 then n.size = 3