Module:Inventory slot: Difference between revisions
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. |
m I obviously haven't used lua in a while... |
||
Line 120: | Line 120: | ||
link = 'Mods/' .. mod .. '/' .. name | link = 'Mods/' .. mod .. '/' .. name | ||
else | else | ||
link = name:gsub( '^Damaged ' ) | link = name:gsub( '^Damaged ', '' ) | ||
end | end | ||
elseif link:lower() == 'none' then | elseif link:lower() == 'none' then |