From b62687e84bb829d8588e8fe938f0ad99fff18364 Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Tue, 16 Nov 2021 08:50:34 +0100 Subject: [PATCH] Small cleanup --- src/gui.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gui.lua b/src/gui.lua index 27bab22..c873b72 100644 --- a/src/gui.lua +++ b/src/gui.lua @@ -546,8 +546,7 @@ local function get_inventory_fs(player, data, fs) local max_val = damage_enabled and 12 or 7 if data.subcat == 1 and data.bag_size then - local v = {6, 16, 26, 32} - max_val = max_val + v[data.bag_size] + max_val = max_val + min(32, 6 + ((data.bag_size - 1) * 10)) elseif i3.modules.armor and data.subcat == 2 then if data.scrbar_inv >= max_val then