Module:Inventory slot: Difference between revisions
No edit summary |
Since it is such a small table, it's not really worth having a separate data module for this. This module now trims the damaged prefix from the link. |
||
| Line 1: | Line 1: | ||
local p = {} | local p = {} | ||
-- List of special prefixes which should be handled by | |||
-- other modules (such as being moved outside links) | |||
p.prefixes = { | |||
'Any', | |||
'Matching', | |||
'Damaged' | |||
} | |||
function p.slot( f ) | function p.slot( f ) | ||
| Line 112: | Line 120: | ||
link = 'Mods/' .. mod .. '/' .. name | link = 'Mods/' .. mod .. '/' .. name | ||
else | else | ||
link = name | link = name:gsub( '^Damaged ' ) | ||
end | end | ||
elseif link:lower() == 'none' then | elseif link:lower() == 'none' then | ||