Don't show chances to drop for usages

This commit is contained in:
Jean-Patrick Guerrero 2020-02-04 23:42:47 +01:00
parent 3455257df5
commit d87c64618c

@ -644,6 +644,10 @@ local function is_fav(data)
end end
local function get_desc(name) local function get_desc(name)
if sub(name, 1, 1) == "_" then
name = sub(name, 2)
end
local def = reg_items[name] local def = reg_items[name]
return def and (match(def.description, "%)([%w%s]*)") or def.description) or return def and (match(def.description, "%)([%w%s]*)") or def.description) or
@ -748,7 +752,7 @@ local function get_output_fs(data, fs, L)
1.1, 1.1, PNG.selected) 1.1, 1.1, PNG.selected)
end end
fs[#fs + 1] = fmt(FMT.item_image_button, fs[#fs + 1] = fmt("item_image_button[%f,%f;%f,%f;%s;_%s;%s]",
output_X, YOFFSET + (sfinv_only and 0.7 or 0) + L.spacing, output_X, YOFFSET + (sfinv_only and 0.7 or 0) + L.spacing,
1.1, 1.1, item, name, "") 1.1, 1.1, item, name, "")
@ -760,7 +764,7 @@ local function get_output_fs(data, fs, L)
} }
if next(infos) then if next(infos) then
fs[#fs + 1] = get_tooltip(name, infos) fs[#fs + 1] = get_tooltip(fmt("_%s", name), infos)
end end
if infos.burntime then if infos.burntime then