Changes

m
"link=foo" makes the link invalid
Line 114: Line 114:     
for i = 1, ship:slots_length() do
 
for i = 1, ship:slots_length() do
local equipment, size, estimation, icon, equipment_type, equipment_link = ship:slot(i)
+
local equipment, size, estimation = ship:slot(i)
 +
local icon, equipment_type, equipment_link
 
if equipment then
 
if equipment then
 
icon = equipment:icon()
 
icon = equipment:icon()
Line 127: Line 128:  
active_midget_submarine = true
 
active_midget_submarine = true
 
end
 
end
 +
local real_equipment = equipment:link()
 +
equipment = real_equipment or equipment
 +
equipment_link = equipment
 +
--[[
 
equipment_link, equipment = Formatting:format_link(equipment:link())
 
equipment_link, equipment = Formatting:format_link(equipment:link())
 
equipment = equipment or equipment_link
 
equipment = equipment or equipment_link
 +
]]
 
else
 
else
 
icon = disabled and "" or false
 
icon = disabled and "" or false
Anonymous user