Small fix
This commit is contained in:
parent
a0c0a8bad7
commit
4a9172821d
9
init.lua
9
init.lua
|
@ -2449,10 +2449,11 @@ local function get_inventory_fs(player, data, fs)
|
||||||
max_val = max_val + (award_list_nb * 13)
|
max_val = max_val + (award_list_nb * 13)
|
||||||
|
|
||||||
elseif data.subcat == 5 then
|
elseif data.subcat == 5 then
|
||||||
local waypoints_nb = #data.waypoints
|
local wp_nb = #data.waypoints
|
||||||
|
|
||||||
if waypoints_nb > 0 then
|
if wp_nb > 0 then
|
||||||
max_val = max_val + 11 + (waypoints_nb * 6)
|
local mul = wp_nb > 8 and 7 or 6
|
||||||
|
max_val = max_val + 11 + (wp_nb * mul)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -2634,7 +2635,7 @@ i3.new_tab {
|
||||||
}
|
}
|
||||||
|
|
||||||
insert(data.waypoints, {name = waypoint, pos = pos, color = color, id = id})
|
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
|
end
|
||||||
|
|
||||||
return set_fs(player)
|
return set_fs(player)
|
||||||
|
|
Ŝarĝante…
Reference in New Issue