Skip to content

Regeants required #443

Description

@Paraman666
Image

The required regeants dont show correctly. As with the picture you need 3 to make leather. I have noticed with some others where the amount is always 1 less than needed. I think in GameTooltip_ItemRegeants.lua it may have to do with around line 122
if name then
quantityText = count.."/"..v.quantityRequired;
if count >= v.quantityRequired then
tooltip:AddDoubleLine(name, quantityText, 1, 1, 1, 1, 1, 1);
numOuput = floor(count / v.quantityRequired);
if maxOutput then
if numOuput < maxOutput then
maxOutput = numOuput;
end
else
maxOutput = numOuput;
end
else
tooltip:AddDoubleLine(name, quantityText, 1, 0.125, 0.125, 1, 0.125, 0.125);
maxOutput = 0;
end
AddTextureToTooltip(tooltip, icon);
end

I Changed to

if name then
quantityText = count.."/"..(v.quantityRequired+1);
if count >= v.quantityRequired then
tooltip:AddDoubleLine(name, quantityText, 1, 1, 1, 1, 1, 1);
numOuput = floor(count / (v.quantityRequired+1);
if maxOutput then
if numOuput < maxOutput then
maxOutput = numOuput;
end
else
maxOutput = numOuput;
end
else
tooltip:AddDoubleLine(name, quantityText, 1, 0.125, 0.125, 1, 0.125, 0.125);
maxOutput = 0;
end
AddTextureToTooltip(tooltip, icon);
end

which seems to fix it, at least for leather scraps

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions