From 034c7cbe71a297f5e8852f3d13c0b2c23b784e8d Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Tue, 8 Dec 2020 00:58:53 +0100 Subject: [PATCH] Back to 9 + fix bug in progressive mode --- init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 5ff762d..db78bbf 100644 --- a/init.lua +++ b/init.lua @@ -61,7 +61,7 @@ local min, max, floor, ceil, abs = math.min, math.max, math.floor, math.ceil, ma local pairs, ipairs, next, type, setmetatable = pairs, ipairs, next, type, setmetatable local vec_add, vec_mul = vector.add, vector.multiply -local ROWS, _ROWS = 10 +local ROWS, _ROWS = 9 local LINES = 10 local IPP = ROWS * LINES local MAX_FAVS = 6 @@ -1949,6 +1949,7 @@ if progressive_mode then if #diff > 0 then data.inv_items = table_merge(diff, data.inv_items) local oldknown = data.known_recipes or 0 + get_filtered_items(player, data) data.discovered = data.known_recipes - oldknown if data.show_hud == nil and data.discovered > 0 then