Module:InventorySlot: Difference between revisions

Jump to navigation Jump to search
m (Visual test)
m (The real visual test)
Line 117: Line 117:
end
end


local plainTitle = self.__sprite:getAttr("title")
local formattedTitle
if aliases then
local id = formattedTitle
local alias = aliases[id]
if alias then
formattedTitle = alias.name
end
else
formattedTitle = plainTitle
end
slot:attr("title", formattedTitle)


return slot
return slot