Module:Inventory slot: Difference between revisions
added comments to pretty much everything, a few other changes (some ported upstream from RuMCW, notably WebP support and more robust frame text parsing) |
m Set all links to disable on inventory slot |
||
(One intermediate revision by the same user not shown) | |||
Line 164: | Line 164: | ||
if link == '' then | if link == '' then | ||
if mod then | if mod then | ||
link = | link = nil | ||
else | else | ||
-- Strip the “Damaged” prefix out | -- Strip the “Damaged” prefix out | ||
link = | link = nil | ||
end | end | ||
elseif link:lower() == 'none' then | elseif link:lower() == 'none' then |