From 4a9172821dcdef6172da245d01e8ef6fc8f20de3 Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Mon, 12 Apr 2021 05:28:26 +0200 Subject: [PATCH] Small fix --- init.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/init.lua b/init.lua index c6cb560..d06bfe0 100644 --- a/init.lua +++ b/init.lua @@ -2449,10 +2449,11 @@ local function get_inventory_fs(player, data, fs) max_val = max_val + (award_list_nb * 13) elseif data.subcat == 5 then - local waypoints_nb = #data.waypoints + local wp_nb = #data.waypoints - if waypoints_nb > 0 then - max_val = max_val + 11 + (waypoints_nb * 6) + if wp_nb > 0 then + local mul = wp_nb > 8 and 7 or 6 + max_val = max_val + 11 + (wp_nb * mul) end end @@ -2634,7 +2635,7 @@ i3.new_tab { } insert(data.waypoints, {name = waypoint, pos = pos, color = color, id = id}) - data.scrbar_inv = data.scrbar_inv + 100 + data.scrbar_inv = data.scrbar_inv + 1000 end return set_fs(player)