
Code: Select all
if self.is_tinker then
if self.on_type then
if self.on_subtype then
-- vvvvvvvv
desc.add(("Attach on item of type '#ORANGE#%s / %s#LAST#'"):tformat(self.on_type, self.on_subtype):toTString(), true)
else
-- vvvvvvvv
desc.add(("Attach on item of type '#ORANGE#%s#LAST#'"):tformat(self.on_type):toTString(), true)
end
end
-- vvvvvvvv
if self.on_slot then desc.add(("Attach on item worn on slot '#ORANGE#%s#LAST#'"):tformat(_t(self.on_slot, "entity on slot"):lower():gsub('_', ' ')):toTString(), true) end
if self.object_tinker and (self.object_tinker.combat or self.object_tinker.wielder) then
desc:add({"color","YELLOW"}, _t"When attach to an other item:", {"color", "LAST"}, true)
if self.object_tinker.combat then desc_combat(self.object_tinker, compare_with, "combat") end
if self.object_tinker.wielder then desc_wielder(self.object_tinker, compare_with, "wielder") end
end
end


Edit 2022-05-22: In the meantime, I've added some code to Tinker Tinkering to paper over the bug.