make random stack sizes optional

in my last pull request i changed the defaul behaviour of aux to max stack sizes to random stack sizes.
this pull reqeust chagnes this back and adds the /aux post stack command to toggle stacks off and get random post sizes instead
This commit is contained in:
geojak
2022-04-26 17:56:32 +02:00
committed by GitHub
parent 0ab1cd8f62
commit ede00f203b
4 changed files with 26 additions and 14 deletions
+6 -4
View File
@@ -155,10 +155,12 @@ function game_tooltip_hooks:SetInboxItem(index)
local name, _, quantity = GetInboxItem(index)
local id = name and info.item_id(name)
if id then
local _, itemstring, quality = GetItemInfo(id)
local hex = aux.select(4, GetItemQualityColor(tonumber(quality)))
local link = hex .. '|H' .. itemstring .. '|h[' .. name .. ']|h' .. FONT_COLOR_CODE_CLOSE
extend_tooltip(GameTooltip, link, quantity)
local _, itemstring, quality = (id)
if quality and itemstring then
local hex = aux.select(4, GetItemQualityColor(tonumber(quality)))
local link = hex .. '|H' .. itemstring .. '|h[' .. name .. ']|h' .. FONT_COLOR_CODE_CLOSE
extend_tooltip(GameTooltip, link, quantity)
end
end
end